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
1e6ccc7f
Kaydet (Commit)
1e6ccc7f
authored
May 22, 2014
tarafından
Thomas Arnhold
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
cppcheck: Function parameter 'aFocusLocation' should be passed by reference
Change-Id: I2d2b9ae3ea81bd725be2af460f6c57bd0897883c
üst
058cd961
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
FocusManager.cxx
sfx2/source/sidebar/FocusManager.cxx
+9
-9
FocusManager.hxx
sfx2/source/sidebar/FocusManager.hxx
+2
-2
No files found.
sfx2/source/sidebar/FocusManager.cxx
Dosyayı görüntüle @
1e6ccc7f
...
...
@@ -370,25 +370,25 @@ void FocusManager::RemoveWindow (Window& rWindow)
bool
FocusManager
::
MoveFocusInsidePanel
(
const
FocusLocation
a
FocusLocation
,
const
FocusLocation
&
r
FocusLocation
,
const
sal_Int32
nDirection
)
{
const
bool
bHasToolBoxItem
(
maPanels
[
a
FocusLocation
.
mnIndex
]
->
GetTitleBar
()
->
GetToolBox
().
GetItemCount
()
>
0
);
switch
(
a
FocusLocation
.
meComponent
)
maPanels
[
r
FocusLocation
.
mnIndex
]
->
GetTitleBar
()
->
GetToolBox
().
GetItemCount
()
>
0
);
switch
(
r
FocusLocation
.
meComponent
)
{
case
PC_PanelTitle
:
if
(
nDirection
>
0
&&
bHasToolBoxItem
)
maPanels
[
a
FocusLocation
.
mnIndex
]
->
GetTitleBar
()
->
GetToolBox
().
GrabFocus
();
maPanels
[
r
FocusLocation
.
mnIndex
]
->
GetTitleBar
()
->
GetToolBox
().
GrabFocus
();
else
FocusPanelContent
(
a
FocusLocation
.
mnIndex
);
FocusPanelContent
(
r
FocusLocation
.
mnIndex
);
return
true
;
case
PC_PanelToolBox
:
if
(
nDirection
<
0
&&
bHasToolBoxItem
)
maPanels
[
a
FocusLocation
.
mnIndex
]
->
GetTitleBar
()
->
GrabFocus
();
maPanels
[
r
FocusLocation
.
mnIndex
]
->
GetTitleBar
()
->
GrabFocus
();
else
FocusPanelContent
(
a
FocusLocation
.
mnIndex
);
FocusPanelContent
(
r
FocusLocation
.
mnIndex
);
return
true
;
default
:
...
...
@@ -400,7 +400,7 @@ bool FocusManager::MoveFocusInsidePanel (
bool
FocusManager
::
MoveFocusInsideDeckTitle
(
const
FocusLocation
a
FocusLocation
,
const
FocusLocation
&
r
FocusLocation
,
const
sal_Int32
nDirection
)
{
// Note that when the title bar of the first (and only) panel is
...
...
@@ -409,7 +409,7 @@ bool FocusManager::MoveFocusInsideDeckTitle (
// of panel 0.
const
bool
bHasToolBoxItem
(
mpDeckTitleBar
->
GetToolBox
().
GetItemCount
()
>
0
);
switch
(
a
FocusLocation
.
meComponent
)
switch
(
r
FocusLocation
.
meComponent
)
{
case
PC_DeckTitle
:
if
(
nDirection
<
0
&&
!
IsPanelTitleVisible
(
0
))
...
...
sfx2/source/sidebar/FocusManager.hxx
Dosyayı görüntüle @
1e6ccc7f
...
...
@@ -134,10 +134,10 @@ private:
void
FocusButton
(
const
sal_Int32
nButtonIndex
);
void
ClickButton
(
const
sal_Int32
nButtonIndex
);
bool
MoveFocusInsidePanel
(
const
FocusLocation
a
Location
,
const
FocusLocation
&
r
Location
,
const
sal_Int32
nDirection
);
bool
MoveFocusInsideDeckTitle
(
const
FocusLocation
a
Location
,
const
FocusLocation
&
r
Location
,
const
sal_Int32
nDirection
);
void
HandleKeyEvent
(
...
...
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