#include <docview.h>
Inheritance diagram for OpToggleFore:
Public Member Functions | |
OpToggleFore () | |
Constructs an OpToggleFore object. | |
~OpToggleFore () | |
Destructs an OpToggleFore object. | |
void | Do (OpDescriptor *) |
Actually "DO" a ToggleFore operation. | |
Static Public Member Functions | |
static BOOL | Init () |
Create an OpDescriptor for the ToggleFore operation. | |
static OpState | GetState (String_256 *, OpDescriptor *) |
Find the state of the OpToggleFore operation. |
Definition at line 645 of file docview.h.
|
Constructs an OpToggleFore object.
Definition at line 5545 of file docview.cpp. 05545 : Operation() 05546 { 05547 05548 }
|
|
Destructs an OpToggleFore object.
Definition at line 5567 of file docview.cpp.
|
|
Actually "DO" a ToggleFore operation.
Reimplemented from Operation. Definition at line 5589 of file docview.cpp. 05590 { 05591 if (DocView::GetSelected() != NULL) 05592 DocView::GetSelected()->SetForeBackMode(!DocView::GetSelected()->GetForeBackMode()); 05593 End(); 05594 }
|
|
Find the state of the OpToggleFore operation.
Definition at line 5614 of file docview.cpp. 05615 { 05616 // Default to !ticked and greyed 05617 OpState blobby(FALSE, TRUE); 05618 if (DocView::GetSelected() != NULL) 05619 { 05620 // If we have a selected view then get the state and ungrey 05621 blobby.Ticked = DocView::GetSelected()->GetForeBackMode(); 05622 blobby.Greyed = FALSE; 05623 } 05624 return(blobby); 05625 }
|
|
Create an OpDescriptor for the ToggleFore operation.
Reimplemented from SimpleCCObject. Definition at line 5644 of file docview.cpp. 05645 { 05646 return Operation::RegisterOpDescriptor( 05647 0, 05648 _R(IDS_TOGGLE_FORE_BACK), 05649 CC_RUNTIME_CLASS(OpToggleFore), 05650 OPTOKEN_TOGGLEFORE, 05651 OpToggleFore::GetState, 05652 0, // help ID 05653 0,// _R(IDBBL_FOREBACKGRNDOP), 05654 0, // bitmap ID 05655 0, // control ID 05656 SYSTEMBAR_ILLEGAL, // group bar ID 05657 TRUE, 05658 FALSE, 05659 TRUE, 05660 NULL, 05661 0, 05662 0, 05663 TRUE 05664 ); 05665 }
|