InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
SnpPlaceFile Class Reference

Public Member Functions

 SnpPlaceFile ()
 
virtual ~SnpPlaceFile ()
 
ErrorCode PlaceViaHelper (ILayoutControlData *layoutControlData, const UIDRef &selectedItemRef)
 

Detailed Description

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.

See Also
SDKLayoutHelper

Constructor & Destructor Documentation

SnpPlaceFile::SnpPlaceFile ()
inline

Constructor.

virtual SnpPlaceFile::~SnpPlaceFile ()
inlinevirtual

Destructor.

Member Function Documentation

ErrorCode SnpPlaceFile::PlaceViaHelper (ILayoutControlDatalayoutControlData,
const UIDRefselectedItemRef 
)

Allow the user to choose a file using a place file browse dialog, then place the file in a frame.

Parameters
layoutControlData
selectedItemRefTODO enhance snippet so that if there is a selection the placed file will replace the selected item.
Returns
kSuccess on success, kCancel on cancel, other ErrorCode otherwise.