LibreOffice Module sfx2 (master) 1
|
#include <fileobj.hxx>
Public Member Functions | |
SvFileObject () | |
virtual bool | GetData (css::uno::Any &rData, const OUString &rMimeType, bool bSynchron=false) override |
virtual bool | Connect (sfx2::SvBaseLink *) override |
virtual void | Edit (weld::Window *, sfx2::SvBaseLink *, const Link< const OUString &, void > &rEndEditHdl) override |
virtual bool | IsPending () const override |
virtual bool | IsDataComplete () const override |
void | CancelTransfers () |
Public Member Functions inherited from sfx2::SvLinkSource | |
SvLinkSource () | |
virtual | ~SvLinkSource () override |
bool | HasDataLinks () const |
void | Closed () |
sal_uInt64 | GetUpdateTimeout () const |
void | SetUpdateTimeout (sal_uInt64 nTimeMs) |
void | DataChanged (const OUString &rMimeType, const css::uno::Any &rVal) |
void | SendDataChanged () |
void | NotifyDataChanged () |
virtual bool | Connect (SvBaseLink *) |
virtual bool | GetData (css::uno::Any &rData, const OUString &rMimeType, bool bSynchron=false) |
virtual bool | IsPending () const |
virtual bool | IsDataComplete () const |
virtual void | Edit (weld::Window *, SvBaseLink *, const Link< const OUString &, void > &rEndEditHdl) |
void | AddDataAdvise (SvBaseLink *, const OUString &rMimeType, sal_uInt16 nAdviceMode) |
void | RemoveAllDataAdvise (SvBaseLink const *) |
void | AddConnectAdvise (SvBaseLink *) |
void | RemoveConnectAdvise (SvBaseLink const *) |
StreamToLoadFrom | getStreamToLoadFrom () |
void | setStreamToLoadFrom (const css::uno::Reference< css::io::XInputStream > &xInputStream, bool bIsReadOnly) |
void | clearStreamToLoadFrom () |
Public Member Functions inherited from SvRefBase | |
SvRefBase () | |
SvRefBase (const SvRefBase &) | |
SvRefBase & | operator= (const SvRefBase &) |
void | RestoreNoDelete () |
void | AddNextRef () |
void | AddFirstRef () |
void | ReleaseRef () |
unsigned int | GetRefCount () const |
Protected Member Functions | |
virtual | ~SvFileObject () override |
Protected Member Functions inherited from SvRefBase | |
virtual | ~SvRefBase () COVERITY_NOEXCEPT_FALSE |
Private Member Functions | |
bool | LoadFile_Impl () |
void | SendStateChg_Impl (sfx2::LinkManager::LinkState nState) |
DECL_LINK (DelMedium_Impl, void *, void) | |
DECL_LINK (LoadGrfReady_Impl, void *, void) | |
DECL_LINK (DialogClosedHdl, sfx2::FileDialogHelper *, void) | |
Private Attributes | |
OUString | sFileNm |
OUString | sFilter |
OUString | sReferer |
Link< const OUString &, void > | aEndEditLink |
tools::SvRef< SfxMedium > | xMed |
ImplSVEvent * | nPostUserEventId |
tools::SvRef< SfxMedium > | mxDelMed |
SvFileObjectType | nType |
bool | bLoadAgain: 1 |
bool | bSynchron: 1 |
bool | bLoadError: 1 |
bool | bWaitForData: 1 |
bool | bDataReady: 1 |
bool | bClearMedium: 1 |
bool | bStateChangeCalled: 1 |
Definition at line 32 of file fileobj.hxx.
|
overrideprotectedvirtual |
Definition at line 61 of file fileobj.cxx.
References tools::SvRef< typename T >::clear(), tools::SvRef< typename T >::is(), nPostUserEventId, Application::RemoveUserEvent(), and xMed.
SvFileObject::SvFileObject | ( | ) |
Definition at line 48 of file fileobj.cxx.
void SvFileObject::CancelTransfers | ( | ) |
Definition at line 411 of file fileobj.cxx.
References bDataReady, bLoadAgain, bLoadError, bWaitForData, SendStateChg_Impl(), and sfx2::LinkManager::STATE_LOAD_ABORT.
|
overridevirtual |
Reimplemented from sfx2::SvLinkSource.
Definition at line 105 of file fileobj.cxx.
References sfx2::SvLinkSource::AddDataAdvise(), bSynchron, sfx2::ClientFile, sfx2::ClientGraphic, sfx2::ClientOle, sfx2::LinkManager::GetDisplayNames(), SotExchange::GetFormatMimeType(), Graphic, tools::SvRef< typename T >::is(), nType, Object, pLink, sfx2::SvLinkSource::SetUpdateTimeout(), sFileNm, sFilter, sReferer, and Text.
|
private |
|
private |
|
private |
|
overridevirtual |
Reimplemented from sfx2::SvLinkSource.
Definition at line 254 of file fileobj.cxx.
References aEndEditLink, Link< typename Arg, typename Ret >::Call(), sfx2::ClientFile, sfx2::ClientGraphic, sfx2::ClientOle, sfx2::cTokenSeparator, SvxOpenGraphicDialog::EnableLink(), SvxOpenGraphicDialog::Execute(), SvxOpenGraphicDialog::GetDetectedFilter(), sfx2::LinkManager::GetDisplayNames(), SfxObjectShell::GetFactory(), SfxObjectFactory::GetFactoryName(), SvxOpenGraphicDialog::GetPath(), Graphic, LINK, sfx2::FileDialogHelper::LinkClientFile, sfx2::FileDialogHelper::LinkClientOLE, nType, Object, pLink, sfx2::FileDialogHelper::SetContext(), SvxOpenGraphicDialog::SetCurrentFilter(), SvxOpenGraphicDialog::SetPath(), SfxResId(), sfx2::FileDialogHelper::StartExecuteModal(), and Text.
|
overridevirtual |
Reimplemented from sfx2::SvLinkSource.
Definition at line 72 of file fileobj.cxx.
References Graphic, nType, Object, SotExchange::RegisterFormatMimeType(), sFileNm, and Text.
|
overridevirtual |
Reimplemented from sfx2::SvLinkSource.
Definition at line 388 of file fileobj.cxx.
References bDataReady, bLoadError, bSynchron, bWaitForData, INetURLObject::GetProtocol(), Graphic, INetURLObject::HasError(), tools::SvRef< typename T >::is(), LoadFile_Impl(), nType, sFileNm, and xMed.
|
overridevirtual |
Reimplemented from sfx2::SvLinkSource.
Definition at line 383 of file fileobj.cxx.
References bLoadError, bWaitForData, Graphic, and nType.
|
private |
Definition at line 153 of file fileobj.cxx.
References bClearMedium, bDataReady, bLoadAgain, bSynchron, bWaitForData, sfx2::SvLinkSource::getStreamToLoadFrom(), tools::SvRef< typename T >::is(), LINK, SendStateChg_Impl(), sFileNm, sReferer, sfx2::LinkManager::STATE_LOAD_ERROR, sfx2::LinkManager::STATE_LOAD_OK, and xMed.
Referenced by IsDataComplete().
|
private |
Definition at line 424 of file fileobj.cxx.
References bStateChangeCalled, sfx2::SvLinkSource::DataChanged(), SotExchange::GetFormatName(), sfx2::SvLinkSource::HasDataLinks(), nState, and sfx2::LinkManager::RegisterStatusInfoId().
Referenced by CancelTransfers(), and LoadFile_Impl().
|
private |
Definition at line 37 of file fileobj.hxx.
Referenced by Edit().
|
private |
Definition at line 49 of file fileobj.hxx.
Referenced by LoadFile_Impl().
|
private |
Definition at line 48 of file fileobj.hxx.
Referenced by CancelTransfers(), IsDataComplete(), and LoadFile_Impl().
|
private |
Definition at line 44 of file fileobj.hxx.
Referenced by CancelTransfers(), and LoadFile_Impl().
|
private |
Definition at line 46 of file fileobj.hxx.
Referenced by CancelTransfers(), IsDataComplete(), and IsPending().
|
private |
Definition at line 50 of file fileobj.hxx.
Referenced by SendStateChg_Impl().
|
private |
Definition at line 45 of file fileobj.hxx.
Referenced by Connect(), IsDataComplete(), and LoadFile_Impl().
|
private |
Definition at line 47 of file fileobj.hxx.
Referenced by CancelTransfers(), IsDataComplete(), IsPending(), and LoadFile_Impl().
|
private |
Definition at line 40 of file fileobj.hxx.
|
private |
Definition at line 39 of file fileobj.hxx.
Referenced by ~SvFileObject().
|
private |
Definition at line 42 of file fileobj.hxx.
Referenced by Connect(), Edit(), GetData(), IsDataComplete(), and IsPending().
|
private |
Definition at line 34 of file fileobj.hxx.
Referenced by Connect(), GetData(), IsDataComplete(), and LoadFile_Impl().
|
private |
Definition at line 35 of file fileobj.hxx.
Referenced by Connect().
|
private |
Definition at line 36 of file fileobj.hxx.
Referenced by Connect(), and LoadFile_Impl().
|
private |
Definition at line 38 of file fileobj.hxx.
Referenced by IsDataComplete(), LoadFile_Impl(), and ~SvFileObject().