summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-12-15 11:01:43 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-12-15 13:54:03 +0000
commitabdad61f123820ed72893a9c2a0d5305ea8386d5 (patch)
tree84353cf6e0e680687ca5434e248489cc8c046eeb /include
parentc0b59ad6e35b0cb0dea0821e95f95569739078c1 (diff)
Resolves: tdf#95138 add tooltips to calc tabbar
Change-Id: I870c5dc1b81c642c4c7b70de10ecb927758ae29a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144216 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/svtools/strings.hrc6
-rw-r--r--include/svtools/tabbar.hxx5
2 files changed, 9 insertions, 2 deletions
diff --git a/include/svtools/strings.hrc b/include/svtools/strings.hrc
index 3216a2e24c2d..96c3ef64e24a 100644
--- a/include/svtools/strings.hrc
+++ b/include/svtools/strings.hrc
@@ -181,6 +181,12 @@
#define STR_TABBAR_PUSHBUTTON_MOVETOEND NC_("STR_TABBAR_PUSHBUTTON_MOVETOEND", "Move To End")
#define STR_TABBAR_PUSHBUTTON_ADDTAB NC_("STR_TABBAR_PUSHBUTTON_ADDTAB", "Add")
+#define STR_TABBAR_HINT_MOVETOHOME_SHEETS NC_("STR_TABBAR_HINT_MOVETOHOME_SHEETS", "Scroll to first sheet")
+#define STR_TABBAR_HINT_MOVELEFT_SHEETS NC_("STR_TABBAR_HINT_MOVELEFT_SHEETS", "Scroll to previous sheet")
+#define STR_TABBAR_HINT_MOVERIGHT_SHEETS NC_("STR_TABBAR_HINT_MOVERIGHT_SHEETS", "Scroll to next sheet")
+#define STR_TABBAR_HINT_MOVETOEND_SHEETS NC_("STR_TABBAR_HINT_MOVETOEND_SHEETS", "Scroll to last sheet")
+#define STR_TABBAR_HINT_ADDTAB_SHEETS NC_("STR_TABBAR_HINT_ADDTAB_SHEETS", "Add sheet")
+
#define STR_SVT_ACC_RULER_HORZ_NAME NC_("STR_SVT_ACC_RULER_HORZ_NAME", "Horizontal Ruler")
#define STR_SVT_ACC_RULER_VERT_NAME NC_("STR_SVT_ACC_RULER_VERT_NAME", "Vertical Ruler")
diff --git a/include/svtools/tabbar.hxx b/include/svtools/tabbar.hxx
index 948e60b3596b..335779bdaef3 100644
--- a/include/svtools/tabbar.hxx
+++ b/include/svtools/tabbar.hxx
@@ -340,6 +340,7 @@ private:
bool mbInSelect : 1;
bool mbMirrored : 1;
bool mbScrollAlwaysEnabled : 1;
+ bool mbSheets;
Link<TabBar*,void> maSelectHdl;
Link<TabBar*,void> maSplitHdl;
@@ -347,7 +348,7 @@ private:
size_t maCurrentItemList;
using Window::ImplInit;
- SVT_DLLPRIVATE void ImplInit( WinBits nWinStyle );
+ SVT_DLLPRIVATE void ImplInit( WinBits nWinStyle, bool bSheets );
SVT_DLLPRIVATE void ImplInitSettings( bool bFont, bool bBackground );
SVT_DLLPRIVATE void ImplGetColors(const StyleSettings& rStyleSettings,
Color& rFaceColor, Color& rFaceTextColor,
@@ -382,7 +383,7 @@ public:
static const sal_uInt16 APPEND;
static const sal_uInt16 PAGE_NOT_FOUND;
- TabBar( vcl::Window* pParent, WinBits nWinStyle );
+ TabBar(vcl::Window* pParent, WinBits nWinStyle, bool bSheets = false);
virtual ~TabBar() override;
virtual void dispose() override;