LibreOffice Module xmloff (master) 1
|
#include <XMLFontAutoStylePool.hxx>
Public Member Functions | |
XMLFontAutoStylePool (SvXMLExport &rExport, bool tryToEmbedFonts=false) | |
virtual | ~XMLFontAutoStylePool () override |
OUString | Add (const OUString &rFamilyName, const OUString &rStyleName, FontFamily nFamily, FontPitch nPitch, rtl_TextEncoding eEnc) |
OUString | Find (const OUString &rFamilyName, const OUString &rStyleName, FontFamily nFamily, FontPitch nPitch, rtl_TextEncoding eEnc) const |
void | exportXML () |
void | setEmbedOnlyUsedFonts (bool bEmbedUsedOnly) |
void | setEmbedFontScripts (bool bEmbedLatinScript, bool bEmbedAsianScript, bool bEmbedComplexScript) |
Public Member Functions inherited from salhelper::SimpleReferenceObject | |
SimpleReferenceObject () | |
void | acquire () |
void | release () |
Protected Member Functions | |
SvXMLExport & | GetExport () |
Protected Member Functions inherited from salhelper::SimpleReferenceObject | |
virtual | ~SimpleReferenceObject () COVERITY_NOEXCEPT_FALSE |
Protected Attributes | |
bool | m_bEmbedUsedOnly |
bool | m_bEmbedLatinScript |
bool | m_bEmbedAsianScript |
bool | m_bEmbedComplexScript |
Protected Attributes inherited from salhelper::SimpleReferenceObject | |
oslInterlockedCount | m_nCount |
Private Member Functions | |
OUString | embedFontFile (OUString const &rFileUrl, OUString const &rFamilyName) |
std::unordered_set< OUString > | getUsedFontList () |
Private Attributes | |
SvXMLExport & | m_rExport |
std::unique_ptr< XMLFontAutoStylePool_Impl > | m_pFontAutoStylePool |
std::set< OUString > | m_aNames |
bool | m_bTryToEmbedFonts |
std::unordered_map< OString, OUString > | m_aEmbeddedFontFiles |
Additional Inherited Members | |
Static Public Member Functions inherited from salhelper::SimpleReferenceObject | |
static void * | operator new (std::size_t nSize) |
static void * | operator new (std::size_t nSize, std::nothrow_t const &rNothrow) |
static void | operator delete (void *pPtr) |
static void | operator delete (void *pPtr, std::nothrow_t const &rNothrow) |
Definition at line 36 of file XMLFontAutoStylePool.hxx.
XMLFontAutoStylePool::XMLFontAutoStylePool | ( | SvXMLExport & | rExport, |
bool | tryToEmbedFonts = false |
||
) |
Definition at line 152 of file XMLFontAutoStylePool.cxx.
|
overridevirtual |
Definition at line 163 of file XMLFontAutoStylePool.cxx.
OUString XMLFontAutoStylePool::Add | ( | const OUString & | rFamilyName, |
const OUString & | rStyleName, | ||
FontFamily | nFamily, | ||
FontPitch | nPitch, | ||
rtl_TextEncoding | eEnc | ||
) |
Definition at line 167 of file XMLFontAutoStylePool.cxx.
References m_aNames, m_pFontAutoStylePool, nCount, sName, and sPrefix.
Referenced by SdXMLExport::CreateFontAutoStylePool().
|
private |
Definition at line 611 of file XMLFontAutoStylePool.cxx.
References Exception, GetExport(), getFileHash(), getFreeFontName(), m_aEmbeddedFontFiles, name, SAL_WARN, and TOOLS_WARN_EXCEPTION.
Referenced by exportXML().
void XMLFontAutoStylePool::exportXML | ( | ) |
Definition at line 391 of file XMLFontAutoStylePool.cxx.
References SvXMLExport::AddAttribute(), Any, EMBEDDED, embedFontFile(), XMLBase64Export::exportOfficeBinaryDataElement(), XMLFontFamilyNamePropHdl::exportXML(), XMLFontFamilyPropHdl::exportXML(), XMLFontEncodingPropHdl::exportXML(), XMLFontPitchPropHdl::exportXML(), EmbeddedFontsHelper::fontFileUrl(), getComponentContext(), GetExport(), SvXMLExport::GetMM100UnitConverter(), getUsedFontList(), ITALIC_NONE, ITALIC_NORMAL, m_bEmbedUsedOnly, m_bTryToEmbedFonts, m_pFontAutoStylePool, EmbeddedFontsHelper::ViewingAllowed, WEIGHT_BOLD, WEIGHT_NORMAL, xmloff::token::XML_FONT_ADORNMENTS, xmloff::token::XML_FONT_CHARSET, xmloff::token::XML_FONT_FACE, xmloff::token::XML_FONT_FACE_DECLS, xmloff::token::XML_FONT_FACE_FORMAT, xmloff::token::XML_FONT_FACE_SRC, xmloff::token::XML_FONT_FACE_URI, xmloff::token::XML_FONT_FAMILY, xmloff::token::XML_FONT_FAMILY_GENERIC, xmloff::token::XML_FONT_PITCH, xmloff::token::XML_FONT_STYLE, xmloff::token::XML_FONT_WEIGHT, xmloff::token::XML_HREF, xmloff::token::XML_NAME, XML_NAMESPACE_LO_EXT, XML_NAMESPACE_OFFICE, XML_NAMESPACE_STYLE, XML_NAMESPACE_SVG, XML_NAMESPACE_XLINK, xmloff::token::XML_STRING, and xmloff::token::XML_TYPE.
OUString XMLFontAutoStylePool::Find | ( | const OUString & | rFamilyName, |
const OUString & | rStyleName, | ||
FontFamily | nFamily, | ||
FontPitch | nPitch, | ||
rtl_TextEncoding | eEnc | ||
) | const |
Definition at line 220 of file XMLFontAutoStylePool.cxx.
References m_pFontAutoStylePool, and sName.
|
inlineprotected |
Definition at line 56 of file XMLFontAutoStylePool.hxx.
Referenced by embedFontFile(), exportXML(), and getUsedFontList().
|
private |
Definition at line 303 of file XMLFontAutoStylePool.cxx.
References Any, SvXMLExport::collectAutoStyles(), SvXMLExport::GetAutoStylePool(), GetExport(), m_bEmbedAsianScript, m_bEmbedComplexScript, and m_bEmbedLatinScript.
Referenced by exportXML().
|
inline |
Definition at line 82 of file XMLFontAutoStylePool.hxx.
Referenced by SdXMLExport::CreateFontAutoStylePool().
|
inline |
Definition at line 78 of file XMLFontAutoStylePool.hxx.
Referenced by SdXMLExport::CreateFontAutoStylePool().
|
private |
Definition at line 44 of file XMLFontAutoStylePool.hxx.
Referenced by embedFontFile().
|
private |
Definition at line 42 of file XMLFontAutoStylePool.hxx.
Referenced by Add().
|
protected |
Definition at line 53 of file XMLFontAutoStylePool.hxx.
Referenced by getUsedFontList().
|
protected |
Definition at line 54 of file XMLFontAutoStylePool.hxx.
Referenced by getUsedFontList().
|
protected |
Definition at line 52 of file XMLFontAutoStylePool.hxx.
Referenced by getUsedFontList().
|
protected |
Definition at line 51 of file XMLFontAutoStylePool.hxx.
Referenced by exportXML().
|
private |
Definition at line 43 of file XMLFontAutoStylePool.hxx.
Referenced by exportXML().
|
private |
Definition at line 41 of file XMLFontAutoStylePool.hxx.
Referenced by Add(), exportXML(), and Find().
|
private |
Definition at line 39 of file XMLFontAutoStylePool.hxx.