![]() | InDesign SDK 20.5 |
#include <IEditBoxAttributes.h>

Public Types | |
| enum | { kDefaultIID = IID_IEDITBOXATTRIBUTES } |
Public Member Functions | |
| virtual void | SetNudgeButtonWidgetID (const WidgetID &nudgeButton)=0 |
| virtual WidgetID | GetNudgeButtonWidgetID () const =0 |
| virtual void | SetSmallNudgeAmount (const PMReal &increment)=0 |
| virtual PMReal | GetSmallNudgeAmount () const =0 |
| virtual void | SetLargeNudgeAmount (const PMReal &increment)=0 |
| virtual PMReal | GetLargeNudgeAmount () const =0 |
| virtual CharCounter | GetMaxNumChars () const =0 |
| virtual void | SetMaxNumChars (const CharCounter &maxNumChars)=0 |
| virtual bool16 | IsEditboxReadOnly () const =0 |
| virtual void | SetEditboxReadOnly (const bool16 &readOnly)=0 |
| virtual bool16 | ShouldNotifyEveryStroke () const =0 |
| virtual void | SetNotifyEveryStroke (const bool16 &flag)=0 |
| virtual void | SelectRange (const CharCounter &startOfRange, const CharCounter &endOfRange=kEndOfRange)=0 |
| virtual CharCounter | GetStartOfSelection () const =0 |
| virtual CharCounter | GetEndOfSelection () const =0 |
| virtual bool16 | IsMultiLine () const =0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Interface which maintains current editbox settings.
| pure virtual |
Get the end index of the selected text
| pure virtual |
Get the large nudge amount to use for the associated nudge button widget. Note that for editboxes which use a measurement system, the measurement system defines it's own large and small nudge amount, so this number is used as a multiplier of the base UOM nudge amount.
| pure virtual |
Get the max number of characters which can be input into this editbox. The editbox will prevent users from entering more than this number of characters.
| pure virtual |
Get the widget ID for the associated nudge button widget
| pure virtual |
Get the small nudge amount to use for the associated nudge button widget. Note that for editboxes which use a measurement system, the measurement system defines it's own large and small nudge amount, so this number is used as a multiplier of the base UOM nudge amount.
| pure virtual |
Get the beginning index of the selected text
| pure virtual |
Check if this editbox is read only. Users cannot type in editboxes which are marked read-only.
| pure virtual |
Check if this editbox supports multiple lines. Most editboxes do not.
| pure virtual |
Select a range of text in the editbox.
| startOfRange | the beginning index for the new selection. |
| endOfRange | the ending index for the new selection. |
| pure virtual |
Set if this editbox is read only. Users cannot type in editboxes which are marked read-only.
| readOnly | kTrue if this editbox is now read only. |
| pure virtual |
Set the large nudge amount to use for the associated nudge button widget. Note that for editboxes which use a measurement system, the measurement system defines it's own large and small nudge amount, so this number is used as a multiplier of the base UOM nudge amount.
| increment | large nudge amount to use. |
| pure virtual |
Set the max number of characters which can be input into this editbox. The editbox will prevent users from entering more than this number of characters.
| maxNumCharsnew | maximum allowed characters |
| pure virtual |
Set if this editbox needs to notify after every keystroke. Usually editboxes only notify that their text has changed when the editbox looses the text focus. If a particular observer cares to enable/disable or do something else based on every keystroke, you need to turn this flag on.
| flag | kTrue if this editbox should notify after every keystroke. |
| pure virtual |
Set the widget ID for the associated nudge button widget
| nudgeButton | the nudge button that goes with this editbox. |
| pure virtual |
Set the small nudge amount to use for the associated nudge button widget. Note that for editboxes which use a measurement system, the measurement system defines it's own large and small nudge amount, so this number is used as a multiplier of the base UOM nudge amount.
| increment | small nudge amount to use. |
| pure virtual |
Check if this editbox needs to notify after every keystroke. Usually editboxes only notify that their text has changed when the editbox looses the text focus. If a particular observer cares to enable/disable or do something else based on every keystroke, you need to turn this flag on.