10 #include <com/sun/star/uno/Sequence.hxx>
11 #include <osl/diagnose.h>
14 #include <globstr.hrc>
30 aInitTabPrefix =
ScResId(STR_TABLE_DEF);
53 assert(SfxPoolItem::operator==(rItem));
64 #define CFGPATH_FORMULA "Office.Calc/Defaults"
66 #define SCDEFAULTSOPT_TAB_COUNT 0
67 #define SCDEFAULTSOPT_TAB_PREFIX 1
68 #define SCDEFAULTSOPT_JUMBO_SHEETS 2
72 return {
"Sheet/SheetCount",
87 OSL_ENSURE(aValues.getLength() == aNames.getLength(),
"GetProperties failed");
88 if(aValues.getLength() != aNames.getLength())
91 sal_Int32 nIntVal = 0;
92 for(
int nProp = 0; nProp < aNames.getLength(); nProp++)
94 if(pValues[nProp].hasValue())
99 if (pValues[nProp] >>= nIntVal)
103 if (pValues[nProp] >>= aPrefix)
107 if (pValues[nProp] >>= bValue)
121 for (
int nProp = 0; nProp < aNames.getLength(); ++nProp)
SCTAB GetInitTabCount() const
static css::uno::Sequence< OUString > GetPropertyNames()
const BorderLinePrimitive2D *pCandidateB assert(pCandidateA)
void SetInitTabPrefix(const OUString &aPrefix)
bool operator==(const ScDefaultsOptions &rOpt) const
bool GetInitJumboSheets() const
void SetOptions(const ScDefaultsOptions &rNew)
virtual ScTpDefaultsItem * Clone(SfxItemPool *pPool=nullptr) const override
#define SCDEFAULTSOPT_JUMBO_SHEETS
bool PutProperties(const css::uno::Sequence< OUString > &rNames, const css::uno::Sequence< css::uno::Any > &rValues)
ScTpDefaultsItem(const ScDefaultsOptions &rOpt)
const OUString & GetInitTabPrefix() const
OUString ScResId(const char *pId)
css::uno::Sequence< css::uno::Any > GetProperties(const css::uno::Sequence< OUString > &rNames)
void SetInitJumboSheets(bool b)
ScDefaultsOptions theOptions
#define SCDEFAULTSOPT_TAB_PREFIX
virtual void Notify(const css::uno::Sequence< OUString > &aPropertyNames) override
virtual void ImplCommit() override
const PropertyValue * pValues
virtual bool operator==(const SfxPoolItem &) const override
virtual ~ScTpDefaultsItem() override
void SetInitTabCount(SCTAB nTabs)
#define SCDEFAULTSOPT_TAB_COUNT