22#include <document.hxx>
34 mrImport.AddNamedExpression(std::move(aExp));
42 mrImport.AddNamedExpression(mnTab, std::move(aExp));
47 std::shared_ptr<Inserter> pInserter ) :
60 sal_Int32 nElement,
const uno::Reference< xml::sax::XFastAttributeList >& xAttrList )
99 for (
auto &aIter : *rAttrList)
101 switch (aIter.getToken())
104 aNamedExpression.
sName = aIter.toString();
107 aNamedExpression.
sContent = aIter.toString();
113 aNamedExpression.
sRangeType = aIter.toString();
119 pInserter->
insert(std::move(aNamedExpression));
137 if ( rAttrList.is() )
139 for (
auto &aIter : *rAttrList)
141 switch (aIter.getToken())
144 aNamedExpression.
sName = aIter.toString();
149 aNamedExpression.
eGrammar, aIter.toString() );
158 pInserter->
insert(std::move(aNamedExpression));
This class exists only to provide GetScImport() to its derived classes.
ScXMLImport & GetScImport()
void ExtractFormulaNamespaceGrammar(OUString &rFormula, OUString &rFormulaNmsp, ::formula::FormulaGrammar::Grammar &reGrammar, const OUString &rAttrValue, bool bRestrictToExternalNmsp=false) const
Extracts the formula string, the formula grammar namespace URL, and a grammar enum value from the pas...
virtual ~ScXMLNamedExpressionContext() override
ScXMLNamedExpressionContext(ScXMLImport &rImport, const rtl::Reference< sax_fastparser::FastAttributeList > &rAttrList, ScXMLNamedExpressionsContext::Inserter *pInserter)
virtual void insert(ScMyNamedExpression aExp) override
GlobalInserter(ScXMLImport &rImport)
virtual void insert(ScMyNamedExpression aExp)=0
SheetLocalInserter(ScXMLImport &rImport, SCTAB nTab)
virtual void insert(ScMyNamedExpression aExp) override
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
ScXMLNamedExpressionsContext(ScXMLImport &rImport, std::shared_ptr< Inserter > pInserter)
virtual ~ScXMLNamedExpressionsContext() override
std::shared_ptr< Inserter > mpInserter
virtual ~ScXMLNamedRangeContext() override
ScXMLNamedRangeContext(ScXMLImport &rImport, const rtl::Reference< sax_fastparser::FastAttributeList > &rAttrList, ScXMLNamedExpressionsContext::Inserter *pInserter)
FastAttributeList & castToFastAttributeList(const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
OUString sBaseCellAddress
formula::FormulaGrammar::Grammar eGrammar
#define XML_ELEMENT(prefix, name)