InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IPrintSetupProvider.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: David Berggren
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
16 //
17 // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
18 // with the terms of the Adobe license agreement accompanying it. If you have received
19 // this file from a source other than Adobe, then your use, modification, or
20 // distribution of it requires the prior written permission of Adobe.
21 //
22 //
23 // Purpose:
24 // Provider interface for setting up or changing the print parameters, prior to
25 // and during the printing process.
26 //
27 // Use the helper class CPrintSetupProvider.h to inherit from instead of this
28 // pure virtual class, so that any future methods added will not break existing
29 // implementations.
30 //
31 //========================================================================================
32 
33 #ifndef __IPrintSetupProvider__
34 #define __IPrintSetupProvider__
35 
36 #include "IPMUnknown.h"
37 #include "IPrintCmdData.h"
38 #include "IBookOutputActionCmdData.h"
39 
40 class IPrintData;
41 class IDocument;
42 class IBook;
43 class IOutputPages;
44 class IInkList;
45 class IPrintJobData;
46 class ITrapStyleListMgr;
47 class IViewPort;
48 class PMRect;
49 class GraphicsData;
52 
62 {
63 public:
74  virtual void StartPrintPub (
75  bool16& bReturn,
76  IDocument* iDoc,
77  UIDRef& styleUIDRef,
78  IPrintCmdData::PrintUIOptions& printPubUIOpt,
79  IInkList* iInkList,
80  ITrapStyleListMgr* iTrapListMgr
81  ) = 0;
82 
93  virtual void StartPrintBook (
94  bool16& bReturn,
95  IBook* iBook,
96  UIDList* pubsUIDList,
98  IInkList* iInkList,
99  ITrapStyleListMgr* iTrapListMgr
100  ) = 0;
101 
107  virtual void BeforePrintUI (
108  bool16& bReturn,
109  IPrintData* iPrintData
110  ) = 0;
111 
125  virtual void BeforeInCopyPrintUI (
126  bool16& bReturn,
127  int32 currentPanel,
128  IInCopyGalleyPrintData* iGalleyPrintData,
129  IInCopyLayoutPrintData* iLayoutPrintData,
130  IPrintData* iPrintData
131  ) = 0;
132 
139  virtual void AfterPrintUI (
140  bool16& bReturn,
141  IPrintData* iPrintData
142  ) = 0;
143 
157  virtual void AfterInCopyPrintUI (
158  bool16& bReturn,
159  int32 currentPanel,
160  IInCopyGalleyPrintData* iGalleyPrintData,
161  IInCopyLayoutPrintData* iLayoutPrintData,
162  IPrintData* iPrintData
163  ) = 0;
164 
171  virtual void BeforePrintGatherCmd (
172  bool16& bReturn,
173  IPrintData* iPrintData,
174  IOutputPages* iOutputPages
175  ) = 0;
176 
184  virtual void AfterPrintGatherCmd (
185  bool16& bReturn,
186  IPrintData* iPrintData,
187  IOutputPages* iOutputPages,
188  IPrintJobData* iPrintJobData
189  ) = 0;
190 
191 
199  virtual void BeforePrintJobParamsInit (
200  bool16& bReturn,
201  IPrintData* iPrintData,
202  IOutputPages* iOutputPages,
203  IPrintJobData* iPrintJobData
204  ) = 0;
205 
213  virtual void AfterPrintJobParamsInit (
214  bool16& bReturn,
215  IPrintData* iPrintData,
216  IOutputPages* iOutputPages,
217  IPrintJobData* iPrintJobData
218  ) = 0;
219 
227  virtual void BeforePrintLoop (
228  bool16& bReturn,
229  IPrintData* iPrintData,
230  IOutputPages* iOutputPages,
231  IPrintJobData* iPrintJobData
232  ) = 0;
233 
243  virtual void EndPrint() = 0;
244 
245 
246  //
247  // Print Loop
248  //
249 
257  virtual void BeginPageEvent (
258  IPrintData* iPrintData,
259  IOutputPages* iOutputPages,
260  IPrintJobData* iPrintJobData,
261  int32* whichPage
262  ) = 0;
263 
272  virtual void BeforeDrawPageEvent (
273  bool16& bReturn,
274  IPrintData* iPrintData,
275  IOutputPages* iOutputPages,
276  IPrintJobData* iPrintJobData,
277  int32* whichPage
278  ) = 0;
279 
289  virtual void BeforeDrawPage (
290  bool16& bReturn,
291  IPrintData* iPrintData,
292  IOutputPages* iOutputPages,
293  int32* whichPage,
294  PMRect* outputRect,
295  GraphicsData* gd
296  ) = 0;
297 
305  virtual void AfterDrawPageEvent (
306  IPrintData* iPrintData,
307  IOutputPages* iOutputPages,
308  IPrintJobData* iPrintJobData,
309  int32* whichPage
310  ) = 0;
311 
321  virtual void BeforeDrawGalleyPageEvent (
322  bool16& bReturn,
323  IPrintData* iPrintData,
324  IOutputPages* iOutputPages,
325  IPrintJobData* iPrintJobData,
326  int32* whichPage
327  ) = 0;
328 
339  virtual void BeforeDrawGalleyPage (
340  bool16& bReturn,
341  IPrintData* iPrintData,
342  IOutputPages* iOutputPages,
343  int32* whichPage,
344  PMRect* outputRect,
345  GraphicsData* gd
346  ) = 0;
347 
356  virtual void AfterDrawGalleyPageEvent (
357  IPrintData* iPrintData,
358  IOutputPages* iOutputPages,
359  IPrintJobData* iPrintJobData,
360  int32* whichPage
361  ) = 0;
362 
370  virtual void EndPageEvent (
371  IPrintData* iPrintData,
372  IOutputPages* iOutputPages,
373  IPrintJobData* iPrintJobData,
374  int32* whichPage
375  ) = 0;
376 
380  virtual void EndPrintingEvent ( ) = 0;
381 
393  virtual void PrintErrorEvent (
394  bool16& bReturn,
395  IPrintData* iPrintData,
396  ErrorCode& errorNum,
397  PMString& errComponent,
398  PMString& errText,
399  PMString& errOtherInfo
400  ) = 0;
401 };
402 
403 #endif