LibreOffice Module sw (master) 1
|
#include <swbaslnk.hxx>
Public Member Functions | |
SwBaseLink (SfxLinkUpdateMode nMode, SotClipboardFormatId nFormat, SwContentNode *pNode=nullptr) | |
virtual | ~SwBaseLink () override |
virtual ::sfx2::SvBaseLink::UpdateResult | DataChanged (const OUString &rMimeType, const css::uno::Any &rValue) override |
virtual void | Closed () override |
virtual const SwNode * | GetAnchor () const |
bool | SwapIn (bool bWaitForData=false, bool bNativFormat=false) |
void | Connect () |
bool | IsRecursion (const SwBaseLink *pChkLnk) const |
virtual bool | IsInRange (SwNodeOffset nSttNd, SwNodeOffset nEndNd) const |
void | SetNoDataFlag () |
bool | ChkNoDataFlag () |
bool | IsNoDataFlag () const |
Public Member Functions inherited from sfx2::SvBaseLink | |
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) |
Private Attributes | |
SwContentNode * | m_pContentNode |
bool | m_bNoDataFlag: 1 |
Additional Inherited Members | |
Public Types inherited from sfx2::SvBaseLink | |
enum | UpdateResult |
Public Attributes inherited from sfx2::SvBaseLink | |
SUCCESS | |
ERROR_GENERAL | |
Protected Member Functions inherited from sfx2::SvBaseLink | |
void | SetObjType (SvBaseLinkObjectType) |
void | SetName (const OUString &rLn) |
SvBaseLink () | |
SvBaseLink (SfxLinkUpdateMode nLinkType, SotClipboardFormatId nContentType) | |
virtual | ~SvBaseLink () override |
void | GetRealObject_ (bool bConnect=true) |
SvLinkSource * | GetRealObject () |
Definition at line 29 of file swbaslnk.hxx.
|
inline |
Definition at line 36 of file swbaslnk.hxx.
|
overridevirtual |
Definition at line 322 of file swbaslnk.cxx.
|
inline |
|
overridevirtual |
Reimplemented from sfx2::SvBaseLink.
Definition at line 267 of file swbaslnk.cxx.
References SwNode::GetDoc(), SwNode::IsGrfNode(), SwDoc::IsInDtor(), and m_pContentNode.
|
inline |
Definition at line 52 of file swbaslnk.hxx.
|
overridevirtual |
Reimplemented from sfx2::SvBaseLink.
Definition at line 51 of file swbaslnk.cxx.
References SwDoc::CallEvent(), ChkNoDataFlag(), sfx2::SvBaseLink::ERROR_GENERAL, EVENT_OBJECT_IMAGE, SwNode::GetDoc(), SwNode::GetFlyFormat(), SotExchange::GetFormatIdFromMimeType(), GetFrameWeld(), sfx2::LinkManager::GetGraphicFromAny(), GetGraphicSizeTwip(), SwNode::GetGrfNode(), SwGrfNode::GetGrfObj(), SwDoc::getIDocumentLinksAdministration(), IDocumentLinksAdministration::GetLinkManager(), SwGrfNode::GetTwipSize(), Graphic::GetType(), GraphicObject::GetType(), uno::Any::hasValue(), Size::Height(), SwGrfNode::IsFrameInPaint(), SwNode::IsGrfNode(), SwDoc::IsInDtor(), SwNode::IsNoTextNode(), SwNode::IsOLENode(), m_pContentNode, sfx2::LinkManager::RegisterStatusInfoId(), SwCallMouseEvent::Set(), SwGrfNode::SetGraphic(), SetGrfFlySize(), SwGrfNode::SetTwipSize(), sfx2::LinkManager::STATE_LOAD_ABORT, sfx2::LinkManager::STATE_LOAD_ERROR, sfx2::LinkManager::STATE_LOAD_OK, sfx2::SvBaseLink::SUCCESS, SwGrfNode::TriggerGraphicArrived(), and Size::Width().
Referenced by lcl_UpdateLinksInSect(), and SwapIn().
|
virtual |
Definition at line 278 of file swbaslnk.cxx.
References SwFormat::GetAnchor(), SwFormatAnchor::GetAnchorId(), SwFormatAnchor::GetAnchorNode(), SwNode::GetFlyFormat(), and m_pContentNode.
Referenced by SwSection::MakeChildLinksVisible().
|
virtual |
Definition at line 315 of file swbaslnk.cxx.
Referenced by lcl_UpdateLinksInSect().
|
inline |
Definition at line 62 of file swbaslnk.hxx.
References m_bNoDataFlag.
Referenced by SwServerObject::IsLinkInServer().
bool SwBaseLink::IsRecursion | ( | const SwBaseLink * | pChkLnk | ) | const |
Definition at line 303 of file swbaslnk.cxx.
References sfx2::SvBaseLink::GetObj(), and tools::SvRef< typename T >::is().
Referenced by SwServerObject::IsLinkInServer().
|
inline |
Definition at line 60 of file swbaslnk.hxx.
References m_bNoDataFlag.
Referenced by SwServerObject::IsLinkInServer().
bool SwBaseLink::SwapIn | ( | bool | bWaitForData = false , |
bool | bNativFormat = false |
||
) |
Definition at line 225 of file swbaslnk.cxx.
References aMimeType, DataChanged(), sfx2::SvBaseLink::GetContentType(), sfx2::SvLinkSource::GetData(), SotExchange::GetFormatMimeType(), sfx2::SvBaseLink::GetObj(), sfx2::SvBaseLink::GetRealObject_(), uno::Any::hasValue(), sfx2::SvBaseLink::IsSynchron(), sfx2::SvBaseLink::SetSynchron(), and sfx2::SvBaseLink::Update().
|
private |
Definition at line 32 of file swbaslnk.hxx.
Referenced by ChkNoDataFlag(), IsNoDataFlag(), and SetNoDataFlag().
|
private |
Definition at line 31 of file swbaslnk.hxx.
Referenced by Closed(), DataChanged(), and GetAnchor().