10#include <com/sun/star/uno/Sequence.hxx>
11#include <osl/diagnose.h>
44 theOptions (
std::move( aOpt ))
54 assert(SfxPoolItem::operator==(rItem));
67#define SCDEFAULTSOPT_TAB_COUNT 0
68#define SCDEFAULTSOPT_TAB_PREFIX 1
69#define SCDEFAULTSOPT_JUMBO_SHEETS 2
73 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++)
103 if (
pValues[nProp] >>= aPrefix)
107#if HAVE_FEATURE_JUMBO_SHEETS
111 SetInitJumboSheets(bValue);
126 for (
int nProp = 0; nProp < aNames.getLength(); ++nProp)
const PropertyValue * pValues
static css::uno::Sequence< OUString > GetPropertyNames()
virtual void ImplCommit() override
virtual void Notify(const css::uno::Sequence< OUString > &aPropertyNames) override
void SetOptions(const ScDefaultsOptions &rNew)
bool GetInitJumboSheets() const
void SetInitTabCount(SCTAB nTabs)
SCTAB GetInitTabCount() const
void SetInitTabPrefix(const OUString &aPrefix)
bool operator==(const ScDefaultsOptions &rOpt) const
const OUString & GetInitTabPrefix() const
virtual bool operator==(const SfxPoolItem &) const override
ScDefaultsOptions theOptions
virtual ScTpDefaultsItem * Clone(SfxItemPool *pPool=nullptr) const override
virtual ~ScTpDefaultsItem() override
ScTpDefaultsItem(ScDefaultsOptions aOpt)
static bool PutProperties(css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const css::uno::Sequence< OUString > &rNames, const css::uno::Sequence< css::uno::Any > &rValues, bool bAllLocales)
static css::uno::Sequence< css::uno::Any > GetProperties(css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const css::uno::Sequence< OUString > &rNames, bool bAllLocales)
constexpr OUStringLiteral CFGPATH_FORMULA
#define SCDEFAULTSOPT_TAB_PREFIX
#define SCDEFAULTSOPT_TAB_COUNT
#define SCDEFAULTSOPT_JUMBO_SHEETS
OUString ScResId(TranslateId aId)