OpShowPrintBorders Class Reference

Allows the user to toggle the visible state of the print borders Notes: -. More...

#include <optsprin.h>

Inheritance diagram for OpShowPrintBorders:

Operation MessageHandler ListItem CCObject SimpleCCObject List of all members.

Public Member Functions

 OpShowPrintBorders ()
 Constructor for OpShowPrintBorders operation. It is not undoable.
void Do (OpDescriptor *)
 Forces a redraw of the selected DocView and toggles the NodeGrid::RenderFlag flag.

Static Public Member Functions

static BOOL Init ()
 Declares op descriptors for show grid toggle op.
static OpState GetState (String_256 *, OpDescriptor *)
 This item is always available, so long as a document is visible.

Detailed Description

Allows the user to toggle the visible state of the print borders Notes: -.

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

Definition at line 465 of file optsprin.h.


Constructor & Destructor Documentation

OpShowPrintBorders::OpShowPrintBorders  ) 
 

Constructor for OpShowPrintBorders operation. It is not undoable.

Author:
Mark_Neves (Xara Group Ltd) <camelotdev@xara.com>
Date:
10/5/95
Parameters:
[INPUTS] 
[OUTPUTS] 
Returns:

Errors: None

Definition at line 4150 of file optsprin.cpp.

04151 {
04152 }


Member Function Documentation

void OpShowPrintBorders::Do OpDescriptor  )  [virtual]
 

Forces a redraw of the selected DocView and toggles the NodeGrid::RenderFlag flag.

Author:
Mark_Neves (Xara Group Ltd) <camelotdev@xara.com>
Date:
10/5/95
Parameters:
None [INPUTS]
None [OUTPUTS]
Returns:
None

Errors: None

Reimplemented from Operation.

Definition at line 4168 of file optsprin.cpp.

04169 {
04170     DocView *pDocView = DocView::GetSelected();
04171 
04172     if (pDocView != NULL)
04173     {
04174         pDocView->SetShowPrintBorders(!pDocView->GetShowPrintBorders());
04175         pDocView->ForceRedraw(TRUE);
04176     }
04177 
04178     End();
04179 }

OpState OpShowPrintBorders::GetState String_256 ,
OpDescriptor
[static]
 

This item is always available, so long as a document is visible.

Author:
Mark_Neves (Xara Group Ltd) <camelotdev@xara.com>
Date:
10/5/95
Parameters:
[INPUTS] 
[OUTPUTS] 
Returns:

Errors: None

Definition at line 4195 of file optsprin.cpp.

04196 {
04197     OpState OpSt;
04198 
04199     DocView *pDocView = DocView::GetSelected();
04200     if (pDocView != NULL)
04201         OpSt.Ticked = pDocView->GetShowPrintBorders();
04202 
04203     return OpSt;
04204 }

BOOL OpShowPrintBorders::Init void   )  [static]
 

Declares op descriptors for show grid toggle op.

/

/*!

Author:
Mark_Neves (Xara Group Ltd) <camelotdev@xara.com>
Date:
10/5/95
Parameters:
None [INPUTS]
None [OUTPUTS]
Returns:
TRUE if worked, FALSE if failed (out of memory)

Errors: Returns FALSE on failure. Scope: Static

Reimplemented from SimpleCCObject.

Definition at line 4115 of file optsprin.cpp.

04116 {
04117     return RegisterOpDescriptor(    0,
04118                                     _R(IDS_SHOWPRINTBORDERS),
04119                                     CC_RUNTIME_CLASS(OpShowPrintBorders),
04120                                     OPTOKEN_SHOWPRINTBORDERS,
04121                                     GetState,
04122                                     0,                          // help ID 
04123                                     _R(IDBBL_PRINTBORDERS),         // bubble help
04124                                     _R(IDD_BARCONTROLSTORE),        // resource ID
04125                                     _R(IDC_PRINTBORDERS),           // control ID
04126                                     SYSTEMBAR_FILE,             // Bar ID
04127                                     TRUE,                       // Recieve system messages
04128                                     FALSE,                      // Smart duplicate operation
04129                                     TRUE,                       // Clean operation
04130                                     0,                          // No vertical counterpart
04131                                     0,                          // String for one copy only error
04132                                     (DONT_GREY_WHEN_SELECT_INSIDE | GREY_WHEN_NO_CURRENT_DOC) // Auto state flags
04133                                 );
04134 }


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