![]() | InDesign SDK 20.5 |
Public Member Functions | |
| SnpPlaceFile () | |
| virtual | ~SnpPlaceFile () |
| ErrorCode | PlaceViaHelper (ILayoutControlData *layoutControlData, const UIDRef &selectedItemRef) |
How to place a file in a frame.
This snippet code illustrates how to place various files (Importable Files) into InDesign document. By calling SDKLayoutHelper::PlaceFileInFrame(), the details of import process are encapsulated. This sample will bring up a dialog that allows you to choose a file to Import, such as text, incopy file, snippet, images, and InDesign documents.
| inline |
Constructor.
| inlinevirtual |
Destructor.
| ErrorCode SnpPlaceFile::PlaceViaHelper | ( | ILayoutControlData * | layoutControlData, |
| const UIDRef & | selectedItemRef | ||
| ) |
Allow the user to choose a file using a place file browse dialog, then place the file in a frame.
| layoutControlData | |
| selectedItemRef | TODO enhance snippet so that if there is a selection the placed file will replace the selected item. |