InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IPDFPlacePrefs.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Ed Bomke
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 
24 #ifndef __IPDFPLACEPREFS__
25 #define __IPDFPLACEPREFS__
26 
27 #include "PMTypes.h"
28 #include "PDFID.h"
29 
36 class IPDFPlacePrefs : public IPMUnknown
37 {
38  public:
39  enum { kDefaultIID = IID_IPDFPLACEPREFS };
40 // enum { kDontChange = -1 };
41 
42  // Note: the order of this enumeration must exactly match the item ordering in the
43  // Place PDF dialog's "Crop To" dropdown list, including the existence of
44  // an unused entry for the list separator.
45  // Also, the ordering of the items following the separator is generally smallest
46  // to largest - EB 10/30/98
47  enum
48  {
49  kCropToContentVisibleOnly = 0,
50  kCropToUnused, // appears as a separator line
51  kCropToArt,
52  kCropToPage,
53  kCropToTrim,
54  kCropToBleed,
55  kCropToMedia,
56  kCropToContentAllLayers
57  };
58 
62  virtual void CopyData(IPDFPlacePrefs* dataToCopy) = 0;
63 
67  virtual void SetPage(int32 nPage) = 0;
68 
72  virtual int32 GetPage() = 0;
73 
77  virtual void SetCropTo(int32 newCropTo) = 0;
78 
82  virtual int32 GetCropTo() = 0;
83 
87  virtual void SetPreserveScreens(bool16 bPreserve) = 0;
88 
91  virtual bool16 GetPreserveScreens() = 0;
92 
95  virtual void SetTransparentBackground(bool16 bTransparent) = 0;
96 
99  virtual bool16 GetTransparentBackground() = 0;
100 
103  virtual void SetStream(IPMStream* pStream) = 0;
104 
107  virtual IPMStream* GetStream() = 0;
108 
111  virtual void SetUserPassword( PMString strPassword ) = 0;
112 
115  virtual PMString GetUserPassword() = 0;
116 
119  virtual void SetProxyResolution( int32 nDPI ) = 0;
120 
123  virtual int32 GetProxyResolution() = 0;
124 
132  virtual void SetPageRange(const K2Vector<uint32> &list) = 0;
133 
137  virtual void GetPageRange(K2Vector<uint32> &list) = 0;
138 
148  virtual void SetAllPages(uint32 totalPages, bool16 allPages) = 0;
149 
154  virtual bool16 GetAllPages(uint32 *totalPages = nil) = 0;
155 
159  virtual bool16 GetShowPreview() = 0;
160  virtual void SetShowPreview(bool16 b) = 0;
161 };
162 
163 #endif