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
cda4c8ed
Kaydet (Commit)
cda4c8ed
authored
Mar 05, 2015
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
use DrawHandle for drawing of tab sizer in tabbar
Change-Id: I3aacb177d209db74ffadf5284550cdd4972554de
üst
b2f76e0e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
29 deletions
+3
-29
tabbar.cxx
svtools/source/control/tabbar.cxx
+3
-29
No files found.
svtools/source/control/tabbar.cxx
Dosyayı görüntüle @
cda4c8ed
...
...
@@ -155,12 +155,6 @@ bool ImplTabButton::PreNotify(NotifyEvent& rNotifyEvent)
return
PushButton
::
PreNotify
(
rNotifyEvent
);
}
// - ImplTabSizer -
class
ImplTabSizer
:
public
vcl
::
Window
{
public
:
...
...
@@ -179,8 +173,6 @@ private:
long
mnStartWidth
;
};
ImplTabSizer
::
ImplTabSizer
(
TabBar
*
pParent
,
WinBits
nWinStyle
)
:
Window
(
pParent
,
nWinStyle
&
WB_3DLOOK
)
,
mnStartWidth
(
0
)
...
...
@@ -190,8 +182,6 @@ ImplTabSizer::ImplTabSizer( TabBar* pParent, WinBits nWinStyle )
SetSizePixel
(
Size
(
7
*
nScaleFactor
,
0
));
}
void
ImplTabSizer
::
ImplTrack
(
const
Point
&
rScreenPos
)
{
TabBar
*
pParent
=
GetParent
();
...
...
@@ -203,8 +193,6 @@ void ImplTabSizer::ImplTrack( const Point& rScreenPos )
pParent
->
Update
();
}
void
ImplTabSizer
::
MouseButtonDown
(
const
MouseEvent
&
rMEvt
)
{
if
(
GetParent
()
->
IsInEditMode
()
)
...
...
@@ -221,8 +209,6 @@ void ImplTabSizer::MouseButtonDown( const MouseEvent& rMEvt )
}
}
void
ImplTabSizer
::
Tracking
(
const
TrackingEvent
&
rTEvt
)
{
if
(
rTEvt
.
IsTrackingEnded
()
)
...
...
@@ -235,23 +221,11 @@ void ImplTabSizer::Tracking( const TrackingEvent& rTEvt )
ImplTrack
(
OutputToScreenPixel
(
rTEvt
.
GetMouseEvent
().
GetPosPixel
()
)
);
}
void
ImplTabSizer
::
Paint
(
const
Rectangle
&
)
{
const
StyleSettings
&
rStyleSettings
=
GetSettings
().
GetStyleSettings
();
DecorationView
aDecoView
(
this
);
long
nOffX
=
0
;
Size
aOutputSize
=
GetOutputSizePixel
();
if
(
!
(
rStyleSettings
.
GetOptions
()
&
STYLE_OPTION_MONO
)
)
{
SetLineColor
(
rStyleSettings
.
GetDarkShadowColor
()
);
DrawLine
(
Point
(
0
,
0
),
Point
(
0
,
aOutputSize
.
Height
()
-
1
)
);
nOffX
++
;
aOutputSize
.
Width
()
--
;
}
aDecoView
.
DrawButton
(
Rectangle
(
Point
(
nOffX
,
0
),
aOutputSize
),
BUTTON_DRAW_NOLIGHTBORDER
);
DecorationView
aDecoView
(
this
);
Rectangle
aOutputRect
(
Point
(
0
,
0
),
GetOutputSizePixel
());
aDecoView
.
DrawHandle
(
aOutputRect
,
true
);
}
...
...
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