#include <xsepsops.h>
Inheritance diagram for XSEPSExportOptions:
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 |
Definition at line 116 of file xsepsops.h.
|
Constructs the dlg.
Definition at line 136 of file xsepsops.cpp. 00136 : DialogOp(XSEPSExportOptions::IDD, XSEPSExportOptions::Mode) 00137 { 00138 }
|
|
Inits the dialog's controls, and calls the base classes OnInitDialog() function.
Reimplemented from Operation. Definition at line 154 of file xsepsops.cpp. 00155 { 00156 Create(); // Modal dialog, so this will actually run the dialog 00157 }
|
|
Inits the dialog's controls, and calls the base classes OnInitDialog() function.
Definition at line 172 of file xsepsops.cpp. 00173 { 00174 OpState OpSt; 00175 return(OpSt); 00176 }
|
|
Inits the dialog's controls, and calls the base classes OnInitDialog() function.
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 }
|
|
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.
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 }
|
|
Definition at line 127 of file xsepsops.h. |
|
Definition at line 128 of file xsepsops.h. |
|
Definition at line 129 of file xsepsops.h. |