LibreOffice Module writerfilter (master) 1
Public Member Functions | Private Attributes | List of all members
writerfilter::rtftok::RTFLookahead Class Reference

This acts like an importer, but used for looking ahead, e.g. More...

#include <rtflookahead.hxx>

Inheritance diagram for writerfilter::rtftok::RTFLookahead:
[legend]
Collaboration diagram for writerfilter::rtftok::RTFLookahead:
[legend]

Public Member Functions

 RTFLookahead (SvStream &rStream, sal_uInt64 nGroupStart)
 
 ~RTFLookahead () override
 
RTFError dispatchDestination (RTFKeyword nKeyword) override
 
RTFError dispatchFlag (RTFKeyword nKeyword) override
 
RTFError dispatchSymbol (RTFKeyword nKeyword) override
 
RTFError dispatchToggle (RTFKeyword nKeyword, bool bParam, int nParam) override
 
RTFError dispatchValue (RTFKeyword nKeyword, int nParam) override
 
RTFError resolveChars (char ch) override
 
RTFError pushState () override
 
RTFError popState () override
 
Destination getDestination () override
 
void setDestination (Destination eDestination) override
 
RTFInternalState getInternalState () override
 
void setInternalState (RTFInternalState nInternalState) override
 
bool getSkipUnknown () override
 
void setSkipUnknown (bool bSkipUnknown) override
 
void finishSubstream () override
 
bool isSubstream () const override
 
bool hasTable () const
 
bool hasColumns () const
 
- Public Member Functions inherited from writerfilter::rtftok::RTFListener
virtual ~RTFListener ()=default
 
virtual RTFError dispatchDestination (RTFKeyword nKeyword)=0
 
virtual RTFError dispatchFlag (RTFKeyword nKeyword)=0
 
virtual RTFError dispatchSymbol (RTFKeyword nKeyword)=0
 
virtual RTFError dispatchToggle (RTFKeyword nKeyword, bool bParam, int nParam)=0
 
virtual RTFError dispatchValue (RTFKeyword nKeyword, int nParam)=0
 
virtual RTFError resolveChars (char ch)=0
 
virtual RTFError pushState ()=0
 
virtual RTFError popState ()=0
 
virtual Destination getDestination ()=0
 
virtual void setDestination (Destination eDestination)=0
 
virtual RTFInternalState getInternalState ()=0
 
virtual void setInternalState (RTFInternalState nInternalState)=0
 
virtual bool getSkipUnknown ()=0
 
virtual void setSkipUnknown (bool bSkipUnknown)=0
 
virtual void finishSubstream ()=0
 
virtual bool isSubstream () const =0
 

Private Attributes

tools::SvRef< RTFTokenizerm_pTokenizer
 
SvStreamm_rStream
 
bool m_bHasTable
 
bool m_bHasColumns
 

Detailed Description

This acts like an importer, but used for looking ahead, e.g.

to determine if the current group contains a table, etc.

Definition at line 25 of file rtflookahead.hxx.

Constructor & Destructor Documentation

◆ RTFLookahead()

writerfilter::rtftok::RTFLookahead::RTFLookahead ( SvStream rStream,
sal_uInt64  nGroupStart 
)

Definition at line 24 of file rtflookahead.cxx.

References m_pTokenizer, m_rStream, nPos, SvStream::Seek(), and SvStream::Tell().

◆ ~RTFLookahead()

writerfilter::rtftok::RTFLookahead::~RTFLookahead ( )
overridedefault

Member Function Documentation

◆ dispatchDestination()

RTFError writerfilter::rtftok::RTFLookahead::dispatchDestination ( RTFKeyword  nKeyword)
overridevirtual

Implements writerfilter::rtftok::RTFListener.

Definition at line 39 of file rtflookahead.cxx.

References writerfilter::rtftok::OK.

◆ dispatchFlag()

RTFError writerfilter::rtftok::RTFLookahead::dispatchFlag ( RTFKeyword  nKeyword)
overridevirtual

◆ dispatchSymbol()

RTFError writerfilter::rtftok::RTFLookahead::dispatchSymbol ( RTFKeyword  nKeyword)
overridevirtual

Implements writerfilter::rtftok::RTFListener.

Definition at line 48 of file rtflookahead.cxx.

References writerfilter::rtftok::OK.

◆ dispatchToggle()

RTFError writerfilter::rtftok::RTFLookahead::dispatchToggle ( RTFKeyword  nKeyword,
bool  bParam,
int  nParam 
)
overridevirtual

Implements writerfilter::rtftok::RTFListener.

Definition at line 50 of file rtflookahead.cxx.

References writerfilter::rtftok::OK.

◆ dispatchValue()

RTFError writerfilter::rtftok::RTFLookahead::dispatchValue ( RTFKeyword  nKeyword,
int  nParam 
)
overridevirtual

◆ finishSubstream()

void writerfilter::rtftok::RTFLookahead::finishSubstream ( )
overridevirtual

Implements writerfilter::rtftok::RTFListener.

Definition at line 95 of file rtflookahead.cxx.

◆ getDestination()

Destination writerfilter::rtftok::RTFLookahead::getDestination ( )
overridevirtual

Implements writerfilter::rtftok::RTFListener.

Definition at line 83 of file rtflookahead.cxx.

References writerfilter::rtftok::NORMAL.

◆ getInternalState()

RTFInternalState writerfilter::rtftok::RTFLookahead::getInternalState ( )
overridevirtual

Implements writerfilter::rtftok::RTFListener.

Definition at line 87 of file rtflookahead.cxx.

References writerfilter::rtftok::NORMAL.

◆ getSkipUnknown()

bool writerfilter::rtftok::RTFLookahead::getSkipUnknown ( )
overridevirtual

Implements writerfilter::rtftok::RTFListener.

Definition at line 91 of file rtflookahead.cxx.

◆ hasColumns()

bool writerfilter::rtftok::RTFLookahead::hasColumns ( ) const
inline

Definition at line 47 of file rtflookahead.hxx.

References m_bHasColumns.

Referenced by writerfilter::rtftok::RTFDocumentImpl::setNeedSect().

◆ hasTable()

bool writerfilter::rtftok::RTFLookahead::hasTable ( ) const
inline

◆ isSubstream()

bool writerfilter::rtftok::RTFLookahead::isSubstream ( ) const
overridevirtual

Implements writerfilter::rtftok::RTFListener.

Definition at line 97 of file rtflookahead.cxx.

◆ popState()

RTFError writerfilter::rtftok::RTFLookahead::popState ( )
overridevirtual

Implements writerfilter::rtftok::RTFListener.

Definition at line 77 of file rtflookahead.cxx.

References m_pTokenizer, and writerfilter::rtftok::OK.

◆ pushState()

RTFError writerfilter::rtftok::RTFLookahead::pushState ( )
overridevirtual

Implements writerfilter::rtftok::RTFListener.

Definition at line 71 of file rtflookahead.cxx.

References m_pTokenizer, and writerfilter::rtftok::OK.

◆ resolveChars()

RTFError writerfilter::rtftok::RTFLookahead::resolveChars ( char  ch)
overridevirtual

◆ setDestination()

void writerfilter::rtftok::RTFLookahead::setDestination ( Destination  eDestination)
overridevirtual

Implements writerfilter::rtftok::RTFListener.

Definition at line 85 of file rtflookahead.cxx.

◆ setInternalState()

void writerfilter::rtftok::RTFLookahead::setInternalState ( RTFInternalState  nInternalState)
overridevirtual

Implements writerfilter::rtftok::RTFListener.

Definition at line 89 of file rtflookahead.cxx.

◆ setSkipUnknown()

void writerfilter::rtftok::RTFLookahead::setSkipUnknown ( bool  bSkipUnknown)
overridevirtual

Implements writerfilter::rtftok::RTFListener.

Definition at line 93 of file rtflookahead.cxx.

Member Data Documentation

◆ m_bHasColumns

bool writerfilter::rtftok::RTFLookahead::m_bHasColumns
private

Definition at line 53 of file rtflookahead.hxx.

Referenced by dispatchValue(), and hasColumns().

◆ m_bHasTable

bool writerfilter::rtftok::RTFLookahead::m_bHasTable
private

Definition at line 52 of file rtflookahead.hxx.

Referenced by dispatchFlag(), and hasTable().

◆ m_pTokenizer

tools::SvRef<RTFTokenizer> writerfilter::rtftok::RTFLookahead::m_pTokenizer
private

Definition at line 50 of file rtflookahead.hxx.

Referenced by popState(), pushState(), and RTFLookahead().

◆ m_rStream

SvStream& writerfilter::rtftok::RTFLookahead::m_rStream
private

Definition at line 51 of file rtflookahead.hxx.

Referenced by resolveChars(), and RTFLookahead().


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