![]() | InDesign SDK 20.5 |
Public Member Functions | |
| SnpChooseFile () | |
| virtual | ~SnpChooseFile () |
| ErrorCode | ChooseDocumentToOpen (IDFile &chosenFile) |
| ErrorCode | ChooseFileToOpen (IDFile &chosenFile) |
| ErrorCode | ChooseMultiFilesToOpen (K2Vector< IDFile > &chosenFileList) |
| ErrorCode | ChooseFileToSave (IDFile &chosenFile) |
| ErrorCode | ChooseFileToPlace (IDFile &chosenFile) |
| ErrorCode | ChooseFolder (IDFile &chosenFolder) |
Note this snippet does not actually open, save or place any files, it just shows how to use file browse dialogs to choose files. Taking an action such as opening, saving or placing the chosen file is not within the scope of this snippet.
| inline |
Constructor.
| inlinevirtual |
Destructor.
| ErrorCode SnpChooseFile::ChooseDocumentToOpen | ( | IDFile & | chosenFile | ) |
Shows how to use SDKFileDocumentChooser to allow the user to choose a document to be opened. Note that the file is not actually opened by this method, all that happens is the user is allowed to choose a document using a document file browse dialog.
| chosenFile | is the file selected by the user. |
| ErrorCode SnpChooseFile::ChooseFileToOpen | ( | IDFile & | chosenFile | ) |
Shows how to use SDKFileOpenChooser to allow the user to choose a file to be opened. Note that the file is not actually opened by this method, all that happens is the user is allowed to choose a file using an open file browse dialog.
| chosenFile | is the file selected by the user. |
| ErrorCode SnpChooseFile::ChooseFileToPlace | ( | IDFile & | chosenFile | ) |
Shows how to use SDKFilePlaceChooser to allow the user to choose a file. Note that the file is not actually placed by this method, all that happens is the user is allowed to choose a file using a place file browse dialog.
| chosenFile | is the file selected by the user. |
| ErrorCode SnpChooseFile::ChooseFileToSave | ( | IDFile & | chosenFile | ) |
Shows how to use SDKFileSaveChooser to allow the user to choose a file. Note that the file is not actually saved by this method, all that happens is the user is allowed to choose a file using a save file browse dialog.
| chosenFile | is the file selected by the user. |
| ErrorCode SnpChooseFile::ChooseFolder | ( | IDFile & | chosenFolder | ) |
Shows how to use SDKFolderChooser to allow the user to choose a folder.
| chosenFolder | is the folder chosen by the user. |
Shows how to use SDKFileOpenChooser to allow the user to choose multiple files to be opened. Note that these files are not actually opened by this method, all that happens is the user is allowed to choose files using an open file browse dialog.
| chosenFileList | is the file list selected by the user. |