LibreOffice Module sw (master) 1
|
#include <DocumentLinksAdministrationManager.hxx>
Public Member Functions | |
DocumentLinksAdministrationManager (SwDoc &i_rSwdoc) | |
bool | IsVisibleLinks () const override |
Insert links in-/visibly into LinkManager (linked ranges). More... | |
void | SetVisibleLinks (bool bFlag) override |
sfx2::LinkManager & | GetLinkManager () override |
const sfx2::LinkManager & | GetLinkManager () const override |
void | UpdateLinks () override |
#i42634# Moved common code of SwReader::Read() and SwDocShell::UpdateLinks() to new SwDoc::UpdateLinks(): More... | |
bool | GetData (const OUString &rItem, const OUString &rMimeType, css::uno::Any &rValue) const override |
for linking of parts of documents. More... | |
void | SetData (const OUString &rItem) override |
::sfx2::SvLinkSource * | CreateLinkSource (const OUString &rItem) override |
bool | EmbedAllLinks () override |
embedded all local links (Areas/Graphics) More... | |
void | SetLinksUpdated (const bool bNewLinksUpdated) override |
bool | LinksUpdated () const override |
bool | SelectServerObj (std::u16string_view rStr, SwPaM *&rpPam, std::optional< SwNodeRange > &rpRange) const |
virtual | ~DocumentLinksAdministrationManager () override |
virtual bool | IsVisibleLinks () const =0 |
Insert links in-/visibly into LinkManager (linked ranges). More... | |
virtual void | SetVisibleLinks (bool bFlag)=0 |
virtual sfx2::LinkManager & | GetLinkManager ()=0 |
virtual const sfx2::LinkManager & | GetLinkManager () const =0 |
virtual void | UpdateLinks ()=0 |
#i42634# Moved common code of SwReader::Read() and SwDocShell::UpdateLinks() to new SwDoc::UpdateLinks(): More... | |
virtual bool | GetData (const OUString &rItem, const OUString &rMimeType, css::uno::Any &rValue) const =0 |
for linking of parts of documents. More... | |
virtual void | SetData (const OUString &rItem)=0 |
virtual ::sfx2::SvLinkSource * | CreateLinkSource (const OUString &rItem)=0 |
virtual bool | EmbedAllLinks ()=0 |
Embed all local links (ranges/graphics). More... | |
virtual void | SetLinksUpdated (const bool bNewLinksUpdated)=0 |
virtual bool | LinksUpdated () const =0 |
Private Member Functions | |
DocumentLinksAdministrationManager (DocumentLinksAdministrationManager const &)=delete | |
DocumentLinksAdministrationManager & | operator= (DocumentLinksAdministrationManager const &)=delete |
Private Attributes | |
bool | mbVisibleLinks |
bool | mbLinksUpdated |
std::unique_ptr< sfx2::LinkManager > | m_pLinkMgr |
SwDoc & | m_rDoc |
Additional Inherited Members | |
Protected Member Functions inherited from IDocumentLinksAdministration | |
virtual | ~IDocumentLinksAdministration () |
Definition at line 37 of file DocumentLinksAdministrationManager.hxx.
sw::DocumentLinksAdministrationManager::DocumentLinksAdministrationManager | ( | SwDoc & | i_rSwdoc | ) |
Definition at line 160 of file DocumentLinksAdministrationManager.cxx.
|
overridevirtual |
Definition at line 391 of file DocumentLinksAdministrationManager.cxx.
|
privatedelete |
|
overridevirtual |
Implements IDocumentLinksAdministration.
Definition at line 296 of file DocumentLinksAdministrationManager.cxx.
References SwDoc::getIDocumentMarkAccess(), GetLinkManager(), sw::mark::DdeBookmark::GetRefObject(), sfx2::LinkManager::InsertServer(), sw::mark::MarkBase::IsExpanded(), m_rDoc, and sw::mark::DdeBookmark::SetRefObject().
|
overridevirtual |
embedded all local links (Areas/Graphics)
Implements IDocumentLinksAdministration.
Definition at line 352 of file DocumentLinksAdministrationManager.cxx.
References tools::SvRef< typename T >::get(), SwDoc::getIDocumentState(), SwDoc::GetIDocumentUndoRedo(), GetLinkManager(), sfx2::LinkManager::GetLinks(), tools::SvRef< typename T >::is(), m_rDoc, sfx2::LinkManager::Remove(), and IDocumentState::SetModified().
|
overridevirtual |
for linking of parts of documents.
Implements IDocumentLinksAdministration.
Definition at line 239 of file DocumentLinksAdministrationManager.cxx.
References SwServerObject::GetData(), SwDoc::getIDocumentMarkAccess(), and m_rDoc.
|
overridevirtual |
Implements IDocumentLinksAdministration.
Definition at line 183 of file DocumentLinksAdministrationManager.cxx.
References m_pLinkMgr.
|
overridevirtual |
Implements IDocumentLinksAdministration.
Definition at line 178 of file DocumentLinksAdministrationManager.cxx.
References m_pLinkMgr.
Referenced by CreateLinkSource(), EmbedAllLinks(), and UpdateLinks().
|
overridevirtual |
Insert links in-/visibly into LinkManager (linked ranges).
Implements IDocumentLinksAdministration.
Definition at line 168 of file DocumentLinksAdministrationManager.cxx.
References mbVisibleLinks.
|
overridevirtual |
Implements IDocumentLinksAdministration.
Definition at line 386 of file DocumentLinksAdministrationManager.cxx.
References mbLinksUpdated.
|
privatedelete |
bool sw::DocumentLinksAdministrationManager::SelectServerObj | ( | std::u16string_view | rStr, |
SwPaM *& | rpPam, | ||
std::optional< SwNodeRange > & | rpRange | ||
) | const |
Definition at line 395 of file DocumentLinksAdministrationManager.cxx.
References cMarkSeparator, INetURLObject::decode(), SwVectorModifyBase< Value >::empty(), SwNode::EndOfSectionNode(), SwDoc::FindFlyByName(), SwTextNode::GetAttrOutlineLevel(), SwFormat::GetContent(), SwFormatContent::GetContentIdx(), SwNodes::GetEndOfContent(), SwDoc::getIDocumentMarkAccess(), sw::mark::MarkBase::GetMarkPos(), SwNodeIndex::GetNode(), SwPosition::GetNode(), SwDoc::GetNodes(), sw::mark::MarkBase::GetOtherMarkPos(), SwNodes::GetOutLineNds(), SwDoc::GetSections(), SwNode::GetTextNode(), SwDoc::GotoOutline(), sw::mark::MarkBase::IsExpanded(), SwNode::IsNoTextNode(), m_rDoc, nPos, SwOutlineNodes::Seek_Entry(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::size(), sName, u, and INetURLObject::WithCharset.
|
overridevirtual |
Implements IDocumentLinksAdministration.
Definition at line 270 of file DocumentLinksAdministrationManager.cxx.
References SwDoc::getIDocumentMarkAccess(), and m_rDoc.
|
overridevirtual |
Implements IDocumentLinksAdministration.
Definition at line 381 of file DocumentLinksAdministrationManager.cxx.
References mbLinksUpdated.
|
overridevirtual |
Implements IDocumentLinksAdministration.
Definition at line 173 of file DocumentLinksAdministrationManager.cxx.
References mbVisibleLinks.
|
overridevirtual |
#i42634# Moved common code of SwReader::Read() and SwDocShell::UpdateLinks() to new SwDoc::UpdateLinks():
Implements IDocumentLinksAdministration.
Definition at line 190 of file DocumentLinksAdministrationManager.cxx.
References AUTOMATIC, eMode, SfxObjectShell::GetCreateMode(), SwDoc::GetDocShell(), SwDoc::GetDocumentSettingManager(), SfxObjectShell::getEmbeddedObjectContainer(), GetFrameWeld(), GetLinkManager(), sw::DocumentSettingManager::getLinkUpdateMode(), SfxObjectShell::GetMedium(), SwDocShell::GetUpdateDocMode(), SfxObjectShell::IsPreview(), SvtSecurityOptions::isTrustedLocationUriForUpdatingLinks(), m_rDoc, MANUAL, medium, NEVER, comphelper::EmbeddedObjectContainer::setUserAllowsLinkUpdate(), and sfx2::LinkManager::UpdateAllLinks().
|
private |
Definition at line 77 of file DocumentLinksAdministrationManager.hxx.
Referenced by GetLinkManager().
|
private |
Definition at line 79 of file DocumentLinksAdministrationManager.hxx.
Referenced by CreateLinkSource(), EmbedAllLinks(), GetData(), SelectServerObj(), SetData(), and UpdateLinks().
|
private |
Definition at line 76 of file DocumentLinksAdministrationManager.hxx.
Referenced by LinksUpdated(), and SetLinksUpdated().
|
private |
Definition at line 75 of file DocumentLinksAdministrationManager.hxx.
Referenced by IsVisibleLinks(), and SetVisibleLinks().