InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IFrameType.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Steve Pellegrin
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 __IFRAMETYPE__
25 #define __IFRAMETYPE__
26 
27 #include "IPMUnknown.h"
28 #include "UtilitiesID.h"
29 
30 class IFrameType : public IPMUnknown
31 {
32 public:
33  enum { kDefaultIID = IID_IFRAMETYPE };
34 
35  enum FrameType
36  {
37  kNotAFrame, // Simple page item
38  kGraphicFrame, // Frame with an image
39  kEmptyGraphicFrame, // Graphic frame without content (displays X)
40  kGraphicFrameWithPlaceHolder, // Graphic frame with place holder
41  kTextFrame, // Text frame with textual contents
42  kEmptyTextFrame, // Text frame without textual contents
43  kEndnoteTextFrame // Special text frame for endnotes
44  };
45 
51  virtual FrameType GetFrameType() const = 0;
52 
56  virtual bool16 IsGraphicFrame() const = 0;
57 
61  virtual bool16 IsTextFrame() const = 0;
62 
66  virtual bool16 IsAFrame() const = 0;
67 
71  virtual bool16 IsNotAFrame() const = 0;
72 
77  virtual bool16 IsEmpty() const = 0;
78 
83  virtual bool16 IsLogicallyEmpty() const = 0;
84 
88  virtual bool16 IsEndnoteTextFrame() const = 0;
89 } ;
90 
91 #endif // __IFRAMETYPE__