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

 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   "\xDB\xB1"
 
#define S_HI_TWO   "\xDB\xB2"
 
#define S_HI_THREE   "\xDB\xB3"
 
#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_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

#define C_CYR_A   "\xD0\x90"

Definition at line 37 of file defaultnumberingprovider.cxx.

#define C_CYR_B   "\xD0\x91"

Definition at line 38 of file defaultnumberingprovider.cxx.

#define C_GR_A   "\xCE\x91"

Definition at line 44 of file defaultnumberingprovider.cxx.

#define C_GR_B   "\xCE\x92"

Definition at line 45 of file defaultnumberingprovider.cxx.

#define DOT_SYM   u'.'

Definition at line 511 of file defaultnumberingprovider.cxx.

Referenced by i18npool::lcl_formatCharsGR().

#define LANG_ALL   (1 << 0)
#define LANG_CJK   (1 << 1)
#define LANG_CTL   (1 << 2)
#define LEFT_KERAIA   u'\x0375'

Definition at line 509 of file defaultnumberingprovider.cxx.

Referenced by i18npool::gr_smallNum().

#define MYRIAD   10000

Definition at line 514 of file defaultnumberingprovider.cxx.

Referenced by i18npool::lcl_formatCharsGR().

#define MYRIAD_SYM   u'\x039C'

Definition at line 510 of file defaultnumberingprovider.cxx.

Referenced by i18npool::lcl_formatCharsGR().

#define S_AR_ONE   "\xd9\xa1"

Definition at line 56 of file defaultnumberingprovider.cxx.

#define S_AR_THREE   "\xd9\xa3"

Definition at line 58 of file defaultnumberingprovider.cxx.

#define S_AR_TWO   "\xd9\xa2"

Definition at line 57 of file defaultnumberingprovider.cxx.

#define S_CYR_A   "\xD0\xB0"

Definition at line 40 of file defaultnumberingprovider.cxx.

#define S_CYR_B   "\xD0\xB1"

Definition at line 41 of file defaultnumberingprovider.cxx.

#define S_DAGGER   "\xE2\x80\xA0"

Definition at line 71 of file defaultnumberingprovider.cxx.

#define S_DBL_DAGGER   "\xE2\x80\xA1"

Definition at line 72 of file defaultnumberingprovider.cxx.

#define S_FA_ONE   "\xDB\xB1"

Definition at line 61 of file defaultnumberingprovider.cxx.

#define S_FA_THREE   "\xDB\xB3"

Definition at line 63 of file defaultnumberingprovider.cxx.

#define S_FA_TWO   "\xDB\xB2"

Definition at line 62 of file defaultnumberingprovider.cxx.

#define S_GR_A   "\xCE\xB1"

Definition at line 47 of file defaultnumberingprovider.cxx.

#define S_GR_B   "\xCE\xB2"

Definition at line 48 of file defaultnumberingprovider.cxx.

#define S_HE_ALEPH   "\xD7\x90"

Definition at line 51 of file defaultnumberingprovider.cxx.

#define S_HE_QOF   "\xD7\xA7"

Definition at line 53 of file defaultnumberingprovider.cxx.

#define S_HE_YOD   "\xD7\x99"

Definition at line 52 of file defaultnumberingprovider.cxx.

#define S_HI_ONE   "\xDB\xB1"

Definition at line 66 of file defaultnumberingprovider.cxx.

#define S_HI_THREE   "\xDB\xB3"

Definition at line 68 of file defaultnumberingprovider.cxx.

#define S_HI_TWO   "\xDB\xB2"

Definition at line 67 of file defaultnumberingprovider.cxx.

#define S_SECTION   "\xC2\xA7"

Definition at line 73 of file defaultnumberingprovider.cxx.

#define SIGMA_OFFSET   19

Definition at line 512 of file defaultnumberingprovider.cxx.

Referenced by i18npool::gr_smallNum().

#define STIGMA   u'\x03DB'

Definition at line 508 of file defaultnumberingprovider.cxx.

Referenced by i18npool::gr_smallNum().

#define TAU_OFFSET   20

Definition at line 513 of file defaultnumberingprovider.cxx.

Referenced by i18npool::gr_smallNum().

Function Documentation

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 1259 of file defaultnumberingprovider.cxx.