LibreOffice Module i18npool (master)  1
Public Member Functions | Private Attributes | List of all members
OFileWriter Class Reference

#include <LocaleNode.hxx>

Public Member Functions

 OFileWriter (const char *pcFile, const char *locale)
 
 ~OFileWriter ()
 
void writeStringCharacters (const OUString &str) const
 
void writeAsciiString (const char *str) const
 
void writeInt (sal_Int16 nb) const
 
void writeFunction (const char *func, const char *count, const char *array) const
 
void writeRefFunction (const char *func, std::u16string_view useLocale) const
 
void writeFunction (const char *func, const char *count, const char *array, const char *from, const char *to) const
 
void writeRefFunction (const char *func, std::u16string_view useLocale, const char *to) const
 
void writeFunction2 (const char *func, const char *style, const char *attr, const char *array) const
 
void writeRefFunction2 (const char *func, std::u16string_view useLocale) const
 
void writeFunction3 (const char *func, const char *style, const char *levels, const char *attr, const char *array) const
 
void writeRefFunction3 (const char *func, std::u16string_view useLocale) const
 
void writeIntParameter (const char *pAsciiStr, const sal_Int16 count, sal_Int16 val) const
 
bool writeDefaultParameter (const char *pAsciiStr, std::u16string_view str, sal_Int16 count) const
 
void writeParameter (const char *pAsciiStr, const OUString &aChars) const
 
void writeParameter (const char *pAsciiStr, const OUString &aChars, sal_Int16 count) const
 
void writeParameter (const char *pAsciiStr, const OUString &aChars, sal_Int16 count0, sal_Int16 count1) const
 
void writeParameter (const char *pTagStr, const char *pAsciiStr, const OUString &aChars, const sal_Int16 count) const
 
void writeParameter (const char *pTagStr, const char *pAsciiStr, const OUString &aChars, sal_Int16 count0, sal_Int16 count1) const
 
void closeOutput () const
 
const char * getLocale () const
 Return the locale string, something like en_US or de_DE. More...
 

Private Attributes

std::string theLocale
 
FILEm_f
 

Detailed Description

Definition at line 35 of file LocaleNode.hxx.

Constructor & Destructor Documentation

OFileWriter::OFileWriter ( const char *  pcFile,
const char *  locale 
)

Definition at line 26 of file filewriter.cxx.

References m_f.

OFileWriter::~OFileWriter ( )

Definition at line 32 of file filewriter.cxx.

References m_f.

Member Function Documentation

void OFileWriter::closeOutput ( ) const

Definition at line 171 of file filewriter.cxx.

References m_f.

const char* OFileWriter::getLocale ( ) const
inline

Return the locale string, something like en_US or de_DE.

Definition at line 60 of file LocaleNode.hxx.

References theLocale.

Referenced by LCFormatNode::generateCode(), and LCMiscNode::generateCode().

void OFileWriter::writeAsciiString ( const char *  str) const
bool OFileWriter::writeDefaultParameter ( const char *  pAsciiStr,
std::u16string_view  str,
sal_Int16  count 
) const
void OFileWriter::writeFunction ( const char *  func,
const char *  count,
const char *  array 
) const
void OFileWriter::writeFunction ( const char *  func,
const char *  count,
const char *  array,
const char *  from,
const char *  to 
) const

Definition at line 69 of file filewriter.cxx.

References m_f, and theLocale.

void OFileWriter::writeFunction2 ( const char *  func,
const char *  style,
const char *  attr,
const char *  array 
) const

Definition at line 89 of file filewriter.cxx.

References m_f, and theLocale.

Referenced by LCNumberingLevelNode::generateCode().

void OFileWriter::writeFunction3 ( const char *  func,
const char *  style,
const char *  levels,
const char *  attr,
const char *  array 
) const

Definition at line 106 of file filewriter.cxx.

References m_f, and theLocale.

Referenced by LCOutlineNumberingLevelNode::generateCode().

void OFileWriter::writeInt ( sal_Int16  nb) const
void OFileWriter::writeIntParameter ( const char *  pAsciiStr,
const sal_Int16  count,
sal_Int16  val 
) const
void OFileWriter::writeParameter ( const char *  pAsciiStr,
const OUString &  aChars 
) const
void OFileWriter::writeParameter ( const char *  pAsciiStr,
const OUString &  aChars,
sal_Int16  count 
) const

Definition at line 143 of file filewriter.cxx.

References m_f, and writeStringCharacters().

void OFileWriter::writeParameter ( const char *  pAsciiStr,
const OUString &  aChars,
sal_Int16  count0,
sal_Int16  count1 
) const

Definition at line 150 of file filewriter.cxx.

References m_f, and writeStringCharacters().

void OFileWriter::writeParameter ( const char *  pTagStr,
const char *  pAsciiStr,
const OUString &  aChars,
const sal_Int16  count 
) const

Definition at line 157 of file filewriter.cxx.

References m_f, and writeStringCharacters().

void OFileWriter::writeParameter ( const char *  pTagStr,
const char *  pAsciiStr,
const OUString &  aChars,
sal_Int16  count0,
sal_Int16  count1 
) const

Definition at line 164 of file filewriter.cxx.

References m_f, and writeStringCharacters().

void OFileWriter::writeRefFunction ( const char *  func,
std::u16string_view  useLocale 
) const
void OFileWriter::writeRefFunction ( const char *  func,
std::u16string_view  useLocale,
const char *  to 
) const

Definition at line 78 of file filewriter.cxx.

References m_f, OUStringToOString(), and theLocale.

void OFileWriter::writeRefFunction2 ( const char *  func,
std::u16string_view  useLocale 
) const

Definition at line 97 of file filewriter.cxx.

References m_f, OUStringToOString(), and theLocale.

Referenced by LCNumberingLevelNode::generateCode().

void OFileWriter::writeRefFunction3 ( const char *  func,
std::u16string_view  useLocale 
) const

Definition at line 115 of file filewriter.cxx.

References m_f, OUStringToOString(), and theLocale.

Referenced by LCOutlineNumberingLevelNode::generateCode().

void OFileWriter::writeStringCharacters ( const OUString &  str) const

Definition at line 47 of file filewriter.cxx.

References i, and m_f.

Referenced by writeParameter().

Member Data Documentation

FILE* OFileWriter::m_f
private
std::string OFileWriter::theLocale
private

The documentation for this class was generated from the following files: