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@suse.com>
Context
- [PATCH] Change in core[libreoffice-3-6]: post OnPrint event ( application & document ) when printing ... · Noel Power (via Code Review)
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.