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

A map of ScHTMLTable objects. More...

Collaboration diagram for ScHTMLTableMap:
[legend]

Public Types

typedef ScHTMLTableStdMap::iterator iterator
 
typedef ScHTMLTableStdMap::const_iterator const_iterator
 

Public Member Functions

 ScHTMLTableMap (ScHTMLTable &rParentTable)
 Current table, used for fast search. More...
 
const_iterator begin () const
 
const_iterator end () const
 
ScHTMLTableFindTable (ScHTMLTableId nTableId, bool bDeep=true) const
 Returns the specified table. More...
 
ScHTMLTableCreateTable (const HtmlImportInfo &rInfo, bool bPreFormText, const ScDocument &rDoc)
 Inserts a new table into the container. More...
 

Private Types

typedef std::shared_ptr< ScHTMLTableScHTMLTablePtr
 
typedef std::map< ScHTMLTableId, ScHTMLTablePtrScHTMLTableStdMap
 

Private Member Functions

void SetCurrTable (ScHTMLTable *pTable) const
 Sets a working table with its index for search optimization. More...
 

Private Attributes

ScHTMLTablemrParentTable
 
ScHTMLTableStdMap maTables
 Reference to parent table. More...
 
ScHTMLTablempCurrTable
 Container for all table objects. More...
 

Detailed Description

A map of ScHTMLTable objects.

Organizes the tables with a unique table key. Stores nested tables inside the parent table and forms in this way a tree structure of tables. An instance of this class owns the contained table objects and deletes them on destruction.

Definition at line 1695 of file htmlpars.cxx.

Member Typedef Documentation

◆ const_iterator

typedef ScHTMLTableStdMap::const_iterator ScHTMLTableMap::const_iterator

Definition at line 1703 of file htmlpars.cxx.

◆ iterator

typedef ScHTMLTableStdMap::iterator ScHTMLTableMap::iterator

Definition at line 1702 of file htmlpars.cxx.

◆ ScHTMLTablePtr

typedef std::shared_ptr< ScHTMLTable > ScHTMLTableMap::ScHTMLTablePtr
private

Definition at line 1698 of file htmlpars.cxx.

◆ ScHTMLTableStdMap

Definition at line 1699 of file htmlpars.cxx.

Constructor & Destructor Documentation

◆ ScHTMLTableMap()

ScHTMLTableMap::ScHTMLTableMap ( ScHTMLTable rParentTable)
explicit

Current table, used for fast search.

Definition at line 1731 of file htmlpars.cxx.

Member Function Documentation

◆ begin()

const_iterator ScHTMLTableMap::begin ( ) const
inline

Definition at line 1713 of file htmlpars.cxx.

References maTables.

Referenced by FindTable().

◆ CreateTable()

ScHTMLTable * ScHTMLTableMap::CreateTable ( const HtmlImportInfo rInfo,
bool  bPreFormText,
const ScDocument rDoc 
)

Inserts a new table into the container.

This container owns the created table.

Parameters
bPreFormTexttrue = New table is based on preformatted text (
 tag). 

Definition at line 1758 of file htmlpars.cxx.

References ScHTMLTable::GetTableId(), maTables, mrParentTable, and SetCurrTable().

◆ end()

const_iterator ScHTMLTableMap::end ( ) const
inline

Definition at line 1714 of file htmlpars.cxx.

References maTables.

Referenced by FindTable().

◆ FindTable()

ScHTMLTable * ScHTMLTableMap::FindTable ( ScHTMLTableId  nTableId,
bool  bDeep = true 
) const

Returns the specified table.

Parameters
nTableIdUnique identifier of the table.
bDeeptrue = searches deep in all nested table; false = only in this container.

Definition at line 1737 of file htmlpars.cxx.

References begin(), end(), ScHTMLTable::FindNestedTable(), ScHTMLTable::GetTableId(), maTables, mpCurrTable, and SetCurrTable().

◆ SetCurrTable()

void ScHTMLTableMap::SetCurrTable ( ScHTMLTable pTable) const
inlineprivate

Sets a working table with its index for search optimization.

Definition at line 1727 of file htmlpars.cxx.

References mpCurrTable.

Referenced by CreateTable(), and FindTable().

Member Data Documentation

◆ maTables

ScHTMLTableStdMap ScHTMLTableMap::maTables
private

Reference to parent table.

Definition at line 1707 of file htmlpars.cxx.

Referenced by begin(), CreateTable(), end(), and FindTable().

◆ mpCurrTable

ScHTMLTable* ScHTMLTableMap::mpCurrTable
mutableprivate

Container for all table objects.

Definition at line 1708 of file htmlpars.cxx.

Referenced by FindTable(), and SetCurrTable().

◆ mrParentTable

ScHTMLTable& ScHTMLTableMap::mrParentTable
private

Definition at line 1706 of file htmlpars.cxx.

Referenced by CreateTable().


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