summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2020-11-25 16:22:11 +0100
committerVasily Melenchuk <vasily.melenchuk@cib.de>2020-12-07 13:00:24 +0300
commit97548c6bcb60b12110242fe99eec2bcacb60933d (patch)
treec0abfd4196634b6640a72cb0ce99c7a455e8b4e1 /sfx2
parent728f04ada4757879e2e7fa9177b7ca85f90708fe (diff)
Add 'SinglePrintJobs' to PrintOptions
So that this option can be set via UNO API Change-Id: I0b69162661a4327d59aaed82d5eff98cb50d852c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106593 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/printhelper.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/sfx2/source/doc/printhelper.cxx b/sfx2/source/doc/printhelper.cxx
index 661074a9a102..42936e53fe99 100644
--- a/sfx2/source/doc/printhelper.cxx
+++ b/sfx2/source/doc/printhelper.cxx
@@ -702,6 +702,15 @@ void SAL_CALL SfxPrintHelper::print(const uno::Sequence< beans::PropertyValue >&
aCheckedArgs[nProps++].Value <<= bTemp;
}
+ else if ( rProp.Name == "SinglePrintJobs" )
+ {
+ bool bTemp;
+ if ( !(rProp.Value >>= bTemp) )
+ throw css::lang::IllegalArgumentException();
+ aCheckedArgs[nProps].Name = "SinglePrintJobs";
+ aCheckedArgs[nProps++].Value <<= bTemp;
+ }
+
// Pages-Property
else if ( rProp.Name == "Pages" )
{