#include <optsprin.h>
Inheritance diagram for OpShowPrintBorders:
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. |
Definition at line 465 of file optsprin.h.
|
Constructor for OpShowPrintBorders operation. It is not undoable.
Definition at line 4150 of file optsprin.cpp.
|
|
Forces a redraw of the selected DocView and toggles the NodeGrid::RenderFlag flag.
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 }
|
|
This item is always available, so long as a document is visible.
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 }
|
|
Declares op descriptors for show grid toggle op. / /*!
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 }
|