26#include <com/sun/star/uno/Sequence.hxx>
30using namespace ::
cppu;
37 OFileWriter(
const char *pcFile,
const char *locale );
48 void writeOUStringFunction2(
const char *func,
const char *style,
const char* attr,
const char *array)
const;
50 void writeOUStringFunction3(
const char *func,
const char *style,
const char* levels,
const char* attr,
const char *array)
const;
55 void writeParameter(
const char* pAsciiStr, std::u16string_view aChars, sal_Int16
count)
const;
59 void writeOUStringLiteralParameter(
const char* pTagStr,
const char* pAsciiStr, std::u16string_view aChars, sal_Int16 count0, sal_Int16 count1)
const;
73 explicit Attr (
const Reference< XAttributeList > & attr);
84 std::vector<std::unique_ptr<LocaleNode>>
children;
90 LocaleNode (OUString name,
const Reference< XAttributeList > & attr);
112 void incError(
const char* pStr )
const;
114 void incError( std::u16string_view rStr )
const;
116 void incErrorInt(
const char* pStr,
int nVal )
const;
118 void incErrorStr(
const char* pStr, std::u16string_view rVal )
const;
120 void incErrorStrStr(
const char* pStr, std::u16string_view rVal1, std::u16string_view rVal2 )
128 const Reference< XAttributeList > & attr) :
LocaleNode (
name, attr) { ; };
136 const Reference< XAttributeList > & attr) :
LocaleNode (
name, attr) { ; };
146 const Reference< XAttributeList > & attr) :
LocaleNode (
name, attr) { ; };
154 const Reference< XAttributeList > & attr) :
LocaleNode (
name, attr) { ; };
162 const Reference< XAttributeList > & attr) :
LocaleNode (
name, attr) { ; };
170 const Reference< XAttributeList > & attr) :
LocaleNode (
name, attr) { ; };
178 const Reference< XAttributeList > & attr) :
LocaleNode (
name, attr) { ; };
183 const LocaleNode* pNode, sal_Int16 nChild, std::u16string_view rCalendarID )
const;
189 const Reference< XAttributeList > & attr) :
LocaleNode (
name, attr) { ; };
197 const Reference< XAttributeList > & attr) :
LocaleNode (
name, attr) { ; };
205 const Reference< XAttributeList > & attr) :
LocaleNode (
name, attr) { ; };
213 const Reference< XAttributeList > & attr) :
LocaleNode (
name, attr) { ; };
221 const Reference< XAttributeList > & attr) :
LocaleNode (
name, attr) { ; };
Sequence< OUString > name
const OUString & getValueByIndex(sal_Int32 idx) const
OUString getValueByName(const char *str) const
Sequence< OUString > value
Attr(const Reference< XAttributeList > &attr)
LCCTYPENode(const OUString &name, const Reference< XAttributeList > &attr)
virtual void generateCode(const OFileWriter &of) const override
bool expectedCalendarElement(std::u16string_view rName, const LocaleNode *pNode, sal_Int16 nChild, std::u16string_view rCalendarID) const
virtual void generateCode(const OFileWriter &of) const override
LCCalendarNode(const OUString &name, const Reference< XAttributeList > &attr)
LCCollationNode(const OUString &name, const Reference< XAttributeList > &attr)
virtual void generateCode(const OFileWriter &of) const override
LCCurrencyNode(const OUString &name, const Reference< XAttributeList > &attr)
virtual void generateCode(const OFileWriter &of) const override
virtual void generateCode(const OFileWriter &of) const override
LCIndexNode(const OUString &name, const Reference< XAttributeList > &attr)
virtual void generateCode(const OFileWriter &of) const override
LCInfoNode(const OUString &name, const Reference< XAttributeList > &attr)
virtual void generateCode(const OFileWriter &of) const override
LCMiscNode(const OUString &name, const Reference< XAttributeList > &attr)
LCNumberingLevelNode(const OUString &name, const Reference< XAttributeList > &attr)
virtual void generateCode(const OFileWriter &of) const override
virtual void generateCode(const OFileWriter &of) const override
LCOutlineNumberingLevelNode(const OUString &name, const Reference< XAttributeList > &attr)
virtual void generateCode(const OFileWriter &of) const override
LCSearchNode(const OUString &name, const Reference< XAttributeList > &attr)
virtual void generateCode(const OFileWriter &of) const override
LCTransliterationNode(const OUString &name, const Reference< XAttributeList > &attr)
void incErrorStrStr(const char *pStr, std::u16string_view rVal1, std::u16string_view rVal2) const
void addChild(LocaleNode *node)
const OUString & getName() const
void incErrorInt(const char *pStr, int nVal) const
const OUString & getValue() const
sal_Int32 getNumberOfChildren() const
const LocaleNode * getRoot() const
static LocaleNode * createNode(const OUString &name, const Reference< XAttributeList > &attr)
OUString writeOUStringLiteralParameterCheckLen(const OFileWriter &of, const char *pParameterName, const LocaleNode *pNode, sal_Int32 nMinLen, sal_Int32 nMaxLen) const
const Attr & getAttr() const
const LocaleNode * findNode(const char *name) const
void setValue(std::u16string_view oValue)
LocaleNode * getChildAt(sal_Int32 idx) const
void incError(const char *pStr) const
LocaleNode(OUString name, const Reference< XAttributeList > &attr)
virtual void generateCode(const OFileWriter &of) const
std::vector< std::unique_ptr< LocaleNode > > children
void incErrorStr(const char *pStr, std::u16string_view rVal) const
void writeOUStringRefFunction(const char *func, std::u16string_view useLocale) const
void writeOUStringFunction3(const char *func, const char *style, const char *levels, const char *attr, const char *array) const
void writeOUStringFunction2(const char *func, const char *style, const char *attr, const char *array) const
void writeOUStringLiteralIntParameter(const char *pAsciiStr, const sal_Int16 count, sal_Int16 val) const
bool writeOUStringLiteralDefaultParameter(const char *pAsciiStr, std::u16string_view str, sal_Int16 count) const
void writeOUStringLiteralParameter(const char *pAsciiStr, std::u16string_view aChars) const
void writeOUStringRefFunction3(const char *func, std::u16string_view useLocale) const
void writeOUStringLiteralCharacters(std::u16string_view str) const
void writeOUStringFunction(const char *func, const char *count, const char *array) const
const char * getLocale() const
Return the locale string, something like en_US or de_DE.
void writeStringCharacters(std::u16string_view str) const
void writeAsciiString(const char *str) const
void writeInt(sal_Int16 nb) const
void writeParameter(const char *pAsciiStr, std::u16string_view aChars, sal_Int16 count) const
OFileWriter(const char *pcFile, const char *locale)
void writeHexInt(sal_Int16 nb) const
void writeOUStringRefFunction2(const char *func, std::u16string_view useLocale) const