106 TableRef
getTable( sal_Int32 nTableId )
const;
108 TableRef
getTable(
const OUString& rDispName )
const;
void insertTableToMaps(const TableRef &rxTable)
Inserts the passed table into the maps according to its identifier and name.
Helper class to provide access to global workbook data.
sal_Int32 mnId
Display name.
ScRange maDestRange
Name of the database range in the Calc document.
Table & createTable()
Creates a new empty table.
void importTable(const AttributeList &rAttribs, sal_Int16 nSheet)
Imports a table definition from the passed attributes.
OUString maDisplayName
Programmatical name.
sal_Int32 mnHeaderRows
Table type (worksheet, query, etc.).
sal_Int32 mnTotalsRows
Number of header rows.
const ScRange & getRange() const
Returns the cell range of this table.
sal_Int32 mnTokenIndex
Validated range of the table in the worksheet.
TableModel()
Number of totals rows.
AutoFilter & createAutoFilter()
Creates a new auto filter and stores it internally.
SCROW getHeight() const
Returns the number of rows of this table.
RefMap< sal_Int32, Table > maIdTables
std::shared_ptr< Table > TableRef
sal_Int32 getHeaderRows() const
Returns the number of header rows in the table range.
OUString maProgName
Original (unchecked) range of the table.
void applyAutoFilters()
Applies autofilters from created database range ( requires finalizeImport to have run before being ca...
const ScRange & getOriginalRange() const
Returns the original (unchecked) total range of the table.
AutoFilterBuffer maAutoFilters
TableColumns & createTableColumns()
Creates a new tableColumns handler and stores it internally.
sal_Int32 getTotalsRows() const
Returns the number of totals rows in the table range.
void finalizeImport()
Creates database ranges from all imported tables.
AutoFilter & createAutoFilter()
Creates a new auto filter and stores it internally.
sal_Int32 getTableId() const
Returns the unique table identifier.
TableColumns & createTableColumns()
Creates a new table columns object and stores it internally.
void applyTableColumns()
Applies columns names from created database range ( requires finalizeImport to have run before being ...
const OUString & getDisplayName() const
Returns the original display name of the table.
SCCOL getWidth() const
Returns the number of columns of this table.
void finalizeImport()
Creates a database range from this tables.
sal_Int32 mnType
Unique table identifier.
TableColumnsBuffer maTableColumns
Filter settings for this table.
TableRef getTable(sal_Int32 nTableId) const
Returns a table by its identifier.
sal_Int32 getTokenIndex() const
Returns the token index used in API token arrays (com.sun.star.sheet.FormulaToken).
RefMap< OUString, Table > maNameTables
Table(const WorkbookHelper &rHelper)
TableBuffer(const WorkbookHelper &rHelper)
RefVector< Table > TableVector
OUString maDBRangeName
Column names of this table.