LibreOffice Module i18npool (master) 1
Classes | Namespaces | Macros | Functions | Variables
defaultnumberingprovider.cxx File Reference
#include <defaultnumberingprovider.hxx>
#include <transliterationImpl.hxx>
#include <com/sun/star/i18n/NativeNumberMode.hpp>
#include <com/sun/star/lang/IllegalArgumentException.hpp>
#include <com/sun/star/style/NumberingType.hpp>
#include <com/sun/star/beans/PropertyValue.hpp>
#include <com/sun/star/configuration/theDefaultProvider.hpp>
#include <com/sun/star/container/XHierarchicalNameAccess.hpp>
#include <osl/diagnose.h>
#include <rtl/ref.hxx>
#include <localedata.hxx>
#include <nativenumbersupplier.hxx>
#include <string.h>
#include <comphelper/propertysequence.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <sal/macros.h>
#include <rtl/ustring.hxx>
#include <rtl/ustrbuf.hxx>
#include <bullet.h>
Include dependency graph for defaultnumberingprovider.cxx:

Go to the source code of this file.

Classes

struct  i18npool::Supported_NumberingType
 

Namespaces

namespace  i18npool
 Constant values shared between i18npool and, for example, the number formatter.
 

Macros

#define C_CYR_A   "\xD0\x90"
 
#define C_CYR_B   "\xD0\x91"
 
#define S_CYR_A   "\xD0\xB0"
 
#define S_CYR_B   "\xD0\xB1"
 
#define C_GR_A   "\xCE\x91"
 
#define C_GR_B   "\xCE\x92"
 
#define S_GR_A   "\xCE\xB1"
 
#define S_GR_B   "\xCE\xB2"
 
#define S_HE_ALEPH   "\xD7\x90"
 
#define S_HE_YOD   "\xD7\x99"
 
#define S_HE_QOF   "\xD7\xA7"
 
#define S_AR_ONE   "\xd9\xa1"
 
#define S_AR_TWO   "\xd9\xa2"
 
#define S_AR_THREE   "\xd9\xa3"
 
#define S_FA_ONE   "\xDB\xB1"
 
#define S_FA_TWO   "\xDB\xB2"
 
#define S_FA_THREE   "\xDB\xB3"
 
#define S_HI_ONE   "\xE0\xA5\xA7"
 
#define S_HI_TWO   "\xE0\xA5\xA8"
 
#define S_HI_THREE   "\xE0\xA5\xA9"
 
#define S_DAGGER   "\xE2\x80\xA0"
 
#define S_DBL_DAGGER   "\xE2\x80\xA1"
 
#define S_SECTION   "\xC2\xA7"
 
#define STIGMA   u'\x03DB'
 
#define LEFT_KERAIA   u'\x0375'
 
#define MYRIAD_SYM   u'\x039C'
 
#define DOT_SYM   u'.'
 
#define SIGMA_OFFSET   19
 
#define TAU_OFFSET   20
 
#define MYRIAD   10000
 
#define LANG_ALL   (1 << 0)
 
#define LANG_CJK   (1 << 1)
 
#define LANG_CTL   (1 << 2)
 

Functions

static OUString i18npool::toRoman (sal_Int32 n)
 
static void i18npool::lcl_formatChars (const sal_Unicode table[], int tableSize, int n, OUString &s)
 
static void i18npool::lcl_formatChars1 (const sal_Unicode table[], int tableSize, int n, OUString &s)
 
static void i18npool::lcl_formatChars2 (const sal_Unicode table_capital[], const sal_Unicode table_small[], int tableSize, int n, OUString &s)
 
static void i18npool::lcl_formatChars3 (const sal_Unicode table_capital[], const sal_Unicode table_small[], int tableSize, int n, OUString &s)
 
static void i18npool::lcl_formatPersianWord (sal_Int32 nNumber, OUString &rsResult)
 Returns number's representation in persian words up to 999999999999 respectively limited by sal_Int32 >=0. More...
 
static void i18npool::lcl_formatKoreanLegalWord (sal_Int32 nNumber, OUString &rsResult)
 
static OUString i18npool::gr_smallNum (const sal_Unicode table[], int n)
 
static void i18npool::lcl_formatCharsGR (const sal_Unicode table[], int n, OUString &s)
 
static bool i18npool::should_ignore (std::u16string_view s)
 
static OUString i18npool::lcl_formatArabicZero (sal_Int32 nNumber, sal_Int32 nLimit)
 Turn nNumber into a string and pad the result to nLimit by inserting zero characters at the start. More...
 
static Any i18npool::getPropertyByName (const Sequence< beans::PropertyValue > &aProperties, const char *name)
 
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * com_sun_star_text_DefaultNumberingProvider_get_implementation (css::uno::XComponentContext *context, css::uno::Sequence< css::uno::Any > const &)
 

Variables

const sal_Unicode i18npool::table_Alphabet_ar []
 
const sal_Unicode i18npool::table_Alphabet_ar_abjad []
 
const sal_Unicode i18npool::table_Alphabet_th []
 
const sal_Unicode i18npool::table_Alphabet_he []
 
const sal_Unicode i18npool::table_Alphabet_ne []
 
const sal_Unicode i18npool::table_Alphabet_km []
 
const sal_Unicode i18npool::table_Alphabet_lo []
 
const sal_Unicode i18npool::table_Alphabet_dz []
 
const sal_Unicode i18npool::table_Alphabet_my []
 
const sal_Unicode i18npool::table_CyrillicUpperLetter_bg []
 
const sal_Unicode i18npool::table_CyrillicLowerLetter_bg []
 
const sal_Unicode i18npool::table_CyrillicUpperLetter_ru []
 
const sal_Unicode i18npool::table_CyrillicLowerLetter_ru []
 
const sal_Unicode i18npool::table_CyrillicUpperLetter_sr []
 
const sal_Unicode i18npool::table_CyrillicLowerLetter_sr []
 
const sal_Unicode i18npool::table_CyrillicUpperLetter_uk []
 
const sal_Unicode i18npool::table_CyrillicLowerLetter_uk []
 
const sal_Unicode i18npool::table_GreekUpperLetter []
 
const sal_Unicode i18npool::table_GreekLowerLetter []
 
const sal_Unicode i18npool::table_Alphabet_fa []
 
const sal_Unicode i18npool::upperLetter []
 
const sal_Unicode i18npool::lowerLetter []
 
const sal_Unicode i18npool::table_Chicago []
 
const sal_Unicode i18npool::table_PersianWord_decade1 [][7]
 
const sal_Unicode i18npool::table_PersianWord_decade2 [][6]
 
const sal_Unicode i18npool::table_PersianWord_decade3 [][7]
 
const sal_Unicode i18npool::table_PersianWord_decadeX [][8]
 
const sal_Unicode i18npool::table_KoreanLegalWord_decade1 [][3]
 
const sal_Unicode i18npool::table_KoreanLegalWord_decade2 [][3]
 
const Supported_NumberingType i18npool::aSupportedTypes []
 
const sal_Int32 i18npool::nSupported_NumberingTypes = SAL_N_ELEMENTS(aSupportedTypes)
 

Macro Definition Documentation

◆ C_CYR_A

#define C_CYR_A   "\xD0\x90"

Definition at line 37 of file defaultnumberingprovider.cxx.

◆ C_CYR_B

#define C_CYR_B   "\xD0\x91"

Definition at line 38 of file defaultnumberingprovider.cxx.

◆ C_GR_A

#define C_GR_A   "\xCE\x91"

Definition at line 44 of file defaultnumberingprovider.cxx.

◆ C_GR_B

#define C_GR_B   "\xCE\x92"

Definition at line 45 of file defaultnumberingprovider.cxx.

◆ DOT_SYM

#define DOT_SYM   u'.'

Definition at line 529 of file defaultnumberingprovider.cxx.

◆ LANG_ALL

#define LANG_ALL   (1 << 0)

Definition at line 1066 of file defaultnumberingprovider.cxx.

◆ LANG_CJK

#define LANG_CJK   (1 << 1)

Definition at line 1067 of file defaultnumberingprovider.cxx.

◆ LANG_CTL

#define LANG_CTL   (1 << 2)

Definition at line 1068 of file defaultnumberingprovider.cxx.

◆ LEFT_KERAIA

#define LEFT_KERAIA   u'\x0375'

Definition at line 527 of file defaultnumberingprovider.cxx.

◆ MYRIAD

#define MYRIAD   10000

Definition at line 532 of file defaultnumberingprovider.cxx.

◆ MYRIAD_SYM

#define MYRIAD_SYM   u'\x039C'

Definition at line 528 of file defaultnumberingprovider.cxx.

◆ S_AR_ONE

#define S_AR_ONE   "\xd9\xa1"

Definition at line 56 of file defaultnumberingprovider.cxx.

◆ S_AR_THREE

#define S_AR_THREE   "\xd9\xa3"

Definition at line 58 of file defaultnumberingprovider.cxx.

◆ S_AR_TWO

#define S_AR_TWO   "\xd9\xa2"

Definition at line 57 of file defaultnumberingprovider.cxx.

◆ S_CYR_A

#define S_CYR_A   "\xD0\xB0"

Definition at line 40 of file defaultnumberingprovider.cxx.

◆ S_CYR_B

#define S_CYR_B   "\xD0\xB1"

Definition at line 41 of file defaultnumberingprovider.cxx.

◆ S_DAGGER

#define S_DAGGER   "\xE2\x80\xA0"

Definition at line 71 of file defaultnumberingprovider.cxx.

◆ S_DBL_DAGGER

#define S_DBL_DAGGER   "\xE2\x80\xA1"

Definition at line 72 of file defaultnumberingprovider.cxx.

◆ S_FA_ONE

#define S_FA_ONE   "\xDB\xB1"

Definition at line 61 of file defaultnumberingprovider.cxx.

◆ S_FA_THREE

#define S_FA_THREE   "\xDB\xB3"

Definition at line 63 of file defaultnumberingprovider.cxx.

◆ S_FA_TWO

#define S_FA_TWO   "\xDB\xB2"

Definition at line 62 of file defaultnumberingprovider.cxx.

◆ S_GR_A

#define S_GR_A   "\xCE\xB1"

Definition at line 47 of file defaultnumberingprovider.cxx.

◆ S_GR_B

#define S_GR_B   "\xCE\xB2"

Definition at line 48 of file defaultnumberingprovider.cxx.

◆ S_HE_ALEPH

#define S_HE_ALEPH   "\xD7\x90"

Definition at line 51 of file defaultnumberingprovider.cxx.

◆ S_HE_QOF

#define S_HE_QOF   "\xD7\xA7"

Definition at line 53 of file defaultnumberingprovider.cxx.

◆ S_HE_YOD

#define S_HE_YOD   "\xD7\x99"

Definition at line 52 of file defaultnumberingprovider.cxx.

◆ S_HI_ONE

#define S_HI_ONE   "\xE0\xA5\xA7"

Definition at line 66 of file defaultnumberingprovider.cxx.

◆ S_HI_THREE

#define S_HI_THREE   "\xE0\xA5\xA9"

Definition at line 68 of file defaultnumberingprovider.cxx.

◆ S_HI_TWO

#define S_HI_TWO   "\xE0\xA5\xA8"

Definition at line 67 of file defaultnumberingprovider.cxx.

◆ S_SECTION

#define S_SECTION   "\xC2\xA7"

Definition at line 73 of file defaultnumberingprovider.cxx.

◆ SIGMA_OFFSET

#define SIGMA_OFFSET   19

Definition at line 530 of file defaultnumberingprovider.cxx.

◆ STIGMA

#define STIGMA   u'\x03DB'

Definition at line 526 of file defaultnumberingprovider.cxx.

◆ TAU_OFFSET

#define TAU_OFFSET   20

Definition at line 531 of file defaultnumberingprovider.cxx.

Function Documentation

◆ com_sun_star_text_DefaultNumberingProvider_get_implementation()

SAL_DLLPUBLIC_EXPORT css::uno::XInterface * com_sun_star_text_DefaultNumberingProvider_get_implementation ( css::uno::XComponentContext *  context,
css::uno::Sequence< css::uno::Any > const &   
)

Definition at line 1303 of file defaultnumberingprovider.cxx.