diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-09-15 15:27:34 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-09-18 10:05:31 +0200 |
commit | 0693d69d6080b6976133e0e68db2637d0030370d (patch) | |
tree | baaca2a2f85a7b33d0e9bfc89fd805527542b513 /sfx2 | |
parent | 5889fd4416cd9569c44e2d250ce5d027974bd243 (diff) |
weld ScCharDlg
Change-Id: Ie0fe76ef5c5c706007c2285b3a309d92ff4bc2b0
Reviewed-on: https://gerrit.libreoffice.org/60528
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/dialog/tabdlg.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sfx2/source/dialog/tabdlg.cxx b/sfx2/source/dialog/tabdlg.cxx index 57a21626add1..d4bfaf1db24d 100644 --- a/sfx2/source/dialog/tabdlg.cxx +++ b/sfx2/source/dialog/tabdlg.cxx @@ -2016,6 +2016,18 @@ void SfxTabDialogController::AddTabPage m_pImpl->aData.push_back(new Data_Impl(m_pImpl->aData.size(), rName, pCreateFunc, pRangesFunc)); } +void SfxTabDialogController::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); + GetTabPageRanges pRangesFunc = pFact->GetTabPageRangesFunc(nPageCreateId); + AddTabPage(rName, pCreateFunc, pRangesFunc); +} + void SfxTabDialogController::CreatePages() { for (auto pDataObject : m_pImpl->aData) |