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
5e3a11df
Kaydet (Commit)
5e3a11df
authored
Ock 22, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bool improvements
Change-Id: Ic5d82c2361a79a19f6675db30ea06dde91123ac1
üst
768c7438
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
28 deletions
+28
-28
cmdevt.hxx
include/vcl/cmdevt.hxx
+28
-28
No files found.
include/vcl/cmdevt.hxx
Dosyayı görüntüle @
5e3a11df
...
...
@@ -123,21 +123,21 @@ private:
sal_uLong
mnLines
;
sal_uInt16
mnMode
;
sal_uInt16
mnCode
;
sal_B
ool
mbHorz
;
sal_B
ool
mbDeltaIsPixel
;
b
ool
mbHorz
;
b
ool
mbDeltaIsPixel
;
public
:
CommandWheelData
();
CommandWheelData
(
long
nWheelDelta
,
long
nWheelNotchDelta
,
sal_uLong
nScrollLines
,
sal_uInt16
nWheelMode
,
sal_uInt16
nKeyModifier
,
sal_Bool
bHorz
=
sal_False
,
sal_Bool
bDeltaIsPixel
=
sal_F
alse
);
bool
bHorz
=
false
,
bool
bDeltaIsPixel
=
f
alse
);
long
GetDelta
()
const
{
return
mnDelta
;
}
long
GetNotchDelta
()
const
{
return
mnNotchDelta
;
}
sal_uLong
GetScrollLines
()
const
{
return
mnLines
;
}
sal_B
ool
IsHorz
()
const
{
return
mbHorz
;
}
sal_B
ool
IsDeltaPixel
()
const
{
return
mbDeltaIsPixel
;
}
b
ool
IsHorz
()
const
{
return
mbHorz
;
}
b
ool
IsDeltaPixel
()
const
{
return
mbDeltaIsPixel
;
}
sal_uInt16
GetMode
()
const
{
return
mnMode
;
}
...
...
@@ -145,11 +145,11 @@ public:
{
return
(
mnCode
&
(
KEY_SHIFT
|
KEY_MOD1
|
KEY_MOD2
));
}
bool
IsShift
()
const
{
return
((
mnCode
&
KEY_SHIFT
)
!=
0
);
}
sal_B
ool
IsMod1
()
const
b
ool
IsMod1
()
const
{
return
((
mnCode
&
KEY_MOD1
)
!=
0
);
}
sal_B
ool
IsMod2
()
const
b
ool
IsMod2
()
const
{
return
((
mnCode
&
KEY_MOD2
)
!=
0
);
}
sal_B
ool
IsMod3
()
const
b
ool
IsMod3
()
const
{
return
((
mnCode
&
KEY_MOD3
)
!=
0
);
}
};
...
...
@@ -160,14 +160,14 @@ inline CommandWheelData::CommandWheelData()
mnLines
=
0
;
mnMode
=
0
;
mnCode
=
0
;
mbHorz
=
sal_F
alse
;
mbDeltaIsPixel
=
sal_F
alse
;
mbHorz
=
f
alse
;
mbDeltaIsPixel
=
f
alse
;
}
inline
CommandWheelData
::
CommandWheelData
(
long
nWheelDelta
,
long
nWheelNotchDelta
,
sal_uLong
nScrollLines
,
sal_uInt16
nWheelMode
,
sal_uInt16
nKeyModifier
,
sal_Bool
bHorz
,
sal_B
ool
bDeltaIsPixel
)
bool
bHorz
,
b
ool
bDeltaIsPixel
)
{
mnDelta
=
nWheelDelta
;
mnNotchDelta
=
nWheelNotchDelta
;
...
...
@@ -221,20 +221,20 @@ public:
CommandModKeyData
();
CommandModKeyData
(
sal_uInt16
nCode
);
bool
IsShift
()
const
{
return
(
mnCode
&
MODKEY_SHIFT
)
?
true
:
false
;
}
sal_Bool
IsMod1
()
const
{
return
(
mnCode
&
MODKEY_MOD1
)
?
sal_True
:
sal_False
;
}
sal_Bool
IsMod2
()
const
{
return
(
mnCode
&
MODKEY_MOD2
)
?
sal_True
:
sal_False
;
}
sal_Bool
IsMod3
()
const
{
return
(
mnCode
&
MODKEY_MOD3
)
?
sal_True
:
sal_False
;
}
bool
IsShift
()
const
{
return
(
mnCode
&
MODKEY_SHIFT
)
!=
0
;
}
bool
IsMod1
()
const
{
return
(
mnCode
&
MODKEY_MOD1
)
!=
0
;
}
bool
IsMod2
()
const
{
return
(
mnCode
&
MODKEY_MOD2
)
!=
0
;
}
bool
IsMod3
()
const
{
return
(
mnCode
&
MODKEY_MOD3
)
!=
0
;
}
sal_Bool
IsLeftShift
()
const
{
return
(
mnCode
&
MODKEY_LSHIFT
)
?
sal_True
:
sal_False
;
}
sal_Bool
IsLeftMod1
()
const
{
return
(
mnCode
&
MODKEY_LMOD1
)
?
sal_True
:
sal_False
;
}
sal_Bool
IsLeftMod2
()
const
{
return
(
mnCode
&
MODKEY_LMOD2
)
?
sal_True
:
sal_False
;
}
sal_Bool
IsLeftMod3
()
const
{
return
(
mnCode
&
MODKEY_LMOD3
)
?
sal_True
:
sal_False
;
}
bool
IsLeftShift
()
const
{
return
(
mnCode
&
MODKEY_LSHIFT
)
!=
0
;
}
bool
IsLeftMod1
()
const
{
return
(
mnCode
&
MODKEY_LMOD1
)
!=
0
;
}
bool
IsLeftMod2
()
const
{
return
(
mnCode
&
MODKEY_LMOD2
)
!=
0
;
}
bool
IsLeftMod3
()
const
{
return
(
mnCode
&
MODKEY_LMOD3
)
!=
0
;
}
sal_Bool
IsRightShift
()
const
{
return
(
mnCode
&
MODKEY_RSHIFT
)
?
sal_True
:
sal_False
;
}
sal_Bool
IsRightMod1
()
const
{
return
(
mnCode
&
MODKEY_RMOD1
)
?
sal_True
:
sal_False
;
}
sal_Bool
IsRightMod2
()
const
{
return
(
mnCode
&
MODKEY_RMOD2
)
?
sal_True
:
sal_False
;
}
sal_Bool
IsRightMod3
()
const
{
return
(
mnCode
&
MODKEY_RMOD3
)
?
sal_True
:
sal_False
;
}
bool
IsRightShift
()
const
{
return
(
mnCode
&
MODKEY_RSHIFT
)
!=
0
;
}
bool
IsRightMod1
()
const
{
return
(
mnCode
&
MODKEY_RMOD1
)
!=
0
;
}
bool
IsRightMod2
()
const
{
return
(
mnCode
&
MODKEY_RMOD2
)
!=
0
;
}
bool
IsRightMod3
()
const
{
return
(
mnCode
&
MODKEY_RMOD3
)
!=
0
;
}
};
inline
CommandModKeyData
::
CommandModKeyData
()
...
...
@@ -354,16 +354,16 @@ private:
Point
maPos
;
void
*
mpData
;
sal_uInt16
mnCommand
;
sal_B
ool
mbMouseEvent
;
b
ool
mbMouseEvent
;
public
:
CommandEvent
();
CommandEvent
(
const
Point
&
rMousePos
,
sal_uInt16
nCmd
,
sal_Bool
bMEvt
=
sal_F
alse
,
const
void
*
pCmdData
=
NULL
);
bool
bMEvt
=
f
alse
,
const
void
*
pCmdData
=
NULL
);
sal_uInt16
GetCommand
()
const
{
return
mnCommand
;
}
const
Point
&
GetMousePosPixel
()
const
{
return
maPos
;
}
sal_B
ool
IsMouseEvent
()
const
{
return
mbMouseEvent
;
}
b
ool
IsMouseEvent
()
const
{
return
mbMouseEvent
;
}
void
*
GetData
()
const
{
return
mpData
;
}
const
CommandExtTextInputData
*
GetExtTextInputData
()
const
;
...
...
@@ -380,11 +380,11 @@ inline CommandEvent::CommandEvent()
{
mpData
=
NULL
;
mnCommand
=
0
;
mbMouseEvent
=
sal_F
alse
;
mbMouseEvent
=
f
alse
;
}
inline
CommandEvent
::
CommandEvent
(
const
Point
&
rMousePos
,
sal_uInt16
nCmd
,
sal_B
ool
bMEvt
,
const
void
*
pCmdData
)
:
sal_uInt16
nCmd
,
b
ool
bMEvt
,
const
void
*
pCmdData
)
:
maPos
(
rMousePos
)
{
mpData
=
(
void
*
)
pCmdData
;
...
...
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