20#include <com/sun/star/uno/Any.hxx>
21#include <com/sun/star/uno/Sequence.hxx>
22#include <osl/diagnose.h>
24#include <printopt.hxx>
62 assert(SfxPoolItem::operator==(rItem));
75#define SCPRINTOPT_EMPTYPAGES 0
76#define SCPRINTOPT_ALLSHEETS 1
77#define SCPRINTOPT_FORCEBREAKS 2
81 return {
"Page/EmptyPages",
98 OSL_ENSURE(aValues.getLength() == aNames.getLength(),
"GetProperties failed");
99 if(aValues.getLength() != aNames.getLength())
const PropertyValue * pValues
void SetOptions(const ScPrintOptions &rNew)
static css::uno::Sequence< OUString > GetPropertyNames()
virtual void Notify(const css::uno::Sequence< OUString > &aPropertyNames) override
virtual void ImplCommit() override
bool GetSkipEmpty() const
bool operator==(const ScPrintOptions &rOpt) const
void SetSkipEmpty(bool bVal)
bool GetForceBreaks() const
void SetAllSheets(bool bVal)
void SetForceBreaks(bool bVal)
bool GetAllSheets() const
virtual ScTpPrintItem * Clone(SfxItemPool *pPool=nullptr) const override
ScTpPrintItem(const ScPrintOptions &rOpt)
virtual bool operator==(const SfxPoolItem &) const override
virtual ~ScTpPrintItem() override
ScPrintOptions theOptions
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)
bool EnableNotification(const css::uno::Sequence< OUString > &rNames, bool bEnableInternalNotification=false)
static css::uno::Sequence< css::uno::Any > GetProperties(css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const css::uno::Sequence< OUString > &rNames, bool bAllLocales)
#define SCPRINTOPT_FORCEBREAKS
constexpr OUStringLiteral CFGPATH_PRINT
#define SCPRINTOPT_ALLSHEETS
#define SCPRINTOPT_EMPTYPAGES