diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-03-17 15:24:27 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-03-18 09:59:04 +0100 |
commit | 7cb91a40e20b0ea405042429a1b497bf3c983e01 (patch) | |
tree | 9440fc68ac2ac23c4aa8b69b5ed8158e0a784188 /include/unotools | |
parent | f451878ccff475dd263ad67ade5e1896cf9fc734 (diff) |
tdf#133603 cache languagetag in FontSubstConfiguration
speeds up saving XLSX by 10%
Change-Id: I5f48fcd3de44675d27e275c6ff2f4e51a067c750
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131727
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/unotools')
-rw-r--r-- | include/unotools/fontcfg.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/unotools/fontcfg.hxx b/include/unotools/fontcfg.hxx index 99520e39528b..1f77d484531a 100644 --- a/include/unotools/fontcfg.hxx +++ b/include/unotools/fontcfg.hxx @@ -24,6 +24,7 @@ #include <tools/fontenum.hxx> #include <com/sun/star/uno/Reference.hxx> #include <o3tl/typed_flags_set.hxx> +#include <i18nlangtag/languagetag.hxx> #include <unordered_map> #include <unordered_set> @@ -32,8 +33,6 @@ namespace com::sun::star::container { class XNameAccess; } namespace com::sun::star::lang { class XMultiServiceFactory; } -class LanguageTag; - enum class DefaultFontType; // If you think the below concept of classifying a font (typeface) as possibly being one or several @@ -156,6 +155,7 @@ private: std::unordered_map< OUString, LocaleSubst > m_aSubst; typedef std::unordered_set< OUString > UniqueSubstHash; mutable UniqueSubstHash maSubstHash; + LanguageTag maLanguageTag; void fillSubstVector( const css::uno::Reference< css::container::XNameAccess >& rFont, const OUString& rType, |