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
2c625e03
Kaydet (Commit)
2c625e03
authored
May 06, 2013
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#46808, Use service constructor for rendering::MtfRenderer
Change-Id: If15cd2ac23bf76aa79ee8134ee0fb97c64d747c3
üst
48ad2f61
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
10 deletions
+8
-10
MtfRenderer.idl
offapi/com/sun/star/rendering/MtfRenderer.idl
+6
-1
gdimtf.cxx
vcl/source/gdi/gdimtf.cxx
+2
-9
No files found.
offapi/com/sun/star/rendering/MtfRenderer.idl
Dosyayı görüntüle @
2c625e03
...
@@ -21,10 +21,15 @@
...
@@ -21,10 +21,15 @@
#
define
__com_sun_star_rendering_MtfRenderer_idl__
#
define
__com_sun_star_rendering_MtfRenderer_idl__
#
include
<
com
/
sun
/
star
/
rendering
/
XMtfRenderer
.
idl>
#
include
<
com
/
sun
/
star
/
rendering
/
XMtfRenderer
.
idl>
#
include
<
com
/
sun
/
star
/
rendering
/
XBitmapCanvas
.
idl>
module
com
{
module
sun
{
module
star
{
module
rendering
{
module
com
{
module
sun
{
module
star
{
module
rendering
{
service
MtfRenderer
:
XMtfRenderer
;
service
MtfRenderer
:
XMtfRenderer
{
createWithBitmapCanvas
(
[
in
]
XBitmapCanvas
Canvas
)
;
}
;
}
; }; }; };
}
; }; }; };
...
...
vcl/source/gdi/gdimtf.cxx
Dosyayı görüntüle @
2c625e03
...
@@ -408,20 +408,14 @@ bool GDIMetaFile::ImplPlayWithRenderer( OutputDevice* pOut, const Point& rPos, S
...
@@ -408,20 +408,14 @@ bool GDIMetaFile::ImplPlayWithRenderer( OutputDevice* pOut, const Point& rPos, S
Size
aSize
(
rDestSize
.
Width
()
+
1
,
rDestSize
.
Height
()
+
1
);
Size
aSize
(
rDestSize
.
Width
()
+
1
,
rDestSize
.
Height
()
+
1
);
uno
::
Reference
<
rendering
::
XBitmap
>
xBitmap
=
xCanvas
->
getDevice
()
->
createCompatibleAlphaBitmap
(
vcl
::
unotools
::
integerSize2DFromSize
(
aSize
));
uno
::
Reference
<
rendering
::
XBitmap
>
xBitmap
=
xCanvas
->
getDevice
()
->
createCompatibleAlphaBitmap
(
vcl
::
unotools
::
integerSize2DFromSize
(
aSize
));
uno
::
Reference
<
lang
::
XMultiServiceFactory
>
xFactory
=
comphelper
::
getProcessServiceFactory
();
if
(
xBitmap
.
is
()
)
if
(
xBitmap
.
is
()
)
{
{
uno
::
Reference
<
rendering
::
XMtfRenderer
>
xMtfRenderer
;
uno
::
Sequence
<
uno
::
Any
>
args
(
1
);
uno
::
Reference
<
rendering
::
XBitmapCanvas
>
xBitmapCanvas
(
xBitmap
,
uno
::
UNO_QUERY
);
uno
::
Reference
<
rendering
::
XBitmapCanvas
>
xBitmapCanvas
(
xBitmap
,
uno
::
UNO_QUERY
);
if
(
xBitmapCanvas
.
is
()
)
if
(
xBitmapCanvas
.
is
()
)
{
{
args
[
0
]
=
uno
::
Any
(
xBitmapCanvas
);
uno
::
Reference
<
uno
::
XComponentContext
>
xContext
=
comphelper
::
getProcessComponentContext
();
xMtfRenderer
.
set
(
xFactory
->
createInstanceWithArguments
(
OUString
(
"com.sun.star.rendering.MtfRenderer"
),
uno
::
Reference
<
rendering
::
XMtfRenderer
>
xMtfRenderer
=
rendering
::
MtfRenderer
::
createWithBitmapCanvas
(
xContext
,
xBitmapCanvas
);
args
),
uno
::
UNO_QUERY
);
if
(
xMtfRenderer
.
is
()
)
{
xBitmapCanvas
->
clear
();
xBitmapCanvas
->
clear
();
uno
::
Reference
<
beans
::
XFastPropertySet
>
xMtfFastPropertySet
(
xMtfRenderer
,
uno
::
UNO_QUERY
);
uno
::
Reference
<
beans
::
XFastPropertySet
>
xMtfFastPropertySet
(
xMtfRenderer
,
uno
::
UNO_QUERY
);
if
(
xMtfFastPropertySet
.
is
()
)
if
(
xMtfFastPropertySet
.
is
()
)
...
@@ -459,7 +453,6 @@ bool GDIMetaFile::ImplPlayWithRenderer( OutputDevice* pOut, const Point& rPos, S
...
@@ -459,7 +453,6 @@ bool GDIMetaFile::ImplPlayWithRenderer( OutputDevice* pOut, const Point& rPos, S
}
}
}
}
}
}
}
catch
(
const
uno
::
RuntimeException
&
)
catch
(
const
uno
::
RuntimeException
&
)
{
{
throw
;
// runtime errors are fatal
throw
;
// runtime errors are fatal
...
...
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