diff options
author | Noel Grandin <noel@peralex.com> | 2015-07-15 13:41:11 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-07-16 05:47:52 +0000 |
commit | 4ca2cf1b7e57c823e911bcbae0c87102a7c9851e (patch) | |
tree | 28725536883828d5d7af2cb8a4e7733968888d9d /sfx2/source | |
parent | 80cbfb75026f4673b14237650302c3da1cc5ab13 (diff) |
loplugin:unusedmethods sfx2
Change-Id: I98c455d89f76fbcacf74929a4e8775b4da697f62
Reviewed-on: https://gerrit.libreoffice.org/17069
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sfx2/source')
-rw-r--r-- | sfx2/source/appl/childwinimpl.cxx | 5 | ||||
-rw-r--r-- | sfx2/source/appl/shutdownicon.hxx | 2 | ||||
-rw-r--r-- | sfx2/source/dialog/dinfdlg.cxx | 4 | ||||
-rw-r--r-- | sfx2/source/doc/objmisc.cxx | 12 | ||||
-rw-r--r-- | sfx2/source/inc/appbaslib.hxx | 4 | ||||
-rw-r--r-- | sfx2/source/inc/childwinimpl.hxx | 1 | ||||
-rw-r--r-- | sfx2/source/inc/objshimp.hxx | 1 | ||||
-rw-r--r-- | sfx2/source/inc/sfxtypes.hxx | 1 | ||||
-rw-r--r-- | sfx2/source/inc/virtmenu.hxx | 28 | ||||
-rw-r--r-- | sfx2/source/inc/workwin.hxx | 5 | ||||
-rw-r--r-- | sfx2/source/menu/mnuitem.cxx | 8 | ||||
-rw-r--r-- | sfx2/source/toolbox/tbxitem.cxx | 18 |
12 files changed, 2 insertions, 87 deletions
diff --git a/sfx2/source/appl/childwinimpl.cxx b/sfx2/source/appl/childwinimpl.cxx index 9b64734ad9d5..11b09e816fb3 100644 --- a/sfx2/source/appl/childwinimpl.cxx +++ b/sfx2/source/appl/childwinimpl.cxx @@ -69,11 +69,6 @@ SfxChildWinFactArr_Impl::iterator SfxChildWinFactArr_Impl::begin() return maData.begin(); } -SfxChildWinFactArr_Impl::const_iterator SfxChildWinFactArr_Impl::begin() const -{ - return maData.begin(); -} - SfxFrameArr_Impl::iterator SfxFrameArr_Impl::begin() { return maData.begin(); diff --git a/sfx2/source/appl/shutdownicon.hxx b/sfx2/source/appl/shutdownicon.hxx index b4cd38f35c15..94224fbc44df 100644 --- a/sfx2/source/appl/shutdownicon.hxx +++ b/sfx2/source/appl/shutdownicon.hxx @@ -114,10 +114,8 @@ class SFX2_DLLPUBLIC ShutdownIcon : public ShutdownIconServiceBase static OUString GetUrlDescription( const OUString& aUrl ); void SetVeto( bool bVeto ) { m_bVeto = bVeto;} - bool GetVeto() { return m_bVeto; } void StartFileDialog(); - sfx2::FileDialogHelper* GetFileDialog() const { return m_pFileDlg; } DECL_LINK(DialogClosedHdl_Impl, sfx2::FileDialogHelper*); static bool IsQuickstarterInstalled(); diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx index eb65995d2719..28ea2d01930c 100644 --- a/sfx2/source/dialog/dinfdlg.cxx +++ b/sfx2/source/dialog/dinfdlg.cxx @@ -1392,8 +1392,8 @@ CustomPropertyLine::CustomPropertyLine( vcl::Window* pParent ) : m_aNameBox ( VclPtr<ComboBox>::Create(pParent, SfxResId( SFX_CB_PROPERTY_NAME )) ), m_aTypeBox ( VclPtr<CustomPropertiesTypeBox>::Create(pParent, SfxResId( SFX_LB_PROPERTY_TYPE ), this) ), m_aValueEdit ( VclPtr<CustomPropertiesEdit>::Create(pParent, WB_BORDER|WB_TABSTOP|WB_LEFT, this ) ), - m_aDateField ( VclPtr<CustomPropertiesDateField>::Create(pParent, WB_BORDER|WB_TABSTOP|WB_SPIN|WB_LEFT, this ) ), - m_aTimeField ( VclPtr<CustomPropertiesTimeField>::Create(pParent, WB_BORDER|WB_TABSTOP|WB_SPIN|WB_LEFT, this ) ), + m_aDateField ( VclPtr<CustomPropertiesDateField>::Create(pParent, WB_BORDER|WB_TABSTOP|WB_SPIN|WB_LEFT ) ), + m_aTimeField ( VclPtr<CustomPropertiesTimeField>::Create(pParent, WB_BORDER|WB_TABSTOP|WB_SPIN|WB_LEFT ) ), m_sDurationFormat( SfxResId( SFX_ST_DURATION_FORMAT ).toString() ), m_aDurationField( VclPtr<CustomPropertiesDurationField>::Create(pParent, WB_BORDER|WB_TABSTOP|WB_READONLY, this ) ), m_aEditButton ( VclPtr<CustomPropertiesEditButton>::Create(pParent, WB_TABSTOP, this) ), diff --git a/sfx2/source/doc/objmisc.cxx b/sfx2/source/doc/objmisc.cxx index e66d596a2741..ff6099de91ac 100644 --- a/sfx2/source/doc/objmisc.cxx +++ b/sfx2/source/doc/objmisc.cxx @@ -1899,18 +1899,6 @@ OUString SfxObjectShell_Impl::getDocumentLocation() const return sLocation; } -uno::Reference< embed::XStorage > SfxObjectShell_Impl::getZipStorageToSign() -{ - Reference < embed::XStorage > xStore; - - SfxMedium* pMedium( rDocShell.GetMedium() ); - OSL_PRECOND( pMedium, "SfxObjectShell_Impl::getLastCommitDocumentStorage: no medium!" ); - if ( pMedium ) - xStore = pMedium->GetZipStorageToSign_Impl(); - - return xStore; -} - bool SfxObjectShell_Impl::documentStorageHasMacros() const { return ::sfx2::DocumentMacroMode::storageHasMacros( m_xDocStorage ); diff --git a/sfx2/source/inc/appbaslib.hxx b/sfx2/source/inc/appbaslib.hxx index 8e0d5f84bb19..a83be82aae7f 100644 --- a/sfx2/source/inc/appbaslib.hxx +++ b/sfx2/source/inc/appbaslib.hxx @@ -91,10 +91,6 @@ public: private: void impl_releaseContainers(); - - bool impl_getContainer( - ContainerType _eType, - ::com::sun::star::uno::Reference< ::com::sun::star::script::XStorageBasedLibraryContainer >& _out_rxContainer ); }; #endif // INCLUDED_SFX2_SOURCE_INC_APPBASLIB_HXX diff --git a/sfx2/source/inc/childwinimpl.hxx b/sfx2/source/inc/childwinimpl.hxx index 8a78dfca7262..e30f79f2624f 100644 --- a/sfx2/source/inc/childwinimpl.hxx +++ b/sfx2/source/inc/childwinimpl.hxx @@ -54,7 +54,6 @@ public: void erase( iterator it ); iterator begin(); - const_iterator begin() const; }; class SfxFrameArr_Impl diff --git a/sfx2/source/inc/objshimp.hxx b/sfx2/source/inc/objshimp.hxx index 794af0b52ec4..c32d564ac3dd 100644 --- a/sfx2/source/inc/objshimp.hxx +++ b/sfx2/source/inc/objshimp.hxx @@ -144,7 +144,6 @@ struct SfxObjectShell_Impl : public ::sfx2::IMacroDocumentAccess virtual sal_Int16 getCurrentMacroExecMode() const SAL_OVERRIDE; virtual bool setCurrentMacroExecMode( sal_uInt16 nMacroMode ) SAL_OVERRIDE; virtual OUString getDocumentLocation() const SAL_OVERRIDE; - virtual ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage > getZipStorageToSign() SAL_OVERRIDE; virtual bool documentStorageHasMacros() const SAL_OVERRIDE; virtual ::com::sun::star::uno::Reference< ::com::sun::star::document::XEmbeddedScripts > getEmbeddedDocumentScripts() const SAL_OVERRIDE; virtual SignatureState getScriptingSignatureState() SAL_OVERRIDE; diff --git a/sfx2/source/inc/sfxtypes.hxx b/sfx2/source/inc/sfxtypes.hxx index 258f82920a9d..487142bff140 100644 --- a/sfx2/source/inc/sfxtypes.hxx +++ b/sfx2/source/inc/sfxtypes.hxx @@ -79,7 +79,6 @@ struct StringList_Impl : private Resource : Resource( rErrIdP ), aResId(nId, *rErrIdP.GetResMgr()) {} ~StringList_Impl() { FreeResource(); } - OUString GetString() { return aResId.toString(); } operator bool() { return IsAvailableRes(aResId.SetRT(RSC_STRING)); } }; diff --git a/sfx2/source/inc/virtmenu.hxx b/sfx2/source/inc/virtmenu.hxx index c71c9c0ea7ea..079eaf1c65ae 100644 --- a/sfx2/source/inc/virtmenu.hxx +++ b/sfx2/source/inc/virtmenu.hxx @@ -87,52 +87,24 @@ public: void EnableItem( sal_uInt16 nItemId, bool bEnable ); void SetItemText( sal_uInt16 nItemId, const OUString& rText ); - sal_uInt16 GetItemCount() const; Menu* GetSVMenu() const { return pSVMenu;} SfxMenuControl& operator[]( sal_uInt16 nPos ) const; - sal_uInt16 GetItemId( sal_uInt16 nPos ) const; - - SfxVirtualMenu* GetParentMenu() const { return pParent; } - void SetParentMenu( SfxVirtualMenu* pNewParent ) - { pParent = pNewParent; } - void SetPopupMenu( sal_uInt16 nId, PopupMenu *pMenu ); - bool IsFromResource() const - { return bResCtor; } void InitPopup(sal_uInt16 nPos, bool bOLE = true); void InitializeHelp(); - void SetResMgr(ResMgr* pMgr) {pResMgr = pMgr; } - ResMgr* GetResMgr() { return pResMgr; } DECL_LINK( Select, Menu * ); }; -// return the number of virtual items in this menu - -inline sal_uInt16 SfxVirtualMenu::GetItemCount() const -{ - return nCount; -} - - - inline SfxMenuControl& SfxVirtualMenu::operator[]( sal_uInt16 nPos ) const { return *(pItems+nPos); } -// returns the item id at position nPos in the menu (or 0 if sep.) - -inline sal_uInt16 SfxVirtualMenu::GetItemId( sal_uInt16 nPos ) const -{ - return pItems ? pItems[nPos].GetId() : 0; -} - - #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sfx2/source/inc/workwin.hxx b/sfx2/source/inc/workwin.hxx index 6fcc88e94890..e5e364844183 100644 --- a/sfx2/source/inc/workwin.hxx +++ b/sfx2/source/inc/workwin.hxx @@ -166,8 +166,6 @@ struct SfxObjectBarList_Impl SfxObjectBar_Impl operator[] ( sal_uInt16 n ) { return aArr[n]; } - SfxObjectBar_Impl Actual() - { return aArr[nAct]; } }; #define SFX_SPLITWINDOWS_LEFT 0 @@ -292,7 +290,6 @@ public: bool IsAutoHideMode( const SfxSplitWindow *pSplit ); void EndAutoShow_Impl( Point aPos ); void SetFullScreen_Impl( bool bSet ) { bIsFullScreen = bSet; } - bool IsFullScreen_Impl() const { return bIsFullScreen; } // Methods for Objectbars virtual void UpdateObjectBars_Impl(); @@ -302,8 +299,6 @@ public: bool KnowsObjectBar_Impl( sal_uInt16 nPos ) const; bool IsVisible_Impl(); void MakeVisible_Impl( bool ); - void SetObjectBarVisibility_Impl( sal_uInt16 nVis ); - bool IsContainer_Impl() const; void Lock_Impl( bool ); // Methods for ChildWindows diff --git a/sfx2/source/menu/mnuitem.cxx b/sfx2/source/menu/mnuitem.cxx index be6a260c13ff..1f9d23258083 100644 --- a/sfx2/source/menu/mnuitem.cxx +++ b/sfx2/source/menu/mnuitem.cxx @@ -291,14 +291,6 @@ SfxMenuControl* SfxMenuControl::CreateControl( sal_uInt16 nId, Menu &rMenu, SfxB -PopupMenu* SfxMenuControl::GetPopup () const -{ - if (GetPopupMenu()) - return static_cast<PopupMenu*>(GetPopupMenu()->GetSVMenu()); - else - return 0; -} - SfxUnoMenuControl* SfxMenuControl::CreateControl( const OUString& rCmd, sal_uInt16 nId, Menu& rMenu, const OUString& sItemText, SfxBindings& rBindings, SfxVirtualMenu* pVirt) diff --git a/sfx2/source/toolbox/tbxitem.cxx b/sfx2/source/toolbox/tbxitem.cxx index 17a5be0de379..99c466c35a1b 100644 --- a/sfx2/source/toolbox/tbxitem.cxx +++ b/sfx2/source/toolbox/tbxitem.cxx @@ -1318,24 +1318,6 @@ void SfxPopupWindow::StartCascading() -VclPtr<SfxPopupWindow> SfxPopupWindow::Clone() const - -/* [Description] - - This method must be overridden to show this Popup also in the - Presentation-mode. It is called when a Show() would be meaningless - since the parent is no presentation window. - When create a new window the bew Top-Window will be used automatically, - so that the Parent becomes the presentation window and that the new - Popup therefore becomes visible. -*/ - -{ - return 0; -} - - - void SfxPopupWindow::StateChanged( sal_uInt16 /*nSID*/, SfxItemState eState, |