diff options
author | Armin Le Grand <alg@apache.org> | 2012-06-11 08:38:23 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-04-14 21:33:59 +0100 |
commit | 4fa8df7320f6bdc8333f5936537d2ed93e8892ce (patch) | |
tree | 3b3d06d3ba0dd698e1fb168171e4de1b4d60c12a /filter/source/svg/svgwriter.hxx | |
parent | 9bc0ca091b7037f7c8f4782103a81b7287bc1de3 (diff) |
Resolves: #i119735# missing css.svg.SVGWriter when using GraphicProvider
missing implementation for com.sun.star.svg.SVGWriter when using
GraphicProvider
Adapted patch provided by Sven Jacobi (thanks), added some fixes/cleanups to
make it work with all kind of graphics (SVG, Bitmap, Metafile)
(cherry picked from commit 891011181285d7ad54984ffd05ed44d825a70647)
Conflicts:
filter/inc/filter/msfilter/msdffimp.hxx
filter/source/graphicfilter/epict/epict.cxx
filter/source/svg/svgexport.cxx
filter/source/svg/svguno.cxx
filter/source/svg/svgwriter.cxx
filter/source/svg/svgwriter.hxx
svtools/source/filter/filter.cxx
Change-Id: Ie53f995614060a00c709f620f89d132913a25c5c
Diffstat (limited to 'filter/source/svg/svgwriter.hxx')
-rw-r--r-- | filter/source/svg/svgwriter.hxx | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/filter/source/svg/svgwriter.hxx b/filter/source/svg/svgwriter.hxx index dbce63487b74..31ef4239c334 100644 --- a/filter/source/svg/svgwriter.hxx +++ b/filter/source/svg/svgwriter.hxx @@ -21,7 +21,7 @@ #define SVGWRITER_HXX #include <stack> -#include <cppuhelper/weak.hxx> +#include <cppuhelper/implbase1.hxx> #include <rtl/ustring.hxx> #include <tools/stream.hxx> #include <tools/string.hxx> @@ -58,6 +58,7 @@ #include <com/sun/star/text/XTextRange.hpp> #include <com/sun/star/text/XTextField.hpp> #include <com/sun/star/style/NumberingType.hpp> +#include <com/sun/star/svg/XSVGWriter.hpp> // ----------------------------------------------------------------------------- @@ -68,6 +69,8 @@ using namespace ::com::sun::star::lang; using namespace ::com::sun::star::text; using namespace ::com::sun::star::drawing; using namespace ::com::sun::star::style; +using namespace ::com::sun::star::svg; +using namespace ::com::sun::star::xml::sax; // ----------------------------------------------------------------------------- @@ -152,6 +155,7 @@ struct SVGShapeDescriptor class SVGAttributeWriter; +class SVGExport; class GDIMetaFile; @@ -400,6 +404,22 @@ public: const GDIMetaFile* pTextEmbeddedBitmapMtf = NULL ); }; +class SVGWriter : public cppu::WeakImplHelper1< XSVGWriter > +{ +private: + Reference< XComponentContext > mxContext; + + SVGWriter(); + +public: + explicit SVGWriter( const Reference< XComponentContext >& rxCtx ); + virtual ~SVGWriter(); + + // XSVGWriter + virtual void SAL_CALL write( const Reference<XDocumentHandler>& rxDocHandler, + const Sequence<sal_Int8>& rMtfSeq ) throw( RuntimeException ); +}; + #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |