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

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ TreeParser()

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::~TreeParser ( )

Definition at line 220 of file treemerge.cxx.

References m_bIsInitialized, and m_pSource.

Member Function Documentation

◆ Extract()

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().

◆ isInitialized()

bool TreeParser::isInitialized ( ) const
inline

Definition at line 35 of file treemerge.hxx.

References m_bIsInitialized.

Referenced by SAL_IMPLEMENT_MAIN_WITH_ARGS().

◆ Merge()

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().

Member Data Documentation

◆ m_bIsInitialized

bool TreeParser::m_bIsInitialized
private

Definition at line 28 of file treemerge.hxx.

Referenced by Extract(), isInitialized(), Merge(), TreeParser(), and ~TreeParser().

◆ m_pSource

xmlDocPtr TreeParser::m_pSource
private

Definition at line 26 of file treemerge.hxx.

Referenced by Extract(), Merge(), TreeParser(), and ~TreeParser().

◆ m_sLang

OString TreeParser::m_sLang
private

Definition at line 27 of file treemerge.hxx.

Referenced by Merge().


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