![]() | InDesign SDK 20.5 |

Public Types | |
| enum | { kDefaultIID = IID_ITEXTDATAVALIDATION } |
| enum | RangeError { kNoError = 0, kNoEntryWhenRequired, kInvalidValue, kValueOutOfRange, kInvalidStartPage, kInvalidEndPage, kUnknownPagesInRange, kAmbiguousPage } |
Public Member Functions | |
| virtual void | EnableRangeChecking (const bool16 &checkingOn)=0 |
| virtual bool16 | RangeCheckingEnabled () const =0 |
| virtual bool16 | IsBlankEntryAllowed () const =0 |
| virtual void | AllowBlankEntry (const bool16 &blankAllowed)=0 |
| virtual bool16 | IsEntryLegal ()=0 |
| virtual PMString | GetErrorString ()=0 |
| virtual PMReal | GetUpperLimit () const =0 |
| virtual void | SetUpperLimit (const PMReal &limit)=0 |
| virtual PMReal | GetLowerLimit () const =0 |
| virtual void | SetLowerLimit (const PMReal &limit)=0 |
| virtual bool16 | GetRestoreLastValueOnError () const =0 |
| virtual void | SetRestoreLastValueOnError (const bool16 &restoreValue)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
fErrorState values set in IsEntryLegal.
| pure virtual |
Set the policy for this control for allowing blank entries.
| blankAllowed | [IN]: pass in kTrue to allow blanks, otherwise pass in kFalse. |
| pure virtual |
Turn on (kTrue) or off (kFalse) range checking for this control.
| checkingOn | [IN]: the boolean flag to turn on/off. |
| pure virtual |
Get the error string if the entry is not legal. An empty string will return if the entry is legal.
| pure virtual |
Get the lower limit for this control. The control's value must be >= this value.
| pure virtual |
Get the boolean flag indicates if we should restore the last good value of this control or not when an error occurs. For example, when IsEntryLegal() returns kFalse, we might check this to see if he last good value should be restored or not.
| pure virtual |
Get the upper limit value for this control. The control's value must be <= this value.
| pure virtual |
Get the policy for this control for allowing blank entries (kTrue) or not (kFalse).
| pure virtual |
Check if the text value in the control is legal or not. Return kTrue for valid entry, kFalse for invalid entry.
| pure virtual |
Get the range checking flag for enabling range checking (kTrue) or not (kFalse).
| pure virtual |
Set the lower limit value for this control.
| limit | [IN]: the new lower limit for this control. |
| pure virtual |
Set the boolean value for the control indicates that it wants to restore last good value if there is error.
| restoreValue | [IN]: passin kTrue to restore last good value on error, otherwise pass in kFalse. Default value is set as kTrue in CTextDataValidation.cpp. |
| pure virtual |
Set the upper limit value for this control.
| limit | [IN]: the new upper limit for this control. |