InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ICompositeFontMgr.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Kuniko Nagayama
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 __ICompositeFontMgr__
25 #define __ICompositeFontMgr__
26 
27 #include "IPMUnknown.h"
28 #include "IPMFont.h"
29 #include "IWorkspace.h"
30 #include "ICompositeFont.h"
31 #include "IDocFontMgr.h"
32 
33 class PMString;
34 
38 {
39  public:
40 
41  virtual void UpdateFonts(int32 oldSeed) = 0;
42 
43  virtual void GetCompositeFontFolder(IDFile* fileSpec) = 0;
44 
45  virtual PMString GetCompositeFontPath(IPMFont* font) = 0;
46 
47  // import composite fonts with kLoadCompFontCmdBoss
53  virtual void AddImportList(const PMString& fontName) = 0;
54 
60  virtual void AddImportList(const PMString& fontName, PMString psFontName) = 0;
61  virtual int32 GetImportListLength() const = 0;
62  virtual PMString GetImportList(const int32 index) const = 0;
63  virtual bool16 GetImportList(const PMString& fontName) const = 0;
64  virtual void RemoveImportList(const PMString& fontName) = 0;
65  virtual void ClearImportList() = 0;
66  virtual const K2Vector<PMString>& GetImportPSNameList() const = 0;
67 
68  // data for a dialog in listing duplicate fonts
75  virtual void AddCompFontOrgName(UID fontUID, PMString& fontName) = 0;
76  virtual void AddCompFontNewName(UID fontUID, PMString& fontName) = 0;
77 
78  virtual UID GetCompFontOrgName(int32 index, PMString& fontName) = 0;
79  virtual UID GetCompFontNewName(int32 index, PMString& fontName) = 0;
80 
81  virtual int32 GetCompFontOrgNameLength() = 0;
82  virtual int32 GetCompFontNewNameLength() = 0;
83 
84  virtual void ClearCompFontOrgNewName() = 0;
85 
92 
98  virtual PMString GetDefaultJFontInstalled() = 0;
99 
100  virtual void SetDefaultCompositeFontInstalled (IDocFontMgr* docFontMgr, ICompositeFont* defaultData) = 0;
101 
102 };
103 
104 #endif
105 
106 //__ICompositeFontMgr__