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