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
4073afa3
Kaydet (Commit)
4073afa3
authored
May 07, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Resolves: tdf#72007: on switching decks keep our left indent, don't assume 0
Change-Id: I878c999611e1294d5107f1cf2c000d9ed5f88cb1
üst
0776b33f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
53 deletions
+37
-53
SidebarController.cxx
sfx2/source/sidebar/SidebarController.cxx
+37
-53
No files found.
sfx2/source/sidebar/SidebarController.cxx
Dosyayı görüntüle @
4073afa3
...
...
@@ -324,62 +324,33 @@ void SidebarController::NotifyResize()
if
(
mpCurrentDeck
)
{
SfxSplitWindow
*
pSplitWindow
=
GetSplitWindow
();
if
(
pSplitWindow
)
//in sidebar mode
WindowAlign
eAlign
=
pSplitWindow
?
pSplitWindow
->
GetAlign
()
:
WINDOWALIGN_LEFT
;
long
nDeckX
,
nTabX
;
if
(
eAlign
==
WINDOWALIGN_LEFT
)
// attach the Sidebar towards the left-side of screen
{
// Find out that which side of the Window do we need to attach the Sidebar?
if
(
pSplitWindow
->
GetAlign
()
==
WINDOWALIGN_RIGHT
)
// attach the Sidebar towards the right-side of screen
{
// Place the deck first.
{
if
(
bIsDeckVisible
)
{
mpCurrentDeck
->
setPosSizePixel
(
0
,
0
,
nWidth
-
nTabBarDefaultWidth
,
nHeight
);
mpCurrentDeck
->
Show
();
mpCurrentDeck
->
RequestLayout
();
}
else
mpCurrentDeck
->
Hide
();
}
// Now place the tab bar.
mpTabBar
->
setPosSizePixel
(
nWidth
-
nTabBarDefaultWidth
,
0
,
nTabBarDefaultWidth
,
nHeight
);
mpTabBar
->
Show
();
}
else
if
(
pSplitWindow
->
GetAlign
()
==
WINDOWALIGN_LEFT
)
// attach the Sidebar towards the left-side of screen
{
// Place the tab bar first.
mpTabBar
->
setPosSizePixel
(
0
,
0
,
nTabBarDefaultWidth
,
nHeight
);
mpTabBar
->
Show
();
// Now place the deck.
if
(
bIsDeckVisible
)
{
mpCurrentDeck
->
setPosSizePixel
(
nTabBarDefaultWidth
,
0
,
nWidth
-
nTabBarDefaultWidth
,
nHeight
);
mpCurrentDeck
->
Show
();
mpCurrentDeck
->
RequestLayout
();
}
else
mpCurrentDeck
->
Hide
();
}
nDeckX
=
nTabBarDefaultWidth
;
nTabX
=
0
;
}
else
//floating window mode
else
// attach the Sidebar towards the right-side of screen
{
// Place the deck first.
{
if
(
bIsDeckVisible
)
{
mpCurrentDeck
->
setPosSizePixel
(
0
,
0
,
nWidth
-
nTabBarDefaultWidth
,
nHeight
);
mpCurrentDeck
->
Show
();
mpCurrentDeck
->
RequestLayout
();
}
else
mpCurrentDeck
->
Hide
();
}
nDeckX
=
0
;
nTabX
=
nWidth
-
nTabBarDefaultWidth
;
}
// Now place the tab bar.
mpTabBar
->
setPosSizePixel
(
nWidth
-
nTabBarDefaultWidth
,
0
,
nTabBarDefaultWidth
,
nHeight
);
mpTabBar
->
Show
();
// Place the deck first.
if
(
bIsDeckVisible
)
{
mpCurrentDeck
->
setPosSizePixel
(
nDeckX
,
0
,
nWidth
-
nTabBarDefaultWidth
,
nHeight
);
mpCurrentDeck
->
Show
();
mpCurrentDeck
->
RequestLayout
();
}
else
mpCurrentDeck
->
Hide
();
// Now place the tab bar.
mpTabBar
->
setPosSizePixel
(
nTabX
,
0
,
nTabBarDefaultWidth
,
nHeight
);
mpTabBar
->
Show
();
}
// Determine if the closer of the deck can be shown.
...
...
@@ -658,11 +629,24 @@ void SidebarController::SwitchToDeck (
// mpCurrentPanels - may miss stuff (?)
aNewPanels
.
resize
(
nWriteIndex
);
SfxSplitWindow
*
pSplitWindow
=
GetSplitWindow
();
sal_Int32
nTabBarDefaultWidth
=
TabBar
::
GetDefaultWidth
()
*
mpTabBar
->
GetDPIScaleFactor
();
WindowAlign
eAlign
=
pSplitWindow
?
pSplitWindow
->
GetAlign
()
:
WINDOWALIGN_LEFT
;
long
nDeckX
;
if
(
eAlign
==
WINDOWALIGN_LEFT
)
// attach the Sidebar towards the left-side of screen
{
nDeckX
=
nTabBarDefaultWidth
;
}
else
// attach the Sidebar towards the right-side of screen
{
nDeckX
=
0
;
}
// Activate the deck and the new set of panels.
mpCurrentDeck
->
setPosSizePixel
(
nDeckX
,
0
,
0
,
mpParentWindow
->
GetSizePixel
().
Width
()
-
TabBar
::
GetDefaultWidth
()
*
mpTabBar
->
GetDPIScaleFactor
(),
mpParentWindow
->
GetSizePixel
().
Width
()
-
nTabBarDefaultWidth
,
mpParentWindow
->
GetSizePixel
().
Height
());
mpCurrentDeck
->
ResetPanels
(
aNewPanels
);
...
...
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