LibreOffice Module sc (master) 1
|
#include <documentlinkmgr.hxx>
Public Member Functions | |
DocumentLinkManager (SfxObjectShell *pShell) | |
DocumentLinkManager (const DocumentLinkManager &)=delete | |
const DocumentLinkManager & | operator= (const DocumentLinkManager &)=delete |
~DocumentLinkManager () | |
void | setDataStream (DataStream *p) |
DataStream * | getDataStream () |
const DataStream * | getDataStream () const |
sfx2::LinkManager * | getLinkManager (bool bCreate=true) |
const sfx2::LinkManager * | getExistingLinkManager () const |
bool | idleCheckLinks () |
bool | hasDdeLinks () const |
bool | hasDdeOrOleOrWebServiceLinks () const |
bool | hasExternalRefLinks () const |
bool | updateDdeOrOleOrWebServiceLinks (weld::Window *pWin) |
void | updateDdeLink (std::u16string_view rAppl, std::u16string_view rTopic, std::u16string_view rItem) |
size_t | getDdeLinkCount () const |
Private Member Functions | |
bool | hasDdeOrOleOrWebServiceLinks (bool bDde, bool bOle, bool bWebService) const |
Private Attributes | |
std::unique_ptr< DocumentLinkManagerImpl > | mpImpl |
Definition at line 29 of file documentlinkmgr.hxx.
sc::DocumentLinkManager::DocumentLinkManager | ( | SfxObjectShell * | pShell | ) |
Definition at line 68 of file documentlinkmgr.cxx.
|
delete |
sc::DocumentLinkManager::~DocumentLinkManager | ( | ) |
Definition at line 71 of file documentlinkmgr.cxx.
DataStream * sc::DocumentLinkManager::getDataStream | ( | ) |
Definition at line 80 of file documentlinkmgr.cxx.
References mpImpl.
Referenced by ScCellShell::ExecuteDB(), ScXMLExport::WriteDataStream(), and ScXMLExport::WriteExternalDataTransformations().
const DataStream * sc::DocumentLinkManager::getDataStream | ( | ) | const |
Definition at line 85 of file documentlinkmgr.cxx.
References mpImpl.
size_t sc::DocumentLinkManager::getDdeLinkCount | ( | ) | const |
Definition at line 269 of file documentlinkmgr.cxx.
References sfx2::LinkManager::GetLinks(), and mpImpl.
Referenced by ScDDELinksObj::getCount(), ScDDELinksObj::getElementNames(), ScDDELinksObj::GetObjectByName_Impl(), and ScDDELinksObj::hasByName().
const sfx2::LinkManager * sc::DocumentLinkManager::getExistingLinkManager | ( | ) | const |
Definition at line 98 of file documentlinkmgr.cxx.
References mpImpl.
Referenced by ScDocument::CopyDdeLinks(), ScDocument::GetLinkManager(), and ScDocument::HasAreaLinks().
sfx2::LinkManager * sc::DocumentLinkManager::getLinkManager | ( | bool | bCreate = true | ) |
bCreate | if true, create a new link manager instance in case one does not exist. |
Definition at line 90 of file documentlinkmgr.cxx.
References comphelper::doubleCheckedInit(), and mpImpl.
Referenced by ScDocument::CopyDdeLinks(), ScDocument::CreateDdeLink(), ScDocument::DeleteAreaLinksOnTab(), ScDocument::GetLinkManager(), ScDocument::InitDrawLayer(), ScDocument::LoadDdeLinks(), ScAreaLinkSaveCollection::Restore(), ScDocument::UpdateAreaLinks(), ScDocument::UpdateExternalRefLinks(), and ScDocument::UpdateRefAreaLinks().
bool sc::DocumentLinkManager::hasDdeLinks | ( | ) | const |
Definition at line 126 of file documentlinkmgr.cxx.
References hasDdeOrOleOrWebServiceLinks().
Referenced by ScDocument::InitClipPtrs().
bool sc::DocumentLinkManager::hasDdeOrOleOrWebServiceLinks | ( | ) | const |
Definition at line 131 of file documentlinkmgr.cxx.
References hasDdeOrOleOrWebServiceLinks().
Referenced by ScTabViewShell::Construct(), hasDdeLinks(), and hasDdeOrOleOrWebServiceLinks().
|
private |
Definition at line 136 of file documentlinkmgr.cxx.
References sfx2::LinkManager::GetLinks(), and mpImpl.
bool sc::DocumentLinkManager::hasExternalRefLinks | ( | ) | const |
Definition at line 157 of file documentlinkmgr.cxx.
References sfx2::LinkManager::GetLinks(), and mpImpl.
Referenced by IMPL_LINK().
bool sc::DocumentLinkManager::idleCheckLinks | ( | ) |
Definition at line 103 of file documentlinkmgr.cxx.
References sfx2::LinkManager::GetLinks(), mpImpl, ScDdeLink::NeedsUpdate(), and ScDdeLink::TryUpdate().
Referenced by IMPL_LINK_NOARG().
|
delete |
void sc::DocumentLinkManager::setDataStream | ( | DataStream * | p | ) |
Definition at line 75 of file documentlinkmgr.cxx.
Referenced by sc::DataStream::Set().
void sc::DocumentLinkManager::updateDdeLink | ( | std::u16string_view | rAppl, |
std::u16string_view | rTopic, | ||
std::u16string_view | rItem | ||
) |
Definition at line 244 of file documentlinkmgr.cxx.
References ScDdeLink::GetAppl(), ScDdeLink::GetItem(), sfx2::LinkManager::GetLinks(), ScDdeLink::GetTopic(), mpImpl, and ScDdeLink::TryUpdate().
Referenced by ScDDELinkObj::refresh().
bool sc::DocumentLinkManager::updateDdeOrOleOrWebServiceLinks | ( | weld::Window * | pWin | ) |
Definition at line 174 of file documentlinkmgr.cxx.
References sfx2::LinkManager::CloseCachedComps(), Application::CreateMessageDialog(), ScDdeLink::GetAppl(), ScDdeLink::GetItem(), sfx2::LinkManager::GetLinks(), ScDdeLink::GetTopic(), mpImpl, ScResId(), sMessage, and sfx2::SvBaseLink::Update().
|
private |
Definition at line 31 of file documentlinkmgr.hxx.
Referenced by getDataStream(), getDdeLinkCount(), getExistingLinkManager(), getLinkManager(), hasDdeOrOleOrWebServiceLinks(), hasExternalRefLinks(), idleCheckLinks(), setDataStream(), updateDdeLink(), and updateDdeOrOleOrWebServiceLinks().