XSEPSExportOptions Class Reference

This gets options relevant to the export of XS EPS. More...

#include <xsepsops.h>

Inheritance diagram for XSEPSExportOptions:

DialogOp Operation MessageHandler ListItem CCObject SimpleCCObject List of all members.

Public Member Functions

 XSEPSExportOptions ()
 Constructs the dlg.
MsgResult Message (Msg *Message)
 Overrides the default OnOK() func so that we can check the values set by the user. If dodgy values have been put in, the user is warned.
void Do (OpDescriptor *)
 Inits the dialog's controls, and calls the base classes OnInitDialog() function.

Static Public Member Functions

static BOOL Init ()
 Inits the dialog's controls, and calls the base classes OnInitDialog() function.
static OpState GetState (String_256 *, OpDescriptor *)
 Inits the dialog's controls, and calls the base classes OnInitDialog() function.

Static Public Attributes

static BOOL Aborted = FALSE
static const UINT32 IDD = _R(IDD_XSEPSOPS)
static const CDlgMode Mode = MODAL

Detailed Description

This gets options relevant to the export of XS EPS.

Author:
Mark_Neves (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/5/95
See also:

Definition at line 116 of file xsepsops.h.


Constructor & Destructor Documentation

XSEPSExportOptions::XSEPSExportOptions  ) 
 

Constructs the dlg.

Author:
Alex Bligh <alex@alex.org.uk>
Date:
14/06/2006
Parameters:
- [INPUTS]
Returns:
-
See also:
-

Definition at line 136 of file xsepsops.cpp.


Member Function Documentation

void XSEPSExportOptions::Do OpDescriptor  )  [virtual]
 

Inits the dialog's controls, and calls the base classes OnInitDialog() function.

Author:
Alex Bligh <alex@alex.org.uk>
Date:
14/06/2006
Parameters:
- [INPUTS]
Returns:
TRUE if OK, FALSE otherwise
See also:
-

Reimplemented from Operation.

Definition at line 154 of file xsepsops.cpp.

00155 {
00156     Create(); // Modal dialog, so this will actually run the dialog
00157 }

OpState XSEPSExportOptions::GetState String_256 ,
OpDescriptor
[static]
 

Inits the dialog's controls, and calls the base classes OnInitDialog() function.

Author:
Alex Bligh <alex@alex.org.uk>
Date:
14/06/2006
Parameters:
- [INPUTS]
Returns:
TRUE if OK, FALSE otherwise
See also:
-

Definition at line 172 of file xsepsops.cpp.

00173 {
00174     OpState OpSt;
00175     return(OpSt);
00176 }

BOOL XSEPSExportOptions::Init void   )  [static]
 

Inits the dialog's controls, and calls the base classes OnInitDialog() function.

Author:
Alex Bligh <alex@alex.org.uk>
Date:
14/06/2006
Parameters:
- [INPUTS]
Returns:
TRUE if OK, FALSE otherwise
See also:
-

Reimplemented from SimpleCCObject.

Definition at line 191 of file xsepsops.cpp.

00192 {
00193     return (RegisterOpDescriptor(
00194                                     0,
00195                                     _R(IDD_XSEPSOPS),
00196                                     CC_RUNTIME_CLASS(XSEPSExportOptions),
00197                                     OPTOKEN_XSEPSEXPORTOPTIONS,
00198                                     XSEPSExportOptions::GetState,
00199                                     0,  /* help ID */
00200                                     0,  /* bubble help*/
00201                                     0   /* bitmap ID */
00202                                     ));
00203 }

MsgResult XSEPSExportOptions::Message Msg Message  )  [virtual]
 

Overrides the default OnOK() func so that we can check the values set by the user. If dodgy values have been put in, the user is warned.

Author:
Alex Bligh <alex@alex.org.uk>
Date:
14/06/2006
Parameters:
- [INPUTS]
Returns:
-
See also:
-

Reimplemented from DialogOp.

Definition at line 219 of file xsepsops.cpp.

00220 {
00221 
00222     if (IS_OUR_DIALOG_MSG(Message))
00223     {
00224         DialogMsg* Msg = (DialogMsg*)Message;
00225         // Handle ok button
00226         if (Msg->DlgMsg == DIM_CREATE)
00227         {
00228             SetLongGadgetValue(_R(IDC_DPIEDIT), 150, FALSE, 0);
00229             SetLongGadgetValue(_R(IDC_DPIEDIT), 200, FALSE, 1);
00230             SetLongGadgetValue(_R(IDC_DPIEDIT), 300, FALSE, 2);
00231             SetLongGadgetValue(_R(IDC_DPIEDIT), (INT32) EPSFilter::XSEPSExportDPI, FALSE, -1);
00232     
00233             /*
00234             SetBoolGadgetSelected(_R(IDC_PSLEVELAUTO),  EPSFilter::XSEPSExportPSType == 0);
00235             SetBoolGadgetSelected(_R(IDC_PSLEVEL1), EPSFilter::XSEPSExportPSType == 1);
00236             SetBoolGadgetSelected(_R(IDC_PSLEVEL2), EPSFilter::XSEPSExportPSType == 2);
00237             */
00238     
00239             SetBoolGadgetSelected(_R(IDC_EXPORTTEXTASCURVES), EPSFilter::XSEPSExportTextAsCurves);
00240         }
00241         else if (Msg->DlgMsg == DIM_COMMIT)
00242         {
00243             Aborted = FALSE;
00244             // DPI ed field
00245             UINT32 DPI = GetLongGadgetValue(_R(IDC_DPIEDIT),10,2400);
00246             if (DPI < 10)
00247                 DPI = 10;
00248         
00249             if (DPI > 600)
00250                 DPI = 600;
00251 
00252             if (DPI > 300)
00253             {
00254                 INT32 b = InformWarning(_R(IDS_EXPORT_BIGDPI),_R(IDS_OK),_R(IDS_CANCEL));
00255                 if (b != 1)
00256                     Aborted = TRUE;
00257             }
00258 
00259             if (Aborted)
00260             {
00261                 Msg->DlgMsg=DIM_NONE; // prevent dialog from going away
00262             }
00263             else
00264             {
00265                 /*
00266                 // Job 10463: remove PS Level bits - default to Level 2
00267                 INT32 ps = 0;
00268                 if (GetBoolGadgetSelected(_R(IDC_PSLEVEL1)))
00269                     ps = 1;
00270                 if (GetBoolGadgetSelected(_R(IDC_PSLEVEL2)))
00271                     ps = 2;
00272                 */
00273             
00274                 EPSFilter::XSEPSExportDPI    = DPI;
00275                 // EPSFilter::XSEPSExportPSType = ps;
00276             
00277                 EPSFilter::XSEPSExportTextAsCurves = GetBoolGadgetSelected(_R(IDC_EXPORTTEXTASCURVES));
00278             }   
00279         }
00280     }
00281     return DialogOp::Message(Message);
00282 }


Member Data Documentation

BOOL XSEPSExportOptions::Aborted = FALSE [static]
 

Definition at line 127 of file xsepsops.h.

const UINT32 XSEPSExportOptions::IDD = _R(IDD_XSEPSOPS) [static]
 

Definition at line 128 of file xsepsops.h.

const CDlgMode XSEPSExportOptions::Mode = MODAL [static]
 

Definition at line 129 of file xsepsops.h.


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