23#include <osl/diagnose.h>
35 ,
const Reference< XFastAttributeList > & _xAttrList
36 ,
const Reference< XFunctionsSupplier >& _xFunctions
40 ,m_xFunctions(_xFunctions->getFunctions())
41 ,m_bAddToReport(_bAddToReport)
44 OSL_ENSURE(m_xFunctions.is(),
"Functions is NULL!");
45 m_xFunction = m_xFunctions->createFunction();
51 switch( aIter.getToken() )
54 m_xFunction->setName(aIter.
toString());
57 m_xFunction->setFormula(ORptFilter::convertFormula(aIter.
toString()));
63 if ( !aIter.isEmpty() )
64 m_xFunction->setInitialFormula(beans::
Optional< OUString>(true,ORptFilter::convertFormula(aIter.
toString())));
74 catch(
const Exception&)
82OXMLFunction::~OXMLFunction()
91void OXMLFunction::endFastElement(sal_Int32 )
102 m_xFunctions->insertByIndex(m_xFunctions->getCount(),
uno::Any(m_xFunction));
104 }
catch(uno::Exception&)
void insertFunction(const css::uno::Reference< css::report::XFunction > &_xFunction)
inserts a new function
OXMLFunction(const OXMLFunction &)
#define TOOLS_WARN_EXCEPTION(area, stream)
if(aStr !=aBuf) UpdateName_Impl(m_xFollowLb.get()
FastAttributeList & castToFastAttributeList(const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
OUString toString(OptionInfo const *info)
bool IsXMLToken(std::u16string_view rString, enum XMLTokenEnum eToken)
#define XMLOFF_WARN_UNKNOWN(area, rIter)
#define XML_ELEMENT(prefix, name)