20#include <document.hxx>
52#include <rtl/math.hxx>
65 bHadCalculationSettings(false),
66 pChangeTrackingImportHelper(nullptr)
74 const OUString& aVer( rImport.GetODFVersion());
75 sal_Int32 nLen = aVer.getLength();
76 SAL_INFO(
"sc.filter",
"ScXMLBodyContext ODFVersion: nLen: " << nLen <<
" str : " << aVer);
84 double fVer = ::rtl::math::stringToDouble( aVer,
'.', 0 );
91 if ( !rAttrList.is() )
94 for (
auto &it : *rAttrList)
96 sal_Int32
nToken = it.getToken();
120uno::Reference< xml::sax::XFastContextHandler > SAL_CALL
122 const uno::Reference< xml::sax::XFastAttributeList > & xAttrList )
167 std::make_shared<ScXMLNamedExpressionsContext::GlobalInserter>(
GetScImport()) );
230 pContext->endFastElement( nElement );
262 uno::Sequence<sal_Int8> aPass;
virtual void setPasswordHash(const css::uno::Sequence< sal_Int8 > &aPassword, ScPasswordHash eHash, ScPasswordHash eHash2=PASSHASH_UNSPECIFIED) override
virtual void setProtected(bool bProtected) override
void AddDetectiveOperation(const ScDetOpData &rData)
void SetStorageGrammar(formula::FormulaGrammar::Grammar eGrammar)
Should only be GRAM_PODF or GRAM_ODFF.
SC_DLLPUBLIC void SetDocProtection(const ScDocProtection *pProtect)
bool GetFirstOp(ScMyImpDetectiveOp &rDetOp)
void StoreLoadedNamespaces(const SvXMLNamespaceMap &rNamespaces)
void EndStreamPos(sal_Int32 nEndOffset)
virtual ~ScXMLBodyContext() override
ScXMLChangeTrackingImportHelper * pChangeTrackingImportHelper
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
virtual void SAL_CALL characters(const OUString &aChars) override
bool bHadCalculationSettings
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
ScXMLBodyContext(ScXMLImport &rImport, const rtl::Reference< sax_fastparser::FastAttributeList > &rAttrList)
void CreateChangeTrack(ScDocument *pDoc)
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...
ScMyImpDetectiveOpArray * GetDetectiveOpArray()
ScXMLChangeTrackingImportHelper * GetChangeTrackingImportHelper()
ScDocument * GetDocument()
void SetRangeOverflowType(ErrCode nType)
sal_Int32 GetByteOffset() const
SvXMLImport & GetImport()
static void decode(css::uno::Sequence< sal_Int8 > &aPass, std::u16string_view sBuffer)
#define SAL_INFO(area, stream)
ScPasswordHash getHashTypeFromURI(std::u16string_view rURI)
FastAttributeList & castToFastAttributeList(const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
XML_PROTECTION_KEY_DIGEST_ALGORITHM
XML_PROTECTION_KEY_DIGEST_ALGORITHM_2
bool IsXMLToken(std::u16string_view rString, enum XMLTokenEnum eToken)
#define SCWARN_IMPORT_SHEET_OVERFLOW
#define XML_ELEMENT(prefix, name)
constexpr bool IsTokenInNamespace(sal_Int32 nToken, sal_uInt16 nNamespacePrefix)
constexpr sal_Int32 TOKEN_MASK
constexpr sal_uInt16 XML_NAMESPACE_TABLE