diff options
author | Noel Grandin <noel@peralex.com> | 2015-07-15 15:13:31 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-07-16 05:48:12 +0000 |
commit | b7f9a397fbf8459d166d7bb961d5d8c2c87a0868 (patch) | |
tree | 7991b4d6a75db21a2261e461108d0f44e858f992 /sfx2/source | |
parent | 4ca2cf1b7e57c823e911bcbae0c87102a7c9851e (diff) |
loplugin:unusedmethods sfx2(part2)
Change-Id: I82223b72ddb6a9df1ee52a300b083002234602dc
Reviewed-on: https://gerrit.libreoffice.org/17075
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sfx2/source')
-rw-r--r-- | sfx2/source/appl/newhelp.hxx | 14 | ||||
-rw-r--r-- | sfx2/source/control/thumbnailviewacc.hxx | 2 | ||||
-rw-r--r-- | sfx2/source/dialog/backingwindow.hxx | 2 | ||||
-rw-r--r-- | sfx2/source/dialog/filedlgimpl.hxx | 3 | ||||
-rw-r--r-- | sfx2/source/dialog/mailmodel.cxx | 4 | ||||
-rw-r--r-- | sfx2/source/dialog/versdlg.cxx | 5 | ||||
-rw-r--r-- | sfx2/source/doc/oleprops.hxx | 1 | ||||
-rw-r--r-- | sfx2/source/inc/docundomanager.hxx | 9 | ||||
-rw-r--r-- | sfx2/source/inc/partwnd.hxx | 1 | ||||
-rw-r--r-- | sfx2/source/inc/sfxpicklist.hxx | 2 | ||||
-rw-r--r-- | sfx2/source/inc/slotserv.hxx | 1 | ||||
-rw-r--r-- | sfx2/source/inc/splitwin.hxx | 4 | ||||
-rw-r--r-- | sfx2/source/inc/statcach.hxx | 1 | ||||
-rw-r--r-- | sfx2/source/inc/templdgi.hxx | 27 | ||||
-rw-r--r-- | sfx2/source/inc/versdlg.hxx | 6 | ||||
-rw-r--r-- | sfx2/source/menu/mnumgr.cxx | 5 | ||||
-rw-r--r-- | sfx2/source/sidebar/ContextList.cxx | 5 | ||||
-rw-r--r-- | sfx2/source/sidebar/DeckTitleBar.cxx | 5 | ||||
-rw-r--r-- | sfx2/source/sidebar/PanelTitleBar.cxx | 5 | ||||
-rw-r--r-- | sfx2/source/view/ipclient.cxx | 5 |
20 files changed, 12 insertions, 95 deletions
diff --git a/sfx2/source/appl/newhelp.hxx b/sfx2/source/appl/newhelp.hxx index 246652604026..f3a588e943a1 100644 --- a/sfx2/source/appl/newhelp.hxx +++ b/sfx2/source/appl/newhelp.hxx @@ -336,12 +336,11 @@ public: void AddBookmarks( const OUString& rTitle, const OUString& rURL ); bool IsValidFactory( const OUString& _rFactory ); inline OUString GetActiveFactoryTitle() const { return m_pActiveLB->GetSelectEntry(); } - inline void UpdateTabControl() { m_pTabCtrl->Invalidate(); } void ClearSearchPage(); void GrabFocusBack(); - bool HasFocusOnEdit() const; + bool HasFocusOnEdit() const; OUString GetSearchText() const; - bool IsFullWordSearch() const; + bool IsFullWordSearch() const; void OpenKeyword( const OUString& rKeyword ); void SelectExecutableEntry(); inline bool WasCursorLeftOrRight(); @@ -537,8 +536,6 @@ public: ::com::sun::star::uno::Reference < ::com::sun::star::awt::XWindow > xWin ); inline ::com::sun::star::uno::Reference < ::com::sun::star::frame::XFrame2 > getTextFrame() const { return pTextWin->getFrame(); } - inline ::com::sun::star::uno::Reference < ::com::sun::star::frame::XDispatchResultListener > - getOpenListener() const { return xOpenListener; } void SetFactory( const OUString& rFactory ); void SetHelpURL( const OUString& rURL ); @@ -547,15 +544,14 @@ public: void UpdateToolbox(); inline void OpenKeyword( const OUString& rKeyword ) { pIndexWin->OpenKeyword( rKeyword ); } - inline OUString GetFactory() const { return pIndexWin->GetFactory(); } - bool HasHistoryPredecessor() const; // forward to interceptor - bool HasHistorySuccessor() const; // forward to interceptor + bool HasHistoryPredecessor() const; // forward to interceptor + bool HasHistorySuccessor() const; // forward to interceptor void openDone(const OUString& sURL , bool bSuccess); - static OUString buildHelpURL(const OUString& sFactory , + static OUString buildHelpURL(const OUString& sFactory , const OUString& sContent , const OUString& sAnchor , bool bUseQuestionMark); diff --git a/sfx2/source/control/thumbnailviewacc.hxx b/sfx2/source/control/thumbnailviewacc.hxx index dbff7e29048d..201aa09d2d65 100644 --- a/sfx2/source/control/thumbnailviewacc.hxx +++ b/sfx2/source/control/thumbnailviewacc.hxx @@ -185,8 +185,6 @@ public: void ParentDestroyed(); - bool HasAccessibleListeners() const { return( mxEventListeners.size() > 0 ); } - static ThumbnailViewItemAcc* getImplementation( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& rxData ) throw(); public: diff --git a/sfx2/source/dialog/backingwindow.hxx b/sfx2/source/dialog/backingwindow.hxx index c2c146220502..4b9df07715fe 100644 --- a/sfx2/source/dialog/backingwindow.hxx +++ b/sfx2/source/dialog/backingwindow.hxx @@ -95,8 +95,6 @@ class BackingWindow : public vcl::Window, public VclBuilderContainer void setupButton(PushButton* pButton); void setupButton(MenuButton* pButton); - //Template Manager - void OnTemplateOpen(); void dispatchURL(const OUString& i_rURL, const OUString& i_rTarget = OUString("_default"), diff --git a/sfx2/source/dialog/filedlgimpl.hxx b/sfx2/source/dialog/filedlgimpl.hxx index 97b748d950e3..9103318581d0 100644 --- a/sfx2/source/dialog/filedlgimpl.hxx +++ b/sfx2/source/dialog/filedlgimpl.hxx @@ -128,8 +128,6 @@ namespace sfx2 sal_Int16 implDoExecute(); void implStartExecute(); - void correctVirtualDialogType(); - void setControlHelpIds( const sal_Int16* _pControlId, const char** _pHelpId ); bool CheckFilterOptionsCapability( const SfxFilter* _pFilter ); @@ -150,7 +148,6 @@ namespace sfx2 const SfxFilter* pFilter ); DECL_LINK_TYPED(TimeOutHdl_Impl, Idle *, void); - DECL_LINK( HandleEvent, FileDialogHelper* ); DECL_LINK( InitControls, void* ); public: diff --git a/sfx2/source/dialog/mailmodel.cxx b/sfx2/source/dialog/mailmodel.cxx index 6b31c592d6b9..c584078c5aa0 100644 --- a/sfx2/source/dialog/mailmodel.cxx +++ b/sfx2/source/dialog/mailmodel.cxx @@ -656,9 +656,7 @@ SfxMailModel::SaveResult SfxMailModel::SaveDocumentAsFormat( SfxMailModel::SfxMailModel() : mpToList ( NULL ), mpCcList ( NULL ), - mpBccList ( NULL ), - mePriority ( PRIO_NORMAL ), - mbLoadDone ( true ) + mpBccList ( NULL ) { } diff --git a/sfx2/source/dialog/versdlg.cxx b/sfx2/source/dialog/versdlg.cxx index 46f18b97e16e..33592178024c 100644 --- a/sfx2/source/dialog/versdlg.cxx +++ b/sfx2/source/dialog/versdlg.cxx @@ -462,7 +462,7 @@ IMPL_LINK( SfxVersionDialog, ButtonHdl_Impl, Button*, pButton ) } else if (pButton == m_pCmisButton) { - VclPtrInstance< SfxCmisVersionsDialog > pDlg(pViewFrame, false); + VclPtrInstance< SfxCmisVersionsDialog > pDlg(pViewFrame); pDlg->Execute(); } @@ -531,11 +531,10 @@ IMPL_LINK(SfxViewVersionDialog_Impl, ButtonHdl, Button*, pButton) return 0L; } -SfxCmisVersionsDialog::SfxCmisVersionsDialog ( SfxViewFrame* pVwFrame, bool bIsSaveVersionOnClose ) +SfxCmisVersionsDialog::SfxCmisVersionsDialog ( SfxViewFrame* pVwFrame ) : SfxModalDialog(NULL, "VersionsCmisDialog", "sfx/ui/versionscmis.ui") , pViewFrame(pVwFrame) , m_pTable(NULL) - , m_bIsSaveVersionOnClose(bIsSaveVersionOnClose) { get(m_pOpenButton, "open"); get(m_pViewButton, "show"); diff --git a/sfx2/source/doc/oleprops.hxx b/sfx2/source/doc/oleprops.hxx index 81f37d0d60f5..00fa397d4ce6 100644 --- a/sfx2/source/doc/oleprops.hxx +++ b/sfx2/source/doc/oleprops.hxx @@ -219,7 +219,6 @@ public: inline sal_Int32 GetPropType() const { return mnPropType; } protected: - inline void SetPropId( sal_Int32 nPropId ) { mnPropId = nPropId; } inline void SetPropType( sal_Int32 nPropType ) { mnPropType = nPropType; } private: diff --git a/sfx2/source/inc/docundomanager.hxx b/sfx2/source/inc/docundomanager.hxx index f970bed57d71..81c966707921 100644 --- a/sfx2/source/inc/docundomanager.hxx +++ b/sfx2/source/inc/docundomanager.hxx @@ -54,14 +54,10 @@ protected: void acquireModel() { m_rModel.acquire(); } void releaseModel() { m_rModel.release(); } - bool isDisposed() const { return m_rModel.IsDisposed(); } - protected: const SfxBaseModel& getBaseModel() const { return m_rModel; } SfxBaseModel& getBaseModel() { return m_rModel; } - ::osl::Mutex& getMutex() { return m_rModel.getMutex(); } - private: SfxBaseModel& m_rModel; }; @@ -91,11 +87,6 @@ public: { } - void reset() - { - m_aGuard.reset(); - } - void clear() { m_aGuard.clear(); diff --git a/sfx2/source/inc/partwnd.hxx b/sfx2/source/inc/partwnd.hxx index b81a88fd084c..c3c1bfdfae6b 100644 --- a/sfx2/source/inc/partwnd.hxx +++ b/sfx2/source/inc/partwnd.hxx @@ -71,7 +71,6 @@ public: bool QueryClose(); virtual void FillInfo(SfxChildWinInfo&) const SAL_OVERRIDE; - ::com::sun::star::uno::Reference < ::com::sun::star::frame::XFrame > ForgetFrame(); }; #endif diff --git a/sfx2/source/inc/sfxpicklist.hxx b/sfx2/source/inc/sfxpicklist.hxx index 502492c0e61f..ca228616c355 100644 --- a/sfx2/source/inc/sfxpicklist.hxx +++ b/sfx2/source/inc/sfxpicklist.hxx @@ -64,8 +64,6 @@ class SfxPickList : public SfxListener static SfxPickList& Get(); static void ensure() { Get(); } - sal_uInt32 GetAllowedMenuSize() { return m_nAllowedMenuSize; } - sal_uInt32 GetNumOfEntries() const { return m_aPicklistVector.size(); } void CreateMenuEntries( Menu* pMenu ); static void ExecuteMenuEntry( sal_uInt16 nId ); static void ExecuteEntry( sal_uInt32 nIndex ); diff --git a/sfx2/source/inc/slotserv.hxx b/sfx2/source/inc/slotserv.hxx index c98a9c4ece4e..b8eff4334b30 100644 --- a/sfx2/source/inc/slotserv.hxx +++ b/sfx2/source/inc/slotserv.hxx @@ -37,7 +37,6 @@ public: _pSlot = pSlot; } const SfxSlot* GetSlot() const; - void Invalidate() { _pSlot = 0; } }; inline SfxSlotServer::SfxSlotServer( const SfxSlot &rSlot, sal_uInt16 nShell ): diff --git a/sfx2/source/inc/splitwin.hxx b/sfx2/source/inc/splitwin.hxx index 442183d7393b..176722b0f6ce 100644 --- a/sfx2/source/inc/splitwin.hxx +++ b/sfx2/source/inc/splitwin.hxx @@ -105,8 +105,8 @@ public: bLocked = bLock; SetUpdateMode( !bLock ); } - using Window::IsLocked; - bool IsLocked() const { return bLocked; } + using Window::IsLocked; + bool GetWindowPos( const SfxDockingWindow* pWindow, sal_uInt16& rLine, sal_uInt16& rPos ) const; bool GetWindowPos( const Point& rTestPos, diff --git a/sfx2/source/inc/statcach.hxx b/sfx2/source/inc/statcach.hxx index 88867861a3ba..20cd3028773c 100644 --- a/sfx2/source/inc/statcach.hxx +++ b/sfx2/source/inc/statcach.hxx @@ -92,7 +92,6 @@ public: void Dispatch( const SfxItemSet* pSet, bool bForceSynchron = false ); bool IsControllerDirty() const { return bCtrlDirty; } - SfxPoolItem* GetItem() const { return pLastItem; } void ClearCache(); void SetState( SfxItemState, const SfxPoolItem*, bool bMaybeDirty=false ); diff --git a/sfx2/source/inc/templdgi.hxx b/sfx2/source/inc/templdgi.hxx index 5171cacab46e..28e8d2419a64 100644 --- a/sfx2/source/inc/templdgi.hxx +++ b/sfx2/source/inc/templdgi.hxx @@ -231,10 +231,6 @@ protected: } virtual void LoadedFamilies() {} - void Update() - { - UpdateStyles_Impl(UPDATE_FAMILY_LIST); - } void InvalidateBindings(); virtual void InsertFamilyItem( sal_uInt16 nId, const SfxStyleFamilyItem* pItem ) = 0; @@ -333,29 +329,6 @@ public: return pCurObjShell; } - inline bool CanEdit() const - { - return bCanEdit; - } - inline bool CanDel() const - { - return bCanDel; - } - inline bool CanNew() const - { - return bCanNew; - } - - inline bool CanHide() const - { - return bCanHide; - } - - inline bool CanShow() const - { - return bCanShow; - } - // normally for derivates from SvTreeListBoxes, but in this case the dialog handles context menus PopupMenu* CreateContextMenu(); }; diff --git a/sfx2/source/inc/versdlg.hxx b/sfx2/source/inc/versdlg.hxx index 67453efa3a51..9ad3f3bf983b 100644 --- a/sfx2/source/inc/versdlg.hxx +++ b/sfx2/source/inc/versdlg.hxx @@ -97,15 +97,11 @@ class SfxCmisVersionsDialog : public SfxModalDialog VclPtr<PushButton> m_pCompareButton; SfxViewFrame* pViewFrame; SfxVersionTableDtor* m_pTable; - bool m_bIsSaveVersionOnClose; - DECL_LINK(DClickHdl_Impl, void *); - DECL_LINK(SelectHdl_Impl, void *); - DECL_LINK( ButtonHdl_Impl, Button* ); void LoadVersions(); public: - SfxCmisVersionsDialog ( SfxViewFrame* pFrame, bool ); + SfxCmisVersionsDialog ( SfxViewFrame* pFrame ); virtual ~SfxCmisVersionsDialog (); virtual void dispose() SAL_OVERRIDE; }; diff --git a/sfx2/source/menu/mnumgr.cxx b/sfx2/source/menu/mnumgr.cxx index 74ee7b664e02..9fefbe5b2edd 100644 --- a/sfx2/source/menu/mnumgr.cxx +++ b/sfx2/source/menu/mnumgr.cxx @@ -263,10 +263,7 @@ sal_uInt16 SfxPopupMenuManager::Execute( const Point& rPos, vcl::Window* pWindow SfxMenuManager::SfxMenuManager( Menu* pMenuArg, SfxBindings &rBindings ) : pMenu(0), - pOldMenu(0), - pBindings(&rBindings), - pResMgr(NULL), - nType(0) + pBindings(&rBindings) { bAddClipboardFuncs = false; SfxVirtualMenu* pVMenu = new SfxVirtualMenu( pMenuArg, false, rBindings, true, true ); diff --git a/sfx2/source/sidebar/ContextList.cxx b/sfx2/source/sidebar/ContextList.cxx index 20cdcbc8806b..5b4225e80d6d 100644 --- a/sfx2/source/sidebar/ContextList.cxx +++ b/sfx2/source/sidebar/ContextList.cxx @@ -85,11 +85,6 @@ void ContextList::AddContextDescription ( maEntries.back().msMenuCommand = rsMenuCommand; } -sal_Int32 ContextList::GetCount() -{ - return maEntries.size(); -} - } } // end of namespace sfx2::sidebar /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sfx2/source/sidebar/DeckTitleBar.cxx b/sfx2/source/sidebar/DeckTitleBar.cxx index a55fef62e719..59a0aa4d81ff 100644 --- a/sfx2/source/sidebar/DeckTitleBar.cxx +++ b/sfx2/source/sidebar/DeckTitleBar.cxx @@ -92,11 +92,6 @@ sidebar::Paint DeckTitleBar::GetBackgroundPaint() return Theme::GetPaint(Theme::Paint_DeckTitleBarBackground); } -Color DeckTitleBar::GetTextColor() -{ - return Theme::GetColor(Theme::Color_DeckTitleFont); -} - void DeckTitleBar::HandleToolBoxItemClick (const sal_uInt16 nItemIndex) { if (nItemIndex == mnCloserItemIndex && maCloserAction) diff --git a/sfx2/source/sidebar/PanelTitleBar.cxx b/sfx2/source/sidebar/PanelTitleBar.cxx index fd6c06ee3376..479bd2e86206 100644 --- a/sfx2/source/sidebar/PanelTitleBar.cxx +++ b/sfx2/source/sidebar/PanelTitleBar.cxx @@ -136,11 +136,6 @@ Paint PanelTitleBar::GetBackgroundPaint() return Theme::GetPaint(Theme::Paint_PanelTitleBarBackground); } -Color PanelTitleBar::GetTextColor() -{ - return Theme::GetColor(Theme::Color_PanelTitleFont); -} - void PanelTitleBar::HandleToolBoxItemClick (const sal_uInt16 nItemIndex) { if (nItemIndex == mnMenuItemIndex) diff --git a/sfx2/source/view/ipclient.cxx b/sfx2/source/view/ipclient.cxx index 5a30bbab54c2..d5513fcaec2f 100644 --- a/sfx2/source/view/ipclient.cxx +++ b/sfx2/source/view/ipclient.cxx @@ -1012,11 +1012,6 @@ void SfxInPlaceClient::ViewChanged() // dummy implementation } -void SfxInPlaceClient::MakeVisible() -{ - // dummy implementation -} - void SfxInPlaceClient::FormatChanged() { // dummy implementation |