From 0dbb66fb59205507824534b7130fab1cf2db3eae Mon Sep 17 00:00:00 2001 From: Noel Power Date: Thu, 3 Jan 2013 14:54:19 +0000 Subject: 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 Tested-by: Miklos Vajna --- sfx2/source/view/viewprn.cxx | 1 + 1 file changed, 1 insertion(+) 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 ) ); -- cgit