LibreOffice Module sc (master)  1
Public Member Functions | Static 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 > const &xParent, ScDocShell *pDocSh, const OUString &rNm, 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 sal_Int64 SAL_CALL getSomething (const css::uno::Sequence< sal_Int8 > &aIdentifier) override
 XUnoTunnel. More...
 
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
 
void RemoveBroadcaster_Impl (SfxBroadcaster &rBC)
 

Static Public Member Functions

static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId ()
 

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 46 of file nameuno.hxx.

Constructor & Destructor Documentation

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

Definition at line 94 of file nameuno.cxx.

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

Member Function Documentation

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

XNamedRange.

Definition at line 232 of file nameuno.cxx.

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

OUString SAL_CALL ScNamedRangeObj::getImplementationName ( )
overridevirtual

XServiceInfo.

Definition at line 409 of file nameuno.cxx.

OUString SAL_CALL ScNamedRangeObj::getName ( )
overridevirtual

XNamed.

Definition at line 213 of file nameuno.cxx.

References aName.

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

XPropertySet.

Definition at line 362 of file nameuno.cxx.

References lcl_GetNamedRangeMap().

uno::Any SAL_CALL ScNamedRangeObj::getPropertyValue ( const OUString &  PropertyName)
overridevirtual
ScRangeData * ScNamedRangeObj::GetRangeData_Impl ( )
private
table::CellAddress SAL_CALL ScNamedRangeObj::getReferencePosition ( )
overridevirtual
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(), ScRangeData::IsValidReference(), pData, and pDocShell.

sal_Int64 SAL_CALL ScNamedRangeObj::getSomething ( const css::uno::Sequence< sal_Int8 > &  aIdentifier)
overridevirtual

XUnoTunnel.

Definition at line 426 of file nameuno.cxx.

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

Definition at line 419 of file nameuno.cxx.

References SCLINKTARGET_SERVICE, and SCNAMEDRANGEOBJ_SERVICE.

SCTAB ScNamedRangeObj::GetTab_Impl ( )
private
uno::Sequence< sheet::FormulaToken > SAL_CALL ScNamedRangeObj::getTokens ( )
overridevirtual
sal_Int32 SAL_CALL ScNamedRangeObj::getType ( )
overridevirtual
const uno::Sequence< sal_Int8 > & ScNamedRangeObj::getUnoTunnelId ( )
static

Definition at line 441 of file nameuno.cxx.

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
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.

virtual void SAL_CALL ScNamedRangeObj::removePropertyChangeListener ( const OUString &  aPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener > &  aListener 
)
overridevirtual
virtual void SAL_CALL ScNamedRangeObj::removeVetoableChangeListener ( const OUString &  PropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener > &  aListener 
)
overridevirtual
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().

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().

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

Definition at line 369 of file nameuno.cxx.

References SC_UNONAME_ISSHAREDFMLA.

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().

void SAL_CALL ScNamedRangeObj::setTokens ( const css::uno::Sequence< css::sheet::FormulaToken > &  aTokens)
overridevirtual
void SAL_CALL ScNamedRangeObj::setType ( sal_Int32  nType)
overridevirtual
sal_Bool SAL_CALL ScNamedRangeObj::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 414 of file nameuno.cxx.

References cppu::supportsService().

Friends And Related Function Documentation

friend class ScVbaName
friend

Definition at line 62 of file nameuno.hxx.

Member Data Documentation

OUString ScNamedRangeObj::aName
private

Definition at line 58 of file nameuno.hxx.

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

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

Definition at line 56 of file nameuno.hxx.

Referenced by Modify_Impl().

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

Definition at line 59 of file nameuno.hxx.

Referenced by GetTab_Impl().

ScDocShell* ScNamedRangeObj::pDocShell
private

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