22#include <document.hxx>
28#include <com/sun/star/sheet/XSheetLinkable.hpp>
29#include <com/sun/star/sheet/XSpreadsheet.hpp>
38 nMode(sheet::SheetLinkMode_NORMAL)
40 if ( !rAttrList.is() )
43 for (
auto &aIter : *rAttrList)
45 switch (aIter.getToken())
61 nMode = sheet::SheetLinkMode_VALUE;
66 nRefresh = std::max(
static_cast<sal_Int32
>(fTime * 86400.0), sal_Int32(0) );
81 uno::Reference <sheet::XSheetLinkable> xLinkable (
GetScImport().GetTables().GetCurrentXSheet(), uno::UNO_QUERY);
83 if (!(xLinkable.is() && pDoc))
88 GetScImport().GetTables().GetCurrentSheetName(),
true))
96 if (
nMode == sheet::SheetLinkMode_NORMAL )
98 else if (
nMode == sheet::SheetLinkMode_VALUE )
static bool GetFilterName(const OUString &rFileName, OUString &rFilter, OUString &rOptions, bool bWithContent, bool bWithInteraction)
Returns the filter name and options from a file name.
SC_DLLPUBLIC bool RenameTab(SCTAB nTab, const OUString &rName, bool bExternalDocument=false)
SfxObjectShell * GetDocumentShell() const
void SetLink(SCTAB nTab, ScLinkMode nMode, const OUString &rDoc, const OUString &rFilter, const OUString &rOptions, const OUString &rTabName, sal_uLong nRefreshDelay)
static SC_DLLPUBLIC OUString GetAbsDocName(const OUString &rFileName, const SfxObjectShell *pShell)
This class exists only to provide GetScImport() to its derived classes.
ScXMLImport & GetScImport()
Use this class to manage solar mutex locking instead of calling LockSolarMutex() and UnlockSolarMutex...
css::sheet::SheetLinkMode nMode
virtual ~ScXMLTableSourceContext() override
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
ScXMLTableSourceContext(ScXMLImport &rImport, const rtl::Reference< sax_fastparser::FastAttributeList > &rAttrList)
static void convertDuration(OUStringBuffer &rBuffer, const double fTime)
bool IsXMLToken(std::u16string_view rString, enum XMLTokenEnum eToken)
#define XML_ELEMENT(prefix, name)