Kaydet (Commit) 7a87509d authored tarafından Ashod Nakashian's avatar Ashod Nakashian Kaydeden (comit) Jan Holesovsky

sfx: LOK: no sidebar tabbar

Change-Id: I210df42fec4404ed9629c9b1c24c78b680212214
üst 5c726cdc
...@@ -91,7 +91,7 @@ public: ...@@ -91,7 +91,7 @@ public:
const tools::Rectangle& GetInnerRect() const { return aInnerRect; } const tools::Rectangle& GetInnerRect() const { return aInnerRect; }
const tools::Rectangle& GetOuterRect() const { return aOuterRect; } const tools::Rectangle& GetOuterRect() const { return aOuterRect; }
SfxBindings& GetBindings() const { return *pBindings; } SfxBindings& GetBindings() const { return *pBindings; }
sal_uInt16 GetType() const { return pMgr->GetType(); } sal_uInt16 GetType() const { return pMgr->GetType(); }
SfxChildAlignment GetAlignment() const { return pMgr->GetAlignment(); } SfxChildAlignment GetAlignment() const { return pMgr->GetAlignment(); }
void SetAlignment(SfxChildAlignment eAlign) { pMgr->SetAlignment(eAlign); } void SetAlignment(SfxChildAlignment eAlign) { pMgr->SetAlignment(eAlign); }
const Size& GetFloatingSize() const { return aFloatSize; } const Size& GetFloatingSize() const { return aFloatSize; }
......
...@@ -348,7 +348,7 @@ void SidebarController::NotifyResize() ...@@ -348,7 +348,7 @@ void SidebarController::NotifyResize()
} }
vcl::Window* pParentWindow = mpTabBar->GetParent(); vcl::Window* pParentWindow = mpTabBar->GetParent();
sal_Int32 nTabBarDefaultWidth = TabBar::GetDefaultWidth() * mpTabBar->GetDPIScaleFactor(); const sal_Int32 nTabBarDefaultWidth = TabBar::GetDefaultWidth() * mpTabBar->GetDPIScaleFactor();
const sal_Int32 nWidth (pParentWindow->GetSizePixel().Width()); const sal_Int32 nWidth (pParentWindow->GetSizePixel().Width());
const sal_Int32 nHeight (pParentWindow->GetSizePixel().Height()); const sal_Int32 nHeight (pParentWindow->GetSizePixel().Height());
...@@ -380,13 +380,17 @@ void SidebarController::NotifyResize() ...@@ -380,13 +380,17 @@ void SidebarController::NotifyResize()
else // attach the Sidebar towards the right-side of screen else // attach the Sidebar towards the right-side of screen
{ {
nDeckX = 0; nDeckX = 0;
nTabX = nWidth-nTabBarDefaultWidth; nTabX = nWidth - nTabBarDefaultWidth;
} }
// Place the deck first. // Place the deck first.
if (bIsDeckVisible) if (bIsDeckVisible)
{ {
mpCurrentDeck->setPosSizePixel(nDeckX, 0, nWidth - nTabBarDefaultWidth, nHeight); // No TabBar in LOK.
if (comphelper::LibreOfficeKit::isActive())
mpCurrentDeck->setPosSizePixel(nDeckX, 0, nWidth, nHeight);
else
mpCurrentDeck->setPosSizePixel(nDeckX, 0, nWidth - nTabBarDefaultWidth, nHeight);
mpCurrentDeck->Show(); mpCurrentDeck->Show();
mpCurrentDeck->RequestLayout(); mpCurrentDeck->RequestLayout();
} }
...@@ -395,8 +399,8 @@ void SidebarController::NotifyResize() ...@@ -395,8 +399,8 @@ void SidebarController::NotifyResize()
// Now place the tab bar. // Now place the tab bar.
mpTabBar->setPosSizePixel(nTabX, 0, nTabBarDefaultWidth, nHeight); mpTabBar->setPosSizePixel(nTabX, 0, nTabBarDefaultWidth, nHeight);
mpTabBar->Show(); if (!comphelper::LibreOfficeKit::isActive())
mpTabBar->Show(); // Don't show TabBar in LOK.
} }
// Determine if the closer of the deck can be shown. // Determine if the closer of the deck can be shown.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment