Kaydet (Commit) a6636235 authored tarafından Noel Power's avatar Noel Power

post OnPrint event ( application & document ) when printing starts

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 )

Change-Id: Ib75ee9e7ecd41614275033d2be2a351785326e24
üst 5a1d5113
......@@ -50,6 +50,7 @@
#define SFX_EVENT_SAVEASDOC (EVENT_SFX_START + 6)
#define SFX_EVENT_ACTIVATEDOC (EVENT_SFX_START + 7)
#define SFX_EVENT_DEACTIVATEDOC (EVENT_SFX_START + 8)
#define SFX_EVENT_PRINTDOC (EVENT_SFX_START + 9)
#define SFX_EVENT_LOADFINISHED (EVENT_SFX_START + 11)
......
......@@ -320,6 +320,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 ) );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment