LibreOffice Module sc (master) 1
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
ScRTFParser Class Reference

#include <rtfparse.hxx>

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

Public Member Functions

 ScRTFParser (EditEngine *)
 
virtual ~ScRTFParser () override
 
virtual ErrCode Read (SvStream &, const OUString &rBaseURL) override
 
- Public Member Functions inherited from ScEEParser
 ScEEParser (EditEngine *)
 
virtual ~ScEEParser ()
 
virtual ErrCode Read (SvStream &, const OUString &rBaseURL)=0
 
const ColWidthsMapGetColWidths () const
 
ColWidthsMapGetColWidths ()
 
void GetDimensions (SCCOL &nCols, SCROW &nRows) const
 
size_t ListSize () const
 
ScEEParseEntryListEntry (size_t index)
 
const ScEEParseEntryListEntry (size_t index) const
 

Private Types

typedef std::vector< std::unique_ptr< ScRTFCellDefault > > DefaultList
 

Private Member Functions

 DECL_LINK (RTFImportHdl, RtfImportInfo &, void)
 
void NextRow ()
 
void EntryEnd (ScEEParseEntry *, const ESelection &)
 
void ProcToken (RtfImportInfo *)
 
void ColAdjust ()
 
bool SeekTwips (sal_uInt16 nTwips, SCCOL *pCol)
 
void NewCellRow ()
 

Private Attributes

DefaultList maDefaultList
 
size_t mnCurPos
 
ScRTFColTwips aColTwips
 
std::unique_ptr< ScRTFCellDefaultpInsDefault
 
ScRTFCellDefaultpActDefault
 
ScRTFCellDefaultpDefMerge
 
sal_uLong nStartAdjust
 
sal_uInt16 nLastWidth
 
bool bNewDef
 

Additional Inherited Members

- Protected Member Functions inherited from ScEEParser
void NewActEntry (const ScEEParseEntry *)
 
- Protected Attributes inherited from ScEEParser
EditEnginepEdit
 
rtl::Reference< SfxItemPoolpPool
 
rtl::Reference< SfxItemPoolpDocPool
 
std::vector< std::shared_ptr< ScEEParseEntry > > maList
 
std::shared_ptr< ScEEParseEntrymxActEntry
 
ColWidthsMap maColWidths
 
int nRtfLastToken
 
SCCOL nColCnt
 
SCROW nRowCnt
 
SCCOL nColMax
 
SCROW nRowMax
 

Detailed Description

Definition at line 48 of file rtfparse.hxx.

Member Typedef Documentation

◆ DefaultList

typedef std::vector< std::unique_ptr<ScRTFCellDefault> > ScRTFParser::DefaultList
private

Definition at line 51 of file rtfparse.hxx.

Constructor & Destructor Documentation

◆ ScRTFParser()

ScRTFParser::ScRTFParser ( EditEngine pEditP)

◆ ~ScRTFParser()

ScRTFParser::~ScRTFParser ( )
overridevirtual

Definition at line 52 of file rtfparse.cxx.

References maDefaultList, and pInsDefault.

Member Function Documentation

◆ ColAdjust()

void ScRTFParser::ColAdjust ( )
private

◆ DECL_LINK()

ScRTFParser::DECL_LINK ( RTFImportHdl  ,
RtfImportInfo ,
void   
)
private

◆ EntryEnd()

void ScRTFParser::EntryEnd ( ScEEParseEntry pE,
const ESelection aSel 
)
private

Definition at line 88 of file rtfparse.cxx.

References EditEngine::GetTextLen(), ESelection::nEndPara, pE, and ScEEParser::pEdit.

Referenced by ProcToken().

◆ NewCellRow()

void ScRTFParser::NewCellRow ( )
private

◆ NextRow()

void ScRTFParser::NextRow ( )
inlineprivate

Definition at line 96 of file rtfparse.cxx.

References ScEEParser::nRowCnt, and ScEEParser::nRowMax.

Referenced by ProcToken().

◆ ProcToken()

void ScRTFParser::ProcToken ( RtfImportInfo pInfo)
private

◆ Read()

ErrCode ScRTFParser::Read ( SvStream rStream,
const OUString &  rBaseURL 
)
overridevirtual

◆ SeekTwips()

bool ScRTFParser::SeekTwips ( sal_uInt16  nTwips,
SCCOL pCol 
)
private

Member Data Documentation

◆ aColTwips

ScRTFColTwips ScRTFParser::aColTwips
private

Definition at line 56 of file rtfparse.hxx.

Referenced by ColAdjust(), NewCellRow(), and SeekTwips().

◆ bNewDef

bool ScRTFParser::bNewDef
private

Definition at line 62 of file rtfparse.hxx.

Referenced by NewCellRow(), and ProcToken().

◆ maDefaultList

DefaultList ScRTFParser::maDefaultList
private

Definition at line 53 of file rtfparse.hxx.

Referenced by NewCellRow(), ProcToken(), and ~ScRTFParser().

◆ mnCurPos

size_t ScRTFParser::mnCurPos
private

Definition at line 54 of file rtfparse.hxx.

Referenced by NewCellRow(), and ProcToken().

◆ nLastWidth

sal_uInt16 ScRTFParser::nLastWidth
private

Definition at line 61 of file rtfparse.hxx.

Referenced by NewCellRow(), and ProcToken().

◆ nStartAdjust

sal_uLong ScRTFParser::nStartAdjust
private

Definition at line 60 of file rtfparse.hxx.

Referenced by ColAdjust(), and ProcToken().

◆ pActDefault

ScRTFCellDefault* ScRTFParser::pActDefault
private

Definition at line 58 of file rtfparse.hxx.

Referenced by NewCellRow(), and ProcToken().

◆ pDefMerge

ScRTFCellDefault* ScRTFParser::pDefMerge
private

Definition at line 59 of file rtfparse.hxx.

Referenced by NewCellRow(), and ProcToken().

◆ pInsDefault

std::unique_ptr<ScRTFCellDefault> ScRTFParser::pInsDefault
private

Definition at line 57 of file rtfparse.hxx.

Referenced by ProcToken(), ScRTFParser(), and ~ScRTFParser().


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