Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
7a87509d
Kaydet (Commit)
7a87509d
authored
Ara 08, 2018
tarafından
Ashod Nakashian
Kaydeden (comit)
Jan Holesovsky
Nis 30, 2019
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sfx: LOK: no sidebar tabbar
Change-Id: I210df42fec4404ed9629c9b1c24c78b680212214
üst
5c726cdc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
dockwin.hxx
include/sfx2/dockwin.hxx
+1
-1
SidebarController.cxx
sfx2/source/sidebar/SidebarController.cxx
+9
-5
No files found.
include/sfx2/dockwin.hxx
Dosyayı görüntüle @
7a87509d
...
@@ -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
;
}
...
...
sfx2/source/sidebar/SidebarController.cxx
Dosyayı görüntüle @
7a87509d
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment