InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IOpenedFileInfo Class Referenceabstract

#include <IOpenedFileInfo.h>

Inheritance diagram for IOpenedFileInfo:
IPMUnknown

Public Types

enum  { kDefaultIID = IID_IOPENEDFILEINFO }
 

Public Member Functions

virtual void FileOpened (const IDFile &filePath)=0
 
virtual IDFile GetOpenedFilePath () const =0
 
- Public Member Functions inherited from IPMUnknown
virtual IPMUnknownQueryInterface (PMIID interfaceID) const =0
 
virtual void AddRef () const =0
 
virtual void Release () const =0
 

Detailed Description

Interface for keeping information about the file when it was opened Templates and converted documents open as new files which lose information such as file path. At this point, only file path is being preserved.

Member Function Documentation

virtual void IOpenedFileInfo::FileOpened (const IDFilefilePath)
pure virtual

Called when a file is opened to store data data about the opened file on the document

Parameters
filePaththe full path of the file that was opened
virtual IDFile IOpenedFileInfo::GetOpenedFilePath () const
pure virtual

Returns the file path of the file that was opened

Returns
the file path of the file that was opened