summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
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 )