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
571e597b
Kaydet (Commit)
571e597b
authored
May 13, 2015
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
refactor LineWidthControl to use RenderContext
Change-Id: I5ca1a367c4eba0a2f39c2aa9702e3d3bd5b2477f
üst
6e434941
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
34 deletions
+37
-34
LineWidthControl.cxx
svx/source/sidebar/line/LineWidthControl.cxx
+11
-13
LineWidthControl.hxx
svx/source/sidebar/line/LineWidthControl.hxx
+26
-21
No files found.
svx/source/sidebar/line/LineWidthControl.cxx
Dosyayı görüntüle @
571e597b
...
...
@@ -83,27 +83,25 @@ void LineWidthControl::Paint(vcl::RenderContext& rRenderContext, const Rectangle
{
svx
::
sidebar
::
PopupControl
::
Paint
(
rRenderContext
,
rect
);
Color
aOldLineColor
=
GetLineColor
();
Color
aOldFillColor
=
GetFillColor
();
rRenderContext
.
Push
(
PushFlags
::
LINECOLOR
|
PushFlags
::
FILLCOLOR
);
Point
aPos
(
LogicToPixel
(
Point
(
CUSTOM_X
,
CUSTOM_Y
),
MAP_APPFONT
));
Size
aSize
(
LogicToPixel
(
Size
(
CUSTOM_W
,
CUSTOM_H
),
MAP_APPFONT
));
Rectangle
aRect
(
aPos
,
aSize
);
Point
aPos
(
rRenderContext
.
LogicToPixel
(
Point
(
CUSTOM_X
,
CUSTOM_Y
),
MAP_APPFONT
));
Size
aSize
(
rRenderContext
.
LogicToPixel
(
Size
(
CUSTOM_W
,
CUSTOM_H
),
MAP_APPFONT
));
Rectangle
aRect
(
aPos
,
aSize
);
aRect
.
Left
()
-=
1
;
aRect
.
Top
()
-=
1
;
aRect
.
Right
()
+=
1
;
aRect
.
Bottom
()
+=
1
;
Color
aLineColor
(
189
,
201
,
219
);
if
(
!
GetSettings
().
GetStyleSettings
().
GetHighContrastMode
())
SetLineColor
(
aLineColor
);
Color
aLineColor
(
189
,
201
,
219
);
if
(
!
GetSettings
().
GetStyleSettings
().
GetHighContrastMode
())
rRenderContext
.
SetLineColor
(
aLineColor
);
else
SetLineColor
(
GetSettings
().
GetStyleSettings
().
GetShadowColor
());
SetFillColor
(
COL_TRANSPARENT
);
DrawRect
(
aRect
);
rRenderContext
.
SetLineColor
(
GetSettings
().
GetStyleSettings
().
GetShadowColor
());
rRenderContext
.
SetFillColor
(
COL_TRANSPARENT
);
rRenderContext
.
DrawRect
(
aRect
);
SetLineColor
(
aOldLineColor
);
SetFillColor
(
aOldFillColor
);
rRenderContext
.
Pop
();
}
...
...
svx/source/sidebar/line/LineWidthControl.hxx
Dosyayı görüntüle @
571e597b
...
...
@@ -32,8 +32,7 @@ namespace svx { namespace sidebar {
class
LinePropertyPanel
;
class
LineWidthControl
:
public
svx
::
sidebar
::
PopupControl
class
LineWidthControl
:
public
svx
::
sidebar
::
PopupControl
{
public
:
LineWidthControl
(
vcl
::
Window
*
pParent
,
LinePropertyPanel
&
rPanel
);
...
...
@@ -41,30 +40,36 @@ public:
virtual
void
dispose
()
SAL_OVERRIDE
;
virtual
void
GetFocus
()
SAL_OVERRIDE
;
virtual
void
Paint
(
vcl
::
RenderContext
&
rRenderContext
,
const
Rectangle
&
r
ect
)
SAL_OVERRIDE
;
virtual
void
Paint
(
vcl
::
RenderContext
&
rRenderContext
,
const
Rectangle
&
aR
ect
)
SAL_OVERRIDE
;
void
SetWidthSelect
(
long
lValue
,
bool
bValuable
,
SfxMapUnit
eMapUnit
);
bool
IsCloseByEdit
()
{
return
mbCloseByEdit
;}
long
GetTmpCustomWidth
()
{
return
mnTmpCustomWidth
;}
bool
IsCloseByEdit
()
{
return
mbCloseByEdit
;
}
long
GetTmpCustomWidth
()
{
return
mnTmpCustomWidth
;
}
private
:
LinePropertyPanel
&
mrLinePropertyPanel
;
SfxBindings
*
mpBindings
;
VclPtr
<
LineWidthValueSet
>
maVSWidth
;
VclPtr
<
FixedText
>
maFTCus
;
VclPtr
<
FixedText
>
maFTWidth
;
VclPtr
<
MetricField
>
maMFWidth
;
SfxMapUnit
meMapUnit
;
OUString
*
rStr
;
OUString
mstrPT
;
long
mnCustomWidth
;
bool
mbCustom
;
bool
mbCloseByEdit
;
long
mnTmpCustomWidth
;
bool
mbVSFocus
;
LinePropertyPanel
&
mrLinePropertyPanel
;
SfxBindings
*
mpBindings
;
VclPtr
<
LineWidthValueSet
>
maVSWidth
;
VclPtr
<
FixedText
>
maFTCus
;
VclPtr
<
FixedText
>
maFTWidth
;
VclPtr
<
MetricField
>
maMFWidth
;
SfxMapUnit
meMapUnit
;
OUString
*
rStr
;
OUString
mstrPT
;
long
mnCustomWidth
;
bool
mbCustom
;
bool
mbCloseByEdit
;
long
mnTmpCustomWidth
;
bool
mbVSFocus
;
Image
maIMGCus
;
Image
maIMGCusGray
;
Image
maIMGCus
;
Image
maIMGCusGray
;
void
Initialize
();
DECL_LINK
(
VSSelectHdl
,
void
*
);
...
...
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