diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-17 05:41:08 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-17 08:18:11 +0200 |
commit | 7bad1516c5f2a85b5bae3f49261ac2494cbb7162 (patch) | |
tree | e16e60b92b2bead4e22a24949786d04008cf59ff /cui | |
parent | ff55ad1aceb10b900254c8ad3629775b7789d60a (diff) |
loplugin:unusedmethods
Change-Id: Ie2285f64919d1c83b0a8df4ceb827f731e5cd609
Reviewed-on: https://gerrit.libreoffice.org/75739
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/dialogs/iconcdlg.cxx | 64 | ||||
-rw-r--r-- | cui/source/inc/cfg.hxx | 5 | ||||
-rw-r--r-- | cui/source/inc/cuihyperdlg.hxx | 5 | ||||
-rw-r--r-- | cui/source/inc/hltpbase.hxx | 1 | ||||
-rw-r--r-- | cui/source/inc/iconcdlg.hxx | 2 |
5 files changed, 0 insertions, 77 deletions
diff --git a/cui/source/dialogs/iconcdlg.cxx b/cui/source/dialogs/iconcdlg.cxx index 0abb498efe9d..aa8d9edb417f 100644 --- a/cui/source/dialogs/iconcdlg.cxx +++ b/cui/source/dialogs/iconcdlg.cxx @@ -316,70 +316,6 @@ IconChoicePageData* SvxHpLinkDlg::GetPageData ( const OString& rId ) | \**********************************************************************/ -bool SvxHpLinkDlg::OK_Impl() -{ - IconChoicePage* pPage = GetPageData ( msCurrentPageId )->xPage.get(); - - bool bEnd = !pPage; - if ( pPage ) - { - DeactivateRC nRet = DeactivateRC::LeavePage; - if ( pSet ) - { - SfxItemSet aTmp( *pSet->GetPool(), pSet->GetRanges() ); - - if ( pPage->HasExchangeSupport() ) - nRet = pPage->DeactivatePage( &aTmp ); - - if ( ( DeactivateRC::LeavePage & nRet ) - && aTmp.Count() ) - { - pExampleSet->Put( aTmp ); - pOutSet->Put( aTmp ); - } - } - else - nRet = pPage->DeactivatePage( nullptr ); - bEnd = nRet != DeactivateRC::KeepPage; - } - - return bEnd; -} - - -void SvxHpLinkDlg::Ok() -{ - if ( !pOutSet ) - { - if ( !pExampleSet && pSet ) - pOutSet = pSet->Clone( false ); // without items - else if ( pExampleSet ) - pOutSet.reset(new SfxItemSet( *pExampleSet )); - } - - for ( size_t i = 0, nCount = maPageList.size(); i < nCount; ++i ) - { - IconChoicePageData* pData = GetPageData ( maPageList[i]->sId ); - - IconChoicePage* pPage = pData->xPage.get(); - - if ( pPage ) - { - if ( pSet && !pPage->HasExchangeSupport() ) - { - SfxItemSet aTmp( *pSet->GetPool(), pSet->GetRanges() ); - - if ( pPage->FillItemSet( &aTmp ) ) - { - if (pExampleSet) - pExampleSet->Put(aTmp); - pOutSet->Put( aTmp ); - } - } - } - } -} - void SvxHpLinkDlg::SwitchPage( const OString& rId ) { m_xIconCtrl->set_current_page(rId); diff --git a/cui/source/inc/cfg.hxx b/cui/source/inc/cfg.hxx index 5b7cd8230fb4..b2c2aa0ee4d3 100644 --- a/cui/source/inc/cfg.hxx +++ b/cui/source/inc/cfg.hxx @@ -353,11 +353,6 @@ public: nullptr, nullptr, nullptr, false, nullptr); } - void insert(int pos, const OUString& rId, const OUString& rStr, const OUString* pImage = nullptr) - { - m_xControl->insert(pos, rStr, &rId, pImage, nullptr); - } - DECL_LINK(KeyInputHdl, const KeyEvent&, bool); void CreateDropDown(); diff --git a/cui/source/inc/cuihyperdlg.hxx b/cui/source/inc/cuihyperdlg.hxx index 4f8d4c1c07f3..9f0dec0c50b1 100644 --- a/cui/source/inc/cuihyperdlg.hxx +++ b/cui/source/inc/cuihyperdlg.hxx @@ -102,7 +102,6 @@ private: IconChoicePageData* GetPageData ( const OString& rId ); void Start_Impl(); - bool OK_Impl(); void SwitchPage( const OString& rId ); @@ -117,8 +116,6 @@ private: void DeActivatePageImpl (); void ResetPageImpl (); - void Ok(); - virtual void Close() override; void Apply(); @@ -138,8 +135,6 @@ public: void SetInputSet( const SfxItemSet* pInSet ); weld::Button& GetOKButton() { return *m_xOKBtn; } - weld::Button& GetApplyButton() { return *m_xApplyBtn; } - weld::Button& GetCancelButton() { return *m_xCancelBtn; } void Start(); bool QueryClose(); diff --git a/cui/source/inc/hltpbase.hxx b/cui/source/inc/hltpbase.hxx index fae49a54baf6..e079a3c072bf 100644 --- a/cui/source/inc/hltpbase.hxx +++ b/cui/source/inc/hltpbase.hxx @@ -121,7 +121,6 @@ public: virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override; bool IsMarkWndVisible() const { return static_cast<bool>(mxMarkWnd); } - Size GetSizeExtraWnd() { return mxMarkWnd->getDialog()->get_size(); } void MoveToExtraWnd ( Point aNewPos ); virtual bool QueryClose() override; diff --git a/cui/source/inc/iconcdlg.hxx b/cui/source/inc/iconcdlg.hxx index a5db9706917e..f34e90025a33 100644 --- a/cui/source/inc/iconcdlg.hxx +++ b/cui/source/inc/iconcdlg.hxx @@ -66,8 +66,6 @@ private: const SfxItemSet* pSet; bool bHasExchangeSupport; - void ImplInitSettings(); - protected: IconChoicePage(weld::Container* pParent, const OUString& rUIXMLDescription, const OString& rID, const SfxItemSet* pItemSet); |