InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IPrintDialogCmdData.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 // The command data interface for the book printing command in K2.
25 //
26 //========================================================================================
27 
28 #ifndef __IPrintDialogCmdData__
29 #define __IPrintDialogCmdData__
30 
31 #include "IPMUnknown.h"
32 #include "IPrintData.h"
33 #include "IInkList.h"
34 #include "ITrapStyleListMgr.h"
35 #include "IPrintPageInitializer.h"
36 #include "UIDRef.h"
37 
39 {
40 public:
41  // set method for IInkList
42  virtual void SetInkList(IInkList *iInkList) = 0;
43 
44  // set method for ITrapStyleListMgr
45  virtual void SetTrapListMgr (ITrapStyleListMgr* iTrapListMgr) = 0;
46 
47  // set method for print data object
48  virtual void SetPrintData(IPrintData *iPrintData) = 0;
49 
50  // set method for document UIDRef object
51  virtual void SetDocUIDRef(const UIDRef& docUIDRef) = 0;
52 
53  // set method for boolean - different meanings (default false)
54  // kPlatformPrintDialogCmd:
55  // true - show page setup dialog (Mac only)
56  // false - show platform print dialog
57  enum {
58  kShowPageSetup = 0x0001,
59  kWorkingOnStyle = 0x0002,
60  kWorkingOnBook = 0x0004,
61  kPrintUsingStyle = 0x0008,
62  kIsNewStyle = 0x0010,
63  kFromPrintBooklet = 0x0020 //Signifies if the print dialog has been opened from PrintBooklet Dialog
64  };
65  virtual void SetFlags(const uint32 flags) = 0;
66 
67  // set method for the return code (kSuccess or kCancel)
68  virtual void SetReturnCode(const ErrorCode returnCode) = 0;
69 
70  // get method for the IInkList to use
71  virtual IInkList *GetInkList() const = 0;
72 
73  // get method for the ITrapStyleListMgr to use
74  // (This should really by QueryTrapListMgr () since the caller
75  // must call release.)
76  virtual ITrapStyleListMgr* GetTrapListMgr() const = 0;
77 
78  // get method for IPrintData object pointer
79  virtual IPrintData* GetPrintData() const = 0;
80 
81  // get method for document UIDRef object
82  virtual const UIDRef& GetDocUIDRef() const = 0;
83 
84  // get method for the boolean
85  virtual uint32 GetFlags() const = 0;
86 
87  // get method for the return code (kSuccess or kCancel)
88  virtual ErrorCode GetReturnCode() const = 0;
89 
95  virtual void SetInitializer( IPrintPageInitializer* pInit ) = 0;
96 
101  virtual IPrintPageInitializer* GetInitializer() const = 0;
102 };
103 
104 #endif // __IPrintBookCmdData__