summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-10-09 09:57:48 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-10-09 16:30:36 +0200
commit2953db9564b76a7aa28fe86aacc641c66f4a3ec0 (patch)
tree9ec2e9fdf04bc8c28a50fbad90e6381991eb6ee0 /sfx2
parent261fa8cdf4626c9785e0ca4776e44eab4b9222e0 (diff)
screenshot each page separately
Change-Id: I48a0882162075133597ecdd5512a310f8e0bf0d0 Reviewed-on: https://gerrit.libreoffice.org/80533 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.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/sfx2/source/dialog/tabdlg.cxx b/sfx2/source/dialog/tabdlg.cxx
index aaa688347b1b..8fa63e500ab8 100644
--- a/sfx2/source/dialog/tabdlg.cxx
+++ b/sfx2/source/dialog/tabdlg.cxx
@@ -1156,6 +1156,15 @@ BitmapEx SfxTabDialogController::createScreenshot() const
OString SfxTabDialogController::GetScreenshotId() const
{
+ const OString sId = m_xTabCtrl->get_current_page_ident();
+ Data_Impl* pDataObject = Find(m_pImpl->aData, sId);
+ SfxTabPage* pPage = pDataObject ? pDataObject->xTabPage.get() : nullptr;
+ if (pPage)
+ {
+ OString sHelpId(pPage->GetHelpId());
+ if (!sHelpId.isEmpty())
+ return sHelpId;
+ }
return m_xDialog->get_help_id();
}