#include <davedlg.h>
Inheritance diagram for DaveDlg:

| Public Member Functions | |
| DaveDlg () | |
| Default constructor. | |
| ~DaveDlg () | |
| BOOL | DoCreate () | 
| Starts up the Import from Internet dialog box. | |
| void | UpdateControls () | 
| void | DoWithParam (OpDescriptor *, OpParam *Param) | 
| Creates then opens the dialog in response to a request from the user and allows values to be passed in and returned to the caller via the DaveDlgParam class. | |
| void | Do (OpDescriptor *) | 
| Creates then opens the dialog in response to a request from the user. | |
| virtual MsgResult | Message (Msg *Message) | 
| Handles all messages. | |
| Static Public Member Functions | |
| static BOOL | Init () | 
| DaveDlg Init method. | |
| static OpState | GetState (String_256 *, OpDescriptor *) | 
| DaveDlg GetState method. | |
| Static Public Attributes | |
| static CDlgResID | IDD = _R(IDD_DAVES_DLG) | 
| static const CDlgMode | Mode = MODELESS | 
| Protected Member Functions | |
| void | OnCreate () | 
| Handles a message that the dialog has just been created. | |
| void | OnCommit () | 
| Handles a message that the "Import" button has been clicked. | |
| void | OnURLChanged () | 
| Handles a message that the user has typed in the "URL" field. | |
| void | DoChangeInValue () | 
| Changes the attribute value/s. | |
| BOOL | DoBevel () | 
| BOOL | RemoveBevel () | 
| Static Protected Attributes | |
| static WebAddress | ms_url = WebAddress() | 
| static BOOL | DialogWasCancelled = FALSE | 
| static BOOL | DontHandleNextMessage = FALSE | 
| Private Attributes | |
| INT32 | m_Angle | 
| INT32 | m_Type | 
| INT32 | m_Indent | 
| INT32 | m_Contrast | 
| BOOL | m_bFirst | 
Definition at line 123 of file davedlg.h.
| 
 | 
| Default constructor. 
 
 
 
 
 
 Definition at line 198 of file davedlg.cpp. 00198 : DialogOp(DaveDlg::IDD, DaveDlg::Mode) 00199 { 00200 m_Indent = 0; 00201 m_Contrast = 0; 00202 m_Angle = 0; 00203 m_Type = 0; 00204 } 
 | 
| 
 | 
| 
 Definition at line 206 of file davedlg.cpp. 
 | 
| 
 | 
| Creates then opens the dialog in response to a request from the user. 
 
 
 
 
 
 Reimplemented from Operation. Definition at line 408 of file davedlg.cpp. 
 | 
| 
 | 
| 
 Definition at line 455 of file davedlg.cpp. 00456 { 00457 return TRUE; 00458 } 
 | 
| 
 | 
| Changes the attribute value/s. 
 
 
 
 
 
 Definition at line 451 of file davedlg.cpp. 
 | 
| 
 | 
| Starts up the Import from Internet dialog box. 
 
 
 
 
 
 Definition at line 176 of file davedlg.cpp. 00177 { 00178 return TRUE; 00179 } 
 | 
| 
 | ||||||||||||
| Creates then opens the dialog in response to a request from the user and allows values to be passed in and returned to the caller via the DaveDlgParam class. 
 
 
 
 
 
 Reimplemented from Operation. Definition at line 430 of file davedlg.cpp. 
 | 
| 
 | ||||||||||||
| DaveDlg GetState method. 
 
 
 
 
 
 Definition at line 349 of file davedlg.cpp. 00350 { 00351 OpState OpSt; 00352 return(OpSt); 00353 } 
 | 
| 
 | 
| DaveDlg Init method. 
 
 
 
 
 
 Reimplemented from SimpleCCObject. Definition at line 373 of file davedlg.cpp. 00374 { 00375 BOOL InitOK; 00376 00377 InitOK = RegisterOpDescriptor( 00378 0, /* Tool ID */ 00379 _R(IDS_DAVEDLG), 00380 CC_RUNTIME_CLASS(DaveDlg), 00381 OPTOKEN_DAVEDLG, 00382 GetState, 00383 _R(IDH_Command_Import_from_Web), /* help ID */ 00384 0, /* bubble help */ 00385 0, /* resource ID */ 00386 0 /* control ID */ 00387 ); 00388 00389 return (InitOK); 00390 } 
 | 
| 
 | 
| Handles all messages. 
 
 
 
 
 
 
 
 Reimplemented from DialogOp. Definition at line 230 of file davedlg.cpp. 00231 { 00232 return DialogOp::Message(Message); 00233 } 
 | 
| 
 | 
| Handles a message that the "Import" button has been clicked. void DaveDlg::OnCommit() 
 
 
 
 
 
 Definition at line 287 of file davedlg.cpp. 00288 { 00289 //Get the string from the edit field 00290 /* 00291 String_256 strUser=GetStringGadgetValue(_R(IDC_URLIMPORT_URL)); 00292 00293 //Now we want to correct this string. To do this we 00294 //need to set up some correction flags 00295 WebCorrectFlags wcfToUse; 00296 wcfToUse.SetForURLImport(); 00297 00298 //Now make a Web Address object out of the string 00299 //This will correct the string appropriately 00300 WebAddress urlToFetch(strUser, wcfToUse); 00301 00302 //And set our member variable 00303 ms_url=urlToFetch; 00304 */ 00305 00306 00307 } 
 | 
| 
 | 
| Handles a message that the dialog has just been created. void DaveDlg::OnCreate() 
 
 
 
 
 
 Definition at line 264 of file davedlg.cpp. 00265 { 00266 //Put the keyboard focus in the edit field 00267 // SetKeyboardFocus(_R(IDC_DAVE_LW_EDIT)); 00268 } 
 | 
| 
 | 
| Handles a message that the user has typed in the "URL" field. 
 
 
 
 
 
 Definition at line 326 of file davedlg.cpp. 00327 { 00328 //Does nothing at present 00329 //We may need to handle this if we want the Import... button to be greyed 00330 //until the user types in the field 00331 } 
 | 
| 
 | 
| 
 Definition at line 460 of file davedlg.cpp. 00461 { 00462 return TRUE; 00463 } 
 | 
| 
 | 
| 
 Definition at line 465 of file davedlg.cpp. 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
 1.4.4
 1.4.4