InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IImportDocOptions.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Dave Stephens
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 // ADOBE CONFIDENTIAL
24 //
25 //========================================================================================
26 
27 #ifndef __IImportDocOptions__
28 #define __IImportDocOptions__
29 
30 #include "IPMUnknown.h"
31 
32 #include "PMTypes.h"
33 
34 #include "EPSID.h"
35 
36 class IDocument;
37 
41 {
42 public:
43  /* Default IID to be used by UseDefaultIID() */
44  enum { kDefaultIID = IID_IIMPORTDOCOPTIONS };
45 
48  typedef enum {
49  kCropToPage = 0,
50  kCropToBleed = 1,
51  kCropToSlug = 2
52  } CropOptions;
53 
63  virtual void Set(const UIDRef& pageItemUIDRef, CropOptions crop = IImportDocOptions::kCropToPage, int32 pageIndex = 0, IDocument *doc = nil) = 0;
64 
68  virtual void Copy(const IImportDocOptions *fromOptions) = 0;
69 
73  virtual void SetCrop(CropOptions crop) = 0;
74 
78  virtual void SetPage(int32 pageIndex) = 0;
79 
84  virtual void SetPageItem(const UIDRef& pageItemUIDRef) = 0;
85 
90  virtual void SetDocument(IDocument *doc) = 0;
91 
94  virtual const UIDRef& GetPageItem() const = 0;
95 
99  virtual IDocument* GetDocument() const = 0;
100 
102  virtual int32 GetPageIndex() const = 0;
103 
106  virtual CropOptions GetCrop() const = 0;
107 
115  virtual void SetPageRange(const K2Vector<uint32> &list) = 0;
116 
120  virtual void GetPageRange(K2Vector<uint32> &list) const = 0;
121 
131  virtual void SetAllPages(uint32 totalPages, bool16 allPages) = 0;
132 
137  virtual bool16 GetAllPages(uint32 *totalPages = nil) const = 0;
138 
142  virtual bool16 GetShowPreview() const = 0;
143  virtual void SetShowPreview(bool16 b) = 0;
144 };
145 
146 #endif