InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ITextAttrMissingImplData.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Michael Burbdige
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 __ITextAttrMissingImplData_h__
25 #define __ITextAttrMissingImplData_h__
26 
27 #include "IPMUnknown.h"
28 #include "TextAttrID.h"
29 
37 {
38  public:
39  enum { kDefaultIID = IID_ITEXTATTRMISSINGIMPLDATA };
40 
41 #if 0
42 
44  virtual void Initialize() = 0;
45 #endif
46 
52  kTreatAsDefault = 0, // Central data management, not copied when missing, ...
55  kTreatAsBlackBox = 1 // Self-managed (no convert, no ref-index), copied when missing
56  };
57 
67  virtual void Set(const ClassID& classId, MissingAttributeType missingType, int16 dataLength, uchar* adoptDataBuffer) = 0;
68 
76  virtual void Set(const ClassID& classId, MissingAttributeType treatAsBlackBox, IPMUnknown *adoptAttr) = 0;
77 
81  virtual ClassID GetClassID() const = 0;
82 
86  virtual int16 GetDataLength() const = 0;
87 
91  virtual const uchar* GetDataBuffer() const = 0;
92 
98  virtual IPMUnknown *QueryEmbeddedAttribute(PMIID faceID = IID_IUNKNOWN) const = 0;
99 
106  virtual bool16 TreatAsBlackBox() const = 0;
107 };
108 
109 #endif