LibreOffice Module sc (master) 1
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | List of all members
ScCellRangeObj Class Referencefinal

#include <cellsuno.hxx>

Inheritance diagram for ScCellRangeObj:
[legend]
Collaboration diagram for ScCellRangeObj:
[legend]

Public Member Functions

 ScCellRangeObj (ScDocShell *pDocSh, const ScRange &rR)
 
virtual ~ScCellRangeObj () override
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) override
 
virtual void SAL_CALL acquire () noexcept override
 
virtual void SAL_CALL release () noexcept override
 
virtual void RefChanged () override
 
virtual css::table::CellRangeAddress SAL_CALL getRangeAddress () override
 
virtual css::uno::Reference< css::sheet::XSpreadsheet > SAL_CALL getSpreadsheet () override
 
virtual OUString SAL_CALL getArrayFormula () override
 
virtual void SAL_CALL setArrayFormula (const OUString &aFormula) override
 
virtual css::uno::Sequence< css::sheet::FormulaToken > SAL_CALL getArrayTokens () override
 
virtual void SAL_CALL setArrayTokens (const css::uno::Sequence< css::sheet::FormulaToken > &aTokens) override
 
virtual css::uno::Sequence< css::uno::Sequence< css::uno::Any > > SAL_CALL getDataArray () override
 
virtual void SAL_CALL setDataArray (const css::uno::Sequence< css::uno::Sequence< css::uno::Any > > &aArray) override
 
virtual css::uno::Sequence< css::uno::Sequence< OUString > > SAL_CALL getFormulaArray () override
 
virtual void SAL_CALL setFormulaArray (const css::uno::Sequence< css::uno::Sequence< OUString > > &aArray) override
 
virtual void SAL_CALL setTableOperation (const css::table::CellRangeAddress &aFormulaRange, css::sheet::TableOperationMode nMode, const css::table::CellAddress &aColumnCell, const css::table::CellAddress &aRowCell) override
 
virtual void SAL_CALL merge (sal_Bool bMerge) override
 
virtual sal_Bool SAL_CALL getIsMerged () override
 
virtual void SAL_CALL fillSeries (css::sheet::FillDirection nFillDirection, css::sheet::FillMode nFillMode, css::sheet::FillDateMode nFillDateMode, double fStep, double fEndValue) override
 
virtual void SAL_CALL fillAuto (css::sheet::FillDirection nFillDirection, sal_Int32 nSourceCount) override
 
virtual void SAL_CALL autoFormat (const OUString &aName) override
 
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL createSortDescriptor () override
 
virtual void SAL_CALL sort (const css::uno::Sequence< css::beans::PropertyValue > &xDescriptor) override
 
virtual css::uno::Reference< css::sheet::XSheetFilterDescriptor > SAL_CALL createFilterDescriptorByObject (const css::uno::Reference< css::sheet::XSheetFilterable > &xObject) override
 get/setAutoFilter as properties!!! More...
 
virtual css::uno::Reference< css::sheet::XSheetFilterDescriptor > SAL_CALL createFilterDescriptor (sal_Bool bEmpty) override
 
virtual void SAL_CALL filter (const css::uno::Reference< css::sheet::XSheetFilterDescriptor > &xDescriptor) override
 
virtual css::uno::Reference< css::sheet::XSubTotalDescriptor > SAL_CALL createSubTotalDescriptor (sal_Bool bEmpty) override
 
virtual void SAL_CALL applySubTotals (const css::uno::Reference< css::sheet::XSubTotalDescriptor > &xDescriptor, sal_Bool bReplace) override
 
virtual void SAL_CALL removeSubTotals () override
 
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL createImportDescriptor (sal_Bool bEmpty) override
 
virtual void SAL_CALL doImport (const css::uno::Sequence< css::beans::PropertyValue > &aDescriptor) override
 
virtual css::uno::Reference< css::container::XIndexAccess > SAL_CALL getCellFormatRanges () override
 
virtual css::uno::Reference< css::container::XIndexAccess > SAL_CALL getUniqueCellFormatRanges () override
 
virtual css::uno::Reference< css::table::XTableColumns > SAL_CALL getColumns () override
 
virtual css::uno::Reference< css::table::XTableRows > SAL_CALL getRows () override
 
virtual css::uno::Reference< css::table::XCell > SAL_CALL getCellByPosition (sal_Int32 nColumn, sal_Int32 nRow) override
 
virtual css::uno::Reference< css::table::XCellRange > SAL_CALL getCellRangeByPosition (sal_Int32 nLeft, sal_Int32 nTop, sal_Int32 nRight, sal_Int32 nBottom) override
 
virtual css::uno::Reference< css::table::XCellRange > SAL_CALL getCellRangeByName (const OUString &aRange) override
 
css::uno::Reference< css::table::XCellRange > getCellRangeByName (const OUString &aRange, const ScAddress::Details &rDetails)
 
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo () override
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () override
 

Static Public Member Functions

static css::uno::Reference< css::table::XCellRange > CreateRangeFromDoc (const ScDocument &rDoc, const ScRange &rR)
 

Protected Member Functions

const ScRangeGetRange () const
 
virtual const SfxItemPropertyMapGetItemPropertyMap () override
 
virtual void GetOnePropertyValue (const SfxItemPropertyMapEntry *pEntry, css::uno::Any &) override
 
virtual void SetOnePropertyValue (const SfxItemPropertyMapEntry *pEntry, const css::uno::Any &aValue) override
 
css::uno::Reference< css::table::XCell > GetCellByPosition_Impl (sal_Int32 nColumn, sal_Int32 nRow)
 are used in Writer for tables ??? More...
 
void SetArrayFormula_Impl (const OUString &rFormula, const formula::FormulaGrammar::Grammar eGrammar)
 

Private Attributes

const SfxItemPropertySetpRangePropSet
 
ScRange aRange
 

Detailed Description

Definition at line 458 of file cellsuno.hxx.

Constructor & Destructor Documentation

◆ ScCellRangeObj()

ScCellRangeObj::ScCellRangeObj ( ScDocShell pDocSh,
const ScRange rR 
)

Definition at line 4479 of file cellsuno.cxx.

References aRange, and ScRange::PutInOrder().

Referenced by CreateRangeFromDoc(), getCellRangeByName(), and getCellRangeByPosition().

◆ ~ScCellRangeObj()

ScCellRangeObj::~ScCellRangeObj ( )
overridevirtual

Definition at line 4487 of file cellsuno.cxx.

Member Function Documentation

◆ acquire()

void SAL_CALL ScCellRangeObj::acquire ( )
overridevirtualnoexcept

◆ applySubTotals()

void SAL_CALL ScCellRangeObj::applySubTotals ( const css::uno::Reference< css::sheet::XSubTotalDescriptor > &  xDescriptor,
sal_Bool  bReplace 
)
overridevirtual

◆ autoFormat()

void SAL_CALL ScCellRangeObj::autoFormat ( const OUString &  aName)
overridevirtual

◆ createFilterDescriptor()

uno::Reference< sheet::XSheetFilterDescriptor > SAL_CALL ScCellRangeObj::createFilterDescriptor ( sal_Bool  bEmpty)
overridevirtual

◆ createFilterDescriptorByObject()

uno::Reference< sheet::XSheetFilterDescriptor > SAL_CALL ScCellRangeObj::createFilterDescriptorByObject ( const css::uno::Reference< css::sheet::XSheetFilterable > &  xObject)
overridevirtual

◆ createImportDescriptor()

uno::Sequence< beans::PropertyValue > SAL_CALL ScCellRangeObj::createImportDescriptor ( sal_Bool  bEmpty)
overridevirtual

◆ CreateRangeFromDoc()

uno::Reference< table::XCellRange > ScCellRangeObj::CreateRangeFromDoc ( const ScDocument rDoc,
const ScRange rR 
)
static

Definition at line 4471 of file cellsuno.cxx.

References ScDocument::GetDocumentShell(), and ScCellRangeObj().

Referenced by ScInterpreter::ScExternal().

◆ createSortDescriptor()

uno::Sequence< beans::PropertyValue > SAL_CALL ScCellRangeObj::createSortDescriptor ( )
overridevirtual

◆ createSubTotalDescriptor()

uno::Reference< sheet::XSubTotalDescriptor > SAL_CALL ScCellRangeObj::createSubTotalDescriptor ( sal_Bool  bEmpty)
overridevirtual

◆ doImport()

void SAL_CALL ScCellRangeObj::doImport ( const css::uno::Sequence< css::beans::PropertyValue > &  aDescriptor)
overridevirtual

◆ fillAuto()

void SAL_CALL ScCellRangeObj::fillAuto ( css::sheet::FillDirection  nFillDirection,
sal_Int32  nSourceCount 
)
overridevirtual

◆ fillSeries()

void SAL_CALL ScCellRangeObj::fillSeries ( css::sheet::FillDirection  nFillDirection,
css::sheet::FillMode  nFillMode,
css::sheet::FillDateMode  nFillDateMode,
double  fStep,
double  fEndValue 
)
overridevirtual

◆ filter()

void SAL_CALL ScCellRangeObj::filter ( const css::uno::Reference< css::sheet::XSheetFilterDescriptor > &  xDescriptor)
overridevirtual

◆ getArrayFormula()

OUString SAL_CALL ScCellRangeObj::getArrayFormula ( )
overridevirtual

◆ getArrayTokens()

uno::Sequence< sheet::FormulaToken > SAL_CALL ScCellRangeObj::getArrayTokens ( )
overridevirtual

◆ getCellByPosition()

uno::Reference< table::XCell > SAL_CALL ScCellRangeObj::getCellByPosition ( sal_Int32  nColumn,
sal_Int32  nRow 
)
overridevirtual

Reimplemented in ScTableSheetObj, and ScCellCursorObj.

Definition at line 4599 of file cellsuno.cxx.

References GetCellByPosition_Impl().

Referenced by ScCellCursorObj::getCellByPosition().

◆ GetCellByPosition_Impl()

uno::Reference< table::XCell > ScCellRangeObj::GetCellByPosition_Impl ( sal_Int32  nColumn,
sal_Int32  nRow 
)
protected

are used in Writer for tables ???

Exceptions
css::lang::IndexOutOfBoundsException
css::uno::RuntimeException

Definition at line 4577 of file cellsuno.cxx.

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

Referenced by getCellByPosition(), and ScTableSheetObj::getCellByPosition().

◆ getCellFormatRanges()

uno::Reference< container::XIndexAccess > SAL_CALL ScCellRangeObj::getCellFormatRanges ( )
overridevirtual

Definition at line 5590 of file cellsuno.cxx.

References aRange.

◆ getCellRangeByName() [1/2]

uno::Reference< table::XCellRange > SAL_CALL ScCellRangeObj::getCellRangeByName ( const OUString &  aRange)
overridevirtual

◆ getCellRangeByName() [2/2]

uno::Reference< table::XCellRange > ScCellRangeObj::getCellRangeByName ( const OUString &  aRange,
const ScAddress::Details rDetails 
)

◆ getCellRangeByPosition()

uno::Reference< table::XCellRange > SAL_CALL ScCellRangeObj::getCellRangeByPosition ( sal_Int32  nLeft,
sal_Int32  nTop,
sal_Int32  nRight,
sal_Int32  nBottom 
)
overridevirtual

◆ getColumns()

uno::Reference< table::XTableColumns > SAL_CALL ScCellRangeObj::getColumns ( )
overridevirtual

Definition at line 4693 of file cellsuno.cxx.

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

◆ getDataArray()

uno::Sequence< uno::Sequence< uno::Any > > SAL_CALL ScCellRangeObj::getDataArray ( )
overridevirtual

◆ getFormulaArray()

uno::Sequence< uno::Sequence< OUString > > SAL_CALL ScCellRangeObj::getFormulaArray ( )
overridevirtual

◆ getImplementationId()

uno::Sequence< sal_Int8 > SAL_CALL ScCellRangeObj::getImplementationId ( )
overridevirtual

Reimplemented in ScCellObj, ScTableSheetObj, ScTableColumnObj, and ScCellCursorObj.

Definition at line 4567 of file cellsuno.cxx.

◆ getImplementationName()

OUString SAL_CALL ScCellRangeObj::getImplementationName ( )
overridevirtual

Reimplemented in ScCellObj, ScTableSheetObj, ScTableColumnObj, ScTableRowObj, and ScCellCursorObj.

Definition at line 5671 of file cellsuno.cxx.

◆ getIsMerged()

sal_Bool SAL_CALL ScCellRangeObj::getIsMerged ( )
overridevirtual

Definition at line 5042 of file cellsuno.cxx.

References aRange, ScDocShell::GetDocument(), ScDocument::HasAttrib(), and Merged.

◆ GetItemPropertyMap()

const SfxItemPropertyMap & ScCellRangeObj::GetItemPropertyMap ( )
overrideprotectedvirtual

Reimplemented in ScCellObj, ScTableSheetObj, ScTableColumnObj, and ScTableRowObj.

Definition at line 5664 of file cellsuno.cxx.

References SfxItemPropertySet::getPropertyMap(), and pRangePropSet.

◆ GetOnePropertyValue()

void ScCellRangeObj::GetOnePropertyValue ( const SfxItemPropertyMapEntry pEntry,
css::uno::Any &   
)
overrideprotectedvirtual

◆ getPropertySetInfo()

uno::Reference< beans::XPropertySetInfo > SAL_CALL ScCellRangeObj::getPropertySetInfo ( )
overridevirtual

Reimplemented in ScCellObj, ScTableSheetObj, ScTableColumnObj, and ScTableRowObj.

Definition at line 5612 of file cellsuno.cxx.

References SfxItemPropertySet::getPropertyMap(), and pRangePropSet.

◆ GetRange()

const ScRange & ScCellRangeObj::GetRange ( ) const
inlineprotected

◆ getRangeAddress()

table::CellRangeAddress SAL_CALL ScCellRangeObj::getRangeAddress ( )
overridevirtual

Definition at line 4719 of file cellsuno.cxx.

References aRange, and ScUnoConversion::FillApiRange().

◆ getRows()

uno::Reference< table::XTableRows > SAL_CALL ScCellRangeObj::getRows ( )
overridevirtual

Definition at line 4705 of file cellsuno.cxx.

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

◆ getSpreadsheet()

uno::Reference< sheet::XSpreadsheet > SAL_CALL ScCellRangeObj::getSpreadsheet ( )
overridevirtual

Reimplemented in ScTableSheetObj, and ScCellCursorObj.

Definition at line 4729 of file cellsuno.cxx.

References aRange, ScRange::aStart, and ScAddress::Tab().

Referenced by ScCellCursorObj::getSpreadsheet().

◆ getSupportedServiceNames()

uno::Sequence< OUString > SAL_CALL ScCellRangeObj::getSupportedServiceNames ( )
overridevirtual

◆ getTypes()

uno::Sequence< uno::Type > SAL_CALL ScCellRangeObj::getTypes ( )
overridevirtual

◆ getUniqueCellFormatRanges()

uno::Reference< container::XIndexAccess > SAL_CALL ScCellRangeObj::getUniqueCellFormatRanges ( )
overridevirtual

Definition at line 5601 of file cellsuno.cxx.

References aRange.

◆ merge()

void SAL_CALL ScCellRangeObj::merge ( sal_Bool  bMerge)
overridevirtual

◆ queryInterface()

uno::Any SAL_CALL ScCellRangeObj::queryInterface ( const css::uno::Type &  rType)
overridevirtual

◆ RefChanged()

void ScCellRangeObj::RefChanged ( )
overridevirtual

Reimplemented in ScCellObj.

Definition at line 4491 of file cellsuno.cxx.

References aRange, ScRangeList::empty(), ScRange::PutInOrder(), and ScRangeList::size().

Referenced by ScCellObj::RefChanged().

◆ release()

void SAL_CALL ScCellRangeObj::release ( )
overridevirtualnoexcept

◆ removeSubTotals()

void SAL_CALL ScCellRangeObj::removeSubTotals ( )
overridevirtual

◆ setArrayFormula()

void SAL_CALL ScCellRangeObj::setArrayFormula ( const OUString &  aFormula)
overridevirtual

Definition at line 4798 of file cellsuno.cxx.

References formula::FormulaGrammar::GRAM_API, and SetArrayFormula_Impl().

◆ SetArrayFormula_Impl()

void ScCellRangeObj::SetArrayFormula_Impl ( const OUString &  rFormula,
const formula::FormulaGrammar::Grammar  eGrammar 
)
protected

◆ setArrayTokens()

void SAL_CALL ScCellRangeObj::setArrayTokens ( const css::uno::Sequence< css::sheet::FormulaToken > &  aTokens)
overridevirtual

◆ setDataArray()

void SAL_CALL ScCellRangeObj::setDataArray ( const css::uno::Sequence< css::uno::Sequence< css::uno::Any > > &  aArray)
overridevirtual

move lcl_PutDataArray to docfunc?

Definition at line 4901 of file cellsuno.cxx.

References aRange, and lcl_PutDataArray().

◆ setFormulaArray()

void SAL_CALL ScCellRangeObj::setFormulaArray ( const css::uno::Sequence< css::uno::Sequence< OUString > > &  aArray)
overridevirtual

◆ SetOnePropertyValue()

void ScCellRangeObj::SetOnePropertyValue ( const SfxItemPropertyMapEntry pEntry,
const css::uno::Any &  aValue 
)
overrideprotectedvirtual

◆ setTableOperation()

void SAL_CALL ScCellRangeObj::setTableOperation ( const css::table::CellRangeAddress &  aFormulaRange,
css::sheet::TableOperationMode  nMode,
const css::table::CellAddress &  aColumnCell,
const css::table::CellAddress &  aRowCell 
)
overridevirtual

◆ sort()

void SAL_CALL ScCellRangeObj::sort ( const css::uno::Sequence< css::beans::PropertyValue > &  xDescriptor)
overridevirtual

◆ supportsService()

sal_Bool SAL_CALL ScCellRangeObj::supportsService ( const OUString &  ServiceName)
overridevirtual

Reimplemented in ScCellObj, ScTableSheetObj, ScTableColumnObj, ScTableRowObj, and ScCellCursorObj.

Definition at line 5676 of file cellsuno.cxx.

References cppu::supportsService().

Member Data Documentation

◆ aRange

ScRange ScCellRangeObj::aRange
private

◆ pRangePropSet

const SfxItemPropertySet* ScCellRangeObj::pRangePropSet
private

Definition at line 478 of file cellsuno.hxx.

Referenced by GetItemPropertyMap(), and getPropertySetInfo().


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