22#include <unonames.hxx>
24#include <document.hxx>
29#include <com/sun/star/beans/XPropertySet.hpp>
30#include <com/sun/star/frame/XModel.hpp>
38 fIterationEpsilon(0.001),
41 eSearchType(
utl::SearchParam::SearchType::
Regexp),
42 bIsIterationEnabled(false),
51 if ( !rAttrList.is() )
54 for (
auto &aIter : *rAttrList)
56 switch (aIter.getToken())
77 nYear2000 =
static_cast<sal_uInt16
>(nTemp);
97 sal_Int32 nElement,
const uno::Reference< xml::sax::XFastAttributeList >& xAttrList )
116 uno::Reference <beans::XPropertySet> xPropertySet (
GetScImport().GetModel(), uno::UNO_QUERY);
117 if (!xPropertySet.is())
124 bool bWildcards, bRegex;
146 if ( !rAttrList.is() )
150 if (aIter != rAttrList->end())
152 util::DateTime aDateTime;
156 aDate.Day = aDateTime.Day;
157 aDate.Month = aDateTime.Month;
158 aDate.Year = aDateTime.Year;
163 SAL_WARN(
"sc.filter",
"ignoring invalid NullDate '" << aIter.toView() <<
"'");
177 if ( !rAttrList.is() )
180 for (
auto &aIter : *rAttrList)
182 switch (aIter.getToken())
void SetYear2000(sal_uInt16 nVal)
SC_DLLPUBLIC void SetDocOptions(const ScDocOptions &rOpt)
virtual ~ScXMLCalculationSettingsContext() override
css::util::Date aNullDate
void SetIterationCount(const sal_Int32 nValue)
virtual void SAL_CALL endFastElement(sal_Int32 Element) override
utl::SearchParam::SearchType eSearchType
sal_Int32 nIterationCount
void SetIterationEpsilon(const double fValue)
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
void SetIterationStatus(const bool bValue)
ScXMLCalculationSettingsContext(ScXMLImport &rImport, const rtl::Reference< sax_fastparser::FastAttributeList > &rAttrList)
void SetNullDate(const css::util::Date &aDate)
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...
ScDocument * GetDocument()
virtual ~ScXMLIterationContext() override
ScXMLIterationContext(ScXMLImport &rImport, const rtl::Reference< sax_fastparser::FastAttributeList > &rAttrList, ScXMLCalculationSettingsContext *pCalcSet)
ScXMLNullDateContext(ScXMLImport &rImport, const rtl::Reference< sax_fastparser::FastAttributeList > &rAttrList, ScXMLCalculationSettingsContext *pCalcSet)
virtual ~ScXMLNullDateContext() override
static bool parseDateTime(css::util::DateTime &rDateTime, std::u16string_view rString)
static bool convertNumber(sal_Int32 &rValue, std::u16string_view aString, sal_Int32 nMin=SAL_MIN_INT32, sal_Int32 nMax=SAL_MAX_INT32)
static void ConvertToBool(const SearchType eSearchType, bool &rbWildcard, bool &rbRegExp)
#define SAL_WARN(area, stream)
FastAttributeList & castToFastAttributeList(const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
XML_AUTOMATIC_FIND_LABELS
XML_SEARCH_CRITERIA_MUST_APPLY_TO_WHOLE_CELL
XML_USE_REGULAR_EXPRESSIONS
bool IsXMLToken(std::u16string_view rString, enum XMLTokenEnum eToken)
constexpr OUStringLiteral SC_UNO_CALCASSHOWN
constexpr OUStringLiteral SC_UNO_ITERCOUNT
constexpr OUStringLiteral SC_UNO_NULLDATE
constexpr OUStringLiteral SC_UNO_ITEREPSILON
constexpr OUStringLiteral SC_UNO_IGNORECASE
constexpr OUStringLiteral SC_UNO_LOOKUPLABELS
constexpr OUStringLiteral SC_UNO_WILDCARDSENABLED
constexpr OUStringLiteral SC_UNO_REGEXENABLED
constexpr OUStringLiteral SC_UNO_MATCHWHOLE
constexpr OUStringLiteral SC_UNO_ITERENABLED
#define XML_ELEMENT(prefix, name)