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
8d956f9e
Kaydet (Commit)
8d956f9e
authored
Nis 19, 2013
tarafından
Andre Fischer
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
122104: Fixed selection of sidebar button.
üst
aa472da8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
15 deletions
+7
-15
SidebarController.cxx
sfx2/source/sidebar/SidebarController.cxx
+7
-15
No files found.
sfx2/source/sidebar/SidebarController.cxx
Dosyayı görüntüle @
8d956f9e
...
@@ -67,6 +67,7 @@ using namespace cssu;
...
@@ -67,6 +67,7 @@ using namespace cssu;
using
::
rtl
::
OUString
;
using
::
rtl
::
OUString
;
#undef VERBOSE
namespace
sfx2
{
namespace
sidebar
{
namespace
sfx2
{
namespace
sidebar
{
...
@@ -157,7 +158,6 @@ void SAL_CALL SidebarController::disposing (void)
...
@@ -157,7 +158,6 @@ void SAL_CALL SidebarController::disposing (void)
if
(
mpCurrentDeck
)
if
(
mpCurrentDeck
)
{
{
mpCurrentDeck
->
Dispose
();
mpCurrentDeck
->
Dispose
();
OSL_TRACE
(
"deleting deck window subtree"
);
mpCurrentDeck
->
PrintWindowTree
();
mpCurrentDeck
->
PrintWindowTree
();
mpCurrentDeck
.
reset
();
mpCurrentDeck
.
reset
();
}
}
...
@@ -264,7 +264,7 @@ void SidebarController::NotifyResize (void)
...
@@ -264,7 +264,7 @@ void SidebarController::NotifyResize (void)
mnSavedSidebarWidth
=
nWidth
;
mnSavedSidebarWidth
=
nWidth
;
RestrictWidth
();
RestrictWidth
();
#ifdef
DEBUG
#ifdef
VERBOSE
if
(
mpCurrentDeck
)
if
(
mpCurrentDeck
)
{
{
mpCurrentDeck
->
PrintWindowTree
();
mpCurrentDeck
->
PrintWindowTree
();
...
@@ -323,6 +323,10 @@ void SidebarController::UpdateConfigurations (const Context& rContext)
...
@@ -323,6 +323,10 @@ void SidebarController::UpdateConfigurations (const Context& rContext)
{
{
msCurrentDeckId
=
pDeckDescriptor
->
msId
;
msCurrentDeckId
=
pDeckDescriptor
->
msId
;
SwitchToDeck
(
*
pDeckDescriptor
,
rContext
);
SwitchToDeck
(
*
pDeckDescriptor
,
rContext
);
// Tell the tab bar to highlight the button associated
// with the deck.
mpTabBar
->
HighlightDeck
(
msCurrentDeckId
);
}
}
#ifdef DEBUG
#ifdef DEBUG
...
@@ -447,7 +451,6 @@ void SidebarController::SwitchToDeck (
...
@@ -447,7 +451,6 @@ void SidebarController::SwitchToDeck (
{
{
// Panel already exists in current deck. Reuse it.
// Panel already exists in current deck. Reuse it.
aNewPanels
[
nWriteIndex
]
=
*
iPanel
;
aNewPanels
[
nWriteIndex
]
=
*
iPanel
;
OSL_TRACE
(
" reusing panel %s"
,
S2A
(
rPanelContexDescriptor
.
msId
));
}
}
else
else
{
{
...
@@ -456,7 +459,6 @@ void SidebarController::SwitchToDeck (
...
@@ -456,7 +459,6 @@ void SidebarController::SwitchToDeck (
rPanelContexDescriptor
.
msId
,
rPanelContexDescriptor
.
msId
,
mpCurrentDeck
->
GetPanelParentWindow
(),
mpCurrentDeck
->
GetPanelParentWindow
(),
rPanelContexDescriptor
.
msMenuCommand
);
rPanelContexDescriptor
.
msMenuCommand
);
OSL_TRACE
(
" creating panel %s"
,
S2A
(
rPanelContexDescriptor
.
msId
));
bHasPanelSetChanged
=
true
;
bHasPanelSetChanged
=
true
;
}
}
if
(
aNewPanels
[
nWriteIndex
]
!=
NULL
)
if
(
aNewPanels
[
nWriteIndex
]
!=
NULL
)
...
@@ -479,10 +481,6 @@ void SidebarController::SwitchToDeck (
...
@@ -479,10 +481,6 @@ void SidebarController::SwitchToDeck (
mpCurrentDeck
->
SetPanels
(
aNewPanels
);
mpCurrentDeck
->
SetPanels
(
aNewPanels
);
mpCurrentDeck
->
Show
();
mpCurrentDeck
->
Show
();
// Tell the tab bar to highlight the button associated with the
// deck.
mpTabBar
->
HighlightDeck
(
rDeckDescriptor
.
msId
);
mpParentWindow
->
SetText
(
rDeckDescriptor
.
msTitle
);
mpParentWindow
->
SetText
(
rDeckDescriptor
.
msTitle
);
if
(
bHasPanelSetChanged
)
if
(
bHasPanelSetChanged
)
...
@@ -501,7 +499,7 @@ bool SidebarController::ArePanelSetsEqual (
...
@@ -501,7 +499,7 @@ bool SidebarController::ArePanelSetsEqual (
const
SharedPanelContainer
&
rCurrentPanels
,
const
SharedPanelContainer
&
rCurrentPanels
,
const
ResourceManager
::
PanelContextDescriptorContainer
&
rRequestedPanels
)
const
ResourceManager
::
PanelContextDescriptorContainer
&
rRequestedPanels
)
{
{
#ifdef
DEBUG
#ifdef
VERBOSE
OSL_TRACE
(
"current panel list:"
);
OSL_TRACE
(
"current panel list:"
);
for
(
SharedPanelContainer
::
const_iterator
for
(
SharedPanelContainer
::
const_iterator
iPanel
(
rCurrentPanels
.
begin
()),
iPanel
(
rCurrentPanels
.
begin
()),
...
@@ -547,12 +545,6 @@ SharedPanel SidebarController::CreatePanel (
...
@@ -547,12 +545,6 @@ SharedPanel SidebarController::CreatePanel (
if
(
pPanelDescriptor
==
NULL
)
if
(
pPanelDescriptor
==
NULL
)
return
SharedPanel
();
return
SharedPanel
();
#ifdef DEBUG
// Prevent the panel not being created in the same memory of an old panel.
::
boost
::
scoped_array
<
char
>
pUnused
(
new
char
[
sizeof
(
Panel
)]);
OSL_TRACE
(
"allocated memory at %x"
,
pUnused
.
get
());
#endif
// Create the panel which is the parent window of the UIElement.
// Create the panel which is the parent window of the UIElement.
SharedPanel
pPanel
(
new
Panel
(
SharedPanel
pPanel
(
new
Panel
(
*
pPanelDescriptor
,
*
pPanelDescriptor
,
...
...
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