24#include <document.hxx>
28 aFileName ( rSource.GetFile() ),
29 aFilterName ( rSource.GetFilter() ),
30 aOptions ( rSource.GetOptions() ),
31 aSourceArea ( rSource.GetSource() ),
32 aDestArea ( rSource.GetDestArea() ),
33 nRefreshDelaySeconds ( rSource.GetRefreshDelaySeconds() )
64 if ( pLinkManager && pObjSh )
68 pLink->SetInCreate(
true );
73 pLink->SetInCreate(
false );
90 const ::sfx2::SvBaseLinks& rLinks = pLinkManager->
GetLinks();
91 sal_uInt16 nLinkCount = rLinks.size();
92 for (sal_uInt16
i=0;
i<nLinkCount;
i++)
95 if (
auto pAreaLink =
dynamic_cast<ScAreaLink*
>( pBase))
112 sal_uInt16 nLinkCount = rLinks.size();
113 for (sal_uInt16
i=0;
i<nLinkCount;
i++)
116 if (
auto pAreaLink =
dynamic_cast<ScAreaLink*
>( pBase) )
134 const ::sfx2::SvBaseLinks& rLinks = pLinkManager->
GetLinks();
135 size_t nSaveCount =
size();
149 std::unique_ptr<ScAreaLinkSaveCollection> pColl;
154 const ::sfx2::SvBaseLinks& rLinks = pLinkManager->
GetLinks();
155 sal_uInt16 nLinkCount = rLinks.size();
156 for (sal_uInt16
i=0;
i<nLinkCount;
i++)
159 if (
auto pAreaLink =
dynamic_cast<ScAreaLink*
>( pBase))
static ScAreaLink * lcl_FindLink(const ::sfx2::SvBaseLinks &rLinks, const ScAreaLinkSaver &rSaver)
static std::unique_ptr< ScAreaLinkSaveCollection > CreateFromDoc(const ScDocument *pDoc)
void push_back(const ScAreaLinkSaver &)
void Restore(ScDocument *pDoc)
bool IsEqual(const ScDocument *pDoc) const
ScAreaLinkSaver & operator[](size_t nIndex)
ScAreaLinkSaveCollection()
~ScAreaLinkSaveCollection()
bool IsEqualSource(const ScAreaLink &rCompare) const
bool IsEqual(const ScAreaLink &rCompare) const
void WriteToLink(ScAreaLink &rLink) const
sal_Int32 nRefreshDelaySeconds
ScAreaLinkSaver(const ScAreaLink &rSource)
void InsertNewLink(ScDocument *pDoc)
void SetDestArea(const ScRange &rNew)
const OUString & GetSource() const
const OUString & GetOptions() const
const ScRange & GetDestArea() const
const OUString & GetFile() const
const OUString & GetFilter() const
SfxObjectShell * GetDocumentShell() const
sc::DocumentLinkManager & GetDocLinkManager()
SC_DLLPUBLIC sfx2::LinkManager * GetLinkManager()
sal_Int32 GetRefreshDelaySeconds() const
sfx2::LinkManager * getLinkManager(bool bCreate=true)
void InsertFileLink(sfx2::SvBaseLink &, SvBaseLinkObjectType nFileType, std::u16string_view rFileNm, const OUString *pFilterNm=nullptr, const OUString *pRange=nullptr)
const SvBaseLinks & GetLinks() const