diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-27 09:32:52 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-28 08:27:56 +0100 |
commit | 3abf4b91dad8fa549457e74185c000e06ba5f019 (patch) | |
tree | 55a8c9e0f2f4e2143c431154f789e418003e4c13 /sfx2 | |
parent | b15b1a2a90fa4c239ff8a6a33e73ff50ea422abf (diff) |
loplugin:unusedmethods
Change-Id: Idbdf2d5d12fad894a3dfc3a86cae839502f42cf6
Reviewed-on: https://gerrit.libreoffice.org/64114
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/dialog/tabdlg.cxx | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/sfx2/source/dialog/tabdlg.cxx b/sfx2/source/dialog/tabdlg.cxx index 99ce1066fab1..386a24d14d5a 100644 --- a/sfx2/source/dialog/tabdlg.cxx +++ b/sfx2/source/dialog/tabdlg.cxx @@ -555,11 +555,6 @@ void SfxTabDialog::Init_Impl(bool bFmtFlag) } } -void SfxTabDialog::RemoveStandardButton() -{ - m_pBaseFmtBtn->Hide(); -} - short SfxTabDialog::Execute() { if ( !m_pTabCtrl->GetPageCount() ) @@ -592,14 +587,6 @@ void SfxTabDialog::Start() } -void SfxTabDialog::SetApplyHandler(const Link<Button*, void>& _rHdl) -{ - DBG_ASSERT( m_pApplyBtn, "SfxTabDialog::GetApplyHandler: no apply button enabled!" ); - if ( m_pApplyBtn ) - m_pApplyBtn->SetClickHdl( _rHdl ); -} - - void SfxTabDialog::Start_Impl() { assert(m_pImpl->aData.size() == m_pTabCtrl->GetPageCount() @@ -645,26 +632,6 @@ sal_uInt16 SfxTabDialog::AddTabPage return nId; } -/* - Adds a page to the dialog. The Name must correspond to a entry in the - TabControl in the dialog .ui - */ -sal_uInt16 SfxTabDialog::AddTabPage -( - const OString &rName, // Page ID - sal_uInt16 nPageCreateId // Identifier of the Factory Method to create the page -) -{ - SfxAbstractDialogFactory* pFact = SfxAbstractDialogFactory::Create(); - CreateTabPage pCreateFunc = pFact->GetTabPageCreatorFunc(nPageCreateId); - assert(pCreateFunc); - GetTabPageRanges pRangesFunc = pFact->GetTabPageRangesFunc(nPageCreateId); - sal_uInt16 nPageId = m_pTabCtrl->GetPageId(rName); - m_pImpl->aData.push_back(new Data_Impl(nPageId, rName, pCreateFunc, pRangesFunc)); - return nPageId; -} - - void SfxTabDialog::AddTabPage /* [Description] @@ -895,26 +862,6 @@ IMPL_LINK_NOARG(SfxTabDialog, OkHdl, Button*, void) } } -bool SfxTabDialog::Apply() -{ - bool bApplied = false; - if (PrepareLeaveCurrentPage()) - { - bApplied = (Ok() == RET_OK); - //let the pages update their saved values - GetInputSetImpl()->Put(*GetOutputItemSet()); - sal_uInt16 pageCount = m_pTabCtrl->GetPageCount(); - for (sal_uInt16 pageIdx = 0; pageIdx < pageCount; ++pageIdx) - { - SfxTabPage* pPage = dynamic_cast<SfxTabPage*> (m_pTabCtrl->GetTabPage(m_pTabCtrl->GetPageId(pageIdx))); - if (pPage) - pPage->ChangesApplied(); - } - } - return bApplied; -} - - bool SfxTabDialog::PrepareLeaveCurrentPage() { sal_uInt16 const nId = m_pTabCtrl->GetCurPageId(); |