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
49480a1e
Kaydet (Commit)
49480a1e
authored
May 15, 2015
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
refactor TabBarControl to use RenderContext
Change-Id: Ie65fb06bfd5111a2d054018fd846f583606689f4
üst
a18d743f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
15 deletions
+13
-15
ViewTabBar.cxx
sd/source/ui/view/ViewTabBar.cxx
+13
-15
No files found.
sd/source/ui/view/ViewTabBar.cxx
Dosyayı görüntüle @
49480a1e
...
...
@@ -57,20 +57,17 @@ namespace sd {
namespace
{
bool
IsEqual
(
const
TabBarButton
&
rButton1
,
const
TabBarButton
&
rButton2
)
{
return
(
(
rButton1
.
ResourceId
.
is
()
&&
rButton2
.
ResourceId
.
is
()
&&
rButton1
.
ResourceId
->
compareTo
(
rButton2
.
ResourceId
)
==
0
)
return
((
rButton1
.
ResourceId
.
is
()
&&
rButton2
.
ResourceId
.
is
()
&&
rButton1
.
ResourceId
->
compareTo
(
rButton2
.
ResourceId
)
==
0
)
||
rButton1
.
ButtonLabel
==
rButton2
.
ButtonLabel
);
}
class
TabBarControl
:
public
::
TabControl
{
public
:
TabBarControl
(
vcl
::
Window
*
pParentWindow
,
const
::
rtl
::
Reference
<
ViewTabBar
>&
rpViewTabBar
);
virtual
void
Paint
(
vcl
::
RenderContext
&
/*rRenderContext*/
,
const
Rectangle
&
rRect
)
SAL_OVERRIDE
;
TabBarControl
(
vcl
::
Window
*
pParentWindow
,
const
::
rtl
::
Reference
<
ViewTabBar
>&
rpViewTabBar
);
virtual
void
Paint
(
vcl
::
RenderContext
&
rRenderContext
,
const
Rectangle
&
rRect
)
SAL_OVERRIDE
;
virtual
void
ActivatePage
()
SAL_OVERRIDE
;
private
:
::
rtl
::
Reference
<
ViewTabBar
>
mpViewTabBar
;
...
...
@@ -568,20 +565,21 @@ TabBarControl::TabBarControl (
void
TabBarControl
::
Paint
(
vcl
::
RenderContext
&
rRenderContext
,
const
Rectangle
&
rRect
)
{
Color
aOriginalFillColor
(
GetFillColor
());
Color
aOriginalLineColor
(
GetLineColor
());
Color
aOriginalFillColor
(
rRenderContext
.
GetFillColor
());
Color
aOriginalLineColor
(
rRenderContext
.
GetLineColor
());
// Because the actual window background is transparent--to avoid
// flickering due to multiple background paintings by this and by child
// windows--we have to paint the background for this control explicitly:
// the actual control is not painted over its whole bounding box.
SetFillColor
(
GetSettings
().
GetStyleSettings
().
GetDialogColor
());
SetLineColor
();
DrawRect
(
rRect
);
rRenderContext
.
SetFillColor
(
rRenderContext
.
GetSettings
().
GetStyleSettings
().
GetDialogColor
());
rRenderContext
.
SetLineColor
();
rRenderContext
.
DrawRect
(
rRect
);
::
TabControl
::
Paint
(
rRenderContext
,
rRect
);
SetFillColor
(
aOriginalFillColor
);
SetLineColor
(
aOriginalLineColor
);
rRenderContext
.
SetFillColor
(
aOriginalFillColor
);
rRenderContext
.
SetLineColor
(
aOriginalLineColor
);
}
void
TabBarControl
::
ActivatePage
()
...
...
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