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)
 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 1704 of file htmlpars.cxx.

Member Typedef Documentation

typedef ScHTMLTableStdMap::const_iterator ScHTMLTableMap::const_iterator

Definition at line 1712 of file htmlpars.cxx.

typedef ScHTMLTableStdMap::iterator ScHTMLTableMap::iterator

Definition at line 1711 of file htmlpars.cxx.

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

Definition at line 1707 of file htmlpars.cxx.

Definition at line 1708 of file htmlpars.cxx.

Constructor & Destructor Documentation

ScHTMLTableMap::ScHTMLTableMap ( ScHTMLTable rParentTable)
explicit

Current table, used for fast search.

Definition at line 1740 of file htmlpars.cxx.

Member Function Documentation

const_iterator ScHTMLTableMap::begin ( ) const
inline

Definition at line 1722 of file htmlpars.cxx.

Referenced by FindTable().

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

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 1767 of file htmlpars.cxx.

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

const_iterator ScHTMLTableMap::end ( ) const
inline

Definition at line 1723 of file htmlpars.cxx.

Referenced by 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 1746 of file htmlpars.cxx.

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

void ScHTMLTableMap::SetCurrTable ( ScHTMLTable pTable) const
inlineprivate

Sets a working table with its index for search optimization.

Definition at line 1736 of file htmlpars.cxx.

Referenced by CreateTable(), and FindTable().

Member Data Documentation

ScHTMLTableStdMap ScHTMLTableMap::maTables
private

Reference to parent table.

Definition at line 1716 of file htmlpars.cxx.

Referenced by CreateTable(), and FindTable().

ScHTMLTable* ScHTMLTableMap::mpCurrTable
mutableprivate

Container for all table objects.

Definition at line 1717 of file htmlpars.cxx.

Referenced by FindTable().

ScHTMLTable& ScHTMLTableMap::mrParentTable
private

Definition at line 1715 of file htmlpars.cxx.

Referenced by CreateTable().


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