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
fd88318c
Kaydet (Commit)
fd88318c
authored
Ara 01, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
WaE: -Werror=switch
Change-Id: Ib29d9c377bad2ba6dfb771b74cc97dcffe768dcb
üst
542120c3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
36 deletions
+38
-36
CondFormat.cxx
reportdesign/source/ui/dlg/CondFormat.cxx
+38
-36
No files found.
reportdesign/source/ui/dlg/CondFormat.cxx
Dosyayı görüntüle @
fd88318c
...
...
@@ -472,49 +472,51 @@ namespace rptui
{
switch
(
_rNEvt
.
GetType
()
)
{
case
MouseNotifyEvent
:
:
KEYINPUT
:
{
const
KeyEvent
*
pKeyEvent
(
_rNEvt
.
GetKeyEvent
()
);
const
vcl
::
KeyCode
&
rKeyCode
=
pKeyEvent
->
GetKeyCode
();
if
(
rKeyCode
.
IsMod1
()
&&
rKeyCode
.
IsMod2
()
)
case
MouseNotifyEvent
:
:
KEYINPUT
:
{
if
(
rKeyCode
.
GetCode
()
==
0x0508
)
{
impl_deleteCondition_nothrow
(
impl_getFocusedConditionIndex
(
0
)
);
return
true
;
}
if
(
rKeyCode
.
GetCode
()
==
0x0507
)
// +
const
KeyEvent
*
pKeyEvent
(
_rNEvt
.
GetKeyEvent
()
);
const
vcl
::
KeyCode
&
rKeyCode
=
pKeyEvent
->
GetKeyCode
();
if
(
rKeyCode
.
IsMod1
()
&&
rKeyCode
.
IsMod2
()
)
{
impl_addCondition_nothrow
(
impl_getFocusedConditionIndex
(
impl_getConditionCount
()
-
1
)
+
1
);
return
true
;
if
(
rKeyCode
.
GetCode
()
==
0x0508
)
{
impl_deleteCondition_nothrow
(
impl_getFocusedConditionIndex
(
0
)
);
return
true
;
}
if
(
rKeyCode
.
GetCode
()
==
0x0507
)
// +
{
impl_addCondition_nothrow
(
impl_getFocusedConditionIndex
(
impl_getConditionCount
()
-
1
)
+
1
);
return
true
;
}
}
}
}
break
;
case
MouseNotifyEvent
:
:
GETFOCUS
:
{
if
(
m_bDeletingCondition
)
break
;
const
vcl
::
Window
*
pGetFocusWindow
(
_rNEvt
.
GetWindow
()
);
// determine whether the new focus window is part of an (currently invisible) condition
const
vcl
::
Window
*
pConditionCandidate
=
pGetFocusWindow
->
GetParent
();
const
vcl
::
Window
*
pPlaygroundCandidate
=
pConditionCandidate
?
pConditionCandidate
->
GetParent
()
:
NULL
;
while
(
(
pPlaygroundCandidate
)
&&
(
pPlaygroundCandidate
!=
this
)
&&
(
pPlaygroundCandidate
!=
m_pConditionPlayground
)
)
{
pConditionCandidate
=
pConditionCandidate
->
GetParent
();
pPlaygroundCandidate
=
pConditionCandidate
?
pConditionCandidate
->
GetParent
()
:
NULL
;
}
if
(
pConditionCandidate
&&
pPlaygroundCandidate
==
m_pConditionPlayground
)
case
MouseNotifyEvent
:
:
GETFOCUS
:
{
impl_ensureConditionVisible
(
dynamic_cast
<
const
Condition
&
>
(
*
pConditionCandidate
).
getConditionIndex
()
);
if
(
m_bDeletingCondition
)
break
;
const
vcl
::
Window
*
pGetFocusWindow
(
_rNEvt
.
GetWindow
()
);
// determine whether the new focus window is part of an (currently invisible) condition
const
vcl
::
Window
*
pConditionCandidate
=
pGetFocusWindow
->
GetParent
();
const
vcl
::
Window
*
pPlaygroundCandidate
=
pConditionCandidate
?
pConditionCandidate
->
GetParent
()
:
NULL
;
while
(
(
pPlaygroundCandidate
)
&&
(
pPlaygroundCandidate
!=
this
)
&&
(
pPlaygroundCandidate
!=
m_pConditionPlayground
)
)
{
pConditionCandidate
=
pConditionCandidate
->
GetParent
();
pPlaygroundCandidate
=
pConditionCandidate
?
pConditionCandidate
->
GetParent
()
:
NULL
;
}
if
(
pConditionCandidate
&&
pPlaygroundCandidate
==
m_pConditionPlayground
)
{
impl_ensureConditionVisible
(
dynamic_cast
<
const
Condition
&
>
(
*
pConditionCandidate
).
getConditionIndex
()
);
}
break
;
}
}
break
;
default
:
break
;
}
return
ModalDialog
::
PreNotify
(
_rNEvt
);
...
...
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