InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IFontPopupMap.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Bernd Paradies
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 // IFontPopupMap
24 // See also bug #570
25 //
26 //========================================================================================
27 
28 #ifndef __IFontPopupMap__
29 #define __IFontPopupMap__
30 
31 #include "IPMUnknown.h"
32 #include "PMString.h"
33 
34 class IPMFont;
35 
36 //----------------------------------------------------------------------------------------
37 // Interface IFontPopupMap
38 //----------------------------------------------------------------------------------------
39 
45 class IFontPopupMap : public IPMUnknown
46 {
47 public:
48  virtual void Init() = 0;
49  // --- initializes the map
50 
51  virtual uint32 GetPopupEntryCount() const = 0;
52  // --- returns the count of the maps
53 
54  virtual const PMString * GetNthPopupEntry( uint32 nAt ) const = 0;
55  // --- returns the nth FontName of the map
56 
57  virtual int32 GetIndexOfFontName( const PMString& FontName ) const = 0;
58  // --- returns the index of a given font name
59 
60  virtual IPMFont * QueryFont( uint32 nAt ) = 0;
61  // --- returns the font at the given index
62 
63  virtual const PMString& GetDefaultFontName() const = 0;
64  // --- returns the default font name: Times Roman
65 };
66 
67 #endif