diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-13 08:17:10 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-13 08:17:42 +0200 |
commit | b8d977c0178f8ac4ee299722d50c1481a15b45c8 (patch) | |
tree | 6cd8560661bb8b713e4373379052e85ab30598dd /include/svl | |
parent | 80d2fa87fdaf67615d7b8128f3c05b239a1f1c05 (diff) |
convert CharCompressType to scoped enum
and move it to svl, where it belongs
Change-Id: Ic4d846419dfe2dd85de5ade8ed1a041867bbf1dc
Diffstat (limited to 'include/svl')
-rw-r--r-- | include/svl/asiancfg.hxx | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/include/svl/asiancfg.hxx b/include/svl/asiancfg.hxx index 71662c4a57f7..cef636155519 100644 --- a/include/svl/asiancfg.hxx +++ b/include/svl/asiancfg.hxx @@ -31,6 +31,16 @@ namespace com { namespace sun { namespace star { namespace lang { struct Locale; } } } } +/// These constants define character compression in Asian text. +/// Must match the values in com::sun::star::text::CharacterCompressionType. +/// For bonus points, also appears to be directly stored in the ww8 file format. +enum class CharCompressType { + NONE, /// No Compression + PunctuationOnly, /// Only punctuation is compressed + PunctuationAndKana, /// Punctuation and Japanese Kana are compressed. + Invalid = 0xff /// only used in SC +}; + class SVL_DLLPUBLIC SvxAsianConfig { public: SvxAsianConfig(); @@ -44,9 +54,9 @@ public: void SetKerningWesternTextOnly(bool value); - sal_Int16 GetCharDistanceCompression() const; + CharCompressType GetCharDistanceCompression() const; - void SetCharDistanceCompression(sal_Int16 value); + void SetCharDistanceCompression(CharCompressType value); css::uno::Sequence< css::lang::Locale > GetStartEndCharLocales() const; |