summaryrefslogtreecommitdiff
path: root/vcl/inc
diff options
context:
space:
mode:
authorKatarina Behrens <Katarina.Behrens@cib.de>2017-12-21 23:09:33 +0100
committerKatarina Behrens <Katarina.Behrens@cib.de>2017-12-22 09:23:37 +0100
commit2113282cf957943d08999e7c7071a76734cf2c00 (patch)
tree7661f7428bddb12fd1c2410e662a3b7638114458 /vcl/inc
parent1c70d20fcb3a0e8a0e9752b0e3ee45532da8f72a (diff)
tdf#79077: Mildly improved user experience
Change-Id: I3cf63d06c3c238ed936a8dd0287cfbe02e8e39be Reviewed-on: https://gerrit.libreoffice.org/46936 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
Diffstat (limited to 'vcl/inc')
-rw-r--r--vcl/inc/jobset.h6
-rw-r--r--vcl/inc/printerinfomanager.hxx2
2 files changed, 8 insertions, 0 deletions
diff --git a/vcl/inc/jobset.h b/vcl/inc/jobset.h
index 5ff4c38e9a24..af9fec49084f 100644
--- a/vcl/inc/jobset.h
+++ b/vcl/inc/jobset.h
@@ -44,6 +44,9 @@ private:
sal_uInt32 mnDriverDataLen; //< length of system specific data
sal_uInt8* mpDriverData; //< system specific data (will be streamed a byte block)
bool mbPapersizeFromSetup;
+ // setup mode
+ PrinterSetupMode meSetupMode;
+ // TODO: orig paper size
std::unordered_map< OUString, OUString > maValueMap;
public:
@@ -89,6 +92,9 @@ public:
bool GetPapersizeFromSetup() const { return mbPapersizeFromSetup; }
void SetPapersizeFromSetup(bool bPapersizeFromSetup);
+ PrinterSetupMode GetPrinterSetupMode() const { return meSetupMode; }
+ void SetPrinterSetupMode(PrinterSetupMode eMode);
+
const std::unordered_map< OUString, OUString >& GetValueMap() const
{ return maValueMap; }
void SetValueMap(const OUString& rKey, const OUString& rValue);
diff --git a/vcl/inc/printerinfomanager.hxx b/vcl/inc/printerinfomanager.hxx
index d820cfcc6057..0cb01f155075 100644
--- a/vcl/inc/printerinfomanager.hxx
+++ b/vcl/inc/printerinfomanager.hxx
@@ -27,6 +27,7 @@
#include <vcl/dllapi.h>
#include <vcl/jobdata.hxx>
+#include <vcl/prntypes.hxx>
#include <osl/file.hxx>
#include "unx/helper.hxx"
@@ -52,6 +53,7 @@ struct PrinterInfo : JobData
// a list of special features separated by ',' not used by psprint
// but assigned from the outside (currently for "fax","pdf=","autoqueue","external_dialog")
OUString m_aFeatures;
+ PrinterSetupMode meSetupMode;
PrinterInfo()
: JobData()