summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2014-02-07 12:10:47 +0100
committerJan Holesovsky <kendy@collabora.com>2014-02-07 12:11:50 +0100
commitb29c078c7f193dd7dae74baf89fe1abb9264239c (patch)
tree3cdcfd16017f0be34f4e17ca3fd4f60f1b038fac /include
parentbd20500cf3d88d0bd81d7e57df01b0130e7166f6 (diff)
Convert template manager dialog to .ui + adapt code.
Change-Id: I854abb47c2d22206ed5581373b3e841f221672e3
Diffstat (limited to 'include')
-rw-r--r--include/sfx2/templatelocnames.hrc2
-rw-r--r--include/vcl/toolbox.hxx13
2 files changed, 12 insertions, 3 deletions
diff --git a/include/sfx2/templatelocnames.hrc b/include/sfx2/templatelocnames.hrc
index dd4473010200..df1582fa1127 100644
--- a/include/sfx2/templatelocnames.hrc
+++ b/include/sfx2/templatelocnames.hrc
@@ -8,7 +8,7 @@
*/
#define NUM_TEMPLATE_NAMES 10
-#define TEMPL_LOC_OFFSET 2190
+#define TEMPL_LOC_OFFSET 2210
#define STR_TEMPLATE_NAME1_DEF (TEMPL_LOC_OFFSET + 1)
#define STR_TEMPLATE_NAME2_DEF (TEMPL_LOC_OFFSET + 2)
diff --git a/include/vcl/toolbox.hxx b/include/vcl/toolbox.hxx
index b0901488e6b9..9c90abb25552 100644
--- a/include/vcl/toolbox.hxx
+++ b/include/vcl/toolbox.hxx
@@ -429,8 +429,17 @@ public:
sal_Bool IsItemEnabled( sal_uInt16 nItemId ) const;
void TriggerItem( sal_uInt16 nItemId, sal_Bool bShift = sal_False, sal_Bool bCtrl = sal_False );
- void ShowItem( sal_uInt16 nItemId, sal_Bool bVisible = sal_True );
- void HideItem( sal_uInt16 nItemId ) { ShowItem( nItemId, sal_False ); }
+
+ /// Shows or hides items.
+ void ShowItem(sal_uInt16 nItemId, sal_Bool bVisible = sal_True);
+ /// Overload to provide ShowItem via command id.
+ void ShowItem(const OUString& rCommand, bool bVisible = true) { ShowItem(GetItemId(rCommand), bVisible); }
+
+ /// Convenience method to hide items (via ShowItem).
+ void HideItem(sal_uInt16 nItemId) { ShowItem( nItemId, sal_False ); }
+ /// Overload to provide HideItem via command id.
+ void HideItem(const OUString& rCommand) { ShowItem(rCommand, false); }
+
sal_Bool IsItemVisible( sal_uInt16 nItemId ) const;
sal_Bool IsItemReallyVisible( sal_uInt16 nItemId ) const;