OpToggleFore Class Reference

This class represents the ToggleFore operation. Creating an instance of this class and calling its "Do" function will toggle the state of the flag controlling whether any RenderRegions created by the current DocView will be submitted to the background rendering system or not. More...

#include <docview.h>

Inheritance diagram for OpToggleFore:

Operation MessageHandler ListItem CCObject SimpleCCObject List of all members.

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.

Detailed Description

This class represents the ToggleFore operation. Creating an instance of this class and calling its "Do" function will toggle the state of the flag controlling whether any RenderRegions created by the current DocView will be submitted to the background rendering system or not.

Author:
Phil_Martin (Xara Group Ltd) <camelotdev@xara.com>
Date:
9/7/93

Definition at line 645 of file docview.h.


Constructor & Destructor Documentation

OpToggleFore::OpToggleFore  ) 
 

Constructs an OpToggleFore object.

Author:
Phil_Martin (Xara Group Ltd) <camelotdev@xara.com>
Date:
9/7/93
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: -

See also:
-

Definition at line 5545 of file docview.cpp.

05545                            : Operation()
05546 {
05547 
05548 }

OpToggleFore::~OpToggleFore  ) 
 

Destructs an OpToggleFore object.

Author:
Phil_Martin (Xara Group Ltd) <camelotdev@xara.com>
Date:
9/7/93
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: -

See also:
-

Definition at line 5567 of file docview.cpp.

05568 {
05569     // Empty
05570 }


Member Function Documentation

void OpToggleFore::Do OpDescriptor  )  [virtual]
 

Actually "DO" a ToggleFore operation.

Author:
Phil_Martin (Xara Group Ltd) <camelotdev@xara.com>
Date:
9/7/93
Parameters:
Pointer to Operation Descriptor [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: -

See also:
-

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 }

OpState OpToggleFore::GetState String_256 UIDescription,
OpDescriptor
[static]
 

Find the state of the OpToggleFore operation.

Author:
Phil_Martin (Xara Group Ltd) <camelotdev@xara.com>
Date:
9/7/93
Parameters:
Pointer to Operation Descriptor [INPUTS] Text Description
- [OUTPUTS]
Returns:
-

Errors: -

See also:
-

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 }

BOOL OpToggleFore::Init void   )  [static]
 

Create an OpDescriptor for the ToggleFore operation.

Author:
Phil_Martin (Xara Group Ltd) <camelotdev@xara.com>
Date:
9/7/93
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: -

See also:
-

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 }


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