diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2018-07-06 12:45:31 +0200 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2018-07-10 16:14:59 +0200 |
commit | eb6ff07605a55675e7007ac0cb5604fb13a9ddf9 (patch) | |
tree | 6d5899b5aa7befa5d0c87e78ae8e5cd1e803f7bb /include | |
parent | 76b4820076eb24a4f3e5c8583c117cbf09fb8a8a (diff) |
[API CHANGE] tdf#65353 Add more doc. settings more embedding fonts
- Add setting to embed used fonts only
- Add setting for filtering of Latin, Asian, Complex script fonts
Change-Id: I8d093ed05fdcef3715616c008f6eeaa8cfbcc850
Reviewed-on: https://gerrit.libreoffice.org/57167
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/xmloff/XMLFontAutoStylePool.hxx | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/xmloff/XMLFontAutoStylePool.hxx b/include/xmloff/XMLFontAutoStylePool.hxx index 530d05b2762a..3380fc96d532 100644 --- a/include/xmloff/XMLFontAutoStylePool.hxx +++ b/include/xmloff/XMLFontAutoStylePool.hxx @@ -45,6 +45,10 @@ private: OUString embedFontFile(OUString const & rFileUrl, OUString const & rFamilyName); protected: + bool m_bEmbedUsedOnly; + bool m_bEmbedLatinScript; + bool m_bEmbedAsianScript; + bool m_bEmbedComplexScript; SvXMLExport& GetExport() { return rExport; } @@ -68,6 +72,17 @@ public: rtl_TextEncoding eEnc )const; void exportXML(); + + void setEmbedOnlyUsedFonts(bool bEmbedUsedOnly) + { + m_bEmbedUsedOnly = bEmbedUsedOnly; + } + void setEmbedFontScripts(bool bEmbedLatinScript, bool bEmbedAsianScript, bool bEmbedComplexScript) + { + m_bEmbedLatinScript = bEmbedLatinScript; + m_bEmbedAsianScript = bEmbedAsianScript; + m_bEmbedComplexScript = bEmbedComplexScript; + } }; #endif // INCLUDED_XMLOFF_XMLFONTAUTOSTYLEPOOL_HXX |