diff options
author | Noel Power <noel.power@suse.com> | 2012-12-19 13:28:48 +0000 |
---|---|---|
committer | Noel Power <noel.power@suse.com> | 2012-12-19 17:40:02 +0000 |
commit | a6636235e6b6f33f77bee31cd06115b7a0fdeff6 (patch) | |
tree | 122540589f88606d4df9170c6da4da7897b11bc8 /sfx2 | |
parent | 5a1d51139c580dc64578d36dc1b4a31a4e5e0ef8 (diff) |
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
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/inc/sfx2/sfx.hrc | 1 | ||||
-rw-r--r-- | sfx2/source/view/viewprn.cxx | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/sfx2/inc/sfx2/sfx.hrc b/sfx2/inc/sfx2/sfx.hrc index d92b301cddec..c2103d32c9ac 100644 --- a/sfx2/inc/sfx2/sfx.hrc +++ b/sfx2/inc/sfx2/sfx.hrc @@ -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) diff --git a/sfx2/source/view/viewprn.cxx b/sfx2/source/view/viewprn.cxx index 7b978d372f18..4902d903b9dd 100644 --- a/sfx2/source/view/viewprn.cxx +++ b/sfx2/source/view/viewprn.cxx @@ -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 ) ); |