InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ITextControlData.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Frits Habermann
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 // Purpose: ITextControlData provides an interface for storing text along with an object, typically a widget. The interface
24 // is meant to be farily straightforward, with various "Set" methods for different kinds of strings (like numbers
25 // vs. text), and the ability to retreive the string.
26 //
27 //========================================================================================
28 
29 #ifndef __ITEXTCONTROLDATA__
30 #define __ITEXTCONTROLDATA__
31 
32 #include "PMTypes.h"
33 #include "PMString.h"
34 #include "widgetid.h"
35 
37 {
38  public:
39  enum { kDefaultIID = IID_ITEXTCONTROLDATA };
40 
43  enum TextControlDataState { kDirty = 1 };
44 
52  virtual void SetString(const PMString& newString, bool16 invalidate = kTrue,
53  bool16 notifyOfChange = kTrue, bool16 isGoodString = kTrue) = 0;
54 
58  virtual const PMString& GetString() const = 0;
59 };
60 
61 #endif