LibreOffice Module sc (master) 1
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
ScNamedRangesObj Class Referenceabstract

#include <nameuno.hxx>

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

Public Member Functions

 ScNamedRangesObj (ScDocShell *pDocSh)
 
virtual ~ScNamedRangesObj () override
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override
 
bool IsModifyAndBroadcast () const
 
virtual void SAL_CALL addNewByName (const OUString &aName, const OUString &aContent, const css::table::CellAddress &aPosition, sal_Int32 nType) override
 XNamedRanges. More...
 
virtual void SAL_CALL addNewFromTitles (const css::table::CellRangeAddress &aSource, css::sheet::Border aBorder) override
 
virtual void SAL_CALL removeByName (const OUString &aName) override
 
virtual void SAL_CALL outputList (const css::table::CellAddress &aOutputPosition) override
 
virtual css::uno::Any SAL_CALL getByName (const OUString &aName) override
 XNameAccess. More...
 
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames () override
 
virtual sal_Bool SAL_CALL hasByName (const OUString &aName) override
 
virtual sal_Int32 SAL_CALL getCount () override
 XIndexAccess. More...
 
virtual css::uno::Any SAL_CALL getByIndex (sal_Int32 Index) override
 
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration () override
 XEnumerationAccess. More...
 
virtual css::uno::Type SAL_CALL getElementType () override
 XElementAccess. More...
 
virtual sal_Bool SAL_CALL hasElements () override
 
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_Bool SAL_CALL isActionLocked () override
 XActionLockable. More...
 
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
 
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
 

Protected Member Functions

void lock ()
 called from the XActionLockable interface methods on initial locking More...
 
void unlock ()
 called from the XActionLockable interface methods on final unlock More...
 

Protected Attributes

ScDocShellpDocShell
 

Private Member Functions

virtual rtl::Reference< ScNamedRangeObjGetObjectByIndex_Impl (sal_uInt16 nIndex)=0
 
virtual rtl::Reference< ScNamedRangeObjGetObjectByName_Impl (const OUString &aName)=0
 
virtual ScRangeNameGetRangeName_Impl ()=0
 
virtual SCTAB GetTab_Impl ()=0
 

Private Attributes

bool mbModifyAndBroadcast
 if true, adding new name or modifying existing one will set the document 'modified' and broadcast the change. More...
 

Detailed Description

Definition at line 116 of file nameuno.hxx.

Constructor & Destructor Documentation

◆ ScNamedRangesObj()

ScNamedRangesObj::ScNamedRangesObj ( ScDocShell pDocSh)

Definition at line 422 of file nameuno.cxx.

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

◆ ~ScNamedRangesObj()

ScNamedRangesObj::~ScNamedRangesObj ( )
overridevirtual

Definition at line 429 of file nameuno.cxx.

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

Member Function Documentation

◆ addActionLock()

void ScNamedRangesObj::addActionLock ( )
overridevirtual

◆ addNewByName()

void SAL_CALL ScNamedRangesObj::addNewByName ( const OUString &  aName,
const OUString &  aContent,
const css::table::CellAddress &  aPosition,
sal_Int32  nType 
)
overridevirtual

◆ addNewFromTitles()

void SAL_CALL ScNamedRangesObj::addNewFromTitles ( const css::table::CellRangeAddress &  aSource,
css::sheet::Border  aBorder 
)
overridevirtual

this cannot be an enum, because multiple bits can be set !!!

Definition at line 505 of file nameuno.cxx.

References Bottom, ScDocFunc::CreateNames(), ScUnoConversion::FillScRange(), ScDocShell::GetDocFunc(), GetTab_Impl(), Left, NONE, pDocShell, Right, and Top.

◆ addPropertyChangeListener()

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

◆ addVetoableChangeListener()

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

◆ createEnumeration()

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

XEnumerationAccess.

Definition at line 563 of file nameuno.cxx.

◆ getByIndex()

uno::Any SAL_CALL ScNamedRangesObj::getByIndex ( sal_Int32  Index)
overridevirtual

Definition at line 588 of file nameuno.cxx.

References GetObjectByIndex_Impl(), and nIndex.

◆ getByName()

uno::Any SAL_CALL ScNamedRangesObj::getByName ( const OUString &  aName)
overridevirtual

XNameAccess.

Definition at line 638 of file nameuno.cxx.

References aName.

◆ getCount()

sal_Int32 SAL_CALL ScNamedRangesObj::getCount ( )
overridevirtual

XIndexAccess.

Definition at line 571 of file nameuno.cxx.

References GetRangeName_Impl(), lcl_UserVisibleName(), and pDocShell.

Referenced by getElementNames(), and hasElements().

◆ getElementNames()

uno::Sequence< OUString > SAL_CALL ScNamedRangesObj::getElementNames ( )
overridevirtual

Definition at line 648 of file nameuno.cxx.

References aSeq, getCount(), GetRangeName_Impl(), lcl_UserVisibleName(), and pDocShell.

◆ getElementType()

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

XElementAccess.

Definition at line 598 of file nameuno.cxx.

References cppu::UnoType< typename T >::get().

◆ getImplementationName()

virtual OUString SAL_CALL ScNamedRangesObj::getImplementationName ( )
overridevirtual

XServiceInfo.

◆ GetObjectByIndex_Impl()

virtual rtl::Reference< ScNamedRangeObj > ScNamedRangesObj::GetObjectByIndex_Impl ( sal_uInt16  nIndex)
privatepure virtual

Implemented in ScGlobalNamedRangesObj, and ScLocalNamedRangesObj.

Referenced by getByIndex().

◆ GetObjectByName_Impl()

virtual rtl::Reference< ScNamedRangeObj > ScNamedRangesObj::GetObjectByName_Impl ( const OUString &  aName)
privatepure virtual

◆ getPropertySetInfo()

Reference< beans::XPropertySetInfo > SAL_CALL ScNamedRangesObj::getPropertySetInfo ( )
overridevirtual

XPropertySet.

Definition at line 609 of file nameuno.cxx.

References lcl_GetNamedRangesMap().

◆ getPropertyValue()

Any SAL_CALL ScNamedRangesObj::getPropertyValue ( const OUString &  PropertyName)
overridevirtual

Definition at line 625 of file nameuno.cxx.

References Any, mbModifyAndBroadcast, and SC_UNO_MODIFY_BROADCAST.

◆ GetRangeName_Impl()

virtual ScRangeName * ScNamedRangesObj::GetRangeName_Impl ( )
privatepure virtual

◆ getSupportedServiceNames()

virtual css::uno::Sequence< OUString > SAL_CALL ScNamedRangesObj::getSupportedServiceNames ( )
overridevirtual

◆ GetTab_Impl()

virtual SCTAB ScNamedRangesObj::GetTab_Impl ( )
privatepure virtual

◆ hasByName()

sal_Bool SAL_CALL ScNamedRangesObj::hasByName ( const OUString &  aName)
overridevirtual

◆ hasElements()

sal_Bool SAL_CALL ScNamedRangesObj::hasElements ( )
overridevirtual

Definition at line 603 of file nameuno.cxx.

References getCount().

◆ isActionLocked()

sal_Bool ScNamedRangesObj::isActionLocked ( )
overridevirtual

XActionLockable.

Definition at line 701 of file nameuno.cxx.

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

◆ IsModifyAndBroadcast()

bool ScNamedRangesObj::IsModifyAndBroadcast ( ) const
inline

Definition at line 153 of file nameuno.hxx.

References mbModifyAndBroadcast.

◆ lock()

void ScNamedRangesObj::lock ( )
protected

called from the XActionLockable interface methods on initial locking

Definition at line 688 of file nameuno.cxx.

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

Referenced by addActionLock(), and setActionLocks().

◆ Notify()

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

Reimplemented from SfxListener.

Definition at line 437 of file nameuno.cxx.

References SfxHint::GetId(), and pDocShell.

◆ outputList()

void SAL_CALL ScNamedRangesObj::outputList ( const css::table::CellAddress &  aOutputPosition)
overridevirtual

Definition at line 553 of file nameuno.cxx.

References ScDocShell::GetDocFunc(), ScDocFunc::InsertNameList(), and pDocShell.

◆ removeActionLock()

void ScNamedRangesObj::removeActionLock ( )
overridevirtual

◆ removeByName()

void SAL_CALL ScNamedRangesObj::removeByName ( const OUString &  aName)
overridevirtual

◆ removePropertyChangeListener()

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

◆ removeVetoableChangeListener()

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

◆ resetActionLocks()

sal_Int16 ScNamedRangesObj::resetActionLocks ( )
overridevirtual

◆ setActionLocks()

void ScNamedRangesObj::setActionLocks ( sal_Int16  nLock)
overridevirtual

◆ setPropertyValue()

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

Definition at line 616 of file nameuno.cxx.

References mbModifyAndBroadcast, and SC_UNO_MODIFY_BROADCAST.

◆ supportsService()

virtual sal_Bool SAL_CALL ScNamedRangesObj::supportsService ( const OUString &  ServiceName)
overridevirtual

◆ unlock()

void ScNamedRangesObj::unlock ( )
protected

called from the XActionLockable interface methods on final unlock

Definition at line 694 of file nameuno.cxx.

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

Referenced by removeActionLock(), resetActionLocks(), and setActionLocks().

Member Data Documentation

◆ mbModifyAndBroadcast

bool ScNamedRangesObj::mbModifyAndBroadcast
private

if true, adding new name or modifying existing one will set the document 'modified' and broadcast the change.

We turn this off during import.

Definition at line 130 of file nameuno.hxx.

Referenced by addNewByName(), getPropertyValue(), IsModifyAndBroadcast(), removeByName(), and setPropertyValue().

◆ pDocShell

ScDocShell* ScNamedRangesObj::pDocShell
protected

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