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

#include <nameuno.hxx>

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

Public Member Functions

 ScNamedRangeObj (rtl::Reference< ScNamedRangesObj > xParent, ScDocShell *pDocSh, OUString aNm, css::uno::Reference< css::container::XNamed > const &xSheet=css::uno::Reference< css::container::XNamed >())
 
virtual ~ScNamedRangeObj () override
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override
 
virtual OUString SAL_CALL getContent () override
 XNamedRange. More...
 
virtual void SAL_CALL setContent (const OUString &aContent) override
 
virtual css::table::CellAddress SAL_CALL getReferencePosition () override
 
virtual void SAL_CALL setReferencePosition (const css::table::CellAddress &aReferencePosition) override
 
virtual sal_Int32 SAL_CALL getType () override
 
virtual void SAL_CALL setType (sal_Int32 nType) override
 
virtual css::uno::Sequence< css::sheet::FormulaToken > SAL_CALL getTokens () override
 XFormulaTokens. More...
 
virtual void SAL_CALL setTokens (const css::uno::Sequence< css::sheet::FormulaToken > &aTokens) override
 
virtual OUString SAL_CALL getName () override
 XNamed. More...
 
virtual void SAL_CALL setName (const OUString &aName) override
 
virtual css::uno::Reference< css::table::XCellRange > SAL_CALL getReferredCells () override
 XCellRangeReferrer. More...
 
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo () override
 XPropertySet. More...
 
virtual void SAL_CALL setPropertyValue (const OUString &aPropertyName, const css::uno::Any &aValue) override
 
virtual css::uno::Any SAL_CALL getPropertyValue (const OUString &PropertyName) override
 
virtual void SAL_CALL addPropertyChangeListener (const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
 
virtual void SAL_CALL removePropertyChangeListener (const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
 
virtual void SAL_CALL addVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
 
virtual void SAL_CALL removeVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
 
virtual OUString SAL_CALL getImplementationName () override
 XServiceInfo. More...
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
- Public Member Functions inherited from SfxListener
 SfxListener ()
 
 SfxListener (const SfxListener &rCopy)
 
virtual ~SfxListener () COVERITY_NOEXCEPT_FALSE
 
void StartListening (SfxBroadcaster &rBroadcaster, DuplicateHandling eDuplicateHanding=DuplicateHandling::Unexpected)
 
void EndListening (SfxBroadcaster &rBroadcaster, bool bRemoveAllDuplicates=false)
 
void EndListeningAll ()
 
bool IsListening (SfxBroadcaster &rBroadcaster) const
 
sal_uInt16 GetBroadcasterCount () const
 
SfxBroadcasterGetBroadcasterJOE (sal_uInt16 nNo) const
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint)
 
void RemoveBroadcaster_Impl (SfxBroadcaster &rBC)
 
virtual bool IsSdrView () const
 

Private Member Functions

ScRangeDataGetRangeData_Impl ()
 
void Modify_Impl (const OUString *pNewName, const ScTokenArray *pNewTokens, const OUString *pNewContent, const ScAddress *pNewPos, const ScRangeData::Type *pNewType, const formula::FormulaGrammar::Grammar eGrammar)
 
SCTAB GetTab_Impl ()
 

Private Attributes

rtl::Reference< ScNamedRangesObjmxParent
 
ScDocShellpDocShell
 
OUString aName
 
css::uno::Reference< css::container::XNamed > mxSheet
 

Friends

class ScVbaName
 

Detailed Description

Definition at line 44 of file nameuno.hxx.

Constructor & Destructor Documentation

◆ ScNamedRangeObj()

ScNamedRangeObj::ScNamedRangeObj ( rtl::Reference< ScNamedRangesObj xParent,
ScDocShell pDocSh,
OUString  aNm,
css::uno::Reference< css::container::XNamed > const &  xSheet = css::uno::Reference< css::container::XNamed > () 
)

◆ ~ScNamedRangeObj()

ScNamedRangeObj::~ScNamedRangeObj ( )
overridevirtual

Definition at line 94 of file nameuno.cxx.

References ScDocShell::GetDocument(), pDocShell, and ScDocument::RemoveUnoObject().

Member Function Documentation

◆ addPropertyChangeListener()

virtual void SAL_CALL ScNamedRangeObj::addPropertyChangeListener ( const OUString &  aPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener > &  xListener 
)
overridevirtual

◆ addVetoableChangeListener()

virtual void SAL_CALL ScNamedRangeObj::addVetoableChangeListener ( const OUString &  PropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener > &  aListener 
)
overridevirtual

◆ getContent()

OUString SAL_CALL ScNamedRangeObj::getContent ( )
overridevirtual

XNamedRange.

Definition at line 232 of file nameuno.cxx.

References GetRangeData_Impl(), formula::FormulaGrammar::GRAM_API, and pData.

◆ getImplementationName()

OUString SAL_CALL ScNamedRangeObj::getImplementationName ( )
overridevirtual

XServiceInfo.

Definition at line 407 of file nameuno.cxx.

◆ getName()

OUString SAL_CALL ScNamedRangeObj::getName ( )
overridevirtual

XNamed.

Definition at line 213 of file nameuno.cxx.

References aName.

◆ getPropertySetInfo()

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

XPropertySet.

Definition at line 362 of file nameuno.cxx.

References lcl_GetNamedRangeMap().

◆ getPropertyValue()

uno::Any SAL_CALL ScNamedRangeObj::getPropertyValue ( const OUString &  PropertyName)
overridevirtual

◆ GetRangeData_Impl()

ScRangeData * ScNamedRangeObj::GetRangeData_Impl ( )
private

◆ getReferencePosition()

table::CellAddress SAL_CALL ScNamedRangeObj::getReferencePosition ( )
overridevirtual

◆ getReferredCells()

uno::Reference< table::XCellRange > SAL_CALL ScNamedRangeObj::getReferredCells ( )
overridevirtual

XCellRangeReferrer.

static function to create ScCellObj/ScCellRangeObj at ScCellRangeObj ???

Definition at line 343 of file nameuno.cxx.

References ScRange::aEnd, ScRange::aStart, GetRangeData_Impl(), pData, and pDocShell.

◆ getSupportedServiceNames()

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

Definition at line 417 of file nameuno.cxx.

References SCLINKTARGET_SERVICE, and SCNAMEDRANGEOBJ_SERVICE.

◆ GetTab_Impl()

SCTAB ScNamedRangeObj::GetTab_Impl ( )
private

Definition at line 133 of file nameuno.cxx.

References ScDocShell::GetDocument(), ScDocument::GetTable(), mxSheet, pDocShell, and sName.

Referenced by GetRangeData_Impl(), and Modify_Impl().

◆ getTokens()

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

◆ getType()

sal_Int32 SAL_CALL ScNamedRangeObj::getType ( )
overridevirtual

◆ Modify_Impl()

void ScNamedRangeObj::Modify_Impl ( const OUString *  pNewName,
const ScTokenArray pNewTokens,
const OUString *  pNewContent,
const ScAddress pNewPos,
const ScRangeData::Type pNewType,
const formula::FormulaGrammar::Grammar  eGrammar 
)
private

◆ Notify()

void ScNamedRangeObj::Notify ( SfxBroadcaster rBC,
const SfxHint rHint 
)
overridevirtual

Reimplemented from SfxListener.

Definition at line 102 of file nameuno.cxx.

References SfxHint::GetId(), and pDocShell.

◆ removePropertyChangeListener()

virtual void SAL_CALL ScNamedRangeObj::removePropertyChangeListener ( const OUString &  aPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener > &  aListener 
)
overridevirtual

◆ removeVetoableChangeListener()

virtual void SAL_CALL ScNamedRangeObj::removeVetoableChangeListener ( const OUString &  PropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener > &  aListener 
)
overridevirtual

◆ setContent()

void SAL_CALL ScNamedRangeObj::setContent ( const OUString &  aContent)
overridevirtual

Definition at line 243 of file nameuno.cxx.

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

◆ setName()

void SAL_CALL ScNamedRangeObj::setName ( const OUString &  aName)
overridevirtual

adapt formulas ?????

Definition at line 219 of file nameuno.cxx.

References aName, formula::FormulaGrammar::GRAM_API, and Modify_Impl().

◆ setPropertyValue()

void SAL_CALL ScNamedRangeObj::setPropertyValue ( const OUString &  aPropertyName,
const css::uno::Any &  aValue 
)
overridevirtual

Definition at line 368 of file nameuno.cxx.

References SC_UNONAME_ISSHAREDFMLA.

◆ setReferencePosition()

void SAL_CALL ScNamedRangeObj::setReferencePosition ( const css::table::CellAddress &  aReferencePosition)
overridevirtual

Definition at line 276 of file nameuno.cxx.

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

◆ setTokens()

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

◆ setType()

void SAL_CALL ScNamedRangeObj::setType ( sal_Int32  nType)
overridevirtual

◆ supportsService()

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

Definition at line 412 of file nameuno.cxx.

References cppu::supportsService().

Friends And Related Function Documentation

◆ ScVbaName

friend class ScVbaName
friend

Definition at line 59 of file nameuno.hxx.

Member Data Documentation

◆ aName

OUString ScNamedRangeObj::aName
private

Definition at line 55 of file nameuno.hxx.

Referenced by getName(), getPropertyValue(), GetRangeData_Impl(), Modify_Impl(), and setName().

◆ mxParent

rtl::Reference< ScNamedRangesObj > ScNamedRangeObj::mxParent
private

Definition at line 53 of file nameuno.hxx.

Referenced by Modify_Impl().

◆ mxSheet

css::uno::Reference< css::container::XNamed > ScNamedRangeObj::mxSheet
private

Definition at line 56 of file nameuno.hxx.

Referenced by GetTab_Impl().

◆ pDocShell

ScDocShell* ScNamedRangeObj::pDocShell
private

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