diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2020-11-25 16:22:11 +0100 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2020-11-30 09:32:10 +0100 |
commit | c906412f74b719050a2a3ea412c394587e7c73f2 (patch) | |
tree | 75fe74ae6190565e2b1d4e6c152099dfdc09a3ae /sfx2 | |
parent | 6b55b62b3e94fb1d5405264f4b03d107f73705c2 (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/+/106655
Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/printhelper.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sfx2/source/doc/printhelper.cxx b/sfx2/source/doc/printhelper.cxx index 41c2f547c99b..d917ff4d0955 100644 --- a/sfx2/source/doc/printhelper.cxx +++ b/sfx2/source/doc/printhelper.cxx @@ -710,6 +710,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" ) { |