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

#include <lnkbase.hxx>

Inheritance diagram for sfx2::SvBaseLink:
[legend]
Collaboration diagram for sfx2::SvBaseLink:
[legend]

Public Types

enum  UpdateResult {
  SUCCESS = 0 ,
  ERROR_GENERAL = 1
}
 

Public Member Functions

virtual void Closed ()
 
SvBaseLinkObjectType GetObjType () const
 
void SetObj (SvLinkSource *pObj)
 
SvLinkSourceGetObj () const
 
void SetLinkSourceName (const OUString &rName)
 
const OUString & GetLinkSourceName () const
 
virtual UpdateResult DataChanged (const OUString &rMimeType, const css::uno::Any &rValue)
 
void SetUpdateMode (SfxLinkUpdateMode)
 
SfxLinkUpdateMode GetUpdateMode () const
 
SotClipboardFormatId GetContentType () const
 
void SetContentType (SotClipboardFormatId nType)
 
LinkManagerGetLinkManager ()
 
const LinkManagerGetLinkManager () const
 
void SetLinkManager (LinkManager *_pMgr)
 
bool Update ()
 
void Disconnect ()
 
virtual void Edit (weld::Window *, const Link< SvBaseLink &, void > &rEndEditHdl)
 
bool IsVisible () const
 
void SetVisible (bool bFlag)
 
bool IsSynchron () const
 
void SetSynchron (bool bFlag)
 
void setStreamToLoadFrom (const css::uno::Reference< css::io::XInputStream > &xInputStream, bool bIsReadOnly)
 
void clearStreamToLoadFrom ()
 
bool WasLastEditOK () const
 
FileDialogHelperGetInsertFileDialog (const OUString &rFactory)
 
- 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

void SetObjType (SvBaseLinkObjectType)
 
void SetName (const OUString &rLn)
 
 SvBaseLink ()
 
 SvBaseLink (SfxLinkUpdateMode nLinkType, SotClipboardFormatId nContentType)
 
virtual ~SvBaseLink () override
 
void GetRealObject_ (bool bConnect=true)
 
SvLinkSourceGetRealObject ()
 
- Protected Member Functions inherited from SvRefBase
virtual ~SvRefBase () COVERITY_NOEXCEPT_FALSE
 

Private Member Functions

 DECL_DLLPRIVATE_LINK (EndEditHdl, const OUString &, void)
 
bool ExecuteEdit (const OUString &_rNewName)
 

Private Attributes

Link< SvBaseLink &, void > m_aEndEditLink
 
LinkManagerm_pLinkMgr
 
weld::Windowm_pParentWin
 
std::unique_ptr< FileDialogHelperm_pFileDlg
 
SvLinkSourceRef xObj
 
OUString aLinkName
 
std::unique_ptr< ImplBaseLinkDatapImplData
 
SvBaseLinkObjectType mnObjType
 
bool bVisible: 1
 
bool bSynchron: 1
 
bool bWasLastEditOK: 1
 
bool m_bIsConnect: 1
 
bool m_bIsReadOnly
 
css::uno::Reference< css::io::XInputStream > m_xInputStreamToLoadFrom
 

Friends

class LinkManager
 
class SvLinkSource
 

Detailed Description

Definition at line 72 of file lnkbase.hxx.

Member Enumeration Documentation

◆ UpdateResult

Enumerator
SUCCESS 
ERROR_GENERAL 

Definition at line 135 of file lnkbase.hxx.

Constructor & Destructor Documentation

◆ SvBaseLink() [1/2]

sfx2::SvBaseLink::SvBaseLink ( )
protected

Definition at line 110 of file lnkbase2.cxx.

References bSynchron, bVisible, bWasLastEditOK, sfx2::ClientSo, mnObjType, and pImplData.

◆ SvBaseLink() [2/2]

sfx2::SvBaseLink::SvBaseLink ( SfxLinkUpdateMode  nLinkType,
SotClipboardFormatId  nContentType 
)
protected

Definition at line 123 of file lnkbase2.cxx.

References bSynchron, bVisible, bWasLastEditOK, sfx2::ClientSo, mnObjType, and pImplData.

◆ ~SvBaseLink()

sfx2::SvBaseLink::~SvBaseLink ( )
overrideprotectedvirtual

Definition at line 213 of file lnkbase2.cxx.

References sfx2::DdeExternal, Disconnect(), mnObjType, and pImplData.

Member Function Documentation

◆ clearStreamToLoadFrom()

void sfx2::SvBaseLink::clearStreamToLoadFrom ( )

Definition at line 293 of file lnkbase2.cxx.

References tools::SvRef< typename T >::is(), m_xInputStreamToLoadFrom, and xObj.

◆ Closed()

void sfx2::SvBaseLink::Closed ( )
virtual

Definition at line 518 of file lnkbase2.cxx.

References tools::SvRef< typename T >::is(), and xObj.

◆ DataChanged()

SvBaseLink::UpdateResult sfx2::SvBaseLink::DataChanged ( const OUString &  rMimeType,
const css::uno::Any &  rValue 
)
virtual

Definition at line 428 of file lnkbase2.cxx.

References sfx2::DdeExternal, mnObjType, pImplData, and SUCCESS.

Referenced by Update().

◆ DECL_DLLPRIVATE_LINK()

sfx2::SvBaseLink::DECL_DLLPRIVATE_LINK ( EndEditHdl  ,
const OUString &  ,
void   
)
private

◆ Disconnect()

void sfx2::SvBaseLink::Disconnect ( )

◆ Edit()

void sfx2::SvBaseLink::Edit ( weld::Window pParent,
const Link< SvBaseLink &, void > &  rEndEditHdl 
)
virtual

◆ ExecuteEdit()

bool sfx2::SvBaseLink::ExecuteEdit ( const OUString &  _rNewName)
private

◆ GetContentType()

SotClipboardFormatId sfx2::SvBaseLink::GetContentType ( ) const

◆ GetInsertFileDialog()

FileDialogHelper & sfx2::SvBaseLink::GetInsertFileDialog ( const OUString &  rFactory)

Definition at line 524 of file lnkbase2.cxx.

References Insert, m_pFileDlg, and m_pParentWin.

◆ GetLinkManager() [1/2]

LinkManager * sfx2::SvBaseLink::GetLinkManager ( )

Definition at line 403 of file lnkbase2.cxx.

References m_pLinkMgr.

Referenced by sfx2::SvDDEObject::Connect().

◆ GetLinkManager() [2/2]

const LinkManager * sfx2::SvBaseLink::GetLinkManager ( ) const

Definition at line 408 of file lnkbase2.cxx.

References m_pLinkMgr.

◆ GetLinkSourceName()

const OUString & sfx2::SvBaseLink::GetLinkSourceName ( ) const
inline

Definition at line 133 of file lnkbase.hxx.

◆ GetObj()

SvLinkSource * sfx2::SvBaseLink::GetObj ( ) const
inline

Definition at line 130 of file lnkbase.hxx.

References tools::SvRef< typename T >::get().

Referenced by sfx2::LinkManager::CancelTransfers().

◆ GetObjType()

SvBaseLinkObjectType sfx2::SvBaseLink::GetObjType ( ) const
inline

◆ GetRealObject()

SvLinkSource * sfx2::SvBaseLink::GetRealObject ( )
inlineprotected

◆ GetRealObject_()

void sfx2::SvBaseLink::GetRealObject_ ( bool  bConnect = true)
protected

◆ GetUpdateMode()

SfxLinkUpdateMode sfx2::SvBaseLink::GetUpdateMode ( ) const

◆ IsSynchron()

bool sfx2::SvBaseLink::IsSynchron ( ) const
inline

Definition at line 161 of file lnkbase.hxx.

◆ IsVisible()

bool sfx2::SvBaseLink::IsVisible ( ) const
inline

Definition at line 158 of file lnkbase.hxx.

References bVisible.

◆ SetContentType()

void sfx2::SvBaseLink::SetContentType ( SotClipboardFormatId  nType)

Definition at line 395 of file lnkbase2.cxx.

References sfx2::isClientType(), mnObjType, nType, and pImplData.

◆ SetLinkManager()

void sfx2::SvBaseLink::SetLinkManager ( LinkManager _pMgr)

Definition at line 413 of file lnkbase2.cxx.

References m_pLinkMgr.

◆ SetLinkSourceName()

void sfx2::SvBaseLink::SetLinkSourceName ( const OUString &  rName)

◆ SetName()

void sfx2::SvBaseLink::SetName ( const OUString &  rLn)
protected

Definition at line 245 of file lnkbase2.cxx.

References aLinkName.

◆ SetObj()

void sfx2::SvBaseLink::SetObj ( SvLinkSource pObj)

◆ SetObjType()

void sfx2::SvBaseLink::SetObjType ( SvBaseLinkObjectType  mnObjTypeP)
protected

◆ setStreamToLoadFrom()

void sfx2::SvBaseLink::setStreamToLoadFrom ( const css::uno::Reference< css::io::XInputStream > &  xInputStream,
bool  bIsReadOnly 
)
inline

Definition at line 164 of file lnkbase.hxx.

◆ SetSynchron()

void sfx2::SvBaseLink::SetSynchron ( bool  bFlag)
inline

Definition at line 162 of file lnkbase.hxx.

◆ SetUpdateMode()

void sfx2::SvBaseLink::SetUpdateMode ( SfxLinkUpdateMode  nMode)

◆ SetVisible()

void sfx2::SvBaseLink::SetVisible ( bool  bFlag)
inline

Definition at line 159 of file lnkbase.hxx.

References bVisible.

◆ Update()

bool sfx2::SvBaseLink::Update ( )

◆ WasLastEditOK()

bool sfx2::SvBaseLink::WasLastEditOK ( ) const
inline

Definition at line 172 of file lnkbase.hxx.

Friends And Related Function Documentation

◆ LinkManager

friend class LinkManager
friend

Definition at line 75 of file lnkbase.hxx.

◆ SvLinkSource

friend class SvLinkSource
friend

Definition at line 76 of file lnkbase.hxx.

Member Data Documentation

◆ aLinkName

OUString sfx2::SvBaseLink::aLinkName
private

Definition at line 84 of file lnkbase.hxx.

Referenced by SetLinkSourceName(), and SetName().

◆ bSynchron

bool sfx2::SvBaseLink::bSynchron
private

Definition at line 88 of file lnkbase.hxx.

Referenced by SvBaseLink().

◆ bVisible

bool sfx2::SvBaseLink::bVisible
private

Definition at line 87 of file lnkbase.hxx.

Referenced by SvBaseLink().

◆ bWasLastEditOK

bool sfx2::SvBaseLink::bWasLastEditOK
private

Definition at line 89 of file lnkbase.hxx.

Referenced by Edit(), and SvBaseLink().

◆ m_aEndEditLink

Link<SvBaseLink&,void> sfx2::SvBaseLink::m_aEndEditLink
private

Definition at line 78 of file lnkbase.hxx.

Referenced by Edit().

◆ m_bIsConnect

bool sfx2::SvBaseLink::m_bIsConnect
private

Definition at line 90 of file lnkbase.hxx.

Referenced by Edit(), and ExecuteEdit().

◆ m_bIsReadOnly

bool sfx2::SvBaseLink::m_bIsReadOnly
private

Definition at line 91 of file lnkbase.hxx.

Referenced by Update().

◆ m_pFileDlg

std::unique_ptr<FileDialogHelper> sfx2::SvBaseLink::m_pFileDlg
private

Definition at line 82 of file lnkbase.hxx.

Referenced by GetInsertFileDialog().

◆ m_pLinkMgr

LinkManager* sfx2::SvBaseLink::m_pLinkMgr
private

Definition at line 79 of file lnkbase.hxx.

Referenced by Edit(), GetLinkManager(), GetRealObject_(), and SetLinkManager().

◆ m_pParentWin

weld::Window* sfx2::SvBaseLink::m_pParentWin
private

Definition at line 80 of file lnkbase.hxx.

Referenced by Edit(), ExecuteEdit(), and GetInsertFileDialog().

◆ m_xInputStreamToLoadFrom

css::uno::Reference<css::io::XInputStream> sfx2::SvBaseLink::m_xInputStreamToLoadFrom
private

Definition at line 93 of file lnkbase.hxx.

Referenced by clearStreamToLoadFrom(), and Update().

◆ mnObjType

SvBaseLinkObjectType sfx2::SvBaseLink::mnObjType
private

◆ pImplData

std::unique_ptr<ImplBaseLinkData> sfx2::SvBaseLink::pImplData
private

◆ xObj

SvLinkSourceRef sfx2::SvBaseLink::xObj
private

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