20 #ifndef INCLUDED_SC_SOURCE_FILTER_INC_SHEETDATABUFFER_HXX
21 #define INCLUDED_SC_SOURCE_FILTER_INC_SHEETDATABUFFER_HXX
139 void setRowFormat( sal_Int32 nRow, sal_Int32 nXfId,
bool bCustomFormat );
169 void addColXfStyle( sal_Int32 nXfId, sal_Int32 nFormatId,
const ScRange& rAddress,
bool bProcessRowRange =
false );
185 void set( sal_Int32 nRow, sal_Int32 nXfId );
186 bool tryExpand( sal_Int32 nRow, sal_Int32 nXfId );
204 typedef ::std::set< RowRangeStyle, StyleRowRangeComp >
RowStyles;
221 std::vector< TableOperation >
223 ::std::map< BinAddress, ApiTokenSequence >
228 std::map< XfIdNumFmtKey, ScRangeList >
exports com.sun.star.lib. util
void addColXfStyle(sal_Int32 nXfId, sal_Int32 nFormatId, const ScRange &rAddress, bool bProcessRowRange=false)
::std::map< BinAddress, ApiTokenSequence > maSharedFormulas
All table operations in the sheet.
sal_Int32 mnCurrRow
Buffered column spans, mapped by row index.
Manages all cell blocks currently in use.
::std::map< sal_Int32, ValueRangeVector > ColSpanVectorMap
void setDateTimeCell(const CellModel &rModel, const css::util::DateTime &rDateTime)
Inserts a date/time cell into the sheet and adjusts number format.
CellBlockBuffer(const WorksheetHelper &rHelper)
ArrayFormulaVector maArrayFormulas
Manages all open cell blocks.
sal_Int32 mnCellType
The address of the current cell.
XfIdRowRange()
XF identifier for the row range.
MergedRangeVector maMergedRanges
Collected XF identifiers for cell rangelists.
::std::pair< sal_Int32, sal_Int32 > XfIdNumFmtKey
bool tryExpand(sal_Int32 nRow, sal_Int32 nXfId)
ColSpanVectorMap maColSpans
bool mbPendingSharedFmla
Merged cell ranges from 'center across' or 'fill' alignment.
bool mbRowTable
True = 2-dimensional data table.
ApiTokenSequence resolveSharedFormula(const ScAddress &rMapKey) const
Creates a formula token array representing the shared formula with the passed identifier.
std::shared_ptr< RichString > RichStringRef
sal_Int32 mnXfId
Indexes of first and last row.
::std::vector< ArrayFormula > ArrayFormulaVector
bool mbRef1Deleted
True = row oriented data table.
Stores information about a range of rows with equal cell formatting.
void setBooleanCell(const CellModel &rModel, bool bValue)
Inserts a boolean cell into the sheet and adjusts number format.
void setRowFormat(sal_Int32 nRow, sal_Int32 nXfId, bool bCustomFormat)
Sets default cell formatting for the specified range of rows.
::std::set< RowRangeStyle, StyleRowRangeComp > RowStyles
sal_Int32 mnXfId
Data type of the cell value.
void setValueCell(const CellModel &rModel, double fValue)
Inserts a value cell into the sheet.
void setMergedRange(const ScRange &rRange)
Merges the cells in the passed cell range.
ScAddress maSharedFmlaAddr
Maps shared formula base address to defined name token index.
void setDateCell(const CellModel &rModel, const OUString &rDateString)
Inserts an ISO 8601 date cell into the sheet.
Stores basic data about cell values and formatting.
std::vector< TableOperation > maTableOperations
All array formulas in the sheet.
CellModel()
True = show phonetic text.
void createTableOperation(const ScRange &rRange, const DataTableModel &rModel)
Sets a multiple table operation to the passed range.
MergedRangeVector maCenterFillRanges
Merged cell ranges.
std::map< sal_Int32, std::vector< ValueRange > > maXfIdRowRangeList
True = maSharedFmlaAddr and maSharedBaseAddr are valid.
std::map< XfIdNumFmtKey, ScRangeList > maXfIdRangeLists
Cached XF identifier for a range of rows.
void setColSpans(sal_Int32 nRow, const ValueRangeSet &rColSpans)
Sets column span information for a row.
std::pair< ScRange, DataTableModel > TableOperation
Stores cell range address and settings of a table operation.
CellBlockBuffer maCellBlocks
Stores cell styles by column ( in row ranges )
void setErrorCell(const CellModel &rModel, const OUString &rErrorCode)
Inserts an error cell from the passed error code into the sheet.
ColStyles maStylesPerColumn
::std::map< sal_Int32, RowStyles > ColStyles
MergedRange(const ScRange &rRange)
Horizontal alignment in the range.
DataTableModel()
True = second reference cell deleted.
css::uno::Sequence< ApiToken > ApiTokenSequence
void setBlankCell(const CellModel &rModel)
Inserts a blank cell (with formatting) into the sheet.
ScAddress maSharedBaseAddr
Address of a cell containing a pending shared formula.
::std::vector< MergedRange > MergedRangeVector
void setCellFormat(const CellModel &rModel)
Processes the cell formatting data of the passed cell.
void setColSpans(sal_Int32 nRow, const ValueRangeSet &rColSpans)
Sets column span information for a row.
std::pair< ScRange, ApiTokenSequence > ArrayFormula
Stores cell range address and formula token array of an array formula.
bool mbRef2Deleted
True = first reference cell deleted.
bool mbShowPhonetic
XF (cell formatting) identifier.
void applyCellMerging(const ScRange &rRange)
Writes all cell formatting attributes to the passed cell range list.
void createArrayFormula(const ScRange &rRange, const ApiTokenSequence &rTokens)
Inserts the passed token array as array formula.
bool operator()(const RowRangeStyle &lhs, const RowRangeStyle &rhs) const
void finalizeTableOperation(const ScRange &rRange, const DataTableModel &rModel)
Inserts the passed table operation into the sheet.
Stores information about a merged cell range.
XfIdRowRange maXfIdRowRange
Base address of the pending shared formula.
OUString maRef2
First reference cell for table operations.
void finalizeImport()
Final processing after the sheet has been imported.
sal_Int32 mnHorAlign
The formatted cell range.
void createSharedFormula(const ScAddress &rRange, const ApiTokenSequence &rTokens)
void finalizeArrayFormula(const ScRange &rRange, const ApiTokenSequence &rTokens) const
Inserts the passed array formula into the sheet.
bool mb2dTable
Second reference cell for table operations.
void setFormulaCell(const CellModel &rModel, const ApiTokenSequence &rTokens)
Inserts a formula cell into the sheet.
Stores data about table operations.
void set(sal_Int32 nRow, sal_Int32 nXfId)
void setStringCell(const CellModel &rModel, const OUString &rText)
Inserts a simple string cell into the sheet.
SheetDataBuffer(const WorksheetHelper &rHelper)
void setCellFormula(const ScAddress &rCellAddr, const ApiTokenSequence &rTokens)
Sets the passed formula token array into a cell.
Manages the cell contents and cell formatting of a sheet.
bool tryExpand(const ScAddress &rAddress, sal_Int32 nHorAlign)