23#include <com/sun/star/util/Date.hpp>
27#include <unonames.hxx>
55 std::u16string_view aPropertyName,
const uno::Any& aValue )
60 if( !pEntry || !pEntry->
nWID )
62 switch( pEntry->
nWID )
69 sal_Int16 nIntVal = 0;
70 if ( aValue >>= nIntVal )
82 sal_Int32 nIntVal = 0;
83 if ( aValue >>= nIntVal )
84 rOptions.
SetIterCount(
static_cast<sal_uInt16
>(nIntVal) );
89 double fDoubleVal = 0;
90 if ( aValue >>= fDoubleVal )
103 if ( aValue >>= aDate )
104 rOptions.
SetDate( aDate.Day, aDate.Month, aDate.Year );
112 sal_Int16 nIntVal = 0;
113 if ( aValue >>= nIntVal )
131 std::u16string_view aPropertyName )
135 if( !pEntry || !pEntry->
nWID )
137 switch( pEntry->
nWID )
149 aRet <<= rOptions.
IsIter();
152 aRet <<= static_cast<sal_Int32>( rOptions.
GetIterCount() );
167 rOptions.
GetDate( nD, nM, nY );
168 util::Date aDate( nD, nM, nY );
200 const OUString& aPropertyName,
const uno::Any& aValue )
static o3tl::span< const SfxItemPropertyMapEntry > GetPropertyMap()
static bool setPropertyValue(ScDocOptions &rOptions, const SfxItemPropertyMap &rPropMap, std::u16string_view aPropertyName, const css::uno::Any &aValue)
static css::uno::Any getPropertyValue(const ScDocOptions &rOptions, const SfxItemPropertyMap &rPropMap, std::u16string_view PropertyName)
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
ScDocOptionsObj(const ScDocOptions &rOpt)
virtual ~ScDocOptionsObj() override
void GetDate(sal_uInt16 &rD, sal_uInt16 &rM, sal_Int16 &rY) const
bool IsFormulaWildcardsEnabled() const
bool IsIgnoreCase() const
void SetTabDistance(sal_uInt16 nTabDist)
void SetFormulaRegexEnabled(bool bVal)
void SetCalcAsShown(bool bVal)
sal_uInt16 GetIterCount() const
void SetIgnoreCase(bool bVal)
void SetAutoSpell(bool bVal)
void SetLookUpColRowNames(bool bVal)
sal_uInt16 GetTabDistance() const
void SetFormulaWildcardsEnabled(bool bVal)
void SetIterEps(double fEps)
void SetMatchWholeCell(bool bVal)
sal_uInt16 GetStdPrecision() const
void SetStdPrecision(sal_uInt16 n)
bool IsLookUpColRowNames() const
void SetDate(sal_uInt16 nD, sal_uInt16 nM, sal_Int16 nY)
bool IsMatchWholeCell() const
bool IsFormulaRegexEnabled() const
void SetIterCount(sal_uInt16 nCount)
bool IsCalcAsShown() const
double GetIterEps() const
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
const SfxItemPropertySet & GetPropertySet() const
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
static bool GetBoolFromAny(const css::uno::Any &aAny)
const SfxItemPropertyMapEntry * getByName(std::u16string_view rName) const
css::uno::Type const & get()
HashMap_OWString_Interface aMap
#define PROP_UNO_WILDCARDSENABLED
#define PROP_UNO_ITEREPSILON
#define PROP_UNO_LOOKUPLABELS
#define PROP_UNO_MATCHWHOLE
#define PROP_UNO_ITERCOUNT
#define PROP_UNO_REGEXENABLED
#define PROP_UNO_DEFTABSTOP
#define PROP_UNO_STANDARDDEC
#define PROP_UNO_NULLDATE
#define PROP_UNO_IGNORECASE
#define PROP_UNO_ITERENABLED
#define PROP_UNO_SPELLONLINE
#define PROP_UNO_CALCASSHOWN
constexpr OUStringLiteral SC_UNO_CALCASSHOWN
constexpr OUStringLiteral SC_UNO_ITERCOUNT
constexpr OUStringLiteral SC_UNO_NULLDATE
constexpr OUStringLiteral SC_UNO_STANDARDDEC
constexpr OUStringLiteral SC_UNO_DEFTABSTOP
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_SPELLONLINE
constexpr OUStringLiteral SC_UNO_MATCHWHOLE
constexpr OUStringLiteral SC_UNO_ITERENABLED