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
782bbfc6
Kaydet (Commit)
782bbfc6
authored
May 07, 2013
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#46808, Convert graphic::SvgTools to new style
Change-Id: Id195be7968ab256e44271cad00fa8b5cac8698b4
üst
2c625e03
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
17 deletions
+8
-17
UnoApi_offapi.mk
offapi/UnoApi_offapi.mk
+1
-1
SvgTools.idl
offapi/com/sun/star/graphic/SvgTools.idl
+3
-8
svgdata.cxx
vcl/source/gdi/svgdata.cxx
+4
-8
No files found.
offapi/UnoApi_offapi.mk
Dosyayı görüntüle @
782bbfc6
...
...
@@ -189,6 +189,7 @@ $(eval $(call gb_UnoApi_add_idlfiles_nohdl,offapi,offapi/com/sun/star/graphic,\
GraphicObject \
GraphicProvider \
Primitive2DTools \
SvgTools \
))
$(eval $(call gb_UnoApi_add_idlfiles_nohdl,offapi,offapi/com/sun/star/inspection,\
DefaultHelpProvider \
...
...
@@ -2651,7 +2652,6 @@ $(eval $(call gb_UnoApi_add_idlfiles,offapi,offapi/com/sun/star/graphic,\
GraphicColorMode \
GraphicType \
PrimitiveFactory2D \
SvgTools \
XGraphic \
XGraphicObject \
XGraphicProvider \
...
...
offapi/com/sun/star/graphic/SvgTools.idl
Dosyayı görüntüle @
782bbfc6
...
...
@@ -25,16 +25,11 @@ module com { module sun { module star { module graphic
{
/**
Service
that
describes
the
necessary
interfaces
and
properties
to
handle
svg
files
to
handle
svg
files
.
Parses
a
svg
file
to
a
sequence
of
B2DPrimitives
for
internal
usage
*/
service
SvgTools
{
/**
Interface
to
parse
a
svg
file
to
a
sequence
of
B2DPrimitives
for
internal
usage
*/
interface
::
com
::
sun
::
star
::
graphic
::
XSvgParser
;
}
;
service
SvgTools
:
XSvgParser
;
}
; } ; } ; } ;
...
...
vcl/source/gdi/svgdata.cxx
Dosyayı görüntüle @
782bbfc6
...
...
@@ -21,7 +21,7 @@
#include <vcl/svgdata.hxx>
#include <comphelper/processfactory.hxx>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/graphic/
XSvgParser
.hpp>
#include <com/sun/star/graphic/
SvgTools
.hpp>
#include <com/sun/star/graphic/Primitive2DTools.hpp>
#include <com/sun/star/rendering/XIntegerReadOnlyBitmap.hpp>
#include <vcl/canvastools.hxx>
...
...
@@ -119,17 +119,13 @@ void SvgData::ensureSequenceAndRange()
if
(
myInputStream
.
is
())
{
// create SVG interpreter
uno
::
Reference
<
lang
::
XMultiServiceFactory
>
xFactory
(
::
comphelper
::
getProcessServiceFactory
());
const
OUString
aServiceName
(
"com.sun.star.graphic.SvgTools"
);
uno
::
Reference
<
uno
::
XComponentContext
>
xContext
(
::
comphelper
::
getProcessComponentContext
());
try
{
const
uno
::
Reference
<
graphic
::
XSvgParser
>
xSvgParser
(
xFactory
->
createInstance
(
aServiceName
),
uno
::
UNO_QUERY_THROW
);
const
uno
::
Reference
<
graphic
::
XSvgParser
>
xSvgParser
=
graphic
::
SvgTools
::
create
(
xContext
);
if
(
xSvgParser
.
is
())
{
maSequence
=
xSvgParser
->
getDecomposition
(
myInputStream
,
maPath
);
}
maSequence
=
xSvgParser
->
getDecomposition
(
myInputStream
,
maPath
);
}
catch
(
const
uno
::
Exception
&
)
{
...
...
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