10#ifndef INCLUDED_L10NTOOLS_INC_PO_HXX
11#define INCLUDED_L10NTOOLS_INC_PO_HXX
17#include <rtl/string.hxx>
49 PoEntry( std::string_view rSourceFile, std::string_view rResType, std::string_view rGroupId,
50 std::string_view rLocalId, std::string_view rHelpText,
const OString& rText,
70 static OString
genKeyId(
const OString& rGenerator);
92 PoHeader( std::string_view rExtSrc );
93 PoHeader( std::string_view rExtSrc,
const OString& rPoHeaderMsgStr );
144 void open(
const OString& rFileName);
145 void open(
const OString& rFileName, OString& sPoHeader);
Interface to use po entries in localization.
OString const & getMsgId() const
OString const & getMsgCtxt() const
OString getResourceType() const
Get the type of component from which entry is extracted.
OString getGroupId() const
std::unique_ptr< GenPoEntry > m_pGenPo
PoEntry & operator=(const PoEntry &rPo)
OString const & getSourceFile() const
Get name of file from which entry is extracted.
OString const & getMsgStr() const
static OString genKeyId(const OString &rGenerator)
static bool IsInSameComp(const PoEntry &rPo1, const PoEntry &rPo2)
Check whether po-s belong to the same localization component.
OString getLocalId() const
TYPE getType() const
Get the type of entry.
Interface to read po entry from files as input streams.
PoIfstream & operator=(const PoIfstream &)=delete
void open(const OString &rFileName)
PoIfstream(const PoIfstream &)=delete
void readEntry(PoEntry &rPo)
Interface to write po entry to files as output streams.
void open(const OString &rFileName, OpenMode aMode=TRUNC)
PoOfstream(const PoOfstream &)=delete
void writeHeader(const PoHeader &rHeader)
void writeEntry(const PoEntry &rPo)
PoOfstream & operator=(const PoOfstream &)=delete