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
9fd81f77
Kaydet (Commit)
9fd81f77
authored
May 14, 2015
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
refactor SvxCropExample to use RenderContext
Change-Id: I06e8702ecea2db2529eda538128d6a1693971185
üst
75594b02
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
15 deletions
+15
-15
grfpage.hxx
cui/source/inc/grfpage.hxx
+1
-1
grfpage.cxx
cui/source/tabpages/grfpage.cxx
+14
-14
No files found.
cui/source/inc/grfpage.hxx
Dosyayı görüntüle @
9fd81f77
...
...
@@ -35,7 +35,7 @@ class SvxCropExample : public vcl::Window
public
:
SvxCropExample
(
vcl
::
Window
*
pPar
,
WinBits
nStyle
);
virtual
void
Paint
(
vcl
::
RenderContext
&
/*rRenderContext*/
,
const
Rectangle
&
rRect
)
SAL_OVERRIDE
;
virtual
void
Paint
(
vcl
::
RenderContext
&
rRenderContext
,
const
Rectangle
&
rRect
)
SAL_OVERRIDE
;
virtual
void
Resize
()
SAL_OVERRIDE
;
virtual
Size
GetOptimalSize
()
const
SAL_OVERRIDE
;
...
...
cui/source/tabpages/grfpage.cxx
Dosyayı görüntüle @
9fd81f77
...
...
@@ -799,29 +799,29 @@ VCL_BUILDER_DECL_FACTORY(SvxCropExample)
rRet
=
VclPtr
<
SvxCropExample
>::
Create
(
pParent
,
nWinStyle
);
}
void
SvxCropExample
::
Paint
(
vcl
::
RenderContext
&
/*rRenderContext*/
,
const
Rectangle
&
)
void
SvxCropExample
::
Paint
(
vcl
::
RenderContext
&
rRenderContext
,
const
Rectangle
&
)
{
Size
aWinSize
(
PixelToLogic
(
GetOutputSizePixel
()
));
SetLineColor
();
SetFillColor
(
GetSettings
().
GetStyleSettings
().
GetWindowColor
()
);
SetRasterOp
(
ROP_OVERPAINT
);
DrawRect
(
Rectangle
(
Point
(),
aWinSize
)
);
Size
aWinSize
(
rRenderContext
.
PixelToLogic
(
rRenderContext
.
GetOutputSizePixel
()
));
rRenderContext
.
SetLineColor
();
rRenderContext
.
SetFillColor
(
rRenderContext
.
GetSettings
().
GetStyleSettings
().
GetWindowColor
()
);
rRenderContext
.
SetRasterOp
(
ROP_OVERPAINT
);
rRenderContext
.
DrawRect
(
Rectangle
(
Point
(),
aWinSize
)
);
SetLineColor
(
Color
(
COL_WHITE
)
);
rRenderContext
.
SetLineColor
(
Color
(
COL_WHITE
)
);
Rectangle
aRect
(
Point
((
aWinSize
.
Width
()
-
aFrameSize
.
Width
())
/
2
,
(
aWinSize
.
Height
()
-
aFrameSize
.
Height
())
/
2
),
aFrameSize
);
aGrf
.
Draw
(
this
,
aRect
.
TopLeft
(),
aRect
.
GetSize
()
);
aFrameSize
);
aGrf
.
Draw
(
&
rRenderContext
,
aRect
.
TopLeft
(),
aRect
.
GetSize
()
);
Size
aSz
(
2
,
0
);
aSz
=
PixelToLogic
(
aSz
);
SetFillColor
(
Color
(
COL_TRANSPARENT
)
);
SetRasterOp
(
ROP_INVERT
);
Size
aSz
(
2
,
0
);
aSz
=
rRenderContext
.
PixelToLogic
(
aSz
);
rRenderContext
.
SetFillColor
(
Color
(
COL_TRANSPARENT
)
);
rRenderContext
.
SetRasterOp
(
ROP_INVERT
);
aRect
.
Left
()
+=
aTopLeft
.
Y
();
aRect
.
Top
()
+=
aTopLeft
.
X
();
aRect
.
Right
()
-=
aBottomRight
.
Y
();
aRect
.
Bottom
()
-=
aBottomRight
.
X
();
DrawRect
(
aRect
);
rRenderContext
.
DrawRect
(
aRect
);
}
void
SvxCropExample
::
Resize
()
...
...
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