InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IGraphicMetaDataObject.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: SusanCL
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 // Reveiw Date: 9/30/98
24 //
25 // Purpose: Common interface for all graphic meta data objects.
26 // This interface stores a reference of the meta data object
27 // to the rendering object.
28 //
29 //========================================================================================
30 
31 #ifndef __IGraphicMetaDataObject__
32 #define __IGraphicMetaDataObject__
33 
34 #include "GraphicStylesID.h"
35 #include "IPMUnknown.h"
36 
42 {
43  public:
44  //................................................................................
45  // Data Types
46  //................................................................................
47  enum { kDefaultIID = IID_IGRAPHICMETADATAOBJECT_OBSOLETE };
48 
49 public:
50  // Get/Set UID of the rendering object
51  virtual void SetUID (UID id) = 0;
52  virtual UID GetUID () = 0;
53 
54  // Indicate whether the rendering object should be global or local
55  virtual void SetIsGlobal (bool16 isGlobal) = 0;
56  virtual bool16 GetIsGlobal () = 0;
57 
58  // Called when uidToReplace has changed. The meta data may need to update.
59  // If it does, then it should return a copy of the original meta data, otherwise
60  // return nil
61  virtual IPMUnknown* ReplaceMetaData (UID uidToReplace, IPMUnknown *iNewMetaData, ClassID renderingClassID, bool16 dirtyMetaData, IDataBase*) = 0;
62 };
63 
64 
65 #endif