summaryrefslogtreecommitdiff
path: root/vcl/source/gdi/print3.cxx
diff options
context:
space:
mode:
authorPhilipp Lohmann <pl@openoffice.org>2009-08-31 13:48:47 +0000
committerPhilipp Lohmann <pl@openoffice.org>2009-08-31 13:48:47 +0000
commit0b66a79a38b3f6fb1790307f6459a62efec35442 (patch)
tree814a1272b0cb246fadb75dda7e773ba149fe2726 /vcl/source/gdi/print3.cxx
parent4e0267c10be60f4e938e3f32b39ea1181496fd89 (diff)
#i92516# no progress on api print
Diffstat (limited to 'vcl/source/gdi/print3.cxx')
-rw-r--r--vcl/source/gdi/print3.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/vcl/source/gdi/print3.cxx b/vcl/source/gdi/print3.cxx
index f4a718abc3b9..2056df3a7d3d 100644
--- a/vcl/source/gdi/print3.cxx
+++ b/vcl/source/gdi/print3.cxx
@@ -1218,6 +1218,16 @@ void PrinterController::createProgressDialog()
beans::PropertyValue* pMonitor = getValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "MonitorVisible" ) ) );
if( pMonitor )
pMonitor->Value >>= bShow;
+ else
+ {
+ const com::sun::star::beans::PropertyValue* pVal = getValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "IsApi" ) ) );
+ if( pVal )
+ {
+ sal_Bool bApi = sal_False;
+ pVal->Value >>= bApi;
+ bShow = ! bApi;
+ }
+ }
if( bShow && ! Application::IsHeadlessModeEnabled() )
{