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

Public Types | |
| enum | { kDefaultIID = IID_ISTRINGLISTCONTROLDATA } |
list position constants | |
| enum | { kBeginning = 0, kEnd = -2, kInvalidStringIndex = -1 } |
| virtual void | AddString (const PMString &newString, int32 at=kEnd, bool16 invalidate=kTrue, bool16 notifyOfChange=kTrue)=0 |
| virtual void | RemoveString (int32 index, bool16 invalidate=kTrue, bool16 notifyOfChange=kTrue)=0 |
| virtual void | Clear (bool16 invalidate=kTrue, bool16 notifyOfChange=kTrue)=0 |
| virtual PMString | GetString (int32 index) const =0 |
| virtual void | SetString (int32 index, const PMString &replaceString, bool16 invalidate=kTrue, bool16 notifyOfChange=kTrue)=0 |
| virtual int32 | GetIndex (const PMString &string, bool16 skipIfDisabled=kFalse) const =0 |
| virtual int32 | GetIndexOfPartialString (const PMString &stringBeginning, bool16 caseSensitive, bool16 skipIfDisabled=kFalse) const =0 |
| virtual int32 | Length () const =0 |
| virtual void | Enable (int32 index, bool16 doEnable=kTrue, bool16 invalidate=kTrue, bool16 notifyOfChange=kTrue)=0 |
| virtual void | Disable (int32 index, bool16 invalidate=kTrue, bool16 notifyOfChange=kTrue)=0 |
| virtual bool16 | IsEnabled (int32 index) const =0 |
Additional Inherited Members | |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Control Data Interface associated with widgets based on a list of strings (typically a drop downs variant).
| anonymous enum |
| pure virtual |
Add a string to the list.
| newString | IN the string to add |
| at | IN index to add the string, default is at end |
| invalidate | IN invalidate the associated view, default is true |
| notifyOfChange | IN notify the associated subject, default is true |
| pure virtual |
Clear the list (remove all the strings).
| invalidate | IN invalidate the associated view, default is true |
| notifyOfChange | IN notify the associated subject, default is true |
| pure virtual |
Disable the element at the given position in the list.
| index | IN item to disable |
| invalidate | IN invalidate the associated view, default is true |
| notifyOfChange | IN notify the associated subject, default is true |
| pure virtual |
Enable (or disable) the element at the given position in the list.
| index | IN item to enable/disable |
| doEnable | IN enable or disable the item |
| invalidate | IN invalidate the associated view, default is true |
| notifyOfChange | IN notify the associated subject, default is true |
| pure virtual |
Find the index of a string in the list
| string | IN the string to find |
| skipIfDisabled | IN whether or not the match (if any) be skipped if it is disabled |
| pure virtual |
Find the index of a string whose beginning matches the passed in string.
| stringBeginning | IN the string to match |
| caseSensitive | IN should the comparison be case sensitive |
| skipIfDisabled | IN whether or not the match (if any) be skipped if it is disabled |
| pure virtual |
Get one of the strings
| pure virtual |
Is this item enabled?
| pure virtual |
How many strings are in the list?
| pure virtual |
Remove a string to the list.
| index | IN index of string to remove |
| invalidate | IN invalidate the associated view, default is true |
| notifyOfChange | IN notify the associated subject, default is true |
| pure virtual |
Replace one of the strings
| index | IN which string to replace |
| replaceString | IN the new string |
| invalidate | IN invalidate the associated view, default is true |
| notifyOfChange | IN notify the associated subject, default is true |