LibreOffice Module sfx2 (master) 1
|
#include <lnkbase.hxx>
Public Types | |
enum | UpdateResult { SUCCESS = 0 , ERROR_GENERAL = 1 } |
Public Member Functions | |
virtual void | Closed () |
SvBaseLinkObjectType | GetObjType () const |
void | SetObj (SvLinkSource *pObj) |
SvLinkSource * | GetObj () 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) |
LinkManager * | GetLinkManager () |
const LinkManager * | GetLinkManager () 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 |
FileDialogHelper & | GetInsertFileDialog (const OUString &rFactory) |
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 | |
void | SetObjType (SvBaseLinkObjectType) |
void | SetName (const OUString &rLn) |
SvBaseLink () | |
SvBaseLink (SfxLinkUpdateMode nLinkType, SotClipboardFormatId nContentType) | |
virtual | ~SvBaseLink () override |
void | GetRealObject_ (bool bConnect=true) |
SvLinkSource * | GetRealObject () |
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 |
LinkManager * | m_pLinkMgr |
weld::Window * | m_pParentWin |
std::unique_ptr< FileDialogHelper > | m_pFileDlg |
SvLinkSourceRef | xObj |
OUString | aLinkName |
std::unique_ptr< ImplBaseLinkData > | pImplData |
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 |
Definition at line 72 of file lnkbase.hxx.
Enumerator | |
---|---|
SUCCESS | |
ERROR_GENERAL |
Definition at line 135 of file lnkbase.hxx.
|
protected |
Definition at line 110 of file lnkbase2.cxx.
References bSynchron, bVisible, bWasLastEditOK, sfx2::ClientSo, mnObjType, and pImplData.
|
protected |
Definition at line 123 of file lnkbase2.cxx.
References bSynchron, bVisible, bWasLastEditOK, sfx2::ClientSo, mnObjType, and pImplData.
|
overrideprotectedvirtual |
Definition at line 213 of file lnkbase2.cxx.
References sfx2::DdeExternal, Disconnect(), mnObjType, and pImplData.
void sfx2::SvBaseLink::clearStreamToLoadFrom | ( | ) |
Definition at line 293 of file lnkbase2.cxx.
References tools::SvRef< typename T >::is(), m_xInputStreamToLoadFrom, and xObj.
|
virtual |
Definition at line 518 of file lnkbase2.cxx.
References tools::SvRef< typename T >::is(), and xObj.
|
virtual |
Definition at line 428 of file lnkbase2.cxx.
References sfx2::DdeExternal, mnObjType, pImplData, and SUCCESS.
Referenced by Update().
|
private |
void sfx2::SvBaseLink::Disconnect | ( | ) |
Definition at line 418 of file lnkbase2.cxx.
References tools::SvRef< typename T >::clear(), tools::SvRef< typename T >::is(), and xObj.
Referenced by ExecuteEdit(), GetRealObject_(), SetLinkSourceName(), SetUpdateMode(), Update(), and ~SvBaseLink().
|
virtual |
Definition at line 438 of file lnkbase2.cxx.
References bWasLastEditOK, sfx2::LinkManager::CreateObj(), ExecuteEdit(), GetRealObject_(), tools::SvRef< typename T >::is(), sfx2::isClientType(), LINK, m_aEndEditLink, m_bIsConnect, m_pLinkMgr, m_pParentWin, mnObjType, pImplData, and xObj.
|
private |
Definition at line 475 of file lnkbase2.cxx.
References sfx2::ClientDde, Application::CreateMessageDialog(), Disconnect(), sfx2::LinkManager::GetDisplayNames(), m_bIsConnect, m_pParentWin, mnObjType, SetLinkSourceName(), SfxResId(), and Update().
Referenced by Edit().
SotClipboardFormatId sfx2::SvBaseLink::GetContentType | ( | ) | const |
Definition at line 386 of file lnkbase2.cxx.
References sfx2::isClientType(), mnObjType, and pImplData.
Referenced by sfx2::SvDDEObject::Connect(), and sfx2::LinkManager::LinkServerShell().
FileDialogHelper & sfx2::SvBaseLink::GetInsertFileDialog | ( | const OUString & | rFactory | ) |
Definition at line 524 of file lnkbase2.cxx.
References Insert, m_pFileDlg, and m_pParentWin.
LinkManager * sfx2::SvBaseLink::GetLinkManager | ( | ) |
Definition at line 403 of file lnkbase2.cxx.
References m_pLinkMgr.
Referenced by sfx2::SvDDEObject::Connect().
const LinkManager * sfx2::SvBaseLink::GetLinkManager | ( | ) | const |
Definition at line 408 of file lnkbase2.cxx.
References m_pLinkMgr.
|
inline |
Definition at line 133 of file lnkbase.hxx.
|
inline |
Definition at line 130 of file lnkbase.hxx.
References tools::SvRef< typename T >::get().
Referenced by sfx2::LinkManager::CancelTransfers().
|
inline |
Definition at line 127 of file lnkbase.hxx.
Referenced by sfx2::LinkManager::CancelTransfers(), and sfx2::LinkManager::InsertFileLink().
|
inlineprotected |
Definition at line 111 of file lnkbase.hxx.
References tools::SvRef< typename T >::get(), and tools::SvRef< typename T >::is().
|
protected |
Definition at line 353 of file lnkbase2.cxx.
References sfx2::ClientDde, sfx2::LinkManager::CreateObj(), DBG_ASSERT, Disconnect(), Application::GetAppName(), sfx2::LinkManager::GetDisplayNames(), sfx2::Internal, tools::SvRef< typename T >::is(), sfx2::isClientType(), m_pLinkMgr, mnObjType, pImplData, and xObj.
Referenced by Edit(), SetLinkSourceName(), SetUpdateMode(), and Update().
SfxLinkUpdateMode sfx2::SvBaseLink::GetUpdateMode | ( | ) | const |
Definition at line 345 of file lnkbase2.cxx.
References sfx2::isClientType(), mnObjType, ONCALL, and pImplData.
Referenced by sfx2::SvDDEObject::Connect(), sfx2::LinkManager::LinkServerShell(), and Update().
|
inline |
Definition at line 161 of file lnkbase.hxx.
|
inline |
Definition at line 158 of file lnkbase.hxx.
References bVisible.
void sfx2::SvBaseLink::SetContentType | ( | SotClipboardFormatId | nType | ) |
Definition at line 395 of file lnkbase2.cxx.
References sfx2::isClientType(), mnObjType, nType, and pImplData.
void sfx2::SvBaseLink::SetLinkManager | ( | LinkManager * | _pMgr | ) |
Definition at line 413 of file lnkbase2.cxx.
References m_pLinkMgr.
void sfx2::SvBaseLink::SetLinkSourceName | ( | const OUString & | rName | ) |
Definition at line 261 of file lnkbase2.cxx.
References SvRefBase::AddNextRef(), aLinkName, Disconnect(), GetRealObject_(), and SvRefBase::ReleaseRef().
Referenced by ExecuteEdit().
|
protected |
Definition at line 245 of file lnkbase2.cxx.
References aLinkName.
void sfx2::SvBaseLink::SetObj | ( | SvLinkSource * | pObj | ) |
Definition at line 251 of file lnkbase2.cxx.
References sfx2::ClientGraphic, DBG_ASSERT, sfx2::isClientType(), mnObjType, pImplData, and xObj.
Referenced by sfx2::LinkManager::LinkServerShell().
|
protected |
Definition at line 236 of file lnkbase2.cxx.
References sfx2::ClientDde, DBG_ASSERT, tools::SvRef< typename T >::is(), mnObjType, and xObj.
|
inline |
Definition at line 164 of file lnkbase.hxx.
|
inline |
Definition at line 162 of file lnkbase.hxx.
void sfx2::SvBaseLink::SetUpdateMode | ( | SfxLinkUpdateMode | nMode | ) |
Definition at line 278 of file lnkbase2.cxx.
References SvRefBase::AddNextRef(), Disconnect(), GetRealObject_(), sfx2::isClientType(), mnObjType, pImplData, and SvRefBase::ReleaseRef().
|
inline |
Definition at line 159 of file lnkbase.hxx.
References bVisible.
bool sfx2::SvBaseLink::Update | ( | ) |
Definition at line 302 of file lnkbase2.cxx.
References aData, SvRefBase::AddNextRef(), Any, sfx2::ClientDde, DataChanged(), Disconnect(), SotExchange::GetFormatMimeType(), GetRealObject_(), GetUpdateMode(), tools::SvRef< typename T >::is(), sfx2::isClientType(), m_bIsReadOnly, m_xInputStreamToLoadFrom, mnObjType, ONCALL, pImplData, SvRefBase::ReleaseRef(), SUCCESS, and xObj.
Referenced by ExecuteEdit().
|
inline |
Definition at line 172 of file lnkbase.hxx.
|
friend |
Definition at line 75 of file lnkbase.hxx.
|
friend |
Definition at line 76 of file lnkbase.hxx.
|
private |
Definition at line 84 of file lnkbase.hxx.
Referenced by SetLinkSourceName(), and SetName().
|
private |
Definition at line 88 of file lnkbase.hxx.
Referenced by SvBaseLink().
|
private |
Definition at line 87 of file lnkbase.hxx.
Referenced by SvBaseLink().
|
private |
Definition at line 89 of file lnkbase.hxx.
Referenced by Edit(), and SvBaseLink().
|
private |
Definition at line 78 of file lnkbase.hxx.
Referenced by Edit().
|
private |
Definition at line 90 of file lnkbase.hxx.
Referenced by Edit(), and ExecuteEdit().
|
private |
Definition at line 91 of file lnkbase.hxx.
Referenced by Update().
|
private |
Definition at line 82 of file lnkbase.hxx.
Referenced by GetInsertFileDialog().
|
private |
Definition at line 79 of file lnkbase.hxx.
Referenced by Edit(), GetLinkManager(), GetRealObject_(), and SetLinkManager().
|
private |
Definition at line 80 of file lnkbase.hxx.
Referenced by Edit(), ExecuteEdit(), and GetInsertFileDialog().
|
private |
Definition at line 93 of file lnkbase.hxx.
Referenced by clearStreamToLoadFrom(), and Update().
|
private |
Definition at line 86 of file lnkbase.hxx.
Referenced by DataChanged(), Edit(), ExecuteEdit(), GetContentType(), GetRealObject_(), GetUpdateMode(), SetContentType(), SetObj(), SetObjType(), SetUpdateMode(), SvBaseLink(), Update(), and ~SvBaseLink().
|
private |
Definition at line 85 of file lnkbase.hxx.
Referenced by DataChanged(), Edit(), GetContentType(), GetRealObject_(), GetUpdateMode(), SetContentType(), SetObj(), SetUpdateMode(), SvBaseLink(), Update(), and ~SvBaseLink().
|
private |
Definition at line 83 of file lnkbase.hxx.
Referenced by clearStreamToLoadFrom(), Closed(), Disconnect(), Edit(), GetRealObject_(), SetObj(), SetObjType(), and Update().