23 #include <osl/diagnose.h>
24 #include <com/sun/star/uno/Sequence.hxx>
42 "Page/BrochureRightToLeft",
43 "Output/SinglePrintJob",
45 "Papertray/FromPrinterSetup",
50 "Content/PrintPlaceholders",
51 "Content/PrintHiddenText"
53 const int nCount = m_bIsWeb ? 12 : 18;
55 OUString* pNames = aNames.getArray();
56 for(
int i = 0;
i < nCount;
i++)
58 pNames[
i] = OUString::createFromAscii(aPropNames[
i]);
64 ConfigItem(bWeb ? OUString(
"Office.WriterWeb/Print") : OUString(
"Office.Writer/Print"),
77 OSL_ENSURE(aValues.getLength() == aNames.getLength(),
"GetProperties failed");
78 if(aValues.getLength() == aNames.getLength())
80 for(
int nProp = 0; nProp < aNames.getLength(); nProp++)
82 if(pValues[nProp].hasValue())
87 case 1:
m_bPrintTable = *o3tl::doAccess<bool>(pValues[nProp]);
break;
94 pValues[nProp] >>= nTmp;
102 case 10: pValues[nProp] >>=
m_sFaxName;
break;
104 case 12:
m_bPrintDraw = *o3tl::doAccess<bool>(pValues[nProp]);
break;
135 for(
int nProp = 0; nProp < aNames.getLength(); nProp++)
144 case 5: pValues[nProp] <<=
static_cast<sal_Int32
>(
m_nPrintPostIts) ;
break;
149 case 10: pValues[nProp] <<=
m_sFaxName;
break;
SwPrintOptions(bool bWeb)
virtual void Notify(const css::uno::Sequence< OUString > &aPropertyNames) override
bool m_bPrintPageBackground
bool m_bPrintTextPlaceholder
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)
virtual void ImplCommit() override
const PropertyStruct aPropNames[]
SwPostItMode
this must match the definitions in css::text::NotePrintMode
const PropertyValue * pValues
bool m_bPrintEmptyPages
Print empty pages.
virtual ~SwPrintOptions() override
css::uno::Sequence< OUString > GetPropertyNames() const
SwPostItMode m_nPrintPostIts