From b8d977c0178f8ac4ee299722d50c1481a15b45c8 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 13 Feb 2017 08:17:10 +0200 Subject: convert CharCompressType to scoped enum and move it to svl, where it belongs Change-Id: Ic4d846419dfe2dd85de5ade8ed1a041867bbf1dc --- include/svl/asiancfg.hxx | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'include/svl') 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; -- cgit v1.2.3