LibreOffice Module sc (master) 1
Public Member Functions | Public Attributes | List of all members
oox::xls::CellFormulaModel Struct Reference

Stores data about cell formulas. More...

#include <sheetdatabuffer.hxx>

Collaboration diagram for oox::xls::CellFormulaModel:
[legend]

Public Member Functions

 CellFormulaModel ()
 Identifier of a shared formula (OOXML only). More...
 
bool isValidArrayRef (const ScAddress &rCellAddr)
 Returns true, if the passed cell address is valid for an array formula. More...
 
bool isValidSharedRef (const ScAddress &rCellAddr)
 Returns true, if the passed cell address is valid for a shared formula. More...
 

Public Attributes

ScRange maFormulaRef
 
sal_Int32 mnFormulaType
 Formula range for array/shared formulas and data tables. More...
 
sal_Int32 mnSharedId
 Type of the formula (regular, array, shared, table). More...
 

Detailed Description

Stores data about cell formulas.

Definition at line 48 of file sheetdatabuffer.hxx.

Constructor & Destructor Documentation

◆ CellFormulaModel()

oox::xls::CellFormulaModel::CellFormulaModel ( )
explicit

Identifier of a shared formula (OOXML only).

Definition at line 68 of file sheetdatabuffer.cxx.

References XML_TOKEN_INVALID.

Member Function Documentation

◆ isValidArrayRef()

bool oox::xls::CellFormulaModel::isValidArrayRef ( const ScAddress rCellAddr)

Returns true, if the passed cell address is valid for an array formula.

Definition at line 74 of file sheetdatabuffer.cxx.

References ScRange::aStart, and maFormulaRef.

Referenced by oox::xls::SheetDataContext::importArray(), and oox::xls::SheetDataContext::onEndElement().

◆ isValidSharedRef()

bool oox::xls::CellFormulaModel::isValidSharedRef ( const ScAddress rCellAddr)

Returns true, if the passed cell address is valid for a shared formula.

Definition at line 79 of file sheetdatabuffer.cxx.

References ScRange::aEnd, ScRange::aStart, ScAddress::Col(), maFormulaRef, ScAddress::Row(), and ScAddress::Tab().

Referenced by oox::xls::SheetDataContext::importSharedFmla(), and oox::xls::SheetDataContext::onEndElement().

Member Data Documentation

◆ maFormulaRef

ScRange oox::xls::CellFormulaModel::maFormulaRef

◆ mnFormulaType

sal_Int32 oox::xls::CellFormulaModel::mnFormulaType

Formula range for array/shared formulas and data tables.

Definition at line 51 of file sheetdatabuffer.hxx.

Referenced by oox::xls::SheetDataContext::importFormula(), oox::xls::SheetDataContext::onCharacters(), and oox::xls::SheetDataContext::onEndElement().

◆ mnSharedId

sal_Int32 oox::xls::CellFormulaModel::mnSharedId

Type of the formula (regular, array, shared, table).

Definition at line 52 of file sheetdatabuffer.hxx.

Referenced by oox::xls::SheetDataContext::importFormula(), and oox::xls::SheetDataContext::onEndElement().


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