diff options
author | Martin Hosken <martin_hosken@sil.org> | 2019-03-25 13:44:10 +0700 |
---|---|---|
committer | Martin Hosken <martin_hosken@sil.org> | 2019-03-26 05:00:33 +0100 |
commit | 36eb092bed8528eaca295d817ec77fc9a2b73339 (patch) | |
tree | 038c415790db2cd12cb7947659945429a811d0d9 /include/vcl/font | |
parent | 4ca9db953d59d93ce8e3a54a36d23ed52b9c62a9 (diff) |
Allow irregular feature value structures in feature dialog
Change-Id: I92df2d47bebb0b0af38f3527881ac65a11d1bb98
Reviewed-on: https://gerrit.libreoffice.org/69643
Tested-by: Jenkins
Reviewed-by: Martin Hosken <martin_hosken@sil.org>
Diffstat (limited to 'include/vcl/font')
-rw-r--r-- | include/vcl/font/Feature.hxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/vcl/font/Feature.hxx b/include/vcl/font/Feature.hxx index 47092f9bb56e..b56ce19ba194 100644 --- a/include/vcl/font/Feature.hxx +++ b/include/vcl/font/Feature.hxx @@ -60,6 +60,7 @@ private: const char* m_pDescriptionID; OUString m_sNumericPart; uint32_t m_nCode; + uint32_t m_nDefault; FeatureParameterType m_eType; // the index of the parameter defines the enum value, string is the description std::vector<FeatureParameter> m_aEnumParameters; @@ -69,16 +70,18 @@ public: FeatureDefinition(uint32_t nCode, OUString const& rDescription, FeatureParameterType eType = FeatureParameterType::BOOL, std::vector<FeatureParameter> const& rEnumParameters - = std::vector<FeatureParameter>{}); + = std::vector<FeatureParameter>{}, + uint32_t nDefault = 0); FeatureDefinition(uint32_t nCode, const char* pDescriptionID, OUString const& rNumericPart = OUString()); FeatureDefinition(uint32_t nCode, const char* pDescriptionID, std::vector<FeatureParameter> aEnumParameters); const std::vector<FeatureParameter>& getEnumParameters() const; - OUString getDescription() const; uint32_t getCode() const; + OUString getDescription() const; FeatureParameterType getType() const; + uint32_t getDefault() const; operator bool() const; }; |