diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2018-06-23 16:01:19 +0200 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2018-06-24 15:33:44 +0200 |
commit | a7af4bbbc0793fb78aea6a89f8fb6dc052710a11 (patch) | |
tree | 12a0711925e58904895f7a5a0cea7a6dafc04266 /include | |
parent | 04645273d7c9dd6927035b571464148a38d3db9f (diff) |
vcl: treat description of cv** & ss** font features specially
To avoid adding descriptions for each of font features cv** and
ss**, where ** is a number between 00-99, process them separately
and just use one description for each. This simplifies translation
as we don't need to add 99 copy-paste translations but add a bit
more complexity when looking up the descriptions.
Change-Id: Ia6e9554af20355c90c73afeec33fd18c694865b9
Reviewed-on: https://gerrit.libreoffice.org/56317
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/font/Feature.hxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/vcl/font/Feature.hxx b/include/vcl/font/Feature.hxx index 0ab375e1a76c..9b0d29db3190 100644 --- a/include/vcl/font/Feature.hxx +++ b/include/vcl/font/Feature.hxx @@ -56,6 +56,7 @@ private: sal_uInt32 m_nCode; OUString m_sDescription; const char* m_pDescriptionID; + OUString m_sNumericPart; FeatureParameterType m_eType; // the index of the parameter defines the enum value, string is the description std::vector<FeatureParameter> m_aEnumParameters; @@ -66,7 +67,8 @@ public: FeatureParameterType eType = FeatureParameterType::BOOL, std::vector<FeatureParameter> const& rEnumParameters = std::vector<FeatureParameter>{}); - FeatureDefinition(sal_uInt32 nCode, const char* pDescriptionID); + FeatureDefinition(sal_uInt32 nCode, const char* pDescriptionID, + OUString const& rNumericPart = OUString()); FeatureDefinition(sal_uInt32 nCode, const char* pDescriptionID, std::vector<FeatureParameter> aEnumParameters); |