diff options
author | László Németh <nemeth@numbertext.org> | 2018-02-20 11:38:24 +0100 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2018-05-03 11:42:20 +0200 |
commit | f1579d3d6c5f5f3a651825e035b93bee7a4f43c6 (patch) | |
tree | 302e93db63f5029f521a0dba446e2c7b91d08a10 /include | |
parent | f5a56c367fba1c42b4f9719b10ff3e86ad5e2ab1 (diff) |
tdf#117171 support localized number name numbering styles
in page number, chapter and outline numbering
in ~30 languages by integrating libnumbertext library.
- offapi: add linguistic2::NumberText
New NumberingType constants:
- ordinal indicators (1st, 2nd, 3rd...)
- cardinal number names (One, Two, Three...)
- ordinal number names (First, Second, Third...)
Note: these numberings are parts of OOXML, too.
Plain text files of Libnumbertext's language data
are installed in share/numbertext (similar to
share/fingerprint), allowing further customization.
Change-Id: I4034da0a40a8c926f14a3f591749a89a8d807d5a
Reviewed-on: https://gerrit.libreoffice.org/53313
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/editeng/svxenum.hxx | 5 | ||||
-rw-r--r-- | include/unotools/pathoptions.hxx | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/include/editeng/svxenum.hxx b/include/editeng/svxenum.hxx index b756aef96481..ad7a2d5053e1 100644 --- a/include/editeng/svxenum.hxx +++ b/include/editeng/svxenum.hxx @@ -201,7 +201,10 @@ enum SvxNumType : sal_Int16 SVX_NUM_NUMBER_HEBREW = css::style::NumberingType::NUMBER_HEBREW, SVX_NUM_NUMBER_ARABIC_INDIC = css::style::NumberingType::NUMBER_ARABIC_INDIC, SVX_NUM_NUMBER_EAST_ARABIC_INDIC = css::style::NumberingType::NUMBER_EAST_ARABIC_INDIC, - SVX_NUM_NUMBER_INDIC_DEVANAGARI = css::style::NumberingType::NUMBER_INDIC_DEVANAGARI + SVX_NUM_NUMBER_INDIC_DEVANAGARI = css::style::NumberingType::NUMBER_INDIC_DEVANAGARI, + SVX_NUM_TEXT_NUMBER = css::style::NumberingType::TEXT_NUMBER, + SVX_NUM_TEXT_CARDINAL = css::style::NumberingType::TEXT_CARDINAL, + SVX_NUM_TEXT_ORDINAL = css::style::NumberingType::TEXT_ORDINAL }; #endif diff --git a/include/unotools/pathoptions.hxx b/include/unotools/pathoptions.hxx index 2334e0b56852..74a408a7c9ef 100644 --- a/include/unotools/pathoptions.hxx +++ b/include/unotools/pathoptions.hxx @@ -65,6 +65,7 @@ public: PATH_CLASSIFICATION, PATH_UICONFIG, PATH_FINGERPRINT, + PATH_NUMBERTEXT, PATH_COUNT // should always be the last element }; @@ -96,6 +97,7 @@ public: const OUString& GetUserConfigPath() const; const OUString& GetWorkPath() const; const OUString& GetFingerprintPath() const; + const OUString& GetNumbertextPath() const; const OUString& GetClassificationPath() const; // set the paths |