InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IUsedFontList.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: ekenning
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 __IUsedFontList__
25 #define __IUsedFontList__
26 
27 #include "IPMUnknown.h"
28 #include "PMString.h"
29 #include "FontMgrID.h"
30 
31 // Note: DocFontList.cpp implementation uses this interface
32 
36 class IUsedFontList : public IPMUnknown
37 {
38  public:
39  enum { kDefaultIID = IID_IUSEDFONTLIST };
40 
44  virtual int32 CountUsedFontFamilies() = 0;
45 
51  virtual UID GetUsedFontFamily(int32 n) = 0;
52 
58  virtual int32 CountUsedFontVariants(UID family) = 0;
59 
67  virtual const PMString* GetUsedFontVariant(UID family, int32 n) = 0;
68 
69 
74  virtual int32 CountMissingFonts(bool16 recalculate = kTrue) = 0;
75 
88  virtual void GetMissingFont(int32 n, UID *family, PMString& setMe,
89  int32 *oldTech = nil, int32 *newTech = nil, bool16 recalculate = kTrue) = 0;
90 
94  virtual void ForceRecalculateAll() = 0;
95 
104  UID familyReplacement) = 0;
105 
108  virtual void AttemptAutoActivation() = 0;
109 };
110 
111 
112 #endif
113  // __IUsedFontList__