summaryrefslogtreecommitdiff
path: root/include/svtools
diff options
context:
space:
mode:
authorUlrich Gemkow <lobugs@ikr.uni-stuttgart.de>2017-08-20 21:36:14 +0200
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2017-09-04 02:10:20 +0200
commitabe958a713ff0c26a3f91c558a2f227c1996c592 (patch)
tree996d9839f9d036eb0ee9d78dd68c9df4fcc6bc47 /include/svtools
parent52c25a628d6cd300a0ff29f3c31e3528e3c4f8e1 (diff)
tdf#89130 Draw: Better UI for handling layer attributes
This is a RFC to implement comment#2 in tdf#89130: Add shortcuts to change layer attributes and make the current attribute values visible in the tab layer name. Already implemented is that pressing LeftMouse+Shift toggles layer visibility. When a layer is not visible its name is displayed in blue. This patch adds that pressing LeftMouse+Ctrl toggles layer locked/unlocked and LeftMouse+Ctrl+Shift toggles layer printable/not printable. The name of a locked layer is displayed italic. The name of a nonprintable layer is underlined. This also adds an Undo action for all changes to mirror the behavior of the layer attribute change dialog box. Change-Id: I5d8fa0585d4f088768716956583e324e66e29602 Reviewed-on: https://gerrit.libreoffice.org/41366 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'include/svtools')
-rw-r--r--include/svtools/tabbar.hxx15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/svtools/tabbar.hxx b/include/svtools/tabbar.hxx
index 8cef7ff434d6..766ac7d4744f 100644
--- a/include/svtools/tabbar.hxx
+++ b/include/svtools/tabbar.hxx
@@ -52,6 +52,13 @@ Setting page bits modify the display attributes of the tab name
TPB_DISPLAY_NAME_BLUE
- Display tab name in light blue, used in draw for
invisible layers and in calc for scenario pages
+TPB_DISPLAY_NAME_ITALIC
+ - Display tab name italic, used in draw for
+ locked layers
+TPB_DISPLAY_NAME_UNDERLINE
+ - Display tab name underlined, used in draw for
+ non-printable layers
+
Handlers
-------
@@ -267,9 +274,17 @@ class Button;
#define WB_INSERTTAB ((WinBits)0x40000000)
#define WB_STDTABBAR WB_BORDER
+// Page bits
+
typedef sal_uInt16 TabBarPageBits;
#define TPB_DISPLAY_NAME_BLUE ((TabBarPageBits)0x0001)
+#define TPB_DISPLAY_NAME_ITALIC ((TabBarPageBits)0x0002)
+#define TPB_DISPLAY_NAME_UNDERLINE ((TabBarPageBits)0x0004)
+
+ // interface checks only, do not use in regular control flow
+
+#define TPB_DISPLAY_NAME_ALLFLAGS ((TabBarPageBits)(TPB_DISPLAY_NAME_BLUE | TPB_DISPLAY_NAME_ITALIC | TPB_DISPLAY_NAME_UNDERLINE))
// - TabBar-Types - used in TabBar::AllowRenaming