From 2953db9564b76a7aa28fe86aacc641c66f4a3ec0 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 9 Oct 2019 09:57:48 +0100 Subject: screenshot each page separately MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I48a0882162075133597ecdd5512a310f8e0bf0d0 Reviewed-on: https://gerrit.libreoffice.org/80533 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- sfx2/source/dialog/tabdlg.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'sfx2') 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(); } -- cgit