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
108cd7a3
Kaydet (Commit)
108cd7a3
authored
Şub 25, 2015
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
cleanup TabBar's ImplTabButton
Change-Id: Ic77f322cce00885896343ce21e35db4e286aafda
üst
ef9c71b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
22 deletions
+23
-22
tabbar.cxx
svtools/source/control/tabbar.cxx
+23
-22
No files found.
svtools/source/control/tabbar.cxx
Dosyayı görüntüle @
108cd7a3
...
...
@@ -94,48 +94,49 @@ struct ImplTabBarItem
class
ImplTabButton
:
public
PushButton
{
public
:
ImplTabButton
(
TabBar
*
pParent
,
WinBits
nWinStyle
=
0
)
:
PushButton
(
pParent
,
nWinStyle
|
WB_RECTSTYLE
|
WB_SMALLSTYLE
|
WB_NOLIGHTBORDER
|
WB_NOPOINTERFOCUS
)
{}
ImplTabButton
(
TabBar
*
pParent
,
WinBits
nWinStyle
=
0
)
:
PushButton
(
pParent
,
nWinStyle
|
WB_RECTSTYLE
|
WB_SMALLSTYLE
|
WB_NOLIGHTBORDER
|
WB_NOPOINTERFOCUS
)
{}
TabBar
*
GetParent
()
const
{
return
static_cast
<
TabBar
*>
(
Window
::
GetParent
());
}
virtual
bool
PreNotify
(
NotifyEvent
&
rNEvt
)
SAL_OVERRIDE
;
virtual
void
MouseButtonDown
(
const
MouseEvent
&
rMEvt
)
SAL_OVERRIDE
;
TabBar
*
GetParent
()
const
{
return
static_cast
<
TabBar
*>
(
Window
::
GetParent
());
}
virtual
void
Command
(
const
CommandEvent
&
rCEvt
)
SAL_OVERRIDE
;
virtual
bool
PreNotify
(
NotifyEvent
&
rNotifyEvent
)
SAL_OVERRIDE
;
virtual
void
MouseButtonDown
(
const
MouseEvent
&
rMouseEvent
)
SAL_OVERRIDE
;
virtual
void
Command
(
const
CommandEvent
&
rCommandEvent
)
SAL_OVERRIDE
;
};
void
ImplTabButton
::
MouseButtonDown
(
const
MouseEvent
&
rMEvt
)
void
ImplTabButton
::
MouseButtonDown
(
const
MouseEvent
&
rMouseEvent
)
{
PushButton
::
MouseButtonDown
(
rM
Ev
t
);
PushButton
::
MouseButtonDown
(
rM
ouseEven
t
);
}
void
ImplTabButton
::
Command
(
const
CommandEvent
&
rCEvt
)
void
ImplTabButton
::
Command
(
const
CommandEvent
&
rCommandEvent
)
{
sal_uInt16
nC
md
=
rCEv
t
.
GetCommand
();
if
(
nCmd
==
COMMAND_CONTEXTMENU
)
sal_uInt16
nC
ommand
=
rCommandEven
t
.
GetCommand
();
if
(
nCommand
==
COMMAND_CONTEXTMENU
)
{
TabBar
*
pParent
=
GetParent
();
pParent
->
maScrollAreaContextHdl
.
Call
((
void
*
)
&
rC
Ev
t
);
TabBar
*
pParent
=
GetParent
();
pParent
->
maScrollAreaContextHdl
.
Call
((
void
*
)
&
rC
ommandEven
t
);
}
PushButton
::
Command
(
rC
Ev
t
);
PushButton
::
Command
(
rC
ommandEven
t
);
}
bool
ImplTabButton
::
PreNotify
(
NotifyEvent
&
rNEvt
)
bool
ImplTabButton
::
PreNotify
(
NotifyEvent
&
rNotifyEvent
)
{
if
(
rNEvt
.
GetType
()
==
MouseNotifyEvent
::
MOUSEBUTTONDOWN
)
if
(
rNotifyEvent
.
GetType
()
==
MouseNotifyEvent
::
MOUSEBUTTONDOWN
)
{
if
(
GetParent
()
->
IsInEditMode
()
)
if
(
GetParent
()
->
IsInEditMode
()
)
{
GetParent
()
->
EndEditMode
();
return
true
;
}
}
return
PushButton
::
PreNotify
(
rNEvt
);
return
PushButton
::
PreNotify
(
rNotifyEvent
);
}
...
...
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