InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IPrintDialogData.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Michael Easter
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 data interface for the print dialog in InDesign.
25 //
26 //========================================================================================
27 
28 #ifndef __IPrintDialogData__
29 #define __IPrintDialogData__
30 
31 #include "IPMUnknown.h"
32 #include "IInkList.h"
33 #include "IPrintData.h"
34 #include "IPrintPageInitializer.h"
35 #include "UIDRef.h"
36 
38 {
39 public:
40  // set method for IPrintData object pointer
41  virtual void SetPrintData(IPrintData* iPrintData) = 0;
42 
43  // set method for IInkList to use
44  virtual void SetInkList(IInkList* iInkList) = 0;
45 
46  // set method for document UIDRef object
47  virtual void SetDocUIDRef(const UIDRef& docUIDRef) = 0;
48 
49  // set method for print flags
50  enum {
51  kShowPageSetup = 0x0001,
52  kWorkingOnStyle = 0x0002,
53  kWorkingOnBook = 0x0004,
54  kPrintUsingStyle = 0x0008,
55  kIsNewStyle = 0x0010,
56  kFromPrintBooklet = 0x0020 //Signifies if the print dialog has been opened from PrintBooklet Dialog
57  };
58  virtual void SetFlags(const uint32 flags) = 0;
59 
60  // set/add method for ink screening information by name
61  virtual void SetInkScreening(const PMString& name, bool16 print, const PMReal& frequency, const PMReal& angle) = 0;
62 
63  // set method for ink screening information by index
64  virtual bool16 SetNthInkScreening(int32 index, bool16 print, const PMReal& frequency, const PMReal& angle) = 0;
65 
66  // get method for IPrintData object pointer
67  virtual IPrintData* GetPrintData() const = 0;
68 
69  // get method for IInkList to use
70  virtual IInkList* GetInkList() const = 0;
71 
72  // get method for document UIDRef object
73  virtual const UIDRef& GetDocUIDRef() const = 0;
74 
75  // get method for print flags
76  virtual uint32 GetFlags() const = 0;
77 
78  // get method for ink screening information by ink name
79  virtual bool16 GetInkScreening(const PMString& name, bool16& print, PMReal& frequency, PMReal& angle) const = 0;
80 
81  // get method for ink screening information by index
82  virtual bool16 GetNthInkScreening(int32 index, bool16& print, PMReal& frequency, PMReal& angle) const = 0;
83 
84  // get method for ink screening information by index
85  virtual bool16 GetNthInkScreening(int32 index, PMString& name, bool16& print, PMReal& frequency, PMReal& angle) const = 0;
86 
87  // get method for ink screening information count
88  virtual int32 GetInkScreeningCount() const = 0;
89 
90  // remove method for ink screening information by name
91  virtual void RemoveInkScreening(const PMString& name) = 0;
92 
93  // remove method for ink screening information by index
94  virtual void RemoveNthInkScreening(int32 index) = 0;
95 
96  // clear method for ink screening information
97  virtual void ClearInkScreenings() = 0;
98 
104  virtual void SetInitializer( IPrintPageInitializer* pInit ) = 0;
105 
110  virtual IPrintPageInitializer* GetInitializer() = 0;
111 };
112 
113 #endif // __IPrintDialogData__