LibreOffice Module l10ntools (master) 1
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Private Attributes | List of all members
XRMResParser Class Referenceabstract

Parser for *.xrm and description.xml files. More...

#include <xrmmerge.hxx>

Inheritance diagram for XRMResParser:
[legend]

Public Member Functions

 XRMResParser ()
 
virtual ~XRMResParser ()
 
void Execute (int nToken, char *pToken)
 
void SetError ()
 
bool GetError () const
 

Protected Member Functions

virtual void Output (const OString &rOutput)=0
 
virtual void WorkOnDesc (const OString &rOpenTag, OString &rText)=0
 
virtual void WorkOnText (const OString &rOpenTag, OString &rText)=0
 
virtual void EndOfText (const OString &rOpenTag, const OString &rCloseTag)=0
 
const OString & GetGID () const
 

Static Protected Member Functions

static OString GetAttribute (const OString &rToken, std::string_view rAttribute)
 
static void Error (const OString &rError)
 

Private Attributes

OString sGID
 
bool bError
 
bool bText
 
OString sCurrentOpenTag
 
OString sCurrentCloseTag
 
OString sCurrentText
 

Detailed Description

Parser for *.xrm and description.xml files.

Definition at line 35 of file xrmmerge.hxx.

Constructor & Destructor Documentation

◆ XRMResParser()

XRMResParser::XRMResParser ( )

Definition at line 141 of file xrmmerge.cxx.

◆ ~XRMResParser()

XRMResParser::~XRMResParser ( )
virtual

Definition at line 147 of file xrmmerge.cxx.

Member Function Documentation

◆ EndOfText()

virtual void XRMResParser::EndOfText ( const OString &  rOpenTag,
const OString &  rCloseTag 
)
protectedpure virtual

Implemented in XRMResExport, and XRMResMerge.

Referenced by Execute().

◆ Error()

void XRMResParser::Error ( const OString &  rError)
staticprotected

Definition at line 270 of file xrmmerge.cxx.

References yyerror().

Referenced by XRMResExport::XRMResExport(), and XRMResMerge::XRMResMerge().

◆ Execute()

void XRMResParser::Execute ( int  nToken,
char *  pToken 
)

◆ GetAttribute()

OString XRMResParser::GetAttribute ( const OString &  rToken,
std::string_view  rAttribute 
)
staticprotected

◆ GetError()

bool XRMResParser::GetError ( ) const
inline

Definition at line 73 of file xrmmerge.hxx.

References bError.

Referenced by GetError().

◆ GetGID()

const OString & XRMResParser::GetGID ( ) const
inlineprotected

Definition at line 64 of file xrmmerge.hxx.

References sGID.

Referenced by XRMResExport::WorkOnText(), and XRMResMerge::WorkOnText().

◆ Output()

virtual void XRMResParser::Output ( const OString &  rOutput)
protectedpure virtual

Implemented in XRMResExport, and XRMResMerge.

Referenced by Execute().

◆ SetError()

void XRMResParser::SetError ( )
inline

Definition at line 72 of file xrmmerge.hxx.

References bError.

Referenced by SetError().

◆ WorkOnDesc()

virtual void XRMResParser::WorkOnDesc ( const OString &  rOpenTag,
OString &  rText 
)
protectedpure virtual

Implemented in XRMResExport, and XRMResMerge.

Referenced by Execute().

◆ WorkOnText()

virtual void XRMResParser::WorkOnText ( const OString &  rOpenTag,
OString &  rText 
)
protectedpure virtual

Implemented in XRMResExport, and XRMResMerge.

Referenced by Execute().

Member Data Documentation

◆ bError

bool XRMResParser::bError
private

Definition at line 40 of file xrmmerge.hxx.

Referenced by GetError(), and SetError().

◆ bText

bool XRMResParser::bText
private

Definition at line 41 of file xrmmerge.hxx.

Referenced by Execute().

◆ sCurrentCloseTag

OString XRMResParser::sCurrentCloseTag
private

Definition at line 44 of file xrmmerge.hxx.

Referenced by Execute().

◆ sCurrentOpenTag

OString XRMResParser::sCurrentOpenTag
private

Definition at line 43 of file xrmmerge.hxx.

Referenced by Execute().

◆ sCurrentText

OString XRMResParser::sCurrentText
private

Definition at line 45 of file xrmmerge.hxx.

Referenced by Execute().

◆ sGID

OString XRMResParser::sGID
private

Definition at line 38 of file xrmmerge.hxx.

Referenced by Execute(), and GetGID().


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