25#include <document.hxx>
35#include <com/sun/star/util/NumberFormat.hpp>
41using ::com::sun::star::uno::Reference;
47 mrExternalRefInfo(rRefInfo)
51 if ( !rAttrList.is() )
54 for (
auto &it : *rAttrList)
56 sal_Int32 nAttrToken = it.getToken();
82 sal_Int32
n = ::std::min( rUrl.getLength(),
static_cast<sal_Int32
>(3));
86 for (sal_Int32
i = 0;
i <
n; ++
i)
89 if (
i < 2 && c !=
'.')
92 else if (
i == 2 && c !=
'/')
114 mrExternalRefInfo(rRefInfo)
123 sal_Int32 nElement,
const Reference< XFastAttributeList >& xAttrList )
152 mrExternalRefInfo(rRefInfo),
157 for (
auto &it : *rAttrList)
159 switch (it.getToken())
175 sal_Int32 nElement,
const Reference< XFastAttributeList >& xAttrList )
208 pTab->setCell(
static_cast<SCCOL>(j),
221 mrExternalRefInfo(rRefInfo),
225 mnCellType(css::util::NumberFormat::
UNDEFINED),
231 for (
auto &it : *rAttrList)
233 switch ( it.getToken() )
246 mnRepeatCount = ::std::max( it.toInt32(),
static_cast<sal_Int32
>(1) );
315 sal_Int32 nElement,
const Reference< XFastAttributeList >& )
BaseContainerNodeSharedPtr & mrParent
SC_DLLPUBLIC ScExternalRefManager * GetExternalRefManager() const
SC_DLLPUBLIC svl::SharedStringPool & GetSharedStringPool()
std::shared_ptr< Table > TableTypeRef
::formula::FormulaTokenRef TokenRef
void setFilterData(sal_uInt16 nFileId, const OUString &rFilterName, const OUString &rOptions)
Set the filter name and options if any for a given source document.
void setRelativeFileName(sal_uInt16 nFileId, const OUString &rRelUrl)
Set a relative file path for the specified file ID.
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
virtual css::uno::Reference< XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
virtual ~ScXMLExternalRefCellContext() override
ScXMLExternalTabData & mrExternalRefInfo
ScXMLExternalRefCellContext(ScXMLImport &rImport, const rtl::Reference< sax_fastparser::FastAttributeList > &rAttrList, ScXMLExternalTabData &rRefInfo)
void SetCellString(const OUString &rStr)
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
ScXMLExternalRefCellTextContext(ScXMLImport &rImport, ScXMLExternalRefCellContext &rParent)
virtual ~ScXMLExternalRefCellTextContext() override
virtual void SAL_CALL characters(const OUString &rChars) override
ScXMLExternalRefCellContext & mrParent
OUStringBuffer maCellStrBuf
sal_Int32 mnRepeatRowCount
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
virtual css::uno::Reference< XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
ScXMLExternalRefRowContext(ScXMLImport &rImport, const rtl::Reference< sax_fastparser::FastAttributeList > &rAttrList, ScXMLExternalTabData &rRefInfo)
ScXMLExternalTabData & mrExternalRefInfo
virtual ~ScXMLExternalRefRowContext() override
ScXMLExternalRefRowsContext(ScXMLImport &rImport, ScXMLExternalTabData &rRefInfo)
virtual css::uno::Reference< XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
virtual ~ScXMLExternalRefRowsContext() override
ScXMLExternalTabData & mrExternalRefInfo
virtual ~ScXMLExternalRefTabSourceContext() override
ScXMLExternalRefTabSourceContext(ScXMLImport &rImport, const rtl::Reference< sax_fastparser::FastAttributeList > &rAttrList, ScXMLExternalTabData &rRefInfo)
ScXMLExternalTabData & mrExternalRefInfo
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
This class exists only to provide GetScImport() to its derived classes.
ScXMLImport & GetScImport()
ScDocumentImport & GetDoc()
bool SetNullDateOnUnitConverter()
ScDocument * GetDocument()
static sal_Int16 GetCellType(const char *rStrValue, const sal_Int32 nStrLength)
const SvXMLStyleContext * FindStyleChildContext(XmlStyleFamily nFamily, const OUString &rName, bool bCreateIndex=false) const
static void convertDuration(OUStringBuffer &rBuffer, const double fTime)
SharedString intern(const OUString &rStr)
FastAttributeList & castToFastAttributeList(const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
XML_NUMBER_COLUMNS_REPEATED
bool IsXMLToken(std::u16string_view rString, enum XMLTokenEnum eToken)
ScExternalRefCache::TableTypeRef mpCacheTable
static bool lcl_isValidRelativeURL(const OUString &rUrl)
Make sure the URL is a valid relative URL, mainly to avoid storing absolute URL as relative URL by ac...
#define XMLOFF_WARN_UNKNOWN_ELEMENT(area, token)
#define XML_ELEMENT(prefix, name)