summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/inc/sfx2/tabdlg.hxx1
-rw-r--r--sfx2/source/dialog/tabdlg.cxx5
2 files changed, 6 insertions, 0 deletions
diff --git a/sfx2/inc/sfx2/tabdlg.hxx b/sfx2/inc/sfx2/tabdlg.hxx
index e63718735667..435a4158d0b0 100644
--- a/sfx2/inc/sfx2/tabdlg.hxx
+++ b/sfx2/inc/sfx2/tabdlg.hxx
@@ -183,6 +183,7 @@ public:
sal_Bool bItemsOnDemand = sal_False,
sal_uInt16 nPos = TAB_APPEND);
+ void RemoveTabPage( const OString& rName ); // Name of the label for the page in the notebook .ui
void RemoveTabPage( sal_uInt16 nId );
void SetCurPageId(sal_uInt16 nId)
diff --git a/sfx2/source/dialog/tabdlg.cxx b/sfx2/source/dialog/tabdlg.cxx
index 41b16d64bb51..bec9cc1a4ee7 100644
--- a/sfx2/source/dialog/tabdlg.cxx
+++ b/sfx2/source/dialog/tabdlg.cxx
@@ -987,6 +987,11 @@ void SfxTabDialog::RemoveTabPage( sal_uInt16 nId )
}
}
+void SfxTabDialog::RemoveTabPage(const OString &rName)
+{
+ RemoveTabPage(m_pTabCtrl->GetPageId(rName));
+}
+
// -----------------------------------------------------------------------
void SfxTabDialog::PageCreated