From 2b179ca1744d12630488619f948e5eb860e1fb41 Mon Sep 17 00:00:00 2001 From: Szabolcs Dezsi Date: Mon, 27 Feb 2012 11:23:51 +0000 Subject: Removed unused code --- editeng/inc/editeng/frmdiritem.hxx | 1 - editeng/inc/editeng/justifyitem.hxx | 2 -- editeng/inc/editeng/unoedhlp.hxx | 20 -------------------- editeng/inc/editeng/unopracc.hxx | 3 --- editeng/source/items/frmitems.cxx | 5 ----- editeng/source/items/justifyitem.cxx | 6 ------ editeng/source/uno/unoedhlp.cxx | 6 ------ editeng/source/uno/unoedprx.cxx | 11 ----------- editeng/source/uno/unopracc.cxx | 7 ------- 9 files changed, 61 deletions(-) (limited to 'editeng') diff --git a/editeng/inc/editeng/frmdiritem.hxx b/editeng/inc/editeng/frmdiritem.hxx index b8ff60f5fe7a..fc03a21a4d80 100644 --- a/editeng/inc/editeng/frmdiritem.hxx +++ b/editeng/inc/editeng/frmdiritem.hxx @@ -48,7 +48,6 @@ class EDITENG_DLLPUBLIC SvxFrameDirectionItem : public SfxUInt16Item public: TYPEINFO(); - SvxFrameDirectionItem( sal_uInt16 nWhich ); SvxFrameDirectionItem( SvxFrameDirection nValue /*= FRMDIR_HORI_LEFT_TOP*/, sal_uInt16 nWhich ); virtual ~SvxFrameDirectionItem(); diff --git a/editeng/inc/editeng/justifyitem.hxx b/editeng/inc/editeng/justifyitem.hxx index 67f8dc2e0e0d..c577845cc243 100644 --- a/editeng/inc/editeng/justifyitem.hxx +++ b/editeng/inc/editeng/justifyitem.hxx @@ -103,8 +103,6 @@ public: class EDITENG_DLLPUBLIC SvxJustifyMethodItem: public SfxEnumItem { public: - SvxJustifyMethodItem( const sal_uInt16 nId ); - SvxJustifyMethodItem( const SvxCellJustifyMethod eMethod, const sal_uInt16 nId ); diff --git a/editeng/inc/editeng/unoedhlp.hxx b/editeng/inc/editeng/unoedhlp.hxx index cb3729295e4a..df625f547431 100644 --- a/editeng/inc/editeng/unoedhlp.hxx +++ b/editeng/inc/editeng/unoedhlp.hxx @@ -163,26 +163,6 @@ public: */ static Rectangle EEToUserSpace( const Rectangle& rRect, const Size& rEESize, bool bIsVertical ); - /** Convert rect from user to edit engine coordinate space - - As the edit engine internally keeps vertical text unrotated, - all internal edit engine methods return their stuff unrotated, - too. This method rotates and shifts given rect appropriately, - if vertical writing is on. - - @param rRect - Rectangle to transform - - @param rEESize - Paper size of the edit engine - - @param bIsVertical - Whether output text is vertical or not - - @return the possibly transformed rect - */ - static Rectangle UserSpaceToEE( const Rectangle& rRect, const Size& rEESize, bool bIsVertical ); - }; #endif diff --git a/editeng/inc/editeng/unopracc.hxx b/editeng/inc/editeng/unopracc.hxx index 99b82cb89523..3d07c4841bdd 100644 --- a/editeng/inc/editeng/unopracc.hxx +++ b/editeng/inc/editeng/unopracc.hxx @@ -53,9 +53,6 @@ public: virtual ::rtl::OUString SAL_CALL getImplementationName() throw(::com::sun::star::uno::RuntimeException); virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ) throw (::com::sun::star::uno::RuntimeException); virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw (::com::sun::star::uno::RuntimeException); - - // XServiceName - ::rtl::OUString SAL_CALL getServiceName() throw (::com::sun::star::uno::RuntimeException); }; #endif diff --git a/editeng/source/items/frmitems.cxx b/editeng/source/items/frmitems.cxx index 0cde9c437c46..26c273648c74 100644 --- a/editeng/source/items/frmitems.cxx +++ b/editeng/source/items/frmitems.cxx @@ -4126,11 +4126,6 @@ void SvxBrushItem::ApplyGraphicTransparency_Impl() } // class SvxFrameDirectionItem ---------------------------------------------- -SvxFrameDirectionItem::SvxFrameDirectionItem( sal_uInt16 _nWhich ) - : SfxUInt16Item( _nWhich, (sal_uInt16)FRMDIR_HORI_LEFT_TOP ) -{ -} - SvxFrameDirectionItem::SvxFrameDirectionItem( SvxFrameDirection nValue , sal_uInt16 _nWhich ) : SfxUInt16Item( _nWhich, (sal_uInt16)nValue ) diff --git a/editeng/source/items/justifyitem.cxx b/editeng/source/items/justifyitem.cxx index f9123fb53992..0d3024df4d24 100644 --- a/editeng/source/items/justifyitem.cxx +++ b/editeng/source/items/justifyitem.cxx @@ -353,12 +353,6 @@ sal_uInt16 SvxVerJustifyItem::GetValueCount() const } - -SvxJustifyMethodItem::SvxJustifyMethodItem( const sal_uInt16 nId ) : - SfxEnumItem( nId, (sal_uInt16)SVX_JUSTIFY_METHOD_AUTO ) -{ -} - SvxJustifyMethodItem::SvxJustifyMethodItem( const SvxCellJustifyMethod eJustify, const sal_uInt16 nId ) : SfxEnumItem( nId, (sal_uInt16)eJustify ) diff --git a/editeng/source/uno/unoedhlp.cxx b/editeng/source/uno/unoedhlp.cxx index fb1b03322350..a06baa39eb46 100644 --- a/editeng/source/uno/unoedhlp.cxx +++ b/editeng/source/uno/unoedhlp.cxx @@ -166,10 +166,4 @@ Rectangle SvxEditSourceHelper::EEToUserSpace( const Rectangle& rRect, const Size EEToUserSpace(rRect.TopRight(), rEESize, bIsVertical) ) : rRect; } -Rectangle SvxEditSourceHelper::UserSpaceToEE( const Rectangle& rRect, const Size& rEESize, bool bIsVertical ) -{ - return bIsVertical ? Rectangle( UserSpaceToEE(rRect.TopRight(), rEESize, bIsVertical), - UserSpaceToEE(rRect.BottomLeft(), rEESize, bIsVertical) ) : rRect; -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/editeng/source/uno/unoedprx.cxx b/editeng/source/uno/unoedprx.cxx index 0b96a9523ae0..dcce120e4fbc 100644 --- a/editeng/source/uno/unoedprx.cxx +++ b/editeng/source/uno/unoedprx.cxx @@ -120,9 +120,6 @@ public: void AreInBullet( sal_Bool bInBullet = sal_True ) { mbInBullet = bInBullet; } sal_Bool InBullet() const { return mbInBullet; } - /// returns false if the current index contains non-editable text (e.g. bullets) - sal_Bool IsEditable() const; - /// returns false if the given range is non-editable (e.g. contains bullets or _parts_ of fields) sal_Bool IsEditableRange( const SvxAccessibleTextIndex& rEnd ) const; @@ -295,14 +292,6 @@ void SvxAccessibleTextIndex::SetIndex( sal_Int32 nIndex, const SvxTextForwarder& } } -sal_Bool SvxAccessibleTextIndex::IsEditable() const -{ - if( InBullet() || InField() ) - return sal_False; - - return sal_True; -} - sal_Bool SvxAccessibleTextIndex::IsEditableRange( const SvxAccessibleTextIndex& rEnd ) const { if( GetIndex() > rEnd.GetIndex() ) diff --git a/editeng/source/uno/unopracc.cxx b/editeng/source/uno/unopracc.cxx index ee19d30064e8..ba8077a737c0 100644 --- a/editeng/source/uno/unopracc.cxx +++ b/editeng/source/uno/unopracc.cxx @@ -97,11 +97,4 @@ uno::Sequence< ::rtl::OUString> SAL_CALL SvxAccessibleTextPropertySet::getSuppor return SvxUnoTextRangeBase::getSupportedServiceNames(); } -// XServiceName -::rtl::OUString SAL_CALL SvxAccessibleTextPropertySet::getServiceName() throw (uno::RuntimeException) -{ - return ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.beans.PropertyValue")); -} - - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit