InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IDocumentLayer.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Zak WIlliamson
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 // Describes the attributes of a document wide layer
24 //
25 //========================================================================================
26 
27 #ifndef __IDOCUMENTLAYER__
28 #define __IDOCUMENTLAYER__
29 
30 #include "IPMUnknown.h"
31 #include "LayerID.h"
32 
33 class PMString;
34 
39 class IDocumentLayer : public IPMUnknown
40 {
41 public:
42  enum { kDefaultIID = IID_IDOCUMENTLAYER };
43 
44  typedef enum {
45  kDoNotIgnore = 0,
46  kIgnore = 1,
47  kLeaveUnchanged = 2
48  } IgnoreEnum;
49 
53  virtual void GetName(PMString * pName) const = 0;
54 
58  virtual const PMString& GetName() const = 0;
59 
63  virtual void SetName(const PMString& newName) = 0;
64 
69  virtual const UID& GetColorUID() const = 0;
70 
71 
75  virtual void SetColorUID(const UID &newColor) = 0;
76 
81  virtual bool16 IsLocked() const = 0;
82 
83  // set the lock attribute this layer
84 
88  virtual void SetLocked(bool16 active) = 0;
89 
90 
95  virtual bool16 IsVisible() const = 0;
96 
101  virtual void SetVisible(bool16 visible) = 0;
102 
107  virtual bool16 IsPrintable() const= 0;
108 
112  virtual void SetPrintable(bool16 print) = 0;
113 
118  virtual bool16 IsGuideLocked() const= 0;
119 
123  virtual void SetGuideLocked(bool16 active) = 0;
124 
129  virtual bool16 IsGuideVisible() const= 0;
130 
134  virtual void SetGuideVisible(bool16 visible) = 0;
135 
140  virtual bool16 IsUILayer() const = 0;
141 
145  virtual void SetUILayer(bool16 uiLayer) = 0;
146 
151  virtual bool16 IsExpendableLayer() const = 0;
152 
156  virtual void SetExpendableLayer(bool16 expendableLayer) = 0;
157 
161  virtual void SetIgnoreTextWrapWhenNotVisible(bool16 bIgnoreWhenNotVisible) = 0;
162 
168  virtual bool16 GetIgnoreTextWrapWhenNotVisible(void) const = 0;
169 };
170 
171 #endif