diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-06 13:00:50 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-06 15:11:59 +0000 |
commit | b37bce11cf59c6c9544e62e81f71a07e4d987a34 (patch) | |
tree | 855229c7d6e375846352dad3d06610700c7f337b /include | |
parent | eb07ab05c3b8774ab2b2059befef0eadf61c97d6 (diff) |
Resolves: rhbz#975421 wrong chart direction in Farsi
Where Farsi (and apparenly Moroccon) are RTL but have LTR
math and charts should reportedly follow the math direction
Change-Id: Ib60eaaaa90fe46ef240030a91169fdff3f736329
Diffstat (limited to 'include')
-rw-r--r-- | include/i18nlangtag/mslangid.hxx | 5 | ||||
-rw-r--r-- | include/vcl/settings.hxx | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/include/i18nlangtag/mslangid.hxx b/include/i18nlangtag/mslangid.hxx index a30bb1d20cbc..b12c34c9869d 100644 --- a/include/i18nlangtag/mslangid.hxx +++ b/include/i18nlangtag/mslangid.hxx @@ -107,9 +107,12 @@ public: static LanguageType resolveSystemLanguageByScriptType( LanguageType nLang, sal_Int16 nType ); - /** Whether locale has a Right-To-Left orientation. */ + /** Whether locale has a Right-To-Left orientation for text. */ static bool isRightToLeft( LanguageType nLang ); + /** Whether locale has a Right-To-Left orientation for math. */ + static bool isRightToLeftMath( LanguageType nLang ); + /** Whether locale is a CJK locale */ static bool isCJK( LanguageType nLang ); diff --git a/include/vcl/settings.hxx b/include/vcl/settings.hxx index ed9e617f3810..d9711de3eb15 100644 --- a/include/vcl/settings.hxx +++ b/include/vcl/settings.hxx @@ -1144,7 +1144,8 @@ public: const LanguageTag& GetLanguageTag() const; void SetUILanguageTag( const LanguageTag& rLanguageTag ); const LanguageTag& GetUILanguageTag() const; - bool GetLayoutRTL() const; // returns true if UI language requires right-to-left UI + bool GetLayoutRTL() const; // returns true if UI language requires right-to-left Text Layout + bool GetMathLayoutRTL() const; // returns true if UI language requires right-to-left Math Layout const LocaleDataWrapper& GetLocaleDataWrapper() const; const LocaleDataWrapper& GetUILocaleDataWrapper() const; const vcl::I18nHelper& GetLocaleI18nHelper() const; |