Go to the source code of this file.
Classes | |
struct | NativeFileOpParams |
class | OpMenuLoad |
Imports the specified file as NativeEPS. More... | |
class | OpMenuSave |
Saves the document to the file specified in the params to the disk using the NativeEPS format. More... | |
class | OpSaveAsNativeV1 |
Saves the document to the file specified in the params to the disk using the Version 1 Native format i.e. Native EPS. More... | |
Defines | |
#define | OPTOKEN_NATIVELOAD wxT("NativeLoad") |
#define | OPTOKEN_NATIVESAVE wxT("NativeSave") |
#define | OPTOKEN_SAVEASNATIVEV1 wxT("SaveAsNativeV1") |
#define | OPTOKEN_SAVEASDEFAULT wxT("SaveAsDefault") |
Functions | |
BOOL | InvokeNativeFileOp (const TCHAR *pOpName, CCLexFile *pFile, UINT32 nPrefFilter) |
Shorthand for invoking the native file Operations. |
|
Definition at line 108 of file nativeop.h. |
|
Definition at line 109 of file nativeop.h. |
|
Definition at line 111 of file nativeop.h. |
|
Definition at line 110 of file nativeop.h. |
|
Shorthand for invoking the native file Operations.
Definition at line 163 of file nativeop.cpp. 00164 { 00165 // Find the requested Operation. 00166 OpDescriptor* pOp = OpDescriptor::FindOpDescriptor((TCHAR*) pOpName); 00167 if (pOp == 0) 00168 { 00169 ERROR3("Can't find OpDescriptor in InvokeNativeFileOp"); 00170 return FALSE; 00171 } 00172 00173 // Build the parameter block. 00174 NativeFileOpParams pm; 00175 pm.pFile = pFile; 00176 pm.fStatus = FALSE; 00177 pm.nPrefFilter = nPrefFilter; 00178 00179 // Invoke it with the given parameters, returning its status. 00180 OpParam param( &pm, INT32(0) ); 00181 pOp->Invoke( ¶m ); 00182 return pm.fStatus; 00183 }
|