LibreOffice Module filter (master) 1
Public Member Functions | Static Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
SVGAttributeWriter Class Referencefinal

#include <svgwriter.hxx>

Collaboration diagram for SVGAttributeWriter:
[legend]

Public Member Functions

 SVGAttributeWriter (SVGExport &rExport, SVGFontExport &rFontExport, SVGState &rCurState)
 
 ~SVGAttributeWriter ()
 
void AddColorAttr (const OUString &pColorAttrName, const OUString &pColorOpacityAttrName, const Color &rColor)
 
void AddGradientDef (const tools::Rectangle &rObjRect, const Gradient &rGradient, OUString &rGradientId)
 
void AddPaintAttr (const Color &rLineColor, const Color &rFillColor, const tools::Rectangle *pObjBoundRect=nullptr, const Gradient *pFillGradient=nullptr)
 
void SetFontAttr (const vcl::Font &rFont)
 
void startFontSettings ()
 
void endFontSettings ()
 
void setFontFamily ()
 

Static Public Member Functions

static void ImplGetColorStr (const Color &rColor, OUString &rColorStr)
 

Static Private Member Functions

static double ImplRound (double fVal)
 

Private Attributes

SVGExportmrExport
 
SVGFontExportmrFontExport
 
SVGStatemrCurrentState
 
std::unique_ptr< SvXMLElementExportmpElemFont
 

Detailed Description

Definition at line 131 of file svgwriter.hxx.

Constructor & Destructor Documentation

◆ SVGAttributeWriter()

SVGAttributeWriter::SVGAttributeWriter ( SVGExport rExport,
SVGFontExport rFontExport,
SVGState rCurState 
)

Definition at line 148 of file svgwriter.cxx.

◆ ~SVGAttributeWriter()

SVGAttributeWriter::~SVGAttributeWriter ( )

Definition at line 156 of file svgwriter.cxx.

Member Function Documentation

◆ AddColorAttr()

void SVGAttributeWriter::AddColorAttr ( const OUString &  pColorAttrName,
const OUString &  pColorOpacityAttrName,
const Color rColor 
)

◆ AddGradientDef()

void SVGAttributeWriter::AddGradientDef ( const tools::Rectangle rObjRect,
const Gradient rGradient,
OUString &  rGradientId 
)

◆ AddPaintAttr()

void SVGAttributeWriter::AddPaintAttr ( const Color rLineColor,
const Color rFillColor,
const tools::Rectangle pObjBoundRect = nullptr,
const Gradient pFillGradient = nullptr 
)

◆ endFontSettings()

void SVGAttributeWriter::endFontSettings ( )

Definition at line 427 of file svgwriter.cxx.

References mpElemFont.

Referenced by startFontSettings().

◆ ImplGetColorStr()

void SVGAttributeWriter::ImplGetColorStr ( const Color rColor,
OUString &  rColorStr 
)
static

◆ ImplRound()

double SVGAttributeWriter::ImplRound ( double  fVal)
staticprivate

Definition at line 161 of file svgwriter.cxx.

Referenced by AddColorAttr(), and AddGradientDef().

◆ SetFontAttr()

void SVGAttributeWriter::SetFontAttr ( const vcl::Font rFont)

◆ setFontFamily()

void SVGAttributeWriter::setFontFamily ( )

◆ startFontSettings()

void SVGAttributeWriter::startFontSettings ( )

Member Data Documentation

◆ mpElemFont

std::unique_ptr<SvXMLElementExport> SVGAttributeWriter::mpElemFont
private

Definition at line 138 of file svgwriter.hxx.

Referenced by endFontSettings(), and startFontSettings().

◆ mrCurrentState

SVGState& SVGAttributeWriter::mrCurrentState
private

Definition at line 137 of file svgwriter.hxx.

Referenced by SetFontAttr(), and setFontFamily().

◆ mrExport

SVGExport& SVGAttributeWriter::mrExport
private

◆ mrFontExport

SVGFontExport& SVGAttributeWriter::mrFontExport
private

Definition at line 136 of file svgwriter.hxx.

Referenced by setFontFamily().


The documentation for this class was generated from the following files: