LibreOffice Module sfx2 (master) 1
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
SvFileObject Class Reference

#include <fileobj.hxx>

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

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 &)
 
SvRefBaseoperator= (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< SfxMediumxMed
 
ImplSVEventnPostUserEventId
 
tools::SvRef< SfxMediummxDelMed
 
SvFileObjectType nType
 
bool bLoadAgain: 1
 
bool bSynchron: 1
 
bool bLoadError: 1
 
bool bWaitForData: 1
 
bool bDataReady: 1
 
bool bClearMedium: 1
 
bool bStateChangeCalled: 1
 

Detailed Description

Definition at line 32 of file fileobj.hxx.

Constructor & Destructor Documentation

◆ ~SvFileObject()

SvFileObject::~SvFileObject ( )
overrideprotectedvirtual

◆ SvFileObject()

SvFileObject::SvFileObject ( )

Definition at line 48 of file fileobj.cxx.

References nType, and Text.

Member Function Documentation

◆ CancelTransfers()

void SvFileObject::CancelTransfers ( )

◆ Connect()

bool SvFileObject::Connect ( sfx2::SvBaseLink pLink)
overridevirtual

◆ DECL_LINK() [1/3]

SvFileObject::DECL_LINK ( DelMedium_Impl  ,
void *  ,
void   
)
private

◆ DECL_LINK() [2/3]

SvFileObject::DECL_LINK ( DialogClosedHdl  ,
sfx2::FileDialogHelper ,
void   
)
private

◆ DECL_LINK() [3/3]

SvFileObject::DECL_LINK ( LoadGrfReady_Impl  ,
void *  ,
void   
)
private

◆ Edit()

void SvFileObject::Edit ( weld::Window pParent,
sfx2::SvBaseLink pLink,
const Link< const OUString &, void > &  rEndEditHdl 
)
overridevirtual

◆ GetData()

bool SvFileObject::GetData ( css::uno::Any &  rData,
const OUString &  rMimeType,
bool  bSynchron = false 
)
overridevirtual

Reimplemented from sfx2::SvLinkSource.

Definition at line 72 of file fileobj.cxx.

References Graphic, nType, Object, SotExchange::RegisterFormatMimeType(), sFileNm, and Text.

◆ IsDataComplete()

bool SvFileObject::IsDataComplete ( ) const
overridevirtual

◆ IsPending()

bool SvFileObject::IsPending ( ) const
overridevirtual

Reimplemented from sfx2::SvLinkSource.

Definition at line 383 of file fileobj.cxx.

References bLoadError, bWaitForData, Graphic, and nType.

◆ LoadFile_Impl()

bool SvFileObject::LoadFile_Impl ( )
private

◆ SendStateChg_Impl()

void SvFileObject::SendStateChg_Impl ( sfx2::LinkManager::LinkState  nState)
private

Member Data Documentation

◆ aEndEditLink

Link<const OUString&, void> SvFileObject::aEndEditLink
private

Definition at line 37 of file fileobj.hxx.

Referenced by Edit().

◆ bClearMedium

bool SvFileObject::bClearMedium
private

Definition at line 49 of file fileobj.hxx.

Referenced by LoadFile_Impl().

◆ bDataReady

bool SvFileObject::bDataReady
private

Definition at line 48 of file fileobj.hxx.

Referenced by CancelTransfers(), IsDataComplete(), and LoadFile_Impl().

◆ bLoadAgain

bool SvFileObject::bLoadAgain
private

Definition at line 44 of file fileobj.hxx.

Referenced by CancelTransfers(), and LoadFile_Impl().

◆ bLoadError

bool SvFileObject::bLoadError
private

Definition at line 46 of file fileobj.hxx.

Referenced by CancelTransfers(), IsDataComplete(), and IsPending().

◆ bStateChangeCalled

bool SvFileObject::bStateChangeCalled
private

Definition at line 50 of file fileobj.hxx.

Referenced by SendStateChg_Impl().

◆ bSynchron

bool SvFileObject::bSynchron
private

Definition at line 45 of file fileobj.hxx.

Referenced by Connect(), IsDataComplete(), and LoadFile_Impl().

◆ bWaitForData

bool SvFileObject::bWaitForData
private

Definition at line 47 of file fileobj.hxx.

Referenced by CancelTransfers(), IsDataComplete(), IsPending(), and LoadFile_Impl().

◆ mxDelMed

tools::SvRef<SfxMedium> SvFileObject::mxDelMed
private

Definition at line 40 of file fileobj.hxx.

◆ nPostUserEventId

ImplSVEvent* SvFileObject::nPostUserEventId
private

Definition at line 39 of file fileobj.hxx.

Referenced by ~SvFileObject().

◆ nType

SvFileObjectType SvFileObject::nType
private

Definition at line 42 of file fileobj.hxx.

Referenced by Connect(), Edit(), GetData(), IsDataComplete(), and IsPending().

◆ sFileNm

OUString SvFileObject::sFileNm
private

Definition at line 34 of file fileobj.hxx.

Referenced by Connect(), GetData(), IsDataComplete(), and LoadFile_Impl().

◆ sFilter

OUString SvFileObject::sFilter
private

Definition at line 35 of file fileobj.hxx.

Referenced by Connect().

◆ sReferer

OUString SvFileObject::sReferer
private

Definition at line 36 of file fileobj.hxx.

Referenced by Connect(), and LoadFile_Impl().

◆ xMed

tools::SvRef<SfxMedium> SvFileObject::xMed
private

Definition at line 38 of file fileobj.hxx.

Referenced by IsDataComplete(), LoadFile_Impl(), and ~SvFileObject().


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