summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Power <noel.power@suse.com>2013-01-03 14:54:19 +0000
committerMiklos Vajna <vmiklos@suse.cz>2013-01-04 09:38:27 +0000
commit0dbb66fb59205507824534b7130fab1cf2db3eae (patch)
treecb5e270559278daeb4478dd5165b3fd94abcf71b
parent1cb77e94960d77b1d9cc9f06afa77cbe5920f282 (diff)
post OnPrint event ( application & document ) when printing starts fdo#58269
this event used to get posted, somehow it seems it got dropped somewhere along the line ( looks like the printer and printer monitor code got reworked ) Conflicts: sfx2/inc/sfx2/sfx.hrc Change-Id: Ib75ee9e7ecd41614275033d2be2a351785326e24 Reviewed-on: https://gerrit.libreoffice.org/1536 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
-rw-r--r--sfx2/source/view/viewprn.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sfx2/source/view/viewprn.cxx b/sfx2/source/view/viewprn.cxx
index a8c19a2b0145..d3a08183d211 100644
--- a/sfx2/source/view/viewprn.cxx
+++ b/sfx2/source/view/viewprn.cxx
@@ -326,6 +326,7 @@ void SfxPrinterController::jobStarted()
now.Get100Sec(), now.GetSec(), now.GetMin(), now.GetHour(),
now.GetDay(), now.GetMonth(), now.GetYear() ) );
+ SFX_APP()->NotifyEvent( SfxEventHint(SFX_EVENT_PRINTDOC, GlobalEventConfig::GetEventName( STR_EVENT_PRINTDOC ), mpObjectShell ) );
// FIXME: how to get all print options incl. AdditionalOptions easily?
uno::Sequence < beans::PropertyValue > aOpts;
mpObjectShell->Broadcast( SfxPrintingHint( view::PrintableState_JOB_STARTED, aOpts ) );