InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ITextDataValidation.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: ???
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 // [f************************************************************************
24 // ITextDataValidation.h
25 //
26 // f]**********************************************************************
27 //
28 //========================================================================================
29 
30 #ifndef __ITextDataValidation__
31 #define __ITextDataValidation__
32 
33 #include "IPMUnknown.h"
34 #include "PMString.h"
35 #include "widgetid.h"
36 
38 {
39 public:
40  enum { kDefaultIID = IID_ITEXTDATAVALIDATION };
41 
44  typedef enum
45  {
48  kNoError = 0,
70  } RangeError;
71 
75  virtual void EnableRangeChecking(const bool16& checkingOn) = 0;
76 
80  virtual bool16 RangeCheckingEnabled() const = 0;
81 
85  virtual bool16 IsBlankEntryAllowed() const = 0;
86 
90  virtual void AllowBlankEntry(const bool16& blankAllowed) = 0;
91 
96  virtual bool16 IsEntryLegal() = 0;
97 
101  virtual PMString GetErrorString() = 0;
102 
106  virtual PMReal GetUpperLimit() const = 0;
107 
111  virtual void SetUpperLimit(const PMReal& limit) = 0;
112 
116  virtual PMReal GetLowerLimit() const = 0;
117 
121  virtual void SetLowerLimit(const PMReal& limit) = 0;
122 
127  virtual bool16 GetRestoreLastValueOnError() const = 0;
128 
132  virtual void SetRestoreLastValueOnError(const bool16& restoreValue) = 0;
133 };
134 
135 
136 
137 #endif // __ITextDataValidation__