23 #include <com/sun/star/util/Date.hpp>
27 #include <unonames.hxx>
49 {
u"", 0, css::uno::Type(), 0, 0 }
56 std::u16string_view aPropertyName,
const uno::Any& aValue )
61 if( !pEntry || !pEntry->
nWID )
63 switch( pEntry->
nWID )
70 sal_Int16 nIntVal = 0;
71 if ( aValue >>= nIntVal )
83 sal_Int32 nIntVal = 0;
84 if ( aValue >>= nIntVal )
85 rOptions.
SetIterCount( static_cast<sal_uInt16>(nIntVal) );
90 double fDoubleVal = 0;
91 if ( aValue >>= fDoubleVal )
104 if ( aValue >>= aDate )
105 rOptions.
SetDate( aDate.Day, aDate.Month, aDate.Year );
113 sal_Int16 nIntVal = 0;
114 if ( aValue >>= nIntVal )
132 std::u16string_view aPropertyName )
136 if( !pEntry || !pEntry->
nWID )
138 switch( pEntry->
nWID )
150 aRet <<= rOptions.
IsIter();
153 aRet <<= static_cast<sal_Int32>( rOptions.
GetIterCount() );
168 rOptions.
GetDate( nD, nM, nY );
169 util::Date aDate( nD, nM, nY );
201 const OUString& aPropertyName,
const uno::Any& aValue )
#define SC_UNO_IGNORECASE
#define SC_UNO_SPELLONLINE
#define PROP_UNO_CALCASSHOWN
#define SC_UNO_ITERENABLED
void SetFormulaWildcardsEnabled(bool bVal)
static css::uno::Any getPropertyValue(const ScDocOptions &rOptions, const SfxItemPropertyMap &rPropMap, std::u16string_view PropertyName)
#define PROP_UNO_ITEREPSILON
#define PROP_UNO_IGNORECASE
#define PROP_UNO_REGEXENABLED
#define PROP_UNO_NULLDATE
static bool setPropertyValue(ScDocOptions &rOptions, const SfxItemPropertyMap &rPropMap, std::u16string_view aPropertyName, const css::uno::Any &aValue)
void SetTabDistance(sal_uInt16 nTabDist)
bool IsLookUpColRowNames() const
sal_uInt16 GetIterCount() const
static const SfxItemPropertyMapEntry * GetPropertyMap()
const SfxItemPropertyMapEntry * getByName(std::u16string_view rName) const
HashMap_OWString_Interface aMap
void SetLookUpColRowNames(bool bVal)
void SetIgnoreCase(bool bVal)
#define PROP_UNO_LOOKUPLABELS
#define PROP_UNO_WILDCARDSENABLED
bool IsMatchWholeCell() const
void SetCalcAsShown(bool bVal)
#define SC_UNO_MATCHWHOLE
#define SC_UNO_DEFTABSTOP
sal_uInt16 GetTabDistance() const
#define SC_UNO_WILDCARDSENABLED
#define SC_UNO_REGEXENABLED
virtual ~ScDocOptionsObj() override
void SetDate(sal_uInt16 nD, sal_uInt16 nM, sal_Int16 nY)
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
css::uno::Type const & get()
#define PROP_UNO_MATCHWHOLE
void SetIterCount(sal_uInt16 nCount)
#define PROP_UNO_ITERCOUNT
#define PROP_UNO_SPELLONLINE
#define SC_UNO_LOOKUPLABELS
#define SC_UNO_STANDARDDEC
void SetStdPrecision(sal_uInt16 n)
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
bool IsFormulaWildcardsEnabled() const
#define SC_UNO_CALCASSHOWN
bool IsCalcAsShown() const
ScDocOptionsObj(const ScDocOptions &rOpt)
double GetIterEps() const
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
#define PROP_UNO_DEFTABSTOP
sal_uInt16 GetStdPrecision() const
void SetMatchWholeCell(bool bVal)
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
#define PROP_UNO_STANDARDDEC
const SfxItemPropertySet & GetPropertySet() const
bool IsFormulaRegexEnabled() const
void SetAutoSpell(bool bVal)
static bool GetBoolFromAny(const css::uno::Any &aAny)
bool IsIgnoreCase() const
#define PROP_UNO_ITERENABLED
void SetFormulaRegexEnabled(bool bVal)
void GetDate(sal_uInt16 &rD, sal_uInt16 &rM, sal_Int16 &rY) const
#define SC_UNO_ITEREPSILON
void SetIterEps(double fEps)