OpSaveAsWeb Class Reference

Saves the document to the file specified in the params to the disk using the Web format. More...

#include <webop.h>

Inheritance diagram for OpSaveAsWeb:

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 Web format.

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

Definition at line 122 of file webop.h.


Member Function Documentation

BOOL OpSaveAsWeb::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 158 of file webop.cpp.

00159 {
00160     // Say we do not want it in this baseclass version
00161     return TRUE;
00162 }

UINT32 OpSaveAsWeb::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 137 of file webop.cpp.

00138 {
00139     return FILTERID_WEB;
00140 }

OpState OpSaveAsWeb::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 214 of file webop.cpp.

00215 {
00216     OpState Blobby;
00217     return Blobby;
00218 }

BOOL OpSaveAsWeb::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 175 of file webop.cpp.

00176 {
00177     BOOL InitOK = TRUE;
00178 
00179     // Register the save as web op desciptor
00180     InitOK = RegisterOpDescriptor(
00181                                     0,                          // Tool ID
00182                                     _R(IDS_SAVEASWEB),              // String resource ID
00183                                     CC_RUNTIME_CLASS(OpSaveAsWeb),  // Runtime class
00184                                     OPTOKEN_SAVEASWEB,          // Token string
00185                                     GetState,                   // GetState function
00186                                     0,                          // help ID
00187                                     _R(IDBBL_SAVEASWEB),            // bubble help
00188                                     0, //_R(IDD_BARCONTROLSTORE),       // resource ID
00189                                     0, //_R(IDC_FILESAVETEMPLATE),      // control ID
00190                                     SYSTEMBAR_ILLEGAL,          // Bar ID
00191                                     TRUE,                       // Recieve system messages
00192                                     FALSE,                      // Smart duplicate operation
00193                                     TRUE,                       // Clean operation
00194                                     0,                          // No vertical counterpart
00195                                     0,                          // String for one copy only error
00196                                     (DONT_GREY_WHEN_SELECT_INSIDE | GREY_WHEN_NO_CURRENT_DOC) // Auto state flags
00197                                 );
00198     if (!InitOK) return FALSE; 
00199 
00200     // All worked
00201     return TRUE;
00202 }


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