[PATCH] Change in core[libreoffice-3-6]: post OnPrint event ( application & document ) when printing ...

Noel Power (via Code Review) gerrit at gerrit.libreoffice.org
Thu Jan 3 07:10:59 PST 2013


Hi,

I have submitted a patch for review:

    https://gerrit.libreoffice.org/1536

To pull it, you can do:

    git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/36/1536/1

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
---
M sfx2/source/view/viewprn.cxx
1 file changed, 1 insertion(+), 0 deletions(-)



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 @@
             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 ) );

-- 
To view, visit https://gerrit.libreoffice.org/1536
To unsubscribe, visit https://gerrit.libreoffice.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib75ee9e7ecd41614275033d2be2a351785326e24
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: libreoffice-3-6
Gerrit-Owner: Noel Power <noel.power at suse.com>



More information about the LibreOffice mailing list