summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2015-08-11 02:09:25 +0300
committerMaxim Monastirsky <momonasmon@gmail.com>2015-08-11 02:25:27 +0300
commite98cf0c63d6c48ca7c1db87d7413d5c419690c76 (patch)
tree9224162c4469e7e1aa3d5eed98cece1ba1da7428 /include
parent066f3132effa9017fe9127e9d311d6ae88d0c729 (diff)
Related: tdf#78111 Try to guard against too wide panel layouts
The sidebar has width limit, so a panel shouldn't attempt to resize more than that. Otherwise we'll get an endless loop. Change-Id: Ia36535637e3585595c673c7fc46a1a7b162b74ba
Diffstat (limited to 'include')
-rw-r--r--include/sfx2/sidebar/SidebarController.hxx2
-rw-r--r--include/sfx2/sidebar/TabBar.hxx2
2 files changed, 3 insertions, 1 deletions
diff --git a/include/sfx2/sidebar/SidebarController.hxx b/include/sfx2/sidebar/SidebarController.hxx
index 00a53b350457..d3aabbc8c2ba 100644
--- a/include/sfx2/sidebar/SidebarController.hxx
+++ b/include/sfx2/sidebar/SidebarController.hxx
@@ -122,6 +122,8 @@ public:
const static sal_Int32 SwitchFlag_ForceNewDeck = 0x02;
const static sal_Int32 SwitchFlag_ForceNewPanels = 0x02;
+ const static sal_Int32 gnMaximumSidebarWidth = 400;
+
void OpenThenSwitchToDeck (
const ::rtl::OUString& rsDeckId);
diff --git a/include/sfx2/sidebar/TabBar.hxx b/include/sfx2/sidebar/TabBar.hxx
index 2a8d7f9b3fff..3dcf7910e464 100644
--- a/include/sfx2/sidebar/TabBar.hxx
+++ b/include/sfx2/sidebar/TabBar.hxx
@@ -46,7 +46,7 @@ class SidebarController;
/** The tab bar is the container for the individual tabs.
*/
-class TabBar
+class SFX2_DLLPUBLIC TabBar
: public vcl::Window
{
public: