diff options
author | Marco Cecchetti <marco.cecchetti@collabora.com> | 2016-06-16 13:36:51 +0200 |
---|---|---|
committer | Marco Cecchetti <mrcekets@gmail.com> | 2016-07-01 09:41:20 +0000 |
commit | 1085035078ac1546238be5de2ec47f70a8caffb1 (patch) | |
tree | 33110a65506adac8613bb580705c61d2399ca2fc /filter | |
parent | lool - bccu#1307 - stop colors for background gradient was wrong (diff) | |
download | core-1085035078ac1546238be5de2ec47f70a8caffb1.tar.gz core-1085035078ac1546238be5de2ec47f70a8caffb1.zip |
svgfilter - polish code formatting
Change-Id: Ic63cfeb352326f3375ba664a775e58c566901320
Reviewed-on: https://gerrit.libreoffice.org/26830
Reviewed-by: Marco Cecchetti <mrcekets@gmail.com>
Tested-by: Marco Cecchetti <mrcekets@gmail.com>
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/svg/svgwriter.hxx | 43 |
1 files changed, 20 insertions, 23 deletions
diff --git a/filter/source/svg/svgwriter.hxx b/filter/source/svg/svgwriter.hxx index 38eedc0411ce..76c2df0b1592 100644 --- a/filter/source/svg/svgwriter.hxx +++ b/filter/source/svg/svgwriter.hxx @@ -84,13 +84,13 @@ class SVGAttributeWriter { private: - vcl::Font maCurFont; - SVGExport& mrExport; - SVGFontExport& mrFontExport; - SvXMLElementExport* mpElemFont; - + vcl::Font maCurFont; + SVGExport& mrExport; + SVGFontExport& mrFontExport; + SvXMLElementExport* mpElemFont; static double ImplRound( double fVal ); + public: SVGAttributeWriter( SVGExport& rExport, SVGFontExport& rFontExport ); @@ -111,14 +111,13 @@ public: struct SVGShapeDescriptor { - tools::PolyPolygon maShapePolyPoly; - Color maShapeFillColor; - Color maShapeLineColor; - sal_Int32 mnStrokeWidth; - SvtGraphicStroke::DashArray maDashArray; - ::std::unique_ptr< Gradient > mapShapeGradient; - OUString maId; - + tools::PolyPolygon maShapePolyPoly; + Color maShapeFillColor; + Color maShapeLineColor; + sal_Int32 mnStrokeWidth; + SvtGraphicStroke::DashArray maDashArray; + ::std::unique_ptr< Gradient > mapShapeGradient; + OUString maId; basegfx::B2DLineJoin maLineJoin; css::drawing::LineCap maLineCap; @@ -157,9 +156,9 @@ class SVGTextWriter SVGExport& mrExport; SVGAttributeWriter* mpContext; VclPtr<VirtualDevice> mpVDev; - bool mbIsTextShapeStarted; + bool mbIsTextShapeStarted; Reference<XText> mrTextShape; - OUString msShapeId; + OUString msShapeId; Reference<XEnumeration> mrParagraphEnumeration; Reference<XTextContent> mrCurrentTextParagraph; Reference<XEnumeration> mrTextPortionEnumeration; @@ -248,8 +247,6 @@ class SVGTextWriter void implRegisterInterface( const Reference< XInterface >& rxIf ); const OUString & implGetValidIDFromInterface( const Reference< XInterface >& rxIf ); - - }; @@ -268,8 +265,8 @@ private: SVGTextWriter maTextWriter; VclPtr<VirtualDevice> mpVDev; MapMode maTargetMapMode; - bool mbClipAttrChanged; - bool mbIsPlaceholderShape; + bool mbClipAttrChanged; + bool mbIsPlaceholderShape; void ImplAcquireContext() @@ -323,11 +320,10 @@ private: public: - static OUString GetPathString( const tools::PolyPolygon& rPolyPoly, bool bLine ); - static BitmapChecksum GetChecksum( const MetaAction* pAction ); + static OUString GetPathString( const tools::PolyPolygon& rPolyPoly, bool bLine ); + static BitmapChecksum GetChecksum( const MetaAction* pAction ); public: - SVGActionWriter( SVGExport& rExport, SVGFontExport& rFontExport ); virtual ~SVGActionWriter(); @@ -354,7 +350,8 @@ public: // XSVGWriter virtual void SAL_CALL write( const Reference<XDocumentHandler>& rxDocHandler, - const Sequence<sal_Int8>& rMtfSeq ) throw( RuntimeException, std::exception ) override; + const Sequence<sal_Int8>& rMtfSeq ) + throw( RuntimeException, std::exception ) override; }; #endif // INCLUDED_FILTER_SOURCE_SVG_SVGWRITER_HXX |