summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-04-23 10:06:24 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-04-23 17:27:30 +0200
commit32a10a772d07fc12e5b1332925b8d53c7ab8e928 (patch)
treeef4503df2fecd131fc3b91c4f651179fdb351329 /sfx2
parent024b7a23ec854155047ea234911bffa99457694a (diff)
move GetConfigId from TabPage to SfxTabPage
Change-Id: Id2c687c2270cb1c2419cc6664200292b2740d0a4 Reviewed-on: https://gerrit.libreoffice.org/53325 Tested-by: Jenkins <ci@libreoffice.org> 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.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/sfx2/source/dialog/tabdlg.cxx b/sfx2/source/dialog/tabdlg.cxx
index c63a62e3fdc5..ff5c508efdf9 100644
--- a/sfx2/source/dialog/tabdlg.cxx
+++ b/sfx2/source/dialog/tabdlg.cxx
@@ -312,6 +312,13 @@ SfxTabDialog* SfxTabPage::GetTabDialog() const
return dynamic_cast<SfxTabDialog*>(GetParentDialog());
}
+OString SfxTabPage::GetConfigId() const
+{
+ OString sId(GetHelpId());
+ if (sId.isEmpty() && isLayoutEnabled(this))
+ sId = GetWindow(GetWindowType::FirstChild)->GetHelpId();
+ return sId;
+}
SfxTabDialog::SfxTabDialog