LibreOffice Module filter (master) 1
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
SVGFontExport Class Reference

#include <svgfontexport.hxx>

Collaboration diagram for SVGFontExport:
[legend]

Public Member Functions

 SVGFontExport (SVGExport &rExport, ::std::vector< ObjectRepresentation > &&rObjects)
 
 ~SVGFontExport ()
 
void EmbedFonts ()
 
OUString GetMappedFontName (std::u16string_view rFontName) const
 

Private Types

typedef ::std::vector< ObjectRepresentationObjectVector
 
typedef ::std::set< OUString, ::std::greater< OUString > > GlyphSet
 
typedef ::std::map< FontItalic, GlyphSetFontItalicMap
 
typedef ::std::map< FontWeight, FontItalicMapFontWeightMap
 
typedef ::std::map< OUString, FontWeightMapFontNameMap
 
typedef FontNameMap GlyphTree
 

Private Member Functions

GlyphSetimplGetGlyphSet (const vcl::Font &rFont)
 
void implCollectGlyphs ()
 
void implEmbedFont (const vcl::Font &rFont)
 
void implEmbedGlyph (OutputDevice const &rOut, const OUString &rCellStr)
 

Private Attributes

SVGExportmrExport
 
GlyphTree maGlyphTree
 
ObjectVector maObjects
 
sal_Int32 mnCurFontId
 

Detailed Description

Definition at line 42 of file svgfontexport.hxx.

Member Typedef Documentation

◆ FontItalicMap

Definition at line 46 of file svgfontexport.hxx.

◆ FontNameMap

typedef ::std::map< OUString, FontWeightMap > SVGFontExport::FontNameMap
private

Definition at line 48 of file svgfontexport.hxx.

◆ FontWeightMap

Definition at line 47 of file svgfontexport.hxx.

◆ GlyphSet

typedef ::std::set< OUString, ::std::greater< OUString > > SVGFontExport::GlyphSet
private

Definition at line 45 of file svgfontexport.hxx.

◆ GlyphTree

Definition at line 49 of file svgfontexport.hxx.

◆ ObjectVector

typedef ::std::vector< ObjectRepresentation > SVGFontExport::ObjectVector
private

Definition at line 44 of file svgfontexport.hxx.

Constructor & Destructor Documentation

◆ SVGFontExport()

SVGFontExport::SVGFontExport ( SVGExport rExport,
::std::vector< ObjectRepresentation > &&  rObjects 
)

Definition at line 40 of file svgfontexport.cxx.

◆ ~SVGFontExport()

SVGFontExport::~SVGFontExport ( )

Definition at line 48 of file svgfontexport.cxx.

Member Function Documentation

◆ EmbedFonts()

void SVGFontExport::EmbedFonts ( )

◆ GetMappedFontName()

OUString SVGFontExport::GetMappedFontName ( std::u16string_view  rFontName) const

Definition at line 311 of file svgfontexport.cxx.

References o3tl::getToken(), and mnCurFontId.

Referenced by implEmbedFont(), and SVGAttributeWriter::setFontFamily().

◆ implCollectGlyphs()

void SVGFontExport::implCollectGlyphs ( )
private

◆ implEmbedFont()

void SVGFontExport::implEmbedFont ( const vcl::Font rFont)
private

◆ implEmbedGlyph()

void SVGFontExport::implEmbedGlyph ( OutputDevice const &  rOut,
const OUString &  rCellStr 
)
private

◆ implGetGlyphSet()

SVGFontExport::GlyphSet & SVGFontExport::implGetGlyphSet ( const vcl::Font rFont)
private

Member Data Documentation

◆ maGlyphTree

GlyphTree SVGFontExport::maGlyphTree
private

Definition at line 54 of file svgfontexport.hxx.

Referenced by EmbedFonts(), and implGetGlyphSet().

◆ maObjects

ObjectVector SVGFontExport::maObjects
private

Definition at line 55 of file svgfontexport.hxx.

Referenced by implCollectGlyphs().

◆ mnCurFontId

sal_Int32 SVGFontExport::mnCurFontId
private

Definition at line 56 of file svgfontexport.hxx.

Referenced by GetMappedFontName(), and implEmbedFont().

◆ mrExport

SVGExport& SVGFontExport::mrExport
private

Definition at line 53 of file svgfontexport.hxx.

Referenced by implEmbedFont(), and implEmbedGlyph().


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