LibreOffice Module sc (master) 1
|
#include <linkuno.hxx>
Public Member Functions | |
ScSheetLinkObj (ScDocShell *pDocSh, OUString aName) | |
virtual | ~ScSheetLinkObj () override |
virtual void | Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override |
virtual OUString SAL_CALL | getName () override |
virtual void SAL_CALL | setName (const OUString &aName) 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 | 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 |
SfxBroadcaster * | GetBroadcasterJOE (sal_uInt16 nNo) const |
virtual void | Notify (SfxBroadcaster &rBC, const SfxHint &rHint) |
void | RemoveBroadcaster_Impl (SfxBroadcaster &rBC) |
virtual bool | IsSdrView () const |
Private Member Functions | |
ScTableLink * | GetLink_Impl () const |
void | Refreshed_Impl () |
void | ModifyRefreshDelay_Impl (sal_Int32 nRefresh) |
Private Attributes | |
SfxItemPropertySet | aPropSet |
ScDocShell * | pDocShell |
OUString | aFileName |
XRefreshListenerArr_Impl | aRefreshListeners |
Definition at line 50 of file linkuno.hxx.
ScSheetLinkObj::ScSheetLinkObj | ( | ScDocShell * | pDocSh, |
OUString | aName | ||
) |
Definition at line 76 of file linkuno.cxx.
|
overridevirtual |
Definition at line 84 of file linkuno.cxx.
References ScDocShell::GetDocument(), pDocShell, and ScDocument::RemoveUnoObject().
|
overridevirtual |
|
overridevirtual |
Definition at line 152 of file linkuno.cxx.
References aRefreshListeners.
|
overridevirtual |
OUString ScSheetLinkObj::getFileName | ( | ) | const |
Definition at line 261 of file linkuno.cxx.
Referenced by getName(), and getPropertyValue().
OUString ScSheetLinkObj::getFilter | ( | ) | const |
Definition at line 303 of file linkuno.cxx.
References GetLink_Impl(), and pLink.
Referenced by getPropertyValue().
OUString ScSheetLinkObj::getFilterOptions | ( | ) | const |
Definition at line 323 of file linkuno.cxx.
References GetLink_Impl(), and pLink.
Referenced by getPropertyValue().
|
overridevirtual |
|
private |
Definition at line 109 of file linkuno.cxx.
References aFileName, ScDocShell::GetDocument(), ScDocument::GetLinkManager(), sfx2::LinkManager::GetLinks(), i, nCount, and pDocShell.
Referenced by getFilter(), getFilterOptions(), getRefreshDelay(), ModifyRefreshDelay_Impl(), refresh(), setFileName(), setFilter(), and setFilterOptions().
|
overridevirtual |
Definition at line 130 of file linkuno.cxx.
References getFileName().
|
overridevirtual |
Definition at line 198 of file linkuno.cxx.
References aPropSet, and SfxItemPropertySet::getPropertyMap().
|
overridevirtual |
Definition at line 240 of file linkuno.cxx.
References getFileName(), getFilter(), getFilterOptions(), getRefreshDelay(), SC_UNONAME_FILTER, SC_UNONAME_FILTOPT, SC_UNONAME_LINKURL, SC_UNONAME_REFDELAY, and SC_UNONAME_REFPERIOD.
sal_Int32 ScSheetLinkObj::getRefreshDelay | ( | ) | const |
Definition at line 344 of file linkuno.cxx.
References GetLink_Impl(), and pLink.
Referenced by getPropertyValue().
|
overridevirtual |
|
private |
Definition at line 189 of file linkuno.cxx.
References GetLink_Impl(), and pLink.
Referenced by setRefreshDelay().
|
overridevirtual |
notify if links in document are changed
Reimplemented from SfxListener.
Definition at line 92 of file linkuno.cxx.
References aFileName, SfxHint::GetId(), pDocShell, Refreshed_Impl(), and SHEET.
|
overridevirtual |
Definition at line 144 of file linkuno.cxx.
References GetLink_Impl(), and pLink.
|
private |
Definition at line 181 of file linkuno.cxx.
References aEvent, and aRefreshListeners.
Referenced by Notify().
|
overridevirtual |
|
overridevirtual |
Definition at line 163 of file linkuno.cxx.
References aRefreshListeners, n, and nCount.
|
overridevirtual |
void ScSheetLinkObj::setFileName | ( | const OUString & | FileName | ) |
Undo !!!
Definition at line 267 of file linkuno.cxx.
References aFileName, ScGlobal::GetAbsDocName(), ScDocShell::GetDocument(), GetLink_Impl(), ScDocument::GetLinkDoc(), ScDocument::GetLinkFlt(), ScDocument::GetLinkMode(), ScDocument::GetLinkOpt(), ScDocument::GetLinkRefreshDelay(), ScDocument::GetLinkTab(), ScDocument::GetTableCount(), ScDocument::IsLinked(), pDocShell, pLink, ScDocument::SetLink(), and ScDocShell::UpdateLinks().
Referenced by setName(), and setPropertyValue().
void ScSheetLinkObj::setFilter | ( | const OUString & | Filter | ) |
Definition at line 313 of file linkuno.cxx.
References aFileName, GetLink_Impl(), and pLink.
Referenced by setPropertyValue().
void ScSheetLinkObj::setFilterOptions | ( | const OUString & | FilterOptions | ) |
Definition at line 333 of file linkuno.cxx.
References aFileName, FilterOptions, GetLink_Impl(), and pLink.
Referenced by setPropertyValue().
|
overridevirtual |
Definition at line 136 of file linkuno.cxx.
References aName, and setFileName().
|
overridevirtual |
Definition at line 206 of file linkuno.cxx.
References SC_UNONAME_FILTER, SC_UNONAME_FILTOPT, SC_UNONAME_LINKURL, SC_UNONAME_REFDELAY, SC_UNONAME_REFPERIOD, setFileName(), setFilter(), setFilterOptions(), and setRefreshDelay().
void ScSheetLinkObj::setRefreshDelay | ( | sal_Int32 | nRefreshDelay | ) |
Definition at line 354 of file linkuno.cxx.
References ModifyRefreshDelay_Impl().
Referenced by setPropertyValue().
|
overridevirtual |
|
private |
Definition at line 60 of file linkuno.hxx.
Referenced by GetLink_Impl(), Notify(), setFileName(), setFilter(), and setFilterOptions().
|
private |
Definition at line 58 of file linkuno.hxx.
Referenced by getPropertySetInfo().
|
private |
Definition at line 61 of file linkuno.hxx.
Referenced by addRefreshListener(), Refreshed_Impl(), and removeRefreshListener().
|
private |
Definition at line 59 of file linkuno.hxx.
Referenced by GetLink_Impl(), Notify(), setFileName(), and ~ScSheetLinkObj().