InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IDocumentFontUsage.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: lance bushore
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 __IDocumentFontUsage__
25 #define __IDocumentFontUsage__
26 
27 #include "IPMUnknown.h"
28 #include "FontMgrID.h"
29 #include "FontUsageDialogID.h"
30 #include "IPMFont.h"
31 
41 {
42  public:
43  enum { kDefaultIID = IID_IDOCUMENTFONTUSAGE };
44 
50  virtual int32 GetNumMissingFonts() const = 0;
57  virtual const PMString& GetNthMissingFontString(int32 index) const = 0;
64  virtual const PMString& GetNthMissingFontFaceString(int32 index) const = 0;
71  virtual UID GetNthMissingFontUID(int32 index) const = 0; // returns UID of IFontFamily
72 
78  virtual int32 GetNumUsedFonts() const = 0;
85  virtual const PMString& GetNthUsedFontString(int32 index) const = 0;
92  virtual const PMString& GetNthUsedFontFaceString(int32 index) const = 0;
99  virtual UID GetNthUsedFontUID(int32 index) const = 0;
109  virtual int32 GetNthUsedFontFaceIndex(int32 index) const = 0;
110 
116  virtual int32 GetNumGraphicFonts() const = 0;
123  virtual const PMString& GetNthGraphicFontString(int32 index) const = 0;
130  virtual UID GetNthGraphicFontPageItemUID(int32 index) const = 0;
137  virtual bool16 GetNthGraphicFontEmbedded(int32 index) const = 0;
144  virtual bool16 GetNthGraphicFontMissing(int32 index) const = 0;
145 
150  virtual void UpdateFontList() = 0;
151 
158  virtual int32 GetNumFontsByType(IPMFont::FontType type) = 0;
159 };
160 
161 
162 #endif
163  // __IDocumentFontUsage__