diff options
author | Katarina Behrens <Katarina.Behrens@cib.de> | 2016-06-10 11:14:02 +0200 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2016-06-16 10:05:02 +0000 |
commit | 9f9c2a2703a338ec18309ff382703ab8b517b6dc (patch) | |
tree | 44f598734e664e821f9ad4562360f864253f8c39 /sfx2 | |
parent | b35d662fc092c250a01fb80d07780ce7da7262e9 (diff) |
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.cxx | 15 |
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 ) |