LibreOffice Module svtools (master) 1
|
#include <parrtf.hxx>
Public Member Functions | |
SvRTFParser (SvStream &rIn, sal_uInt8 nStackSize=3) | |
virtual SvParserState | CallParser () override |
virtual void | Continue (int nToken) override |
![]() | |
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 |
T | GetSaveToken () const |
![]() | |
SvRefBase () | |
SvRefBase (const SvRefBase &) | |
SvRefBase & | operator= (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) |
![]() | |
T | SkipToken (short nCnt=-1) |
TokenStackType * | GetStackPtr (short nCnt) |
T | GetNextToken () |
virtual T | GetNextToken_ ()=0 |
virtual void | NextToken (T nToken)=0 |
virtual | ~SvParser () override |
void | ClearTxtConvContext () |
![]() | |
virtual | ~SvRefBase () COVERITY_NOEXCEPT_FALSE |
Private Attributes | |
std::stack< RtfParserState_Impl > | aParserStates |
int | nOpenBrackets |
rtl_TextEncoding | eCodeSet |
sal_uInt8 | nUCharOverread |
Static Private Attributes | |
static short | _inSkipGroup =0 |
Additional Inherited Members | |
![]() | |
SvStream & | rInput |
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 |
Definition at line 36 of file parrtf.hxx.
|
overrideprotectedvirtual |
Definition at line 50 of file parrtf.cxx.
Definition at line 39 of file parrtf.cxx.
|
overridevirtual |
Implements SvParser< int >.
Definition at line 576 of file parrtf.cxx.
References SvRefBase::AddFirstRef(), Continue(), eCodeSet, Error, nOpenBrackets, Pending, SvStream::ReadChar(), SvRefBase::ReleaseRef(), RTF_RTF, SvStream::Tell(), and Working.
|
overridevirtual |
Definition at line 604 of file parrtf.cxx.
References Accepted, eCodeSet, Error, nOpenBrackets, nToken, ReadUnknownData(), RTF_ANSICPG, RTF_ANSITYPE, RTF_IGNOREFLAG, RTF_MACTYPE, RTF_NEXTTYPE, RTF_PCATYPE, RTF_PCTYPE, and RTF_UNKNOWNCONTROL.
Referenced by CallParser().
|
inlineprotected |
Definition at line 59 of file parrtf.hxx.
Referenced by GetNextToken_(), and SetEncoding().
|
protected |
Definition at line 282 of file parrtf.cxx.
References n.
Referenced by GetNextToken_(), and ScanText().
|
overrideprotectedvirtual |
Implements SvParser< int >.
Definition at line 55 of file parrtf.cxx.
References _inSkipGroup, Accepted, aParserStates, DBG_ASSERT, RtfParserState_Impl::eCodeSet, GetCodeSet(), GetHexValue(), GetNextToken_(), GetRTFToken(), m, nOpenBrackets, RtfParserState_Impl::nUCharOverread, nUCharOverread, Pending, RTF_FORMULA, RTF_IGNOREFLAG, RTF_ISALPHA, RTF_ISDIGIT, RTF_PAR, RTF_SUBENTRYINDEX, RTF_TEXTTOKEN, RTF_U, RTF_UC, RTF_UNKNOWNCONTROL, RTF_UPR, ScanText(), SvStream::SeekRel(), SkipGroup(), and Working.
Referenced by GetNextToken_(), ScanText(), and SkipGroup().
|
protected |
Definition at line 573 of file parrtf.cxx.
References SkipGroup().
|
protected |
|
protected |
Definition at line 302 of file parrtf.cxx.
References aParserStates, DBG_ASSERT, Error, GetHexValue(), GetNextToken_(), m, MAX_STRING_LEN, nToken, nUCharOverread, RTF_ISALPHA, RTF_ISDIGIT, RTF_U, SvStream::SeekRel(), and u.
Referenced by GetNextToken_().
|
protected |
Definition at line 685 of file parrtf.cxx.
References aParserStates, and GetCodeSet().
|
protected |
Definition at line 531 of file parrtf.cxx.
References _inSkipGroup, Error, GetNextToken_(), nToken, Pending, RTF_BIN, SAL_WARN_IF, and SvStream::SeekRel().
Referenced by GetNextToken_(), ReadBitmapData(), and ReadUnknownData().
|
staticprivate |
Definition at line 44 of file parrtf.hxx.
Referenced by GetNextToken_(), and SkipGroup().
|
private |
Definition at line 38 of file parrtf.hxx.
Referenced by GetNextToken_(), ScanText(), and SetEncoding().
|
private |
Definition at line 40 of file parrtf.hxx.
Referenced by CallParser(), and Continue().
|
private |
Definition at line 39 of file parrtf.hxx.
Referenced by CallParser(), Continue(), and GetNextToken_().
|
private |
Definition at line 41 of file parrtf.hxx.
Referenced by GetNextToken_(), and ScanText().