summaryrefslogtreecommitdiffstats
path: root/sfx2
diff options
context:
space:
mode:
authorKatarina Behrens <Katarina.Behrens@cib.de>2016-06-10 11:14:02 +0200
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2016-06-16 10:05:02 +0000
commit9f9c2a2703a338ec18309ff382703ab8b517b6dc (patch)
tree44f598734e664e821f9ad4562360f864253f8c39 /sfx2
parentUpdated core (diff)
downloadcore-9f9c2a2703a338ec18309ff382703ab8b517b6dc.tar.gz
core-9f9c2a2703a338ec18309ff382703ab8b517b6dc.zip
tdf#100068: ScreenshotId for tab dialogs
Change-Id: I80ec2cef190d106bb45455424a6a0ed901590221 Reviewed-on: https://gerrit.libreoffice.org/26155 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/dialog/tabdlg.cxx15
1 files changed, 15 insertions, 0 deletions
diff --git a/sfx2/source/dialog/tabdlg.cxx b/sfx2/source/dialog/tabdlg.cxx
index c5be37865e7f..d112680ec36e 100644
--- a/sfx2/source/dialog/tabdlg.cxx
+++ b/sfx2/source/dialog/tabdlg.cxx
@@ -1223,6 +1223,21 @@ void SfxTabDialog::ShowPage( sal_uInt16 nId )
ActivatePageHdl( m_pTabCtrl );
}
+OString SfxTabDialog::GetScreenshotId() const
+{
+ SfxTabPage *pActiveTabPage = GetCurTabPage();
+ OString aScreenshotId = GetHelpId();
+
+ if ( pActiveTabPage )
+ {
+ vcl::Window* pToplevelBox = pActiveTabPage->GetWindow( GetWindowType::FirstChild );
+
+ if ( pToplevelBox )
+ aScreenshotId = aScreenshotId + OString("#") + pToplevelBox->GetHelpId();
+ }
+
+ return aScreenshotId;
+}
const sal_uInt16* SfxTabDialog::GetInputRanges( const SfxItemPool& rPool )