summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/sfx2/tabdlg.hxx2
-rw-r--r--sfx2/source/dialog/tabdlg.cxx15
2 files changed, 17 insertions, 0 deletions
diff --git a/include/sfx2/tabdlg.hxx b/include/sfx2/tabdlg.hxx
index 8325722893a5..a79465163328 100644
--- a/include/sfx2/tabdlg.hxx
+++ b/include/sfx2/tabdlg.hxx
@@ -163,6 +163,8 @@ public:
return GetTabPage(m_pTabCtrl->GetCurPageId());
}
+ virtual OString GetScreenshotId() const override;
+
OUString GetPageText( sal_uInt16 nPageId ) const
{
return m_pTabCtrl->GetPageText(nPageId);
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 )