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

#include <linkuno.hxx>

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

Public Member Functions

 ScAreaLinkObj (ScDocShell *pDocSh, size_t nP)
 
virtual ~ScAreaLinkObj () override
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override
 
virtual void SAL_CALL refresh () override
 
virtual void SAL_CALL addRefreshListener (const css::uno::Reference< css::util::XRefreshListener > &l) override
 
virtual void SAL_CALL removeRefreshListener (const css::uno::Reference< css::util::XRefreshListener > &l) override
 
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo () override
 
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
 
OUString getFileName () const
 
void setFileName (const OUString &FileName)
 
OUString getFilter () const
 
void setFilter (const OUString &Filter)
 
OUString getFilterOptions () const
 
void setFilterOptions (const OUString &FilterOptions)
 
sal_Int32 getRefreshDelay () const
 
void setRefreshDelay (sal_Int32 nRefreshDelay)
 
virtual OUString SAL_CALL getSourceArea () override
 
virtual void SAL_CALL setSourceArea (const OUString &aSourceArea) override
 
virtual css::table::CellRangeAddress SAL_CALL getDestArea () override
 
virtual void SAL_CALL setDestArea (const css::table::CellRangeAddress &aDestArea) 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
 
- 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

void Modify_Impl (const OUString *pNewFile, const OUString *pNewFilter, const OUString *pNewOptions, const OUString *pNewSource, const css::table::CellRangeAddress *pNewDest)
 
void ModifyRefreshDelay_Impl (sal_Int32 nRefresh)
 
void Refreshed_Impl ()
 

Private Attributes

SfxItemPropertySet aPropSet
 
ScDocShellpDocShell
 
size_t nPos
 
XRefreshListenerArr_Impl aRefreshListeners
 

Detailed Description

Definition at line 156 of file linkuno.hxx.

Constructor & Destructor Documentation

◆ ScAreaLinkObj()

ScAreaLinkObj::ScAreaLinkObj ( ScDocShell pDocSh,
size_t  nP 
)

Definition at line 572 of file linkuno.cxx.

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

◆ ~ScAreaLinkObj()

ScAreaLinkObj::~ScAreaLinkObj ( )
overridevirtual

Definition at line 580 of file linkuno.cxx.

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

Member Function Documentation

◆ addPropertyChangeListener()

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

◆ addRefreshListener()

void SAL_CALL ScAreaLinkObj::addRefreshListener ( const css::uno::Reference< css::util::XRefreshListener > &  l)
overridevirtual

Definition at line 671 of file linkuno.cxx.

References aRefreshListeners.

◆ addVetoableChangeListener()

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

◆ getDestArea()

table::CellRangeAddress SAL_CALL ScAreaLinkObj::getDestArea ( )
overridevirtual

Definition at line 858 of file linkuno.cxx.

References ScUnoConversion::FillApiRange(), lcl_GetAreaLink(), nPos, pDocShell, and pLink.

◆ getFileName()

OUString ScAreaLinkObj::getFileName ( ) const

Definition at line 776 of file linkuno.cxx.

References lcl_GetAreaLink(), nPos, and pLink.

Referenced by getPropertyValue().

◆ getFilter()

OUString ScAreaLinkObj::getFilter ( ) const

Definition at line 792 of file linkuno.cxx.

References lcl_GetAreaLink(), nPos, pDocShell, and pLink.

Referenced by getPropertyValue().

◆ getFilterOptions()

OUString ScAreaLinkObj::getFilterOptions ( ) const

Definition at line 808 of file linkuno.cxx.

References lcl_GetAreaLink(), nPos, pDocShell, and pLink.

Referenced by getPropertyValue().

◆ getImplementationName()

virtual OUString SAL_CALL ScAreaLinkObj::getImplementationName ( )
overridevirtual

◆ getPropertySetInfo()

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

Definition at line 713 of file linkuno.cxx.

References aPropSet, and SfxItemPropertySet::getPropertyMap().

◆ getPropertyValue()

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

◆ getRefreshDelay()

sal_Int32 ScAreaLinkObj::getRefreshDelay ( ) const

Definition at line 824 of file linkuno.cxx.

References lcl_GetAreaLink(), nPos, pDocShell, and pLink.

Referenced by getPropertyValue().

◆ getSourceArea()

OUString SAL_CALL ScAreaLinkObj::getSourceArea ( )
overridevirtual

Definition at line 842 of file linkuno.cxx.

References lcl_GetAreaLink(), nPos, pDocShell, and pLink.

◆ getSupportedServiceNames()

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

◆ Modify_Impl()

void ScAreaLinkObj::Modify_Impl ( const OUString *  pNewFile,
const OUString *  pNewFilter,
const OUString *  pNewOptions,
const OUString *  pNewSource,
const css::table::CellRangeAddress *  pNewDest 
)
private

◆ ModifyRefreshDelay_Impl()

void ScAreaLinkObj::ModifyRefreshDelay_Impl ( sal_Int32  nRefresh)
private

Definition at line 654 of file linkuno.cxx.

References lcl_GetAreaLink(), nPos, pDocShell, and pLink.

Referenced by setRefreshDelay().

◆ Notify()

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

notify if links in document are changed

Reimplemented from SfxListener.

Definition at line 588 of file linkuno.cxx.

References AREA, SfxHint::GetId(), lcl_GetAreaLink(), nPos, pDocShell, pLink, and Refreshed_Impl().

◆ refresh()

void SAL_CALL ScAreaLinkObj::refresh ( )
overridevirtual

Definition at line 663 of file linkuno.cxx.

References lcl_GetAreaLink(), nPos, pDocShell, and pLink.

◆ Refreshed_Impl()

void ScAreaLinkObj::Refreshed_Impl ( )
private

Definition at line 703 of file linkuno.cxx.

References aEvent, and aRefreshListeners.

Referenced by Notify().

◆ removePropertyChangeListener()

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

◆ removeRefreshListener()

void SAL_CALL ScAreaLinkObj::removeRefreshListener ( const css::uno::Reference< css::util::XRefreshListener > &  l)
overridevirtual

Definition at line 682 of file linkuno.cxx.

References aRefreshListeners, n, and nCount.

◆ removeVetoableChangeListener()

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

◆ setDestArea()

void SAL_CALL ScAreaLinkObj::setDestArea ( const css::table::CellRangeAddress &  aDestArea)
overridevirtual

Definition at line 868 of file linkuno.cxx.

References Modify_Impl().

◆ setFileName()

void ScAreaLinkObj::setFileName ( const OUString &  FileName)

Definition at line 786 of file linkuno.cxx.

References Modify_Impl().

Referenced by setPropertyValue().

◆ setFilter()

void ScAreaLinkObj::setFilter ( const OUString &  Filter)

Definition at line 802 of file linkuno.cxx.

References Filter, and Modify_Impl().

Referenced by setPropertyValue().

◆ setFilterOptions()

void ScAreaLinkObj::setFilterOptions ( const OUString &  FilterOptions)

Definition at line 818 of file linkuno.cxx.

References FilterOptions, and Modify_Impl().

Referenced by setPropertyValue().

◆ setPropertyValue()

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

◆ setRefreshDelay()

void ScAreaLinkObj::setRefreshDelay ( sal_Int32  nRefreshDelay)

Definition at line 834 of file linkuno.cxx.

References ModifyRefreshDelay_Impl().

Referenced by setPropertyValue().

◆ setSourceArea()

void SAL_CALL ScAreaLinkObj::setSourceArea ( const OUString &  aSourceArea)
overridevirtual

Definition at line 852 of file linkuno.cxx.

References Modify_Impl().

◆ supportsService()

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

Member Data Documentation

◆ aPropSet

SfxItemPropertySet ScAreaLinkObj::aPropSet
private

Definition at line 164 of file linkuno.hxx.

Referenced by getPropertySetInfo().

◆ aRefreshListeners

XRefreshListenerArr_Impl ScAreaLinkObj::aRefreshListeners
private

Definition at line 167 of file linkuno.hxx.

Referenced by addRefreshListener(), Refreshed_Impl(), and removeRefreshListener().

◆ nPos

size_t ScAreaLinkObj::nPos
private

◆ pDocShell

ScDocShell* ScAreaLinkObj::pDocShell
private

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