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
83a597af
Kaydet (Commit)
83a597af
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: Ic5b7f1da92ac5a936857fe122cb8db0441b6d291
üst
2dc8ed69
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
40 deletions
+15
-40
ebbcontrols.cxx
svtools/source/brwbox/ebbcontrols.cxx
+5
-24
editbrowsebox.cxx
svtools/source/brwbox/editbrowsebox.cxx
+4
-4
fileurlbox.cxx
svtools/source/control/fileurlbox.cxx
+4
-5
addresstemplate.cxx
svtools/source/dialogs/addresstemplate.cxx
+2
-7
No files found.
svtools/source/brwbox/ebbcontrols.cxx
Dosyayı görüntüle @
83a597af
...
@@ -52,10 +52,7 @@ namespace svt
...
@@ -52,10 +52,7 @@ namespace svt
bool
ComboBoxControl
::
PreNotify
(
NotifyEvent
&
rNEvt
)
bool
ComboBoxControl
::
PreNotify
(
NotifyEvent
&
rNEvt
)
{
{
switch
(
rNEvt
.
GetType
())
if
(
rNEvt
.
GetType
()
==
MouseNotifyEvent
::
KEYINPUT
&&
!
IsInDropDown
())
{
case
MouseNotifyEvent
:
:
KEYINPUT
:
if
(
!
IsInDropDown
())
{
{
const
KeyEvent
*
pEvt
=
rNEvt
.
GetKeyEvent
();
const
KeyEvent
*
pEvt
=
rNEvt
.
GetKeyEvent
();
const
vcl
::
KeyCode
rKey
=
pEvt
->
GetKeyCode
();
const
vcl
::
KeyCode
rKey
=
pEvt
->
GetKeyCode
();
...
@@ -74,15 +71,10 @@ namespace svt
...
@@ -74,15 +71,10 @@ namespace svt
return
true
;
return
true
;
}
}
}
}
break
;
}
return
ComboBox
::
PreNotify
(
rNEvt
);
return
ComboBox
::
PreNotify
(
rNEvt
);
}
}
//= ComboBoxCellController
//= ComboBoxCellController
ComboBoxCellController
::
ComboBoxCellController
(
ComboBoxControl
*
pWin
)
ComboBoxCellController
::
ComboBoxCellController
(
ComboBoxControl
*
pWin
)
:
CellController
(
pWin
)
:
CellController
(
pWin
)
{
{
...
@@ -133,22 +125,17 @@ namespace svt
...
@@ -133,22 +125,17 @@ namespace svt
return
GetComboBox
().
IsValueChangedFromSaved
();
return
GetComboBox
().
IsValueChangedFromSaved
();
}
}
void
ComboBoxCellController
::
ClearModified
()
void
ComboBoxCellController
::
ClearModified
()
{
{
GetComboBox
().
SaveValue
();
GetComboBox
().
SaveValue
();
}
}
void
ComboBoxCellController
::
SetModifyHdl
(
const
Link
&
rLink
)
void
ComboBoxCellController
::
SetModifyHdl
(
const
Link
&
rLink
)
{
{
GetComboBox
().
SetModifyHdl
(
rLink
);
GetComboBox
().
SetModifyHdl
(
rLink
);
}
}
//= ListBoxControl
//= ListBoxControl
ListBoxControl
::
ListBoxControl
(
vcl
::
Window
*
pParent
,
WinBits
nWinStyle
)
ListBoxControl
::
ListBoxControl
(
vcl
::
Window
*
pParent
,
WinBits
nWinStyle
)
:
ListBox
(
pParent
,
nWinStyle
|
WB_DROPDOWN
|
WB_NOBORDER
)
:
ListBox
(
pParent
,
nWinStyle
|
WB_DROPDOWN
|
WB_NOBORDER
)
{
{
...
@@ -157,13 +144,9 @@ namespace svt
...
@@ -157,13 +144,9 @@ namespace svt
SetDropDownLineCount
(
20
);
SetDropDownLineCount
(
20
);
}
}
bool
ListBoxControl
::
PreNotify
(
NotifyEvent
&
rNEvt
)
bool
ListBoxControl
::
PreNotify
(
NotifyEvent
&
rNEvt
)
{
{
switch
(
rNEvt
.
GetType
())
switch
(
rNEvt
.
GetType
()
==
MouseNotifyEvent
::
KEYINPUT
&&
!
IsInDropDown
())
{
case
MouseNotifyEvent
:
:
KEYINPUT
:
if
(
!
IsInDropDown
())
{
{
const
KeyEvent
*
pEvt
=
rNEvt
.
GetKeyEvent
();
const
KeyEvent
*
pEvt
=
rNEvt
.
GetKeyEvent
();
const
vcl
::
KeyCode
rKey
=
pEvt
->
GetKeyCode
();
const
vcl
::
KeyCode
rKey
=
pEvt
->
GetKeyCode
();
...
@@ -185,15 +168,10 @@ namespace svt
...
@@ -185,15 +168,10 @@ namespace svt
else
if
(
GetParent
()
->
PreNotify
(
rNEvt
))
else
if
(
GetParent
()
->
PreNotify
(
rNEvt
))
return
true
;
return
true
;
}
}
break
;
}
return
ListBox
::
PreNotify
(
rNEvt
);
return
ListBox
::
PreNotify
(
rNEvt
);
}
}
//= ListBoxCellController
//= ListBoxCellController
ListBoxCellController
::
ListBoxCellController
(
ListBoxControl
*
pWin
)
ListBoxCellController
::
ListBoxCellController
(
ListBoxControl
*
pWin
)
:
CellController
(
pWin
)
:
CellController
(
pWin
)
{
{
...
@@ -333,6 +311,9 @@ namespace svt
...
@@ -333,6 +311,9 @@ namespace svt
break
;
break
;
case
MouseNotifyEvent
:
:
LOSEFOCUS
:
case
MouseNotifyEvent
:
:
LOSEFOCUS
:
HideFocus
();
HideFocus
();
break
;
default
:
break
;
}
}
return
Control
::
PreNotify
(
rEvt
);
return
Control
::
PreNotify
(
rEvt
);
}
}
...
...
svtools/source/brwbox/editbrowsebox.cxx
Dosyayı görüntüle @
83a597af
...
@@ -608,12 +608,10 @@ namespace svt
...
@@ -608,12 +608,10 @@ namespace svt
BrowseBox
::
Dispatch
(
_nId
);
BrowseBox
::
Dispatch
(
_nId
);
}
}
bool
EditBrowseBox
::
PreNotify
(
NotifyEvent
&
rEvt
)
bool
EditBrowseBox
::
PreNotify
(
NotifyEvent
&
rEvt
)
{
{
switch
(
rEvt
.
GetType
()
)
if
(
rEvt
.
GetType
()
==
MouseNotifyEvent
::
KEYINPUT
)
{
{
case
MouseNotifyEvent
:
:
KEYINPUT
:
if
(
(
IsEditing
()
&&
Controller
()
->
GetWindow
().
HasChildPathFocus
())
if
(
(
IsEditing
()
&&
Controller
()
->
GetWindow
().
HasChildPathFocus
())
||
rEvt
.
GetWindow
()
==
&
GetDataWindow
()
||
rEvt
.
GetWindow
()
==
&
GetDataWindow
()
||
(
!
IsEditing
()
&&
HasChildPathFocus
())
||
(
!
IsEditing
()
&&
HasChildPathFocus
())
...
@@ -727,7 +725,6 @@ namespace svt
...
@@ -727,7 +725,6 @@ namespace svt
return
BrowseBox
::
PreNotify
(
rEvt
);
return
BrowseBox
::
PreNotify
(
rEvt
);
}
}
bool
EditBrowseBox
::
IsTabAllowed
(
bool
)
const
bool
EditBrowseBox
::
IsTabAllowed
(
bool
)
const
{
{
return
true
;
return
true
;
...
@@ -745,6 +742,9 @@ namespace svt
...
@@ -745,6 +742,9 @@ namespace svt
case
MouseNotifyEvent
:
:
LOSEFOCUS
:
case
MouseNotifyEvent
:
:
LOSEFOCUS
:
DetermineFocus
(
0
);
DetermineFocus
(
0
);
break
;
break
;
default
:
break
;
}
}
return
BrowseBox
::
Notify
(
rEvt
);
return
BrowseBox
::
Notify
(
rEvt
);
}
}
...
...
svtools/source/control/fileurlbox.cxx
Dosyayı görüntüle @
83a597af
...
@@ -68,17 +68,18 @@ namespace svt
...
@@ -68,17 +68,18 @@ namespace svt
if
(
IsWindowOrChild
(
_rNEvt
.
GetWindow
()
)
)
if
(
IsWindowOrChild
(
_rNEvt
.
GetWindow
()
)
)
DisplayURL
(
GetText
()
);
DisplayURL
(
GetText
()
);
break
;
break
;
default
:
break
;
}
}
return
SvtURLBox
::
PreNotify
(
_rNEvt
);
return
SvtURLBox
::
PreNotify
(
_rNEvt
);
}
}
bool
FileURLBox
::
Notify
(
NotifyEvent
&
_rNEvt
)
bool
FileURLBox
::
Notify
(
NotifyEvent
&
_rNEvt
)
{
{
switch
(
_rNEvt
.
GetType
()
)
switch
(
_rNEvt
.
GetType
()
==
MouseNotifyEvent
::
KEYINPUT
)
{
{
case
MouseNotifyEvent
:
:
KEYINPUT
:
if
(
(
GetSubEdit
()
==
_rNEvt
.
GetWindow
()
)
if
(
(
GetSubEdit
()
==
_rNEvt
.
GetWindow
()
)
&&
(
KEY_RETURN
==
_rNEvt
.
GetKeyEvent
()
->
GetKeyCode
().
GetCode
()
)
&&
(
KEY_RETURN
==
_rNEvt
.
GetKeyEvent
()
->
GetKeyCode
().
GetCode
()
)
&&
(
IsInDropDown
()
)
&&
(
IsInDropDown
()
)
...
@@ -88,13 +89,11 @@ namespace svt
...
@@ -88,13 +89,11 @@ namespace svt
DisplayURL
(
m_sPreservedText
);
DisplayURL
(
m_sPreservedText
);
return
nReturn
;
return
nReturn
;
}
}
break
;
}
}
return
SvtURLBox
::
Notify
(
_rNEvt
);
return
SvtURLBox
::
Notify
(
_rNEvt
);
}
}
}
// namespace svt
}
// namespace svt
...
...
svtools/source/dialogs/addresstemplate.cxx
Dosyayı görüntüle @
83a597af
...
@@ -1225,12 +1225,9 @@ void AssignmentPersistentData::Commit()
...
@@ -1225,12 +1225,9 @@ void AssignmentPersistentData::Commit()
return
0L
;
return
0L
;
}
}
bool
AddressBookSourceDialog
::
PreNotify
(
NotifyEvent
&
_rNEvt
)
bool
AddressBookSourceDialog
::
PreNotify
(
NotifyEvent
&
_rNEvt
)
{
{
switch
(
_rNEvt
.
GetType
())
switch
(
_rNEvt
.
GetType
()
==
MouseNotifyEvent
::
KEYINPUT
)
{
case
MouseNotifyEvent
:
:
KEYINPUT
:
{
{
const
KeyEvent
*
pKeyEvent
=
_rNEvt
.
GetKeyEvent
();
const
KeyEvent
*
pKeyEvent
=
_rNEvt
.
GetKeyEvent
();
sal_uInt16
nCode
=
pKeyEvent
->
GetKeyCode
().
GetCode
();
sal_uInt16
nCode
=
pKeyEvent
->
GetKeyCode
().
GetCode
();
...
@@ -1271,12 +1268,10 @@ void AssignmentPersistentData::Commit()
...
@@ -1271,12 +1268,10 @@ void AssignmentPersistentData::Commit()
}
}
}
}
}
}
break
;
}
return
ModalDialog
::
PreNotify
(
_rNEvt
);
return
ModalDialog
::
PreNotify
(
_rNEvt
);
}
}
}
// namespace svt
}
// namespace svt
...
...
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