LibreOffice Module svtools (master) 1
Public Member Functions | Protected Member Functions | Private Attributes | Static Private Attributes | List of all members
SvRTFParser Class Reference

#include <parrtf.hxx>

Inheritance diagram for SvRTFParser:
[legend]
Collaboration diagram for SvRTFParser:
[legend]

Public Member Functions

 SvRTFParser (SvStream &rIn, sal_uInt8 nStackSize=3)
 
virtual SvParserState CallParser () override
 
virtual void Continue (int nToken) override
 
- Public Member Functions inherited from SvParser< int >
 SvParser (SvStream &rIn, sal_uInt8 nStackSize=3)
 
virtual SvParserState CallParser ()=0
 
SvParserState GetStatus () const
 
sal_uInt32 GetLineNr () const
 
sal_uInt32 GetLinePos () const
 
void IncLineNr ()
 
sal_uInt32 IncLinePos ()
 
void SetLineNr (sal_uInt32 nlNum)
 
void SetLinePos (sal_uInt32 nlPos)
 
sal_uInt32 GetNextChar ()
 
void RereadLookahead ()
 
bool IsParserWorking () const
 
Link< LinkParamNone *, void > GetAsynchCallLink () const
 
void SaveState (T nToken)
 
void RestoreState ()
 
virtual void Continue (T nToken)
 
void SetSrcEncoding (rtl_TextEncoding eSrcEnc)
 
rtl_TextEncoding GetSrcEncoding () const
 
void SetSwitchToUCS2 (bool bSet)
 
bool IsSwitchToUCS2 () const
 
sal_uInt16 GetCharSize () const
 
GetSaveToken () const
 
- Public Member Functions inherited from SvRefBase
 SvRefBase ()
 
 SvRefBase (const SvRefBase &)
 
SvRefBaseoperator= (const SvRefBase &)
 
void RestoreNoDelete ()
 
void AddNextRef ()
 
void AddFirstRef ()
 
void ReleaseRef ()
 
unsigned int GetRefCount () const
 

Protected Member Functions

sal_Unicode GetHexValue ()
 
void ScanText ()
 
void SkipGroup ()
 
virtual int GetNextToken_ () override
 
void ReadUnknownData ()
 
void ReadBitmapData ()
 
virtual ~SvRTFParser () override
 
rtl_TextEncoding GetCodeSet () const
 
void SetEncoding (rtl_TextEncoding eEnc)
 
- Protected Member Functions inherited from SvParser< int >
SkipToken (short nCnt=-1)
 
TokenStackType * GetStackPtr (short nCnt)
 
GetNextToken ()
 
virtual T GetNextToken_ ()=0
 
virtual void NextToken (T nToken)=0
 
virtual ~SvParser () override
 
void ClearTxtConvContext ()
 
- Protected Member Functions inherited from SvRefBase
virtual ~SvRefBase () COVERITY_NOEXCEPT_FALSE
 

Private Attributes

std::stack< RtfParserState_ImplaParserStates
 
int nOpenBrackets
 
rtl_TextEncoding eCodeSet
 
sal_uInt8 nUCharOverread
 

Static Private Attributes

static short _inSkipGroup =0
 

Additional Inherited Members

- Protected Attributes inherited from SvParser< int >
SvStreamrInput
 
OUStringBuffer aToken
 
sal_uInt32 nlLineNr
 
sal_uInt32 nlLinePos
 
std::unique_ptr< SvParser_Impl< T > > pImplData
 
tools::Long m_nTokenIndex
 
tools::Long nTokenValue
 
bool bTokenHasValue
 
bool bFuzzing
 
SvParserState eState
 
rtl_TextEncoding eSrcEnc
 
sal_uInt64 nNextChPos
 
sal_uInt32 nNextCh
 
bool bSwitchToUCS2
 
bool bRTF_InTextRead
 

Detailed Description

Definition at line 36 of file parrtf.hxx.

Constructor & Destructor Documentation

◆ ~SvRTFParser()

SvRTFParser::~SvRTFParser ( )
overrideprotectedvirtual

Definition at line 50 of file parrtf.cxx.

◆ SvRTFParser()

SvRTFParser::SvRTFParser ( SvStream rIn,
sal_uInt8  nStackSize = 3 
)

Definition at line 39 of file parrtf.cxx.

Member Function Documentation

◆ CallParser()

SvParserState SvRTFParser::CallParser ( )
overridevirtual

◆ Continue()

void SvRTFParser::Continue ( int  nToken)
overridevirtual

◆ GetCodeSet()

rtl_TextEncoding SvRTFParser::GetCodeSet ( ) const
inlineprotected

Definition at line 59 of file parrtf.hxx.

Referenced by GetNextToken_(), and SetEncoding().

◆ GetHexValue()

sal_Unicode SvRTFParser::GetHexValue ( )
protected

Definition at line 282 of file parrtf.cxx.

References n.

Referenced by GetNextToken_(), and ScanText().

◆ GetNextToken_()

int SvRTFParser::GetNextToken_ ( )
overrideprotectedvirtual

◆ ReadBitmapData()

void SvRTFParser::ReadBitmapData ( )
protected

Definition at line 573 of file parrtf.cxx.

References SkipGroup().

◆ ReadUnknownData()

void SvRTFParser::ReadUnknownData ( )
protected

Definition at line 572 of file parrtf.cxx.

References SkipGroup().

Referenced by Continue().

◆ ScanText()

void SvRTFParser::ScanText ( )
protected

◆ SetEncoding()

void SvRTFParser::SetEncoding ( rtl_TextEncoding  eEnc)
protected

Definition at line 685 of file parrtf.cxx.

References aParserStates, and GetCodeSet().

◆ SkipGroup()

void SvRTFParser::SkipGroup ( )
protected

Member Data Documentation

◆ _inSkipGroup

short SvRTFParser::_inSkipGroup =0
staticprivate

Definition at line 44 of file parrtf.hxx.

Referenced by GetNextToken_(), and SkipGroup().

◆ aParserStates

std::stack< RtfParserState_Impl > SvRTFParser::aParserStates
private

Definition at line 38 of file parrtf.hxx.

Referenced by GetNextToken_(), ScanText(), and SetEncoding().

◆ eCodeSet

rtl_TextEncoding SvRTFParser::eCodeSet
private

Definition at line 40 of file parrtf.hxx.

Referenced by CallParser(), and Continue().

◆ nOpenBrackets

int SvRTFParser::nOpenBrackets
private

Definition at line 39 of file parrtf.hxx.

Referenced by CallParser(), Continue(), and GetNextToken_().

◆ nUCharOverread

sal_uInt8 SvRTFParser::nUCharOverread
private

Definition at line 41 of file parrtf.hxx.

Referenced by GetNextToken_(), and ScanText().


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