LibreOffice Module sc (master)  1
Public Member Functions | List of all members
ScHTMLGlobalTable Class Reference

The "global table" representing the entire HTML document. More...

#include <htmlpars.hxx>

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

Public Member Functions

 ScHTMLGlobalTable (SfxItemPool &rPool, EditEngine &rEditEngine, std::vector< std::shared_ptr< ScEEParseEntry >> &rEEParseList, ScHTMLTableId &rnUnusedId, ScHTMLParser *pParser)
 
virtual ~ScHTMLGlobalTable () override
 
void Recalc ()
 Recalculates sizes and resulting positions of all document entries. More...
 
- Public Member Functions inherited from ScHTMLTable
 ScHTMLTable (ScHTMLTable &rParentTable, const HtmlImportInfo &rInfo, bool bPreFormText)
 Creates a new HTML table without content. More...
 
virtual ~ScHTMLTable ()
 
const OUString & GetTableName () const
 Returns the name of the table, specified in the TABLE tag. More...
 
ScHTMLTableId GetTableId () const
 Returns the unique identifier of the table. More...
 
ScHTMLSize GetSpan (const ScHTMLPos &rCellPos) const
 Returns the cell spanning of the specified cell. More...
 
ScHTMLTableFindNestedTable (ScHTMLTableId nTableId) const
 Searches in all nested tables for the specified table. More...
 
void PutItem (const SfxPoolItem &rItem)
 Puts the item into the item set of the current entry. More...
 
void PutText (const HtmlImportInfo &rInfo)
 Inserts a text portion into current entry. More...
 
void InsertPara (const HtmlImportInfo &rInfo)
 Inserts a new line, if in preformatted text, else does nothing. More...
 
void BreakOn ()
 Inserts a line break (
tag). More...
 
void HeadingOn ()
 Inserts a heading line (. More...
 
void AnchorOn ()
 Processes a hyperlink ( tag). More...
 
ScHTMLTableTableOn (const HtmlImportInfo &rInfo)
 Starts a new table nested in this table (. More...
 
ScHTMLTableTableOff (const HtmlImportInfo &rInfo)
 Closes this table (tag). More...
 
ScHTMLTablePreOn (const HtmlImportInfo &rInfo)
 Starts a new table based on preformatted text (. More...
 
ScHTMLTablePreOff (const HtmlImportInfo &rInfo)
 Closes this table based on preformatted text ( tag). More...
 
void RowOn (const HtmlImportInfo &rInfo)
 Starts next row (tag). More...
 
void RowOff (const HtmlImportInfo &rInfo)
 Closes the current row (tag). More...
 
void DataOn (const HtmlImportInfo &rInfo)
 Starts the next cell (or tag). More...
 
void DataOff (const HtmlImportInfo &rInfo)
 Closes the current cell ( or tag). More...
 
void BodyOn (const HtmlImportInfo &rInfo)
 Starts the body of the HTML document (<body> tag). More...
 
void BodyOff (const HtmlImportInfo &rInfo)
 Closes the body of the HTML document (</body> tag). More...
 
ScHTMLTableCloseTable (const HtmlImportInfo &rInfo)
 Closes this table (tag) or preformatted text ( tag). More...
 
SCCOLROW GetDocSize (ScHTMLOrient eOrient, SCCOLROW nCellPos) const
 Returns the resulting document row/column count of the specified HTML row/column. More...
 
SCCOLROW GetDocSize (ScHTMLOrient eOrient, SCCOLROW nCellBegin, SCCOLROW nCellEnd) const
 Returns the resulting document row/column count in the half-open range [nCellBegin, nCellEnd). More...
 
SCCOLROW GetDocSize (ScHTMLOrient eOrient) const
 Returns the total document row/column count in the specified direction. More...
 
ScHTMLSize GetDocSize (const ScHTMLPos &rCellPos) const
 Returns the total document row/column count of the specified HTML cell. More...
 
const ScHTMLPosGetDocPos () const
 Returns the resulting Calc position of the top left edge of the table. More...
 
SCCOLROW GetDocPos (ScHTMLOrient eOrient, SCCOLROW nCellPos) const
 Calculates the resulting Calc position of the specified HTML column/row. More...
 
ScHTMLPos GetDocPos (const ScHTMLPos &rCellPos) const
 Calculates the resulting Calc position of the specified HTML cell. More...
 
void GetDocRange (ScRange &rRange) const
 Calculates the current Calc document area of this table. More...
 
void ApplyCellBorders (ScDocument *pDoc, const ScAddress &rFirstPos) const
 Applies border formatting to the passed document. More...
 
SvNumberFormatterGetFormatTable ()
 

Additional Inherited Members

- Protected Member Functions inherited from ScHTMLTable
 ScHTMLTable (SfxItemPool &rPool, EditEngine &rEditEngine, std::vector< std::shared_ptr< ScEEParseEntry >> &rEEParseList, ScHTMLTableId &rnUnusedId, ScHTMLParser *pParser)
 Creates a new HTML table without parent. More...
 
void FillEmptyCells ()
 Fills all empty cells in this and nested tables with dummy parse entries. More...
 
void RecalcDocSize ()
 Recalculates the size of all columns/rows in the table, regarding nested tables. More...
 
void RecalcDocPos (const ScHTMLPos &rBasePos)
 Recalculates the position of all cell entries and nested tables. More...
 

Detailed Description

The "global table" representing the entire HTML document.

Definition at line 545 of file htmlpars.hxx.

Constructor & Destructor Documentation

ScHTMLGlobalTable::ScHTMLGlobalTable ( SfxItemPool rPool,
EditEngine rEditEngine,
std::vector< std::shared_ptr< ScEEParseEntry >> &  rEEParseList,
ScHTMLTableId rnUnusedId,
ScHTMLParser pParser 
)
explicit

Definition at line 2732 of file htmlpars.cxx.

ScHTMLGlobalTable::~ScHTMLGlobalTable ( )
overridevirtual

Definition at line 2743 of file htmlpars.cxx.

Member Function Documentation

void ScHTMLGlobalTable::Recalc ( )

Recalculates sizes and resulting positions of all document entries.

Definition at line 2747 of file htmlpars.cxx.

References ScHTMLTable::FillEmptyCells(), ScHTMLTable::GetDocPos(), ScHTMLTable::RecalcDocPos(), and ScHTMLTable::RecalcDocSize().


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