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

Public Types | |
| enum | { kDefaultIID = IID_IFILENAMEWIDGETCONTROLLER } |
Public Member Functions | |
| virtual void | Set (const PMString &widgetName, const IDFile &fileName, bool16 enabled, bool16 selected, const PMString &defaultText, const PMString &validFileType, const K2Vector< PMString > &validExt)=0 |
| virtual ErrorCode | SetFileName (const IDFile &newName)=0 |
| virtual IDFile | GetFileName () const =0 |
| virtual void | Enable ()=0 |
| virtual void | Disable ()=0 |
| virtual bool16 | GetEnabledState () const =0 |
| virtual void | GetFileTypeInfo (PMString &fileName, K2Vector< PMString > &extensions) 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 that provides methods needed for the fileNameWidget to function properly
| pure virtual |
Use this to disable the edit box and browse button
| pure virtual |
Use this to enable the edit box and browse button
| pure virtual |
Use this to find out if the widget should be enabled or not
| pure virtual |
Use this to get the file name the widget should point to
| pure virtual |
Use this to get the filetype information
| fileName | - The to display for this file type |
| extension | - The extension this file should have |
| pure virtual |
Use this method to set the Controller in the interface
| widgetName | - The anem that should be displayed by the checkbox |
| fileName | - The filename that the widget points to |
| enabled | - Whether this widget should be enabled |
| selected | - Whether this widget should be selected (turned on) |
| defaultText | - The text to display when there is no valid filename |
| validExt | - The extensions that are valid when browsing for files |
| pure virtual |
Use this to set the file name the widget should point to. The name must either point to a file that exists or be an uninitialized IDFile. Any other case will not change the data and will return an error.
| newName | - The name to use |