LibreOffice Module svx (master) 1
|
Public Member Functions | |
SdrTableRTFParser (SdrTableObj &rTableObj) | |
void | Read (SvStream &rStream) |
void | ProcToken (RtfImportInfo *pInfo) |
void | NextRow () |
void | NextColumn () |
void | NewCellRow () |
void | InsertCell (RtfImportInfo const *pInfo) |
void | InsertColumnEdge (sal_Int32 nEdge) |
void | FillTable () |
DECL_LINK (RTFImportHdl, RtfImportInfo &, void) | |
Private Member Functions | |
SdrTableRTFParser (const SdrTableRTFParser &)=delete | |
SdrTableRTFParser & | operator= (const SdrTableRTFParser &)=delete |
Private Attributes | |
SdrTableObj & | mrTableObj |
std::unique_ptr< SdrOutliner > | mpOutliner |
SfxItemPool & | mrItemPool |
RTFCellDefaultVector | maDefaultList |
RTFCellDefaultVector::iterator | maDefaultIterator |
int | mnLastToken |
bool | mbNewDef |
sal_Int32 | mnStartPara |
sal_Int32 | mnRowCnt |
sal_Int32 | mnLastEdge |
sal_Int32 | mnVMergeIdx |
std::vector< sal_Int32 > | maColumnEdges |
std::vector< sal_Int32 >::iterator | maLastEdge |
std::vector< RTFColumnVectorPtr > | maRows |
std::unique_ptr< RTFCellDefault > | mpInsDefault |
RTFCellDefault * | mpActDefault |
RTFCellDefault * | mpDefMerge |
Reference< XTable > | mxTable |
RTFColumnVectorPtr | mxLastRow |
Definition at line 90 of file tablertfimporter.cxx.
|
explicit |
Definition at line 143 of file tablertfimporter.cxx.
References SdrObject::GetStyleSheet(), mpInsDefault, mpOutliner, mrItemPool, mrTableObj, and TextObject.
|
privatedelete |
sdr::table::SdrTableRTFParser::DECL_LINK | ( | RTFImportHdl | , |
RtfImportInfo & | , | ||
void | |||
) |
void sdr::table::SdrTableRTFParser::FillTable | ( | ) |
Definition at line 271 of file tablertfimporter.cxx.
References Any, Outliner::CreateParaObject(), Exception, sdr::table::SdrTableObj::GetSnapRect(), SdrTextObj::ImpGetDrawOutliner(), tools::Rectangle::Left(), maColumnEdges, maRows, mnRowCnt, mpOutliner, mrTableObj, mxTable, SdrTextObj::NbcSetOutlinerParaObjectForText(), sdr::table::SdrTableObj::NbcSetSnapRect(), SDRATTR_TABLE_BORDER(), tools::Rectangle::SetRight(), Outliner::SetText(), Outliner::SetUpdateLayout(), TOOLS_WARN_EXCEPTION, u, and xColumn.
Referenced by Read().
void sdr::table::SdrTableRTFParser::InsertCell | ( | RtfImportInfo const * | pInfo | ) |
Definition at line 216 of file tablertfimporter.cxx.
References RtfImportInfo::aSelection, maRows, mnCellX, mnStartPara, mnVMergeIdx, mpActDefault, mrItemPool, mxLastRow, ESelection::nEndPara, and xColumn.
Referenced by ProcToken().
void sdr::table::SdrTableRTFParser::InsertColumnEdge | ( | sal_Int32 | nEdge | ) |
Definition at line 260 of file tablertfimporter.cxx.
References maColumnEdges, maLastEdge, and mnLastEdge.
Referenced by ProcToken().
void sdr::table::SdrTableRTFParser::NewCellRow | ( | ) |
Definition at line 361 of file tablertfimporter.cxx.
References DBG_ASSERT, maDefaultIterator, maDefaultList, maRows, mbNewDef, mpActDefault, mpDefMerge, and NextColumn().
Referenced by ProcToken().
void sdr::table::SdrTableRTFParser::NextColumn | ( | ) |
Definition at line 377 of file tablertfimporter.cxx.
References get(), maDefaultIterator, maDefaultList, and mpActDefault.
Referenced by NewCellRow(), and ProcToken().
void sdr::table::SdrTableRTFParser::NextRow | ( | ) |
Definition at line 209 of file tablertfimporter.cxx.
References maRows, mnRowCnt, mnVMergeIdx, and mxLastRow.
Referenced by ProcToken().
|
privatedelete |
void sdr::table::SdrTableRTFParser::ProcToken | ( | RtfImportInfo * | pInfo | ) |
Definition at line 385 of file tablertfimporter.cxx.
References convertTwipToMm100(), DBG_ASSERT, InsertCell(), InsertColumnEdge(), maColumnEdges, maDefaultList, maLastEdge, mbNewDef, mnLastEdge, mnLastToken, mpActDefault, mpDefMerge, mpInsDefault, mrItemPool, NewCellRow(), NextColumn(), NextRow(), RtfImportInfo::nToken, RtfImportInfo::nTokenValue, RtfImportInfo::pParser, RTF_BRDRDEF, RTF_CELL, RTF_CELLX, RTF_CLMGF, RTF_CLMRG, RTF_CLVMGF, RTF_CLVMRG, RTF_INTBL, RTF_PAR, RTF_ROW, RTF_SHADINGDEF, RTF_TABLEDEF, and RTF_TROWD.
void sdr::table::SdrTableRTFParser::Read | ( | SvStream & | rStream | ) |
Definition at line 162 of file tablertfimporter.cxx.
References FillTable(), EditEngine::GetRtfImportHdl(), LINK, mpOutliner, and EditEngine::SetRtfImportHdl().
Referenced by sdr::table::ImportAsRTF().
|
private |
Definition at line 127 of file tablertfimporter.cxx.
Referenced by FillTable(), InsertColumnEdge(), and ProcToken().
|
private |
Definition at line 116 of file tablertfimporter.cxx.
Referenced by NewCellRow(), and NextColumn().
|
private |
Definition at line 115 of file tablertfimporter.cxx.
Referenced by NewCellRow(), NextColumn(), and ProcToken().
|
private |
Definition at line 128 of file tablertfimporter.cxx.
Referenced by InsertColumnEdge(), and ProcToken().
|
private |
Definition at line 129 of file tablertfimporter.cxx.
Referenced by FillTable(), InsertCell(), NewCellRow(), and NextRow().
|
private |
Definition at line 119 of file tablertfimporter.cxx.
Referenced by NewCellRow(), and ProcToken().
|
private |
Definition at line 124 of file tablertfimporter.cxx.
Referenced by InsertColumnEdge(), and ProcToken().
|
private |
Definition at line 118 of file tablertfimporter.cxx.
Referenced by ProcToken().
|
private |
Definition at line 123 of file tablertfimporter.cxx.
Referenced by FillTable(), and NextRow().
|
private |
Definition at line 121 of file tablertfimporter.cxx.
Referenced by InsertCell().
|
private |
Definition at line 125 of file tablertfimporter.cxx.
Referenced by InsertCell(), and NextRow().
|
private |
Definition at line 132 of file tablertfimporter.cxx.
Referenced by InsertCell(), NewCellRow(), NextColumn(), and ProcToken().
|
private |
Definition at line 133 of file tablertfimporter.cxx.
Referenced by NewCellRow(), and ProcToken().
|
private |
Definition at line 131 of file tablertfimporter.cxx.
Referenced by ProcToken(), and SdrTableRTFParser().
|
private |
Definition at line 112 of file tablertfimporter.cxx.
Referenced by FillTable(), Read(), and SdrTableRTFParser().
|
private |
Definition at line 113 of file tablertfimporter.cxx.
Referenced by InsertCell(), ProcToken(), and SdrTableRTFParser().
|
private |
Definition at line 111 of file tablertfimporter.cxx.
Referenced by FillTable(), and SdrTableRTFParser().
|
private |
Definition at line 137 of file tablertfimporter.cxx.
Referenced by InsertCell(), and NextRow().
|
private |
Definition at line 135 of file tablertfimporter.cxx.
Referenced by FillTable().