sfx2/source/view/viewprn.cxx | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 0dbb66fb59205507824534b7130fab1cf2db3eae
Author: Noel Power <[email protected]>
Date: Thu Jan 3 14:54:19 2013 +0000
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 <[email protected]>
Tested-by: Miklos Vajna <[email protected]>
diff --git a/sfx2/source/view/viewprn.cxx b/sfx2/source/view/viewprn.cxx
index a8c19a2..d3a0818 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 ) );
_______________________________________________
Libreoffice-commits mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits