InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IPDFExportController.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Tommy Donovan
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 of interface
24 // IPDFExportController is used in the PDFExportCmdBoss to control, via events,
25 // which pages are printed.
26 //
27 //========================================================================================
28 
29 #ifndef __IPDFEXPORTCONTROLLER__
30 #define __IPDFEXPORTCONTROLLER__
31 
32 #include "IPMUnknown.h"
33 class IViewPort;
34 class IDataBase;
35 
39 typedef uint32 PDFExportErr;
40 enum
41 {
43  kPDFExportErrSuccess = 0,
45  kPDFExportErrAlreadyStartedUp,
47  kPDFExportErrAlreadyShutDown,
49  kPDFExportErrNoViewPort,
51  kPDFExportErrFileAlreadyOpen,
53  kPDFExportErrFileLocked,
55  kPDFExportErrUnknownFailure,
57  kPDFExportErrStreamCreationFailure
58 };
59 
63 typedef uint32 PDFExportEventID;
64 enum
65 {
67  kPDFExportEventBeginExport = 0,
69  kPDFExportEventDrawPage,
71  kPDFExportEventDrawSpread,
73  kPDFExportEventDrawItem,
75  kPDFExportEventEndExport,
77  kPDFExportEventNewDocument,
79  kPDFExportEventDrawGalleyPage
80 };
81 
84 typedef struct _t_PDFExportEvent {
87  PDFExportEventID id;
100 
109 {
110 public:
117  virtual PDFExportErr StartUp(bool16 bExportPageItems = kFalse) = 0;
118 
124  virtual PDFExportErr GetNextPDFExportEvent(PDFExportEvent* nextEvent) = 0;
125 
131  virtual PDFExportErr ShutDown(bool16 bSaveIt = kTrue) = 0;
132 
136  virtual PMString GetCurrentProgressBarText() = 0;
137 
144  virtual bool16 MakePDFExportEvent(PDFExportEvent *exportEvent, uint32 eventType, int32 currIndex) = 0;
145 };
146 
147 #endif