LibreOffice Module l10ntools (master) 1
|
Class for localization of *.tree files. More...
#include <treemerge.hxx>
Public Member Functions | |
TreeParser (const OString &rInputFile, OString sLang) | |
Parse tree file. More... | |
~TreeParser () | |
bool | isInitialized () const |
void | Extract (const OString &rPOFile) |
Export strings. More... | |
void | Merge (const OString &rMergeSrc, const OString &rDestinationFile, const OString &rXhpRoot) |
Merge strings to tree file and update reference to help files(xhp) More... | |
Private Attributes | |
xmlDocPtr | m_pSource |
OString | m_sLang |
bool | m_bIsInitialized |
Class for localization of *.tree files.
Parse *.tree files, extract translatable strings, merge translated strings and update reference and title of referred help files.
Definition at line 23 of file treemerge.hxx.
TreeParser::TreeParser | ( | const OString & | rInputFile, |
OString | sLang | ||
) |
Parse tree file.
Definition at line 199 of file treemerge.cxx.
References m_bIsInitialized, and m_pSource.
TreeParser::~TreeParser | ( | ) |
Definition at line 220 of file treemerge.cxx.
References m_bIsInitialized, and m_pSource.
void TreeParser::Extract | ( | const OString & | rPOFile | ) |
Export strings.
Definition at line 227 of file treemerge.cxx.
References PoOfstream::APP, PoOfstream::close(), PoOfstream::isOpen(), m_bIsInitialized, and m_pSource.
Referenced by SAL_IMPLEMENT_MAIN_WITH_ARGS().
|
inline |
Definition at line 35 of file treemerge.hxx.
References m_bIsInitialized.
Referenced by SAL_IMPLEMENT_MAIN_WITH_ARGS().
void TreeParser::Merge | ( | const OString & | rMergeSrc, |
const OString & | rDestinationFile, | ||
const OString & | rXhpRoot | ||
) |
Merge strings to tree file and update reference to help files(xhp)
Definition at line 250 of file treemerge.cxx.
References MergeDataFile::GetLanguages(), m_bIsInitialized, m_pSource, and m_sLang.
Referenced by SAL_IMPLEMENT_MAIN_WITH_ARGS().
|
private |
Definition at line 28 of file treemerge.hxx.
Referenced by Extract(), isInitialized(), Merge(), TreeParser(), and ~TreeParser().
|
private |
Definition at line 26 of file treemerge.hxx.
Referenced by Extract(), Merge(), TreeParser(), and ~TreeParser().
|
private |
Definition at line 27 of file treemerge.hxx.
Referenced by Merge().