InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IStringConverter.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Anurag Wahi
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 // The IStringConverter interface allows installable string manipulating styles.
24 //
25 // Given a string, this interface will convert that string into another string.
26 //
27 //========================================================================================
28 
29 #ifndef __ISTRINGCONVERTER__
30 #define __ISTRINGCONVERTER__
31 
32 #include "IPMUnknown.h"
33 #include "SectionID.h"
34 
35 class PMString;
36 
40 {
41 public:
42  enum { kDefaultIID = IID_ISTRINGCONVERTER };
43 
48  virtual void GetStyleName(PMString &styleName) const = 0;
49 
53  void GetStyleNameBase(PMString &styleName) const
54  { return GetStyleName(styleName); }
55 
62  virtual bool16 IncludeStyleChoiceInUI() const = 0;
63 
69  virtual void Convert(const PMString& Object, PMString &output) const = 0;
70 };
71 
72 
73 #endif // __ISTRINGCONVERTER__