LibreOffice Module sc (master) 1
|
#include <rtfparse.hxx>
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 ColWidthsMap & | GetColWidths () const |
ColWidthsMap & | GetColWidths () |
void | GetDimensions (SCCOL &nCols, SCROW &nRows) const |
size_t | ListSize () const |
ScEEParseEntry * | ListEntry (size_t index) |
const ScEEParseEntry * | ListEntry (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< ScRTFCellDefault > | pInsDefault |
ScRTFCellDefault * | pActDefault |
ScRTFCellDefault * | pDefMerge |
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 | |
EditEngine * | pEdit |
rtl::Reference< SfxItemPool > | pPool |
rtl::Reference< SfxItemPool > | pDocPool |
std::vector< std::shared_ptr< ScEEParseEntry > > | maList |
std::shared_ptr< ScEEParseEntry > | mxActEntry |
ColWidthsMap | maColWidths |
int | nRtfLastToken |
SCCOL | nColCnt |
SCROW | nRowCnt |
SCCOL | nColMax |
SCROW | nRowMax |
Definition at line 48 of file rtfparse.hxx.
|
private |
Definition at line 51 of file rtfparse.hxx.
ScRTFParser::ScRTFParser | ( | EditEngine * | pEditP | ) |
Definition at line 35 of file rtfparse.cxx.
References o3tl::convert(), EE_CHAR_FONTHEIGHT(), o3tl::mm100, pInsDefault, ScEEParser::pPool, and o3tl::pt.
|
overridevirtual |
Definition at line 52 of file rtfparse.cxx.
References maDefaultList, and pInsDefault.
|
private |
Definition at line 126 of file rtfparse.cxx.
References aColTwips, o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::clear(), i, ScEEParser::maList, ScEEParser::nColMax, nStartAdjust, pE, and SeekTwips().
Referenced by NewCellRow(), ProcToken(), and Read().
|
private |
|
private |
Definition at line 88 of file rtfparse.cxx.
References EditEngine::GetTextLen(), ESelection::nEndPara, pE, and ScEEParser::pEdit.
Referenced by ProcToken().
|
private |
Definition at line 198 of file rtfparse.cxx.
References aColTwips, bNewDef, ColAdjust(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), maDefaultList, mnCurPos, n1, n2, nLastWidth, ScRTFCellDefault::nTwips, pActDefault, pDefMerge, and SeekTwips().
Referenced by ProcToken().
|
inlineprivate |
Definition at line 96 of file rtfparse.cxx.
References ScEEParser::nRowCnt, and ScEEParser::nRowMax.
Referenced by ProcToken().
|
private |
Definition at line 262 of file rtfparse.cxx.
References ScRTFCellDefault::aItemSet, RtfImportInfo::aSelection, bNewDef, ColAdjust(), EntryEnd(), maDefaultList, ScEEParser::maList, mnCurPos, ScEEParser::mxActEntry, ScRTFCellDefault::nCol, ScEEParser::nColCnt, ScEEParser::nColMax, ScRTFCellDefault::nColOverlap, ESelection::nEndPara, ScEEParser::NewActEntry(), NewCellRow(), NextRow(), nLastWidth, ScEEParser::nRowCnt, ScEEParser::nRtfLastToken, nStartAdjust, RtfImportInfo::nToken, RtfImportInfo::nTokenValue, ScRTFCellDefault::nTwips, pActDefault, pDefMerge, pE, pInsDefault, RtfImportInfo::pParser, ScEEParser::pPool, RTF_BRDRDEF, RTF_CELL, RTF_CELLX, RTF_CLMGF, RTF_CLMRG, RTF_INTBL, RTF_PAR, RTF_ROW, RTF_SHADINGDEF, RTF_TABLEDEF, and RTF_TROWD.
Implements ScEEParser.
Definition at line 58 of file rtfparse.cxx.
References ColAdjust(), EditEngine::GetRtfImportHdl(), EditEngine::GetTextLen(), LINK, ScEEParser::maList, ScEEParser::nRtfLastToken, pE, ScEEParser::pEdit, EditEngine::Read(), RTF_PAR, and EditEngine::SetRtfImportHdl().
|
private |
Definition at line 102 of file rtfparse.cxx.
References aColTwips, o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::begin(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::end(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::find(), nCount, nPos, SC_RTFTWIPTOL, and o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::size().
Referenced by ColAdjust(), and NewCellRow().
|
private |
Definition at line 56 of file rtfparse.hxx.
Referenced by ColAdjust(), NewCellRow(), and SeekTwips().
|
private |
Definition at line 62 of file rtfparse.hxx.
Referenced by NewCellRow(), and ProcToken().
|
private |
Definition at line 53 of file rtfparse.hxx.
Referenced by NewCellRow(), ProcToken(), and ~ScRTFParser().
|
private |
Definition at line 54 of file rtfparse.hxx.
Referenced by NewCellRow(), and ProcToken().
|
private |
Definition at line 61 of file rtfparse.hxx.
Referenced by NewCellRow(), and ProcToken().
|
private |
Definition at line 60 of file rtfparse.hxx.
Referenced by ColAdjust(), and ProcToken().
|
private |
Definition at line 58 of file rtfparse.hxx.
Referenced by NewCellRow(), and ProcToken().
|
private |
Definition at line 59 of file rtfparse.hxx.
Referenced by NewCellRow(), and ProcToken().
|
private |
Definition at line 57 of file rtfparse.hxx.
Referenced by ProcToken(), ScRTFParser(), and ~ScRTFParser().