LibreOffice Module filter (master) 1
|
#include <svgfontexport.hxx>
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< ObjectRepresentation > | ObjectVector |
typedef ::std::set< OUString, ::std::greater< OUString > > | GlyphSet |
typedef ::std::map< FontItalic, GlyphSet > | FontItalicMap |
typedef ::std::map< FontWeight, FontItalicMap > | FontWeightMap |
typedef ::std::map< OUString, FontWeightMap > | FontNameMap |
typedef FontNameMap | GlyphTree |
Private Member Functions | |
GlyphSet & | implGetGlyphSet (const vcl::Font &rFont) |
void | implCollectGlyphs () |
void | implEmbedFont (const vcl::Font &rFont) |
void | implEmbedGlyph (OutputDevice const &rOut, const OUString &rCellStr) |
Private Attributes | |
SVGExport & | mrExport |
GlyphTree | maGlyphTree |
ObjectVector | maObjects |
sal_Int32 | mnCurFontId |
Definition at line 42 of file svgfontexport.hxx.
|
private |
Definition at line 46 of file svgfontexport.hxx.
|
private |
Definition at line 48 of file svgfontexport.hxx.
|
private |
Definition at line 47 of file svgfontexport.hxx.
|
private |
Definition at line 45 of file svgfontexport.hxx.
|
private |
Definition at line 49 of file svgfontexport.hxx.
|
private |
Definition at line 44 of file svgfontexport.hxx.
SVGFontExport::SVGFontExport | ( | SVGExport & | rExport, |
::std::vector< ObjectRepresentation > && | rObjects | ||
) |
Definition at line 40 of file svgfontexport.cxx.
SVGFontExport::~SVGFontExport | ( | ) |
Definition at line 48 of file svgfontexport.cxx.
void SVGFontExport::EmbedFonts | ( | ) |
Definition at line 286 of file svgfontexport.cxx.
References implCollectGlyphs(), implEmbedFont(), maGlyphTree, vcl::Font::SetFamilyName(), vcl::Font::SetItalic(), and vcl::Font::SetWeight().
Referenced by SVGFilter::implExportDocument().
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().
|
private |
Definition at line 78 of file svgfontexport.cxx.
References vcl::unohelper::CreateBreakIterator(), MetaAction::Execute(), GDIMetaFile::GetAction(), GDIMetaFile::GetActionSize(), MetaStretchTextAction::GetIndex(), MetaTextAction::GetIndex(), MetaTextArrayAction::GetIndex(), AllSettings::GetLanguageTag(), MetaStretchTextAction::GetLen(), MetaTextAction::GetLen(), MetaTextArrayAction::GetLen(), LanguageTag::getLocale(), Application::GetSettings(), MetaStretchTextAction::GetText(), MetaTextAction::GetText(), MetaTextArrayAction::GetText(), MetaTextRectAction::GetText(), MetaAction::GetType(), gentoken::i, implGetGlyphSet(), maObjects, nCount, and nType.
Referenced by EmbedFonts().
|
private |
Definition at line 175 of file svgfontexport.cxx.
References SvXMLExport::AddAttribute(), ALIGN_BASELINE, vcl::Font::GetFamilyName(), vcl::Font::GetItalic(), GetMappedFontName(), SVGActionWriter::GetPathString(), vcl::Font::GetWeight(), implEmbedGlyph(), implGetGlyphSet(), SVGExport::IsEmbedFonts(), ITALIC_NONE, mnCurFontId, mrExport, nFontEM, vcl::Font::SetAlignment(), vcl::Font::SetFontSize(), WEIGHT_NORMAL, Size::Width(), and XML_NAMESPACE_NONE.
Referenced by EmbedFonts().
|
private |
Definition at line 252 of file svgfontexport.cxx.
References SvXMLExport::AddAttribute(), SVGActionWriter::GetPathString(), OutputDevice::GetTextBoundRect(), OutputDevice::GetTextOutline(), OutputDevice::GetTextWidth(), tools::Rectangle::GetWidth(), mrExport, tools::PolyPolygon::Scale(), and XML_NAMESPACE_NONE.
Referenced by implEmbedFont().
|
private |
Definition at line 53 of file svgfontexport.cxx.
References vcl::Font::GetFamilyName(), vcl::Font::GetItalic(), vcl::Font::GetWeight(), ITALIC_NONE, ITALIC_NORMAL, maGlyphTree, WEIGHT_BLACK, WEIGHT_BOLD, WEIGHT_NORMAL, and WEIGHT_ULTRABOLD.
Referenced by implCollectGlyphs(), and implEmbedFont().
|
private |
Definition at line 54 of file svgfontexport.hxx.
Referenced by EmbedFonts(), and implGetGlyphSet().
|
private |
Definition at line 55 of file svgfontexport.hxx.
Referenced by implCollectGlyphs().
|
private |
Definition at line 56 of file svgfontexport.hxx.
Referenced by GetMappedFontName(), and implEmbedFont().
|
private |
Definition at line 53 of file svgfontexport.hxx.
Referenced by implEmbedFont(), and implEmbedGlyph().