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

really derive cell from range? More...

#include <cellsuno.hxx>

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

Public Member Functions

 ScCellObj (ScDocShell *pDocSh, const ScAddress &rP)
 
virtual ~ScCellObj () 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
 
SvxUnoTextGetUnoText ()
 
const ScAddressGetPosition () const
 
void InputEnglishString (const OUString &rText)
 
virtual void SAL_CALL insertTextContent (const css::uno::Reference< css::text::XTextRange > &xRange, const css::uno::Reference< css::text::XTextContent > &xContent, sal_Bool bAbsorb) override
 
virtual void SAL_CALL removeTextContent (const css::uno::Reference< css::text::XTextContent > &xContent) override
 
virtual css::uno::Reference< css::text::XTextCursor > SAL_CALL createTextCursor () override
 
virtual css::uno::Reference< css::text::XTextCursor > SAL_CALL createTextCursorByRange (const css::uno::Reference< css::text::XTextRange > &aTextPosition) override
 
virtual void SAL_CALL insertString (const css::uno::Reference< css::text::XTextRange > &xRange, const OUString &aString, sal_Bool bAbsorb) override
 
virtual void SAL_CALL insertControlCharacter (const css::uno::Reference< css::text::XTextRange > &xRange, sal_Int16 nControlCharacter, sal_Bool bAbsorb) override
 
virtual css::uno::Reference< css::text::XText > SAL_CALL getText () override
 
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getStart () override
 
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getEnd () override
 
virtual OUString SAL_CALL getString () override
 
virtual void SAL_CALL setString (const OUString &aString) override
 
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration () override
 
virtual css::uno::Type SAL_CALL getElementType () override
 
virtual sal_Bool SAL_CALL hasElements () override
 
virtual OUString SAL_CALL getFormula () override
 
virtual void SAL_CALL setFormula (const OUString &aFormula) override
 
virtual void SAL_CALL setFormulaResult (double nValue) override
 
virtual void SAL_CALL setFormulaString (const OUString &aFormula) override
 
virtual double SAL_CALL getValue () override
 
virtual void SAL_CALL setValue (double nValue) override
 
virtual css::table::CellContentType SAL_CALL getType () override
 
virtual sal_Int32 SAL_CALL getError () override
 
virtual css::uno::Sequence< css::sheet::FormulaToken > SAL_CALL getTokens () override
 
virtual void SAL_CALL setTokens (const css::uno::Sequence< css::sheet::FormulaToken > &aTokens) override
 
virtual css::table::CellAddress SAL_CALL getCellAddress () override
 
virtual css::uno::Reference< css::sheet::XSheetAnnotation > SAL_CALL getAnnotation () override
 
virtual css::uno::Reference< css::container::XEnumerationAccess > SAL_CALL getTextFields () override
 
virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL getTextFieldMasters () override
 
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
 
virtual sal_Bool SAL_CALL isActionLocked () override
 
virtual void SAL_CALL addActionLock () override
 
virtual void SAL_CALL removeActionLock () override
 
virtual void SAL_CALL setActionLocks (sal_Int16 nLock) override
 
virtual sal_Int16 SAL_CALL resetActionLocks () override
 
- Public Member Functions inherited from ScCellRangeObj
 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 const SvxItemPropertySetGetEditPropertySet ()
 
static const SfxItemPropertyMapGetCellPropertyMap ()
 
- Static Public Member Functions inherited from ScCellRangeObj
static css::uno::Reference< css::table::XCellRange > CreateRangeFromDoc (const ScDocument &rDoc, const ScRange &rR)
 

Private Member Functions

OUString GetInputString_Impl (bool bEnglish) const
 
OUString GetOutputString_Impl () const
 
void SetString_Impl (const OUString &rString, bool bInterpret, bool bEnglish)
 
double GetValue_Impl () const
 
void SetValue_Impl (double fValue)
 
css::table::CellContentType GetContentType_Impl ()
 
sal_Int32 GetResultType_Impl () 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
 

Private Attributes

rtl::Reference< SvxUnoTextmxUnoText
 
const SfxItemPropertySetpCellPropSet
 
ScAddress aCellPos
 
sal_Int16 nActionLockCount
 

Additional Inherited Members

- Protected Member Functions inherited from ScCellRangeObj
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)
 

Detailed Description

really derive cell from range?

Definition at line 631 of file cellsuno.hxx.

Constructor & Destructor Documentation

◆ ScCellObj()

ScCellObj::ScCellObj ( ScDocShell pDocSh,
const ScAddress rP 
)

Definition at line 5700 of file cellsuno.cxx.

◆ ~ScCellObj()

ScCellObj::~ScCellObj ( )
overridevirtual

Definition at line 5726 of file cellsuno.cxx.

Member Function Documentation

◆ acquire()

void SAL_CALL ScCellObj::acquire ( )
overridevirtualnoexcept

Reimplemented from ScCellRangeObj.

Definition at line 5760 of file cellsuno.cxx.

References ScCellRangeObj::acquire().

◆ addActionLock()

void SAL_CALL ScCellObj::addActionLock ( )
overridevirtual

Definition at line 6399 of file cellsuno.cxx.

References mxUnoText, nActionLockCount, and ScCellEditSource::SetDoUpdateData().

◆ createEnumeration()

uno::Reference< container::XEnumeration > SAL_CALL ScCellObj::createEnumeration ( )
overridevirtual

Definition at line 6053 of file cellsuno.cxx.

References SvxUnoTextBase::createEnumeration(), and GetUnoText().

◆ createTextCursor()

uno::Reference< text::XTextCursor > SAL_CALL ScCellObj::createTextCursor ( )
overridevirtual

Definition at line 5906 of file cellsuno.cxx.

◆ createTextCursorByRange()

uno::Reference< text::XTextCursor > SAL_CALL ScCellObj::createTextCursorByRange ( const css::uno::Reference< css::text::XTextRange > &  aTextPosition)
overridevirtual

Definition at line 5912 of file cellsuno.cxx.

◆ getAnnotation()

uno::Reference< sheet::XSheetAnnotation > SAL_CALL ScCellObj::getAnnotation ( )
overridevirtual

Definition at line 6276 of file cellsuno.cxx.

References aCellPos.

◆ getCellAddress()

table::CellAddress SAL_CALL ScCellObj::getCellAddress ( )
overridevirtual

Definition at line 6264 of file cellsuno.cxx.

References aCellPos, ScAddress::Col(), ScAddress::Row(), and ScAddress::Tab().

◆ GetCellPropertyMap()

const SfxItemPropertyMap & ScCellObj::GetCellPropertyMap ( )
static

◆ GetContentType_Impl()

table::CellContentType ScCellObj::GetContentType_Impl ( )
private

◆ GetEditPropertySet()

const SvxItemPropertySet * ScCellObj::GetEditPropertySet ( )
static

Definition at line 5690 of file cellsuno.cxx.

References lcl_GetEditPropertySet().

◆ getElementType()

uno::Type SAL_CALL ScCellObj::getElementType ( )
overridevirtual

Definition at line 6059 of file cellsuno.cxx.

References SvxUnoTextBase::getElementType(), and GetUnoText().

◆ getEnd()

uno::Reference< text::XTextRange > SAL_CALL ScCellObj::getEnd ( )
overridevirtual

Definition at line 6047 of file cellsuno.cxx.

References SvxUnoTextBase::getEnd(), and GetUnoText().

◆ getError()

sal_Int32 SAL_CALL ScCellObj::getError ( )
overridevirtual

◆ getFormula()

OUString SAL_CALL ScCellObj::getFormula ( )
overridevirtual

Definition at line 6073 of file cellsuno.cxx.

References GetInputString_Impl().

◆ getImplementationId()

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

Reimplemented from ScCellRangeObj.

Definition at line 5789 of file cellsuno.cxx.

◆ getImplementationName()

OUString SAL_CALL ScCellObj::getImplementationName ( )
overridevirtual

Reimplemented from ScCellRangeObj.

Definition at line 6370 of file cellsuno.cxx.

◆ GetInputString_Impl()

OUString ScCellObj::GetInputString_Impl ( bool  bEnglish) const
private

Definition at line 5796 of file cellsuno.cxx.

References lcl_GetInputString().

Referenced by getFormula(), and GetOnePropertyValue().

◆ GetItemPropertyMap()

const SfxItemPropertyMap & ScCellObj::GetItemPropertyMap ( )
overrideprivatevirtual

Reimplemented from ScCellRangeObj.

Definition at line 6363 of file cellsuno.cxx.

References SfxItemPropertySet::getPropertyMap(), and pCellPropSet.

◆ GetOnePropertyValue()

void ScCellObj::GetOnePropertyValue ( const SfxItemPropertyMapEntry pEntry,
css::uno::Any &   
)
overrideprivatevirtual

◆ GetOutputString_Impl()

OUString ScCellObj::GetOutputString_Impl ( ) const
private

Definition at line 5803 of file cellsuno.cxx.

References aCellPos, ScDocShell::GetDocument(), and ScCellFormat::GetOutputString().

Referenced by getString().

◆ GetPosition()

const ScAddress & ScCellObj::GetPosition ( ) const
inline

Definition at line 679 of file cellsuno.hxx.

Referenced by ScCellTextStyleContext::FillPropertySet().

◆ getPropertySetInfo()

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

Reimplemented from ScCellRangeObj.

Definition at line 6310 of file cellsuno.cxx.

References SfxItemPropertySet::getPropertyMap(), and pCellPropSet.

◆ GetResultType_Impl()

sal_Int32 ScCellObj::GetResultType_Impl ( ) const
private

◆ getStart()

uno::Reference< text::XTextRange > SAL_CALL ScCellObj::getStart ( )
overridevirtual

Definition at line 6041 of file cellsuno.cxx.

References SvxUnoTextBase::getStart(), and GetUnoText().

◆ getString()

OUString SAL_CALL ScCellObj::getString ( )
overridevirtual

Definition at line 5934 of file cellsuno.cxx.

References GetOutputString_Impl().

◆ getSupportedServiceNames()

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

◆ getText()

uno::Reference< text::XText > SAL_CALL ScCellObj::getText ( )
overridevirtual

Definition at line 6036 of file cellsuno.cxx.

◆ getTextFieldMasters()

uno::Reference< container::XNameAccess > SAL_CALL ScCellObj::getTextFieldMasters ( )
overridevirtual

Definition at line 6302 of file cellsuno.cxx.

◆ getTextFields()

uno::Reference< container::XEnumerationAccess > SAL_CALL ScCellObj::getTextFields ( )
overridevirtual

Definition at line 6289 of file cellsuno.cxx.

References aCellPos.

◆ getTokens()

uno::Sequence< sheet::FormulaToken > SAL_CALL ScCellObj::getTokens ( )
overridevirtual

◆ getType()

table::CellContentType SAL_CALL ScCellObj::getType ( )
overridevirtual

◆ getTypes()

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

◆ GetUnoText()

SvxUnoText & ScCellObj::GetUnoText ( )

◆ getValue()

double SAL_CALL ScCellObj::getValue ( )
overridevirtual

Definition at line 6085 of file cellsuno.cxx.

References GetValue_Impl().

◆ GetValue_Impl()

double ScCellObj::GetValue_Impl ( ) const
private

Definition at line 5828 of file cellsuno.cxx.

References aCellPos, ScDocShell::GetDocument(), and ScDocument::GetValue().

Referenced by getValue().

◆ hasElements()

sal_Bool SAL_CALL ScCellObj::hasElements ( )
overridevirtual

Definition at line 6065 of file cellsuno.cxx.

References GetUnoText(), and SvxUnoTextBase::hasElements().

◆ InputEnglishString()

void ScCellObj::InputEnglishString ( const OUString &  rText)

◆ insertControlCharacter()

void SAL_CALL ScCellObj::insertControlCharacter ( const css::uno::Reference< css::text::XTextRange > &  xRange,
sal_Int16  nControlCharacter,
sal_Bool  bAbsorb 
)
overridevirtual

Definition at line 5960 of file cellsuno.cxx.

References GetUnoText(), and SvxUnoTextBase::insertControlCharacter().

◆ insertString()

void SAL_CALL ScCellObj::insertString ( const css::uno::Reference< css::text::XTextRange > &  xRange,
const OUString &  aString,
sal_Bool  bAbsorb 
)
overridevirtual

Definition at line 5950 of file cellsuno.cxx.

References GetUnoText(), and SvxUnoTextBase::insertString().

◆ insertTextContent()

void SAL_CALL ScCellObj::insertTextContent ( const css::uno::Reference< css::text::XTextRange > &  xRange,
const css::uno::Reference< css::text::XTextContent > &  xContent,
sal_Bool  bAbsorb 
)
overridevirtual

◆ isActionLocked()

sal_Bool SAL_CALL ScCellObj::isActionLocked ( )
overridevirtual

Definition at line 6393 of file cellsuno.cxx.

References nActionLockCount.

◆ queryInterface()

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

Reimplemented from ScCellRangeObj.

Definition at line 5742 of file cellsuno.cxx.

References ScCellRangeObj::queryInterface(), and SC_QUERYINTERFACE.

◆ RefChanged()

void ScCellObj::RefChanged ( )
overridevirtual

Reimplemented from ScCellRangeObj.

Definition at line 5730 of file cellsuno.cxx.

References aCellPos, ScRangeList::empty(), ScCellRangeObj::RefChanged(), and ScRangeList::size().

◆ release()

void SAL_CALL ScCellObj::release ( )
overridevirtualnoexcept

Reimplemented from ScCellRangeObj.

Definition at line 5765 of file cellsuno.cxx.

References ScCellRangeObj::release().

◆ removeActionLock()

void SAL_CALL ScCellObj::removeActionLock ( )
overridevirtual

◆ removeTextContent()

void SAL_CALL ScCellObj::removeTextContent ( const css::uno::Reference< css::text::XTextContent > &  xContent)
overridevirtual

Check if field is in this cell

Definition at line 6020 of file cellsuno.cxx.

References ScEditFieldObj::DeleteField(), GetUnoText(), ScEditFieldObj::IsInserted(), and SvxUnoTextBase::removeTextContent().

◆ resetActionLocks()

sal_Int16 SAL_CALL ScCellObj::resetActionLocks ( )
overridevirtual

◆ setActionLocks()

void SAL_CALL ScCellObj::setActionLocks ( sal_Int16  nLock)
overridevirtual

◆ setFormula()

void SAL_CALL ScCellObj::setFormula ( const OUString &  aFormula)
overridevirtual

Definition at line 6079 of file cellsuno.cxx.

References SetString_Impl().

◆ setFormulaResult()

void SAL_CALL ScCellObj::setFormulaResult ( double  nValue)
overridevirtual

◆ setFormulaString()

void SAL_CALL ScCellObj::setFormulaString ( const OUString &  aFormula)
overridevirtual

◆ SetOnePropertyValue()

void ScCellObj::SetOnePropertyValue ( const SfxItemPropertyMapEntry pEntry,
const css::uno::Any &  aValue 
)
overrideprivatevirtual

◆ setString()

void SAL_CALL ScCellObj::setString ( const OUString &  aString)
overridevirtual

Definition at line 5940 of file cellsuno.cxx.

References mxUnoText, and SetString_Impl().

◆ SetString_Impl()

void ScCellObj::SetString_Impl ( const OUString &  rString,
bool  bInterpret,
bool  bEnglish 
)
private

◆ setTokens()

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

◆ setValue()

void SAL_CALL ScCellObj::setValue ( double  nValue)
overridevirtual

Definition at line 6091 of file cellsuno.cxx.

References nValue, and SetValue_Impl().

◆ SetValue_Impl()

void ScCellObj::SetValue_Impl ( double  fValue)
private

Definition at line 5837 of file cellsuno.cxx.

References aCellPos, ScDocShell::GetDocFunc(), and ScDocFunc::SetValueCell().

Referenced by setValue().

◆ supportsService()

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

Reimplemented from ScCellRangeObj.

Definition at line 6375 of file cellsuno.cxx.

References cppu::supportsService().

Member Data Documentation

◆ aCellPos

ScAddress ScCellObj::aCellPos
private

◆ mxUnoText

rtl::Reference<SvxUnoText> ScCellObj::mxUnoText
private

◆ nActionLockCount

sal_Int16 ScCellObj::nActionLockCount
private

◆ pCellPropSet

const SfxItemPropertySet* ScCellObj::pCellPropSet
private

Definition at line 643 of file cellsuno.hxx.

Referenced by GetItemPropertyMap(), and getPropertySetInfo().


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