summaryrefslogtreecommitdiff
path: root/sfx2/source/dialog
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-11-15 14:27:28 +0000
committerCaolán McNamara <caolanm@redhat.com>2018-11-15 18:45:01 +0100
commit21c41659969cba4dc50d3208fb1736032c971661 (patch)
treebb09fe49b432c2838eaae36af6b7d0b6161fc69e /sfx2/source/dialog
parent2e9ad89ee9c4f062b6e257548338b9e4c459f820 (diff)
Resolves: tdf#121415 font tab page has no name
Change-Id: I3ca6a8b58163fe5c84a306dd80dd7171f8540299 Reviewed-on: https://gerrit.libreoffice.org/63425 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sfx2/source/dialog')
-rw-r--r--sfx2/source/dialog/dinfdlg.cxx3
-rw-r--r--sfx2/source/dialog/tabdlg.cxx4
2 files changed, 6 insertions, 1 deletions
diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx
index 9199e25ba2e5..70f2a77e9116 100644
--- a/sfx2/source/dialog/dinfdlg.cxx
+++ b/sfx2/source/dialog/dinfdlg.cxx
@@ -1179,7 +1179,8 @@ void SfxDocumentInfoDialog::PageCreated( sal_uInt16 nId, SfxTabPage &rPage )
void SfxDocumentInfoDialog::AddFontTabPage()
{
- AddTabPage( FONT_PAGE_ID, SfxResId( STR_FONT_TABPAGE ), SfxDocumentFontsPage::Create);
+ AddTabPage(FONT_PAGE_ID, SfxResId(STR_FONT_TABPAGE), SfxDocumentFontsPage::Create);
+ SetPageName(FONT_PAGE_ID , "font");
}
// class CustomPropertiesYesNoButton -------------------------------------
diff --git a/sfx2/source/dialog/tabdlg.cxx b/sfx2/source/dialog/tabdlg.cxx
index 04e6f394d06e..1d5b3ecc3e8e 100644
--- a/sfx2/source/dialog/tabdlg.cxx
+++ b/sfx2/source/dialog/tabdlg.cxx
@@ -1363,6 +1363,10 @@ const sal_uInt16* SfxTabDialog::GetInputRanges( const SfxItemPool& rPool )
return m_pRanges.get();
}
+void SfxTabDialog::SetPageName(sal_uInt16 nPageId, const OString& rName) const
+{
+ m_pTabCtrl->SetPageName(nPageId, rName);
+}
void SfxTabDialog::SetInputSet( const SfxItemSet* pInSet )