From 9c2f7056a82c4d7719715ca1c77f8dd4c17aa24c Mon Sep 17 00:00:00 2001 From: Elton Chung Date: Sun, 5 Feb 2012 18:47:50 +0800 Subject: Remove unused code --- sfx2/inc/sfx2/childwin.hxx | 1 - sfx2/inc/sfx2/ctrlitem.hxx | 3 -- sfx2/inc/sfx2/docfile.hxx | 1 - sfx2/inc/sfx2/frame.hxx | 2 -- sfx2/inc/sfx2/frmdescr.hxx | 5 ---- sfx2/inc/sfx2/hintpost.hxx | 1 - sfx2/inc/sfx2/ipclient.hxx | 2 -- sfx2/inc/sfx2/mailmodelapi.hxx | 1 - sfx2/inc/sfx2/msgpool.hxx | 1 - sfx2/inc/sfx2/passwd.hxx | 1 - sfx2/inc/sfx2/request.hxx | 1 - sfx2/inc/sfx2/shell.hxx | 3 -- sfx2/inc/sfx2/tabdlg.hxx | 1 - sfx2/inc/sfx2/tbxctrl.hxx | 1 - sfx2/inc/sfx2/unoctitm.hxx | 1 - sfx2/inc/sfx2/viewfac.hxx | 1 - sfx2/inc/sfx2/viewfrm.hxx | 1 - sfx2/source/appl/appbaslib.cxx | 12 -------- sfx2/source/appl/childwin.cxx | 16 ----------- sfx2/source/control/ctrlitem.cxx | 59 ---------------------------------------- sfx2/source/control/msgpool.cxx | 10 ------- sfx2/source/control/request.cxx | 23 ---------------- sfx2/source/control/shell.cxx | 53 ------------------------------------ sfx2/source/dialog/mailmodel.cxx | 5 ---- sfx2/source/dialog/passwd.cxx | 9 ------ sfx2/source/dialog/tabdlg.cxx | 11 -------- sfx2/source/doc/docfile.cxx | 6 ---- sfx2/source/doc/frmdescr.cxx | 35 ------------------------ sfx2/source/doc/oleprops.cxx | 14 ---------- sfx2/source/inc/appbaslib.hxx | 5 ---- sfx2/source/notify/hintpost.cxx | 7 ----- sfx2/source/toolbox/tbxitem.cxx | 9 ------ sfx2/source/view/frame.cxx | 10 ------- sfx2/source/view/ipclient.cxx | 21 -------------- sfx2/source/view/viewfac.cxx | 5 ---- sfx2/source/view/viewfrm.cxx | 8 ------ svl/inc/svl/dateitem.hxx | 1 - svl/inc/svl/isethint.hxx | 1 - svl/inc/svl/itemprop.hxx | 1 - svl/inc/svl/lckbitem.hxx | 2 -- svl/inc/svl/lstner.hxx | 1 - svl/inc/svl/style.hxx | 1 - svl/source/items/dateitem.cxx | 9 ------ svl/source/items/itemprop.cxx | 6 ---- svl/source/items/lckbitem.cxx | 8 ------ svl/source/items/style.cxx | 4 --- svl/source/notify/isethint.cxx | 14 ---------- svl/source/notify/lstner.cxx | 13 --------- unusedcode.easy | 33 ---------------------- 49 files changed, 439 deletions(-) diff --git a/sfx2/inc/sfx2/childwin.hxx b/sfx2/inc/sfx2/childwin.hxx index 61da6641f700..fc7cf83feec7 100644 --- a/sfx2/inc/sfx2/childwin.hxx +++ b/sfx2/inc/sfx2/childwin.hxx @@ -150,7 +150,6 @@ public: { return nContextId; } FloatingWindow* GetFloatingWindow() const; - SfxChildAlignment GetAlignment() const; virtual void Resizing( Size& rSize ); virtual sal_Bool Close(); diff --git a/sfx2/inc/sfx2/ctrlitem.hxx b/sfx2/inc/sfx2/ctrlitem.hxx index e7b1dc6cfbc2..83a1cd04d373 100644 --- a/sfx2/inc/sfx2/ctrlitem.hxx +++ b/sfx2/inc/sfx2/ctrlitem.hxx @@ -67,7 +67,6 @@ public: void UnBind(); void ReBind(); sal_Bool IsBound() const; - void UpdateSlot(); void ClearCache(); void SetBindings(SfxBindings &rBindings) { pBindings = &rBindings; } @@ -81,8 +80,6 @@ public: const SfxPoolItem* pState ); virtual void DeleteFloatingWindow(); - SfxMapUnit GetCoreMetric() const; - static SfxItemState GetItemState( const SfxPoolItem* pState ); SAL_DLLPRIVATE sal_Bool IsBindable_Impl() const diff --git a/sfx2/inc/sfx2/docfile.hxx b/sfx2/inc/sfx2/docfile.hxx index ac25f43c20f2..55cd3a2e0d0f 100644 --- a/sfx2/inc/sfx2/docfile.hxx +++ b/sfx2/inc/sfx2/docfile.hxx @@ -139,7 +139,6 @@ public: SfxFrame* GetLoadTargetFrame() const; void SetReferer( const String& rRefer ); - const String& GetReferer( ) const; void SetFilter(const SfxFilter *pFlt, sal_Bool bResetOrig = sal_False); const SfxFilter * GetFilter() const { return pFilter; } const SfxFilter * GetOrigFilter( sal_Bool bNotCurrent = sal_False ) const; diff --git a/sfx2/inc/sfx2/frame.hxx b/sfx2/inc/sfx2/frame.hxx index 793c5283f5ec..3430a052e9f7 100644 --- a/sfx2/inc/sfx2/frame.hxx +++ b/sfx2/inc/sfx2/frame.hxx @@ -157,7 +157,6 @@ public: static const SfxPoolItem* OpenDocumentSynchron( SfxItemSet& aSet, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& i_rTargetFrame ); - SfxBroadcaster& GetBroadcaster() const; SfxObjectShell* GetCurrentDocument() const; SfxViewFrame* GetCurrentViewFrame() const; SfxFrame& GetTopFrame() const; @@ -166,7 +165,6 @@ public: sal_uInt32 GetFrameType() const; void GetTargetList( TargetList& ) const; SAL_DLLPRIVATE SfxFrame* GetContainingDocFrame_Impl( SfxFrame* pSelf ); - sal_Bool IsTop() const; void UpdateDescriptor( SfxObjectShell *pDoc ); void Resize(); sal_Bool HasComponent() const; diff --git a/sfx2/inc/sfx2/frmdescr.hxx b/sfx2/inc/sfx2/frmdescr.hxx index e271a5efa318..fad3f5b3129d 100644 --- a/sfx2/inc/sfx2/frmdescr.hxx +++ b/sfx2/inc/sfx2/frmdescr.hxx @@ -102,7 +102,6 @@ public: SfxItemSet* GetArgs(); const INetURLObject& GetURL() const { return aURL; } - void SetURL( const INetURLObject& rURL ); void SetURL( const String& rURL ); const INetURLObject& GetActualURL() const { return aActualURL; } @@ -149,7 +148,6 @@ public: // FrameBorder void SetWallpaper( const Wallpaper& rWallpaper ); - const Wallpaper* GetWallpaper() const; sal_Bool HasFrameBorder() const; sal_Bool IsFrameBorderOn() const @@ -176,9 +174,6 @@ public: { return nItemId; } void SetItemId( sal_uInt16 nId ) { nItemId = nId; } - sal_uInt16 GetWinBits() const; - long GetSize() const; - sal_uInt16 GetItemPos() const; // Copy for example for Views SfxFrameDescriptor* Clone( sal_Bool bWithIds = sal_True ) const; diff --git a/sfx2/inc/sfx2/hintpost.hxx b/sfx2/inc/sfx2/hintpost.hxx index 13c4993bca5d..f455d8438632 100644 --- a/sfx2/inc/sfx2/hintpost.hxx +++ b/sfx2/inc/sfx2/hintpost.hxx @@ -64,7 +64,6 @@ protected: virtual void Event( SfxHint* pPostedHint ); public: - SfxHintPoster(); SfxHintPoster( const GenLink& rLink ); void Post( SfxHint* pHint = 0 ); diff --git a/sfx2/inc/sfx2/ipclient.hxx b/sfx2/inc/sfx2/ipclient.hxx index c4530498578d..9f8a4aee6748 100644 --- a/sfx2/inc/sfx2/ipclient.hxx +++ b/sfx2/inc/sfx2/ipclient.hxx @@ -79,7 +79,6 @@ public: Size GetObjectVisAreaSize() const; sal_Bool IsObjectUIActive() const; sal_Bool IsObjectInPlaceActive() const; - sal_Bool IsObjectActive() const; void DeactivateObject(); sal_Bool SetObjArea( const Rectangle & ); Rectangle GetObjArea() const; @@ -89,7 +88,6 @@ public: const Fraction& GetScaleWidth() const; const Fraction& GetScaleHeight() const; void Invalidate(); - static Window* GetActiveWindow( SfxObjectShell* pDoc, const com::sun::star::uno::Reference < com::sun::star::embed::XEmbeddedObject >& xObject ); static SfxInPlaceClient* GetClient( SfxObjectShell* pDoc, const com::sun::star::uno::Reference < com::sun::star::embed::XEmbeddedObject >& xObject ); sal_Int64 GetAspect() const; sal_Int64 GetObjectMiscStatus() const; diff --git a/sfx2/inc/sfx2/mailmodelapi.hxx b/sfx2/inc/sfx2/mailmodelapi.hxx index cec84d28b5fc..ccf94fccbeda 100644 --- a/sfx2/inc/sfx2/mailmodelapi.hxx +++ b/sfx2/inc/sfx2/mailmodelapi.hxx @@ -134,7 +134,6 @@ public: const rtl::OUString& rType ); SendMailResult Send( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& xFrame ); - sal_Int32 GetCount() const; sal_Bool IsEmpty() const; }; diff --git a/sfx2/inc/sfx2/msgpool.hxx b/sfx2/inc/sfx2/msgpool.hxx index bd65772f922c..5088a72ce689 100644 --- a/sfx2/inc/sfx2/msgpool.hxx +++ b/sfx2/inc/sfx2/msgpool.hxx @@ -65,7 +65,6 @@ public: void RegisterInterface( SfxInterface& rFace ); void ReleaseInterface( SfxInterface& rFace ); SfxInterface* FirstInterface(); - SfxInterface* NextInterface(); static SfxSlotPool& GetSlotPool( SfxViewFrame *pFrame=NULL ); diff --git a/sfx2/inc/sfx2/passwd.hxx b/sfx2/inc/sfx2/passwd.hxx index 567320cfa58e..5a014c14ace7 100644 --- a/sfx2/inc/sfx2/passwd.hxx +++ b/sfx2/inc/sfx2/passwd.hxx @@ -93,7 +93,6 @@ public: void SetGroup2Text( const String& i_rText ) { maPassword2Box.SetText( i_rText ); } void SetMinLen( sal_uInt16 Len ); - void SetMaxLen( sal_uInt16 Len ); void SetEditHelpId( const rtl::OString& rId ) { maPasswordED.SetHelpId( rId ); } void ShowExtras( sal_uInt16 nExtras ) { mnExtras = nExtras; } void AllowAsciiOnly( bool i_bAsciiOnly = true ) { mbAsciiOnly = i_bAsciiOnly; } diff --git a/sfx2/inc/sfx2/request.hxx b/sfx2/inc/sfx2/request.hxx index e78fceba26a1..f32527acc179 100644 --- a/sfx2/inc/sfx2/request.hxx +++ b/sfx2/inc/sfx2/request.hxx @@ -106,7 +106,6 @@ public: sal_Bool IsAPI() const; sal_Bool IsSynchronCall() const; void SetSynchronCall( sal_Bool bSynchron ); - void SetTarget( const String &rTarget ); sal_Bool IsDone() const; void Done( sal_Bool bRemove = sal_False ); diff --git a/sfx2/inc/sfx2/shell.hxx b/sfx2/inc/sfx2/shell.hxx index e757cbd0ea62..0d51c20ac10b 100644 --- a/sfx2/inc/sfx2/shell.hxx +++ b/sfx2/inc/sfx2/shell.hxx @@ -184,8 +184,6 @@ public: TYPEINFO(); virtual ~SfxShell(); - SfxBroadcaster* GetBroadcaster(); - // TODO/CLEANUP: still needed?! virtual SvGlobalName GetGlobalName() const; @@ -237,7 +235,6 @@ public: // Items const SfxPoolItem* GetItem( sal_uInt16 nSlotId ) const; void PutItem( const SfxPoolItem& rItem ); - void RemoveItem( sal_uInt16 nSlotId ); // TODO/CLEANUP: still needed?! void SetVerbs(const com::sun::star::uno::Sequence < com::sun::star::embed::VerbDescriptor >& aVerbs); diff --git a/sfx2/inc/sfx2/tabdlg.hxx b/sfx2/inc/sfx2/tabdlg.hxx index a68949915163..7db8f7a39b4b 100644 --- a/sfx2/inc/sfx2/tabdlg.hxx +++ b/sfx2/inc/sfx2/tabdlg.hxx @@ -189,7 +189,6 @@ public: void EnableApplyButton(sal_Bool bEnable = sal_True); sal_Bool IsApplyButtonEnabled() const; void SetApplyHandler(const Link& _rHdl); - Link GetApplyHandler() const; SAL_DLLPRIVATE void Start_Impl(); SAL_DLLPRIVATE sal_Bool OK_Impl() { return PrepareLeaveCurrentPage(); } diff --git a/sfx2/inc/sfx2/tbxctrl.hxx b/sfx2/inc/sfx2/tbxctrl.hxx index d8f35b3581ff..1559713cae95 100644 --- a/sfx2/inc/sfx2/tbxctrl.hxx +++ b/sfx2/inc/sfx2/tbxctrl.hxx @@ -141,7 +141,6 @@ protected: void BindListener(); void UnbindListener(); void AddStatusListener( const rtl::OUString& rCommandURL ); - void RemoveStatusListener( const rtl::OUString& rCommandURL ); // SfxStatusListenerInterface using FloatingWindow::StateChanged; diff --git a/sfx2/inc/sfx2/unoctitm.hxx b/sfx2/inc/sfx2/unoctitm.hxx index 2a76da14f7fd..0c4557334af9 100644 --- a/sfx2/inc/sfx2/unoctitm.hxx +++ b/sfx2/inc/sfx2/unoctitm.hxx @@ -178,7 +178,6 @@ class SfxDispatchController_Impl : public SfxControllerItem void addParametersToArgs( const com::sun::star::util::URL& aURL, ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rArgs ) const; - using SfxControllerItem::GetCoreMetric; SfxMapUnit GetCoreMetric( SfxItemPool& rPool, sal_uInt16 nSlot ); public: diff --git a/sfx2/inc/sfx2/viewfac.hxx b/sfx2/inc/sfx2/viewfac.hxx index 590dc5d065ca..c2f75f0f7e3f 100644 --- a/sfx2/inc/sfx2/viewfac.hxx +++ b/sfx2/inc/sfx2/viewfac.hxx @@ -46,7 +46,6 @@ class SFX2_DLLPUBLIC SfxViewFactory public: SfxViewFactory( SfxViewCtor fnC, SfxViewInit fnI, sal_uInt16 nOrdinal, const sal_Char* asciiViewName ); - ~SfxViewFactory(); SfxViewShell *CreateInstance(SfxViewFrame *pViewFrame, SfxViewShell *pOldSh); sal_uInt16 GetOrdinal() const { return nOrd; } diff --git a/sfx2/inc/sfx2/viewfrm.hxx b/sfx2/inc/sfx2/viewfrm.hxx index 8916d14cb796..266e058ae9cc 100644 --- a/sfx2/inc/sfx2/viewfrm.hxx +++ b/sfx2/inc/sfx2/viewfrm.hxx @@ -142,7 +142,6 @@ public: { nAdjustPosPixelLock--; } void DoAdjustPosSizePixel( SfxViewShell * pSh, const Point &rPos, const Size &rSize ); - void Hide(); void Show(); sal_Bool IsVisible() const; void ToTop(); diff --git a/sfx2/source/appl/appbaslib.cxx b/sfx2/source/appl/appbaslib.cxx index f630d8898124..a5b6e337ff6e 100644 --- a/sfx2/source/appl/appbaslib.cxx +++ b/sfx2/source/appl/appbaslib.cxx @@ -76,18 +76,6 @@ void SfxBasicManagerHolder::reset( BasicManager* _pBasicManager ) } } -bool SfxBasicManagerHolder::isAnyContainerModified() const -{ - OSL_PRECOND( isValid(), "SfxBasicManagerHolder::isAnyContainerModified: not initialized!" ); - - if ( mxBasicContainer.is() && mxBasicContainer->isModified() ) - return true; - if ( mxDialogContainer.is() && mxDialogContainer->isModified() ) - return true; - - return false; -} - void SfxBasicManagerHolder::storeAllLibraries() { OSL_PRECOND( isValid(), "SfxBasicManagerHolder::storeAllLibraries: not initialized!" ); diff --git a/sfx2/source/appl/childwin.cxx b/sfx2/source/appl/childwin.cxx index 8a555d557e96..ab61c0f88872 100644 --- a/sfx2/source/appl/childwin.cxx +++ b/sfx2/source/appl/childwin.cxx @@ -534,22 +534,6 @@ FloatingWindow* SfxChildWindowContext::GetFloatingWindow() const } } -SfxChildAlignment SfxChildWindowContext::GetAlignment() const -{ - Window *pParent = pWindow->GetParent(); - if ( pParent->GetType() == RSC_DOCKINGWINDOW ) - { - return ((SfxDockingWindow*)pParent)->GetAlignment(); - } - else if ( pParent->GetType() == RSC_TOOLBOX ) - { - HACK(noch nicht verwendet und noch nicht implementiert); - return SFX_ALIGN_NOALIGNMENT; - } - else - return SFX_ALIGN_NOALIGNMENT; -} - void SfxChildWindowContext::Resizing( Size& ) { } diff --git a/sfx2/source/control/ctrlitem.cxx b/sfx2/source/control/ctrlitem.cxx index d6dda852fa89..905c9dd4976b 100644 --- a/sfx2/source/control/ctrlitem.cxx +++ b/sfx2/source/control/ctrlitem.cxx @@ -168,26 +168,6 @@ DBG_CHKTHIS(SfxControllerItem, 0); pBindings->Register(*this); } -//==================================================================== - -void SfxControllerItem::UpdateSlot() - -/* [Description] - - Get the Status again. - - [Cross-reference] - - -*/ - -{ - DBG_CHKTHIS(SfxControllerItem, 0); - DBG_ASSERT(pBindings, "No Bindings"); - - pBindings->Update( GetId() ); -} - //-------------------------------------------------------------------- void SfxControllerItem::ClearCache() @@ -382,45 +362,6 @@ SfxItemState SfxControllerItem::GetItemState : SFX_ITEM_AVAILABLE; } -//-------------------------------------------------------------------- - -SfxMapUnit SfxControllerItem::GetCoreMetric() const - -/* [Description] - - Gets the measurement unit from the competent pool, in which the Status - item exist. -*/ - -{ - SfxStateCache *pCache = pBindings->GetStateCache( nId ); - SfxDispatcher *pDispat = pBindings->GetDispatcher_Impl(); - - if ( !pDispat ) - { - SfxViewFrame* pViewFrame = SfxViewFrame::Current(); - if ( !pViewFrame ) - SfxViewFrame::GetFirst(); - if ( pViewFrame ) - pDispat = pViewFrame->GetDispatcher(); - } - - if ( pDispat && pCache ) - { - const SfxSlotServer *pServer = pCache->GetSlotServer( *pDispat ); - if ( pServer ) - { - SfxShell *pSh = pDispat->GetShell( pServer->GetShellLevel() ); - SfxItemPool &rPool = pSh->GetPool(); - sal_uInt16 nWhich = rPool.GetWhich( nId ); - return rPool.GetMetric( nWhich ); - } - } - - DBG_WARNING( "W1: Can not find ItemPool!" ); - return SFX_MAPUNIT_100TH_MM; -} - //------------------------------------------------------------------------ #ifdef _MSC_VER diff --git a/sfx2/source/control/msgpool.cxx b/sfx2/source/control/msgpool.cxx index 8b6cee9291b5..76b0e5e14dee 100644 --- a/sfx2/source/control/msgpool.cxx +++ b/sfx2/source/control/msgpool.cxx @@ -301,16 +301,6 @@ SfxInterface* SfxSlotPool::FirstInterface() //-------------------------------------------------------------------- -SfxInterface* SfxSlotPool::NextInterface() -{ - _nCurInterface++; - sal_uInt16 nFirstInterface = _pParentPool ? _pParentPool->_pInterfaces->size() : 0; - if ( _nCurInterface < nFirstInterface ) - return (*_pParentPool->_pInterfaces)[_nCurInterface]; - sal_uInt16 nInterface = _nCurInterface - nFirstInterface; - return nInterface < _pInterfaces->size() ? (*_pInterfaces)[nInterface] : 0; -} - const SfxSlot* SfxSlotPool::GetUnoSlot( const String& rName ) { const SfxSlot *pSlot = NULL; diff --git a/sfx2/source/control/request.cxx b/sfx2/source/control/request.cxx index d4a8786d32ee..2bdc5d16e3a0 100644 --- a/sfx2/source/control/request.cxx +++ b/sfx2/source/control/request.cxx @@ -870,29 +870,6 @@ sal_uInt16 SfxRequest::GetModifier() const //-------------------------------------------------------------------- -void SfxRequest::SetTarget( const String &rTarget ) - -/* [Description] - - With this method the recording of the target object can be implemented. - - [Example] - - The BASIC-Methode 'Open' is although executed by the Shell 'Application' - but recorded on the Objekt 'Documents' (global): - - rReq.SetTarget( "Documents" ); - - This then leads to: - - Documents.Open( ... ) -*/ - -{ - pImp->aTarget = rTarget; - pImp->bUseTarget = sal_True; -} - void SfxRequest::AllowRecording( sal_Bool bSet ) { pImp->bAllowRecording = bSet; diff --git a/sfx2/source/control/shell.cxx b/sfx2/source/control/shell.cxx index ecc5fb4cc03e..ecda3acd192c 100644 --- a/sfx2/source/control/shell.cxx +++ b/sfx2/source/control/shell.cxx @@ -308,45 +308,6 @@ const SfxPoolItem* SfxShell::GetItem //-------------------------------------------------------------------- -void SfxShell::RemoveItem -( - sal_uInt16 nSlotId // Slot-Id of the deleting s -) - -/* [Description] - - With this method the general available subclasses instances of - from the SfxShell are removed. - - The stored instance is deleted. - - [Cross-reference] - - - -*/ - -{ - for ( sal_uInt16 nPos = 0; nPos < pImp->aItems.Count(); ++nPos ) - if ( pImp->aItems.GetObject(nPos)->Which() == nSlotId ) - { - // Remove and delete Item - SfxPoolItem *pItem = pImp->aItems.GetObject(nPos); - delete pItem; - pImp->aItems.Remove(nPos); - - // if active, notify Bindings - SfxDispatcher *pDispat = GetDispatcher(); - if ( pDispat ) - { - SfxVoidItem aVoid( nSlotId ); - pDispat->GetBindings()->Broadcast( SfxPoolItemHint( &aVoid ) ); - } - } -} - -//-------------------------------------------------------------------- - void SfxShell::PutItem ( const SfxPoolItem& rItem /* Instance, of which a copy is created, @@ -430,20 +391,6 @@ SfxInterface* SfxShell::GetInterface() const //-------------------------------------------------------------------- -SfxBroadcaster* SfxShell::GetBroadcaster() - -/* [Description] - - Returns a SfxBroadcaster for this SfxShell instance until the class of - SfxShell is derived by SfxBroadcaster. -*/ - -{ - return pImp; -} - -//-------------------------------------------------------------------- - ::svl::IUndoManager* SfxShell::GetUndoManager() /* [Description] diff --git a/sfx2/source/dialog/mailmodel.cxx b/sfx2/source/dialog/mailmodel.cxx index 0284df0bb5f4..73723b4b2bdd 100644 --- a/sfx2/source/dialog/mailmodel.cxx +++ b/sfx2/source/dialog/mailmodel.cxx @@ -307,11 +307,6 @@ SfxMailModel::SaveResult SfxMailModel::ShowFilterOptionsDialog( return eRet; } -sal_Int32 SfxMailModel::GetCount() const -{ - return maAttachedDocuments.size(); -} - sal_Bool SfxMailModel::IsEmpty() const { return maAttachedDocuments.empty(); diff --git a/sfx2/source/dialog/passwd.cxx b/sfx2/source/dialog/passwd.cxx index 98bcc1fe825f..d66d14281dfd 100644 --- a/sfx2/source/dialog/passwd.cxx +++ b/sfx2/source/dialog/passwd.cxx @@ -224,15 +224,6 @@ void SfxPasswordDialog::SetMinLen( sal_uInt16 nLen ) // ----------------------------------------------------------------------- -void SfxPasswordDialog::SetMaxLen( sal_uInt16 nLen ) -{ - maPasswordED.SetMaxTextLen( nLen ); - maConfirmED.SetMaxTextLen( nLen ); - EditModifyHdl( NULL ); -} - -// ----------------------------------------------------------------------- - short SfxPasswordDialog::Execute() { maUserFT.Hide(); diff --git a/sfx2/source/dialog/tabdlg.cxx b/sfx2/source/dialog/tabdlg.cxx index fece88584918..8fd76ed79929 100644 --- a/sfx2/source/dialog/tabdlg.cxx +++ b/sfx2/source/dialog/tabdlg.cxx @@ -620,17 +620,6 @@ void SfxTabDialog::SetApplyHandler(const Link& _rHdl) // ----------------------------------------------------------------------- -Link SfxTabDialog::GetApplyHandler() const -{ - DBG_ASSERT( pImpl->pApplyButton, "SfxTabDialog::GetApplyHandler: no button enabled!" ); - if ( !pImpl->pApplyButton ) - return Link(); - - return pImpl->pApplyButton->GetClickHdl(); -} - -// ----------------------------------------------------------------------- - void SfxTabDialog::EnableApplyButton(sal_Bool bEnable) { if ( IsApplyButtonEnabled() == bEnable ) diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx index c4685aba1e1e..c7e60dada5c4 100644 --- a/sfx2/source/doc/docfile.cxx +++ b/sfx2/source/doc/docfile.cxx @@ -2959,12 +2959,6 @@ void SfxMedium::SetReferer( const String& rRefer ) { pImp->aReferer = rRefer; } -//---------------------------------------------------------------- - -const String& SfxMedium::GetReferer( ) const -{ - return pImp->aReferer; -} //---------------------------------------------------------------- diff --git a/sfx2/source/doc/frmdescr.cxx b/sfx2/source/doc/frmdescr.cxx index 81da3e86da75..760869ffe58b 100644 --- a/sfx2/source/doc/frmdescr.cxx +++ b/sfx2/source/doc/frmdescr.cxx @@ -89,12 +89,6 @@ void SfxFrameDescriptor::SetURL( const String& rURL ) SetActualURL( aURL ); } -void SfxFrameDescriptor::SetURL( const INetURLObject& rURL ) -{ - aURL = rURL.GetMainURL( INetURLObject::DECODE_TO_IURI ); - SetActualURL( aURL ); -} - void SfxFrameDescriptor::SetActualURL( const String& rURL ) { aActualURL = INetURLObject(rURL); @@ -151,30 +145,11 @@ SfxFrameDescriptor* SfxFrameDescriptor::Clone( sal_Bool bWithIds ) const return pFrame; } -sal_uInt16 SfxFrameDescriptor::GetWinBits() const -{ - sal_uInt16 nBits = 0; - if ( eSizeSelector == SIZE_REL ) - nBits |= SWIB_RELATIVESIZE; - if ( eSizeSelector == SIZE_PERCENT ) - nBits |= SWIB_PERCENTSIZE; - if ( !IsResizable() ) - nBits |= SWIB_FIXED; - if ( !nWidth ) - nBits |= SWIB_INVISIBLE; - return nBits; -} - sal_Bool SfxFrameDescriptor::HasFrameBorder() const { return (nHasBorder & BORDER_YES) != 0; } -long SfxFrameDescriptor::GetSize() const -{ - return nWidth; -} - void SfxFrameDescriptor::SetWallpaper( const Wallpaper& rWallpaper ) { DELETEZ( pImp->pWallpaper ); @@ -183,16 +158,6 @@ void SfxFrameDescriptor::SetWallpaper( const Wallpaper& rWallpaper ) pImp->pWallpaper = new Wallpaper( rWallpaper ); } -const Wallpaper* SfxFrameDescriptor::GetWallpaper() const -{ - return pImp->pWallpaper; -} - -sal_uInt16 SfxFrameDescriptor::GetItemPos() const -{ - return USHRT_MAX; -} - SfxFrameProperties& SfxFrameProperties::operator =( const SfxFrameProperties &rProp ) { diff --git a/sfx2/source/doc/oleprops.cxx b/sfx2/source/doc/oleprops.cxx index 91d9c5bce5ac..9c111a05d2a8 100644 --- a/sfx2/source/doc/oleprops.cxx +++ b/sfx2/source/doc/oleprops.cxx @@ -181,7 +181,6 @@ class SfxOleString16Property : public SfxOleStringPropertyBase { public: explicit SfxOleString16Property( sal_Int32 nPropId ); - explicit SfxOleString16Property( sal_Int32 nPropId, const String& rValue ); private: virtual void ImplLoad( SvStream& rStrm ); @@ -216,8 +215,6 @@ class SfxOleDateProperty : public SfxOlePropertyBase { public: explicit SfxOleDateProperty( sal_Int32 nPropId ); - /** @param rDate Date as LOCAL time. */ - explicit SfxOleDateProperty( sal_Int32 nPropId, const util::Date& rDate ); /** Returns the date value as LOCAL time. */ inline const util::Date& GetValue() const { return maDate; } @@ -571,11 +568,6 @@ SfxOleString16Property::SfxOleString16Property( sal_Int32 nPropId ) : { } -SfxOleString16Property::SfxOleString16Property( sal_Int32 nPropId, const String& rValue ) : - SfxOleStringPropertyBase( nPropId, PROPTYPE_STRING16, RTL_TEXTENCODING_UCS2, rValue ) -{ -} - void SfxOleString16Property::ImplLoad( SvStream& rStrm ) { SetValue( LoadString16( rStrm ) ); @@ -648,12 +640,6 @@ SfxOleDateProperty::SfxOleDateProperty( sal_Int32 nPropId ) : { } -SfxOleDateProperty::SfxOleDateProperty( sal_Int32 nPropId, const util::Date& rDate ) : - SfxOlePropertyBase( nPropId, PROPTYPE_DATE ), - maDate( rDate ) -{ -} - void SfxOleDateProperty::ImplLoad( SvStream& rStrm ) { double fValue(0.0); diff --git a/sfx2/source/inc/appbaslib.hxx b/sfx2/source/inc/appbaslib.hxx index dd47c79273aa..820102251d3d 100644 --- a/sfx2/source/inc/appbaslib.hxx +++ b/sfx2/source/inc/appbaslib.hxx @@ -73,11 +73,6 @@ public: ::com::sun::star::uno::Reference< ::com::sun::star::script::XLibraryContainer > getLibraryContainer( ContainerType _eType ); - /** determines whether any of our library containers is modified, i.e. returns - in its isContainerModified call. - */ - bool isAnyContainerModified() const; - /** calls the storeLibraries at both our script and basic library container */ void storeAllLibraries(); diff --git a/sfx2/source/notify/hintpost.cxx b/sfx2/source/notify/hintpost.cxx index aa69f37c15b9..3c849c5fe254 100644 --- a/sfx2/source/notify/hintpost.cxx +++ b/sfx2/source/notify/hintpost.cxx @@ -40,13 +40,6 @@ void SfxHintPoster::RegisterEvent() //-------------------------------------------------------------------- -SfxHintPoster::SfxHintPoster() -{ - RegisterEvent(); -} - -//-------------------------------------------------------------------- - SfxHintPoster::SfxHintPoster( const GenLink& rLink ): aLink(rLink) { diff --git a/sfx2/source/toolbox/tbxitem.cxx b/sfx2/source/toolbox/tbxitem.cxx index 3f6ec91ac7f0..1cc71f228c51 100644 --- a/sfx2/source/toolbox/tbxitem.cxx +++ b/sfx2/source/toolbox/tbxitem.cxx @@ -1286,15 +1286,6 @@ void SfxPopupWindow::AddStatusListener( const rtl::OUString& rCommandURL ) //-------------------------------------------------------------------- -void SfxPopupWindow::RemoveStatusListener( const rtl::OUString& rCommandURL ) -{ - GetOrCreateStatusListener(); - if ( m_xStatusListener.is() ) - m_pStatusListener->removeStatusListener( rCommandURL ); -} - -//-------------------------------------------------------------------- - sal_Bool SfxPopupWindow::Close() { m_bFloating = sal_False; diff --git a/sfx2/source/view/frame.cxx b/sfx2/source/view/frame.cxx index d2705599dd2c..2e1c16861f84 100644 --- a/sfx2/source/view/frame.cxx +++ b/sfx2/source/view/frame.cxx @@ -496,11 +496,6 @@ void SfxFrame::GetTargetList( TargetList& rList ) const //------------------------------------------------------------------------- -SfxBroadcaster& SfxFrame::GetBroadcaster() const -{ - return *pImp; -} - sal_Bool SfxFrame::IsParent( SfxFrame *pFrame ) const { SfxFrame *pParent = pParentFrame; @@ -703,11 +698,6 @@ SfxFrame* SfxFrameIterator::NextSibling_Impl( SfxFrame& rPrev ) return pRet; } -sal_Bool SfxFrame::IsTop() const -{ - return GetFrameInterface().is() ? GetFrameInterface()->isTop() : sal_False; -} - sal_Bool SfxFrame::HasComponent() const { return sal_False; diff --git a/sfx2/source/view/ipclient.cxx b/sfx2/source/view/ipclient.cxx index 1f5d49dafaae..ac7dea2116e6 100644 --- a/sfx2/source/view/ipclient.cxx +++ b/sfx2/source/view/ipclient.cxx @@ -875,27 +875,6 @@ sal_Bool SfxInPlaceClient::IsObjectInPlaceActive() const return sal_False; } -//-------------------------------------------------------------------- -sal_Bool SfxInPlaceClient::IsObjectActive() const -{ - try { - return ( m_pImp->m_xObject.is() && ( m_pImp->m_xObject->getCurrentState() == embed::EmbedStates::ACTIVE ) ); - } - catch( uno::Exception& ) - {} - - return sal_False; -} - -//-------------------------------------------------------------------- -Window* SfxInPlaceClient::GetActiveWindow( SfxObjectShell* pDoc, const com::sun::star::uno::Reference < com::sun::star::embed::XEmbeddedObject >& xObject ) -{ - SfxInPlaceClient* pClient = GetClient( pDoc, xObject ); - if ( pClient ) - return pClient->GetEditWin(); - return NULL; -} - //-------------------------------------------------------------------- SfxInPlaceClient* SfxInPlaceClient::GetClient( SfxObjectShell* pDoc, const com::sun::star::uno::Reference < com::sun::star::embed::XEmbeddedObject >& xObject ) { diff --git a/sfx2/source/view/viewfac.cxx b/sfx2/source/view/viewfac.cxx index 639495336ece..948811542633 100644 --- a/sfx2/source/view/viewfac.cxx +++ b/sfx2/source/view/viewfac.cxx @@ -73,10 +73,5 @@ SfxViewFactory::SfxViewFactory( SfxViewCtor fnC, SfxViewInit fnI, DBG_CTOR(SfxViewFactory, 0); } -SfxViewFactory::~SfxViewFactory() -{ - DBG_DTOR(SfxViewFactory, 0); -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx index e342fadc29c2..af22c83a823d 100644 --- a/sfx2/source/view/viewfrm.cxx +++ b/sfx2/source/view/viewfrm.cxx @@ -1783,14 +1783,6 @@ sal_Bool SfxViewFrame::IsVisible() const return pImp->bObjLocked; } -//-------------------------------------------------------------------- -void SfxViewFrame::Hide() -{ - GetWindow().Hide(); - if ( pImp->bObjLocked ) - LockObjectShell_Impl( sal_False ); -} - //-------------------------------------------------------------------- void SfxViewFrame::LockObjectShell_Impl( sal_Bool bLock ) { diff --git a/svl/inc/svl/dateitem.hxx b/svl/inc/svl/dateitem.hxx index 54f9a450f94c..51155a2d8255 100644 --- a/svl/inc/svl/dateitem.hxx +++ b/svl/inc/svl/dateitem.hxx @@ -47,7 +47,6 @@ private: public: TYPEINFO(); - SfxDateTimeItem( sal_uInt16 nWhich ); SfxDateTimeItem( sal_uInt16 nWhich, const DateTime& rDT ); SfxDateTimeItem( const SfxDateTimeItem& rCpy ); diff --git a/svl/inc/svl/isethint.hxx b/svl/inc/svl/isethint.hxx index d03cd6942960..5cae95459640 100644 --- a/svl/inc/svl/isethint.hxx +++ b/svl/inc/svl/isethint.hxx @@ -43,7 +43,6 @@ class SVL_DLLPUBLIC SfxItemSetHint: public SfxHint public: TYPEINFO(); - SfxItemSetHint( SfxItemSet *pItemSet ); SfxItemSetHint( const SfxItemSet &rItemSet ); virtual ~SfxItemSetHint(); diff --git a/svl/inc/svl/itemprop.hxx b/svl/inc/svl/itemprop.hxx index 09dfadc34eb9..f56a5d20d763 100644 --- a/svl/inc/svl/itemprop.hxx +++ b/svl/inc/svl/itemprop.hxx @@ -183,7 +183,6 @@ public: hasPropertyByName( const ::rtl::OUString& Name ) throw(::com::sun::star::uno::RuntimeException); - const SfxItemPropertyMap* getMap() const; }; class SVL_DLLPUBLIC SfxExtItemPropertySetInfo: public cppu::WeakImplHelper1 diff --git a/svl/inc/svl/lckbitem.hxx b/svl/inc/svl/lckbitem.hxx index 3b41c834010f..9c40771cd3f7 100644 --- a/svl/inc/svl/lckbitem.hxx +++ b/svl/inc/svl/lckbitem.hxx @@ -43,8 +43,6 @@ class SVL_DLLPUBLIC SfxLockBytesItem : public SfxPoolItem public: TYPEINFO(); SfxLockBytesItem(); - SfxLockBytesItem( sal_uInt16 nWhich, - SvLockBytes *pLockBytes ); SfxLockBytesItem( sal_uInt16 nWhich, SvStream & ); SfxLockBytesItem( const SfxLockBytesItem& ); ~SfxLockBytesItem(); diff --git a/svl/inc/svl/lstner.hxx b/svl/inc/svl/lstner.hxx index c87d88ac890c..a2b590939804 100644 --- a/svl/inc/svl/lstner.hxx +++ b/svl/inc/svl/lstner.hxx @@ -60,7 +60,6 @@ public: sal_Bool StartListening( SfxBroadcaster& rBroadcaster, sal_Bool bPreventDups = sal_False ); sal_Bool EndListening( SfxBroadcaster& rBroadcaster, sal_Bool bAllDups = sal_False ); - void EndListening( sal_uInt16 nNo ); void EndListeningAll(); sal_Bool IsListening( SfxBroadcaster& rBroadcaster ) const; diff --git a/svl/inc/svl/style.hxx b/svl/inc/svl/style.hxx index 7edecd70883d..ceb8050f31c8 100644 --- a/svl/inc/svl/style.hxx +++ b/svl/inc/svl/style.hxx @@ -285,7 +285,6 @@ public: virtual sal_Bool SetParent( const UniString& ); protected: - SfxStyleSheet(); // do not use! virtual ~SfxStyleSheet(); }; diff --git a/svl/source/items/dateitem.cxx b/svl/source/items/dateitem.cxx index e5329958f127..6acecbdbdcc7 100644 --- a/svl/source/items/dateitem.cxx +++ b/svl/source/items/dateitem.cxx @@ -54,15 +54,6 @@ TYPEINIT1(SfxDateTimeItem, SfxPoolItem); // ----------------------------------------------------------------------- -SfxDateTimeItem::SfxDateTimeItem( sal_uInt16 which ) : - SfxPoolItem( which ), - aDateTime( DateTime::SYSTEM ) -{ - DBG_CTOR(SfxDateTimeItem, 0); -} - -// ----------------------------------------------------------------------- - SfxDateTimeItem::SfxDateTimeItem( sal_uInt16 which, const DateTime& rDT ) : SfxPoolItem( which ), aDateTime( rDT ) diff --git a/svl/source/items/itemprop.cxx b/svl/source/items/itemprop.cxx index ec6629ba510e..662be6f35fcd 100644 --- a/svl/source/items/itemprop.cxx +++ b/svl/source/items/itemprop.cxx @@ -373,12 +373,6 @@ Sequence< Property > SAL_CALL return m_pImpl->m_pOwnMap->getProperties(); } -const SfxItemPropertyMap* SfxItemPropertySetInfo::getMap() const -{ - return m_pImpl->m_pOwnMap; -} - - SfxItemPropertySetInfo::~SfxItemPropertySetInfo() { delete m_pImpl->m_pOwnMap; diff --git a/svl/source/items/lckbitem.cxx b/svl/source/items/lckbitem.cxx index c66724b83a9e..6936c654fead 100644 --- a/svl/source/items/lckbitem.cxx +++ b/svl/source/items/lckbitem.cxx @@ -49,14 +49,6 @@ SfxLockBytesItem::SfxLockBytesItem() // ----------------------------------------------------------------------- -SfxLockBytesItem::SfxLockBytesItem( sal_uInt16 nW, SvLockBytes *pLockBytes ) -: SfxPoolItem( nW ), - _xVal( pLockBytes ) -{ -} - -// ----------------------------------------------------------------------- - SfxLockBytesItem::SfxLockBytesItem( sal_uInt16 nW, SvStream &rStream ) : SfxPoolItem( nW ) { diff --git a/svl/source/items/style.cxx b/svl/source/items/style.cxx index c49d9ad2ef9f..c3e11e16d3d8 100644 --- a/svl/source/items/style.cxx +++ b/svl/source/items/style.cxx @@ -884,10 +884,6 @@ SfxStyleSheet::SfxStyleSheet(const SfxStyleSheet& rStyle) : SfxBroadcaster( rStyle ) {} -SfxStyleSheet::SfxStyleSheet() -{ -} - SfxStyleSheet::~SfxStyleSheet() { Broadcast( SfxStyleSheetHint( SFX_STYLESHEET_INDESTRUCTION, *this ) ); diff --git a/svl/source/notify/isethint.cxx b/svl/source/notify/isethint.cxx index af16df6e6f0e..e7d851910595 100644 --- a/svl/source/notify/isethint.cxx +++ b/svl/source/notify/isethint.cxx @@ -36,20 +36,6 @@ TYPEINIT1(SfxItemSetHint, SfxHint); //==================================================================== -SfxItemSetHint::SfxItemSetHint( SfxItemSet *pItemSet ) - -/* [Beschreibung] - - Dieser Ctor "ubernimmt das als Parameter "ubergeben , - das im Dtor gel"oscht wird. -*/ - -: _pItemSet( pItemSet ) -{ -} - -//-------------------------------------------------------------------- - SfxItemSetHint::SfxItemSetHint( const SfxItemSet &rItemSet ) /* [Beschreibung] diff --git a/svl/source/notify/lstner.cxx b/svl/source/notify/lstner.cxx index a5eb2d0b61ad..8973273b0c69 100644 --- a/svl/source/notify/lstner.cxx +++ b/svl/source/notify/lstner.cxx @@ -133,19 +133,6 @@ sal_Bool SfxListener::EndListening( SfxBroadcaster& rBroadcaster, sal_Bool bAllD //-------------------------------------------------------------------- -// unregisteres at a specific SfxBroadcaster by index - -void SfxListener::EndListening( sal_uInt16 nNo ) -{ - DBG_CHKTHIS(SfxListener, 0); - - SfxBroadcaster *pBC = aBCs.GetObject(nNo); - pBC->RemoveListener(*this); - aBCs.Remove( nNo, 1 ); -} - -//-------------------------------------------------------------------- - // unregisteres all Broadcasters void SfxListener::EndListeningAll() diff --git a/unusedcode.easy b/unusedcode.easy index 48f9415d0044..036c9bb02534 100644 --- a/unusedcode.easy +++ b/unusedcode.easy @@ -212,12 +212,7 @@ SetOfByte::GetSetBit(unsigned short) const SetOfByte::IsFull() const SfxAppMenuControl_Impl::RegisterControl(unsigned short, SfxModule*) SfxApplication::Main() -SfxBasicManagerHolder::isAnyContainerModified() const SfxBrushItemLink::Set(SfxBrushItemLink*) -SfxChildWindowContext::GetAlignment() const -SfxControllerItem::GetCoreMetric() const -SfxControllerItem::UpdateSlot() -SfxDateTimeItem::SfxDateTimeItem(unsigned short) SfxDockingWrapper::GetChildWindowId() SfxFilterPtrArr::DeleteAndDestroy(unsigned short, unsigned short) SfxFoundCacheArr_Impl::Insert(SfxFoundCacheArr_Impl const*, unsigned short, unsigned short) @@ -225,40 +220,14 @@ SfxFoundCacheArr_Impl::Insert(SfxFoundCache_Impl const*&, unsigned short&) SfxFoundCacheArr_Impl::Insert(SfxFoundCache_Impl const**, unsigned short) SfxFoundCacheArr_Impl::Remove(SfxFoundCache_Impl const*&, unsigned short) SfxFoundCacheArr_Impl::Remove(unsigned short, unsigned short) -SfxFrame::GetBroadcaster() const -SfxFrame::IsTop() const -SfxFrameDescriptor::GetItemPos() const -SfxFrameDescriptor::GetSize() const -SfxFrameDescriptor::GetWallpaper() const -SfxFrameDescriptor::GetWinBits() const -SfxFrameDescriptor::SetURL(INetURLObject const&) -SfxHintPoster::SfxHintPoster() -SfxInPlaceClient::GetActiveWindow(SfxObjectShell*, com::sun::star::uno::Reference const&) -SfxInPlaceClient::IsObjectActive() const -SfxItemPropertySetInfo::getMap() const -SfxItemSetHint::SfxItemSetHint(SfxItemSet*) -SfxListener::EndListening(unsigned short) -SfxLockBytesItem::SfxLockBytesItem(unsigned short, SvLockBytes*) -SfxMailModel::GetCount() const SfxMedium::GetHdl() -SfxMedium::GetReferer() const SfxModuleArr_Impl::DeleteAndDestroy(unsigned short, unsigned short) SfxNavigatorWrapper::GetChildWindowId() -SfxOleDateProperty::SfxOleDateProperty(int, com::sun::star::util::Date const&) -SfxOleString16Property::SfxOleString16Property(int, String const&) SfxPartChildWnd_Impl::GetChildWindowId() -SfxPasswordDialog::SetMaxLen(unsigned short) SfxPopupWindow::LinkStubDelete(void*, void*) -SfxPopupWindow::RemoveStatusListener(rtl::OUString const&) SfxProgress::Lock() SfxRangeItem::SfxRangeItem(unsigned short, SvStream&) SfxRecordingFloatWrapper_Impl::GetChildWindowId() -SfxRequest::SetTarget(String const&) -SfxShell::GetBroadcaster() -SfxShell::RemoveItem(unsigned short) -SfxSlotPool::NextInterface() -SfxStyleSheet::SfxStyleSheet() -SfxTabDialog::GetApplyHandler() const SfxThesSubMenuControl::RegisterControl(unsigned short, SfxModule*) SfxUINT32s::Insert(SfxUINT32s const*, unsigned short, unsigned short, unsigned short) SfxUINT32s::Remove(unsigned short, unsigned short) @@ -276,8 +245,6 @@ SfxUShortRanges::Contains(unsigned short) const SfxUShortRanges::Intersects(SfxUShortRanges const&) const SfxUShortRanges::SfxUShortRanges(int, int, int, ...) SfxUShortRangesItem::SfxUShortRangesItem(unsigned short, unsigned short const*) -SfxViewFactory::~SfxViewFactory() -SfxViewFrame::Hide() Slider::SetRangeMax(long) Slider::SetRangeMin(long) Slider::Slider(Window*, ResId const&) -- cgit