diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-03-06 22:43:13 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-03-07 11:06:45 +0000 |
commit | bbc6d8506d0bb1035c7c6d1755a0655612b54e69 (patch) | |
tree | 724a63f8622e5a69236400b0642d0423ca9b6f93 /editeng | |
parent | These methods don't need to be implemented as Links (diff) | |
download | core-bbc6d8506d0bb1035c7c6d1755a0655612b54e69.tar.gz core-bbc6d8506d0bb1035c7c6d1755a0655612b54e69.zip |
remove various unused methods and source files
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/inc/editeng/unotext.hxx | 3 | ||||
-rw-r--r-- | editeng/source/uno/unotext.cxx | 27 |
2 files changed, 0 insertions, 30 deletions
diff --git a/editeng/inc/editeng/unotext.hxx b/editeng/inc/editeng/unotext.hxx index 2db3bd267d0e..127771b42bb4 100644 --- a/editeng/inc/editeng/unotext.hxx +++ b/editeng/inc/editeng/unotext.hxx @@ -423,15 +423,12 @@ protected: public: SvxUnoTextBase( ) throw(); SvxUnoTextBase( const SvxItemPropertySet* _pSet ) throw(); - SvxUnoTextBase( const SvxEditSource* pSource, const SvxItemPropertySet* _pSet ) throw(); SvxUnoTextBase( const SvxEditSource* pSource, const SvxItemPropertySet* _pSet, ::com::sun::star::uno::Reference < ::com::sun::star::text::XText > xParent ) throw(); SvxUnoTextBase( const SvxUnoTextBase& rText ) throw(); virtual ~SvxUnoTextBase() throw(); UNO3_GETIMPLEMENTATION_DECL( SvxUnoTextBase ) - ESelection InsertField( const SvxFieldItem& rField ) throw(); - ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextCursor > createTextCursorBySelection( const ESelection& rSel ); // ::com::sun::star::text::XSimpleText diff --git a/editeng/source/uno/unotext.cxx b/editeng/source/uno/unotext.cxx index 947a93e9de99..469e2d70da4c 100644 --- a/editeng/source/uno/unotext.cxx +++ b/editeng/source/uno/unotext.cxx @@ -1581,14 +1581,6 @@ SvxUnoTextBase::SvxUnoTextBase( const SvxItemPropertySet* _pSet ) throw() { } -SvxUnoTextBase::SvxUnoTextBase( const SvxEditSource* pSource, const SvxItemPropertySet* _pSet ) throw() -: SvxUnoTextBase_Base( pSource, _pSet ) -{ - ESelection aSelection; - ::GetSelection( aSelection, GetEditSource()->GetTextForwarder() ); - SetSelection( aSelection ); -} - SvxUnoTextBase::SvxUnoTextBase( const SvxEditSource* pSource, const SvxItemPropertySet* _pSet, uno::Reference < text::XText > xParent ) throw() : SvxUnoTextBase_Base( pSource, _pSet ) { @@ -1608,25 +1600,6 @@ SvxUnoTextBase::~SvxUnoTextBase() throw() { } -// Internal -ESelection SvxUnoTextBase::InsertField( const SvxFieldItem& rField ) throw() -{ - SvxTextForwarder* pForwarder = GetEditSource() ? GetEditSource()->GetTextForwarder() : NULL; - if( pForwarder ) - { - pForwarder->QuickInsertField( rField, GetSelection() ); - GetEditSource()->UpdateData(); - - // Adapt selection - //! It would be easier if the EditEngine would return the selection - //! on QuickInsertText... - CollapseToStart(); - GoRight( 1, sal_True ); // Field is always 1 character - } - - return GetSelection(); // Selection with the field -} - uno::Reference< text::XTextCursor > SvxUnoTextBase::createTextCursorBySelection( const ESelection& rSel ) { SvxUnoTextCursor* pCursor = new SvxUnoTextCursor( *this ); |