LibreOffice Module l10ntools (master) 1
|
Interface to write po entry to files as output streams. More...
#include <po.hxx>
Public Types | |
enum | OpenMode { TRUNC , APP } |
Public Member Functions | |
PoOfstream () | |
PoOfstream (const OString &rFileName, OpenMode aMode) | |
~PoOfstream () | |
PoOfstream (const PoOfstream &)=delete | |
PoOfstream & | operator= (const PoOfstream &)=delete |
bool | isOpen () const |
void | open (const OString &rFileName, OpenMode aMode=TRUNC) |
void | close () |
void | writeHeader (const PoHeader &rHeader) |
void | writeEntry (const PoEntry &rPo) |
Private Attributes | |
std::ofstream | m_aOutPut |
bool | m_bIsAfterHeader |
enum PoOfstream::OpenMode |
PoOfstream::PoOfstream | ( | const OString & | rFileName, |
OpenMode | aMode | ||
) |
PoOfstream::~PoOfstream | ( | ) |
|
delete |
void PoOfstream::close | ( | ) |
Definition at line 515 of file po.cxx.
References isOpen(), and m_aOutPut.
Referenced by checkFunctionNames(), checkMathSymbolNames(), checkStyleNames(), checkVerticalBar(), LngParser::CreatePO(), HelpParser::CreatePO(), PropParser::Extract(), TreeParser::Extract(), CfgExport::~CfgExport(), ~PoOfstream(), and XRMResExport::~XRMResExport().
|
inline |
Definition at line 116 of file po.hxx.
References m_aOutPut.
Referenced by CfgExport::CfgExport(), close(), LngParser::CreatePO(), HelpParser::CreatePO(), PropParser::Extract(), TreeParser::Extract(), open(), writeEntry(), writeHeader(), XRMResExport::XRMResExport(), and ~PoOfstream().
Definition at line 498 of file po.cxx.
References APP, isOpen(), m_aOutPut, m_bIsAfterHeader, and TRUNC.
Referenced by CfgExport::CfgExport(), checkFunctionNames(), checkMathSymbolNames(), checkStyleNames(), checkVerticalBar(), PoOfstream(), and XRMResExport::XRMResExport().
|
delete |
void PoOfstream::writeEntry | ( | const PoEntry & | rPo | ) |
Definition at line 528 of file po.cxx.
References isOpen(), m_aOutPut, m_bIsAfterHeader, PoEntry::m_bIsInitialized, and PoEntry::m_pGenPo.
Referenced by checkFunctionNames(), checkMathSymbolNames(), checkStyleNames(), checkVerticalBar(), and common::writePoEntry().
void PoOfstream::writeHeader | ( | const PoHeader & | rHeader | ) |
Definition at line 521 of file po.cxx.
References isOpen(), m_aOutPut, m_bIsAfterHeader, PoHeader::m_bIsInitialized, and PoHeader::m_pGenPo.
Referenced by checkFunctionNames(), checkMathSymbolNames(), checkStyleNames(), and checkVerticalBar().
|
private |
Definition at line 104 of file po.hxx.
Referenced by close(), isOpen(), open(), writeEntry(), and writeHeader().
|
private |
Definition at line 105 of file po.hxx.
Referenced by open(), writeEntry(), and writeHeader().