OpSaveAsNativeV2 Class Reference

Saves the document to the file specified in the params to the disk using the Version 2 Native format. More...

#include <webop.h>

Inheritance diagram for OpSaveAsNativeV2:

OpMenuSave Operation MessageHandler ListItem CCObject SimpleCCObject List of all members.

Static Public Member Functions

static BOOL Init ()
 Registers the OpDescriptor for the Save Operation.
static OpState GetState (String_256 *, OpDescriptor *)
 The OpState function.

Protected Member Functions

virtual UINT32 GetSearchFilterId ()
 To allow different ops to just specify different filters and reuse the same operation code to save out the file in different file formats.
virtual BOOL FixFileType ()
 To determine whether this operation requires the file type or extension on the specified file path to be correct and match the filter we are about to use. This baseclass version says no as the old native save operation did not do it.

Detailed Description

Saves the document to the file specified in the params to the disk using the Version 2 Native format.

Author:
Neville_Humphrys (Xara Group Ltd) <camelotdev@xara.com>
Date:
16/7/96

Definition at line 148 of file webop.h.


Member Function Documentation

BOOL OpSaveAsNativeV2::FixFileType  )  [protected, virtual]
 

To determine whether this operation requires the file type or extension on the specified file path to be correct and match the filter we are about to use. This baseclass version says no as the old native save operation did not do it.

Author:
Neville_Humphrys (Xara Group Ltd) <camelotdev@xara.com>
Date:
1/8/96
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
TRUE if fixing is required, FALSE otherwise

Reimplemented from OpMenuSave.

Definition at line 262 of file webop.cpp.

00263 {
00264     // Say we do not want it in this baseclass version
00265     return TRUE;
00266 }

UINT32 OpSaveAsNativeV2::GetSearchFilterId  )  [protected, virtual]
 

To allow different ops to just specify different filters and reuse the same operation code to save out the file in different file formats.

Author:
Neville_Humphrys (Xara Group Ltd) <camelotdev@xara.com>
Date:
16/7/96
Parameters:
- [INPUTS]
Returns:
The id of the filter to search for.

Reimplemented from OpMenuSave.

Definition at line 241 of file webop.cpp.

00242 {
00243     return FILTERID_NATIVE;
00244 }

OpState OpSaveAsNativeV2::GetState String_256 ,
OpDescriptor
[static]
 

The OpState function.

Author:
Neville_Humphrys (Xara Group Ltd) <camelotdev@xara.com>
Date:
16/7/96

Reimplemented from OpMenuSave.

Definition at line 318 of file webop.cpp.

00319 {
00320     OpState Blobby;
00321     return Blobby;
00322 }

BOOL OpSaveAsNativeV2::Init void   )  [static]
 

Registers the OpDescriptor for the Save Operation.

Author:
Neville_Humphrys (Xara Group Ltd) <camelotdev@xara.com>
Date:
16/7/96
Returns:
TRUE if it worked, FALSE if not

Reimplemented from OpMenuSave.

Definition at line 279 of file webop.cpp.

00280 {
00281     BOOL InitOK = TRUE;
00282 
00283     // Register the save as web op desciptor
00284     InitOK = RegisterOpDescriptor(
00285                                     0,                          // Tool ID
00286                                     _R(IDS_SAVEASNATIVEV2),         // String resource ID
00287                                     CC_RUNTIME_CLASS(OpSaveAsNativeV2),     // Runtime class
00288                                     OPTOKEN_SAVEASNATIVEV2,     // Token string
00289                                     GetState,                   // GetState function
00290                                     0,                          // help ID
00291                                     _R(IDBBL_SAVEASNATIVEV2),       // bubble help
00292                                     0, //_R(IDD_BARCONTROLSTORE),       // resource ID
00293                                     0, //_R(IDC_FILESAVETEMPLATE),      // control ID
00294                                     SYSTEMBAR_ILLEGAL,          // Bar ID
00295                                     TRUE,                       // Recieve system messages
00296                                     FALSE,                      // Smart duplicate operation
00297                                     TRUE,                       // Clean operation
00298                                     0,                          // No vertical counterpart
00299                                     0,                          // String for one copy only error
00300                                     (DONT_GREY_WHEN_SELECT_INSIDE | GREY_WHEN_NO_CURRENT_DOC) // Auto state flags
00301                                 );
00302     if (!InitOK) return FALSE; 
00303 
00304     // All worked
00305     return TRUE;
00306 }


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 03:58:50 2007 for Camelot by  doxygen 1.4.4