#include <docview.h>
Inheritance diagram for OpToggleScroll:
Public Member Functions | |
OpToggleScroll () | |
Constructs an OpToggleScroll object. | |
~OpToggleScroll () | |
Destructs an OpToggleScroll object. | |
void | Do (OpDescriptor *) |
Actually "DO" a ToggleScroll operation. | |
Static Public Member Functions | |
static BOOL | Init () |
Create an OpDescriptor for the ToggleScroll operation. | |
static OpState | GetState (String_256 *, OpDescriptor *) |
Find the state of the OpToggleScroll operation. |
Definition at line 674 of file docview.h.
|
Constructs an OpToggleScroll object.
Definition at line 5686 of file docview.cpp. 05687 : Operation() 05688 { 05689 // Empty 05690 }
|
|
Destructs an OpToggleScroll object.
Definition at line 5710 of file docview.cpp.
|
|
Actually "DO" a ToggleScroll operation.
Reimplemented from Operation. Definition at line 5732 of file docview.cpp. 05733 { 05734 PORTNOTE("other","OpToggleScroll::Do - do nothing") 05735 #ifndef EXCLUDE_FROM_XARALX 05736 CCamView *pView = DocView::GetSelected()->GetConnectionToOilView(); 05737 BOOL Prop = pView->GetScrollerStyle(); 05738 pView->SetScrollerStyle(!Prop); 05739 End(); 05740 #endif 05741 }
|
|
Find the state of the OpToggleScroll operation.
Definition at line 5761 of file docview.cpp. 05762 { 05763 PORTNOTETRACE("other","OpToggleScroll::Do - do nothing"); 05764 #ifndef EXCLUDE_FROM_XARALX 05765 CCamView *pView = DocView::GetSelected()->GetConnectionToOilView(); 05766 OpState blobby; 05767 blobby.Ticked = pView->GetScrollerStyle(); 05768 blobby.Greyed = FALSE; 05769 return blobby; 05770 #else 05771 return OpState(); 05772 #endif 05773 }
|
|
Create an OpDescriptor for the ToggleScroll operation.
Reimplemented from SimpleCCObject. Definition at line 5793 of file docview.cpp. 05794 { 05795 PORTNOTETRACE("other","OpToggleScroll::Init - do nothing"); 05796 #ifndef EXCLUDE_FROM_XARALX 05797 return Operation::RegisterOpDescriptor(0, 05798 _R(IDS_TOGGLE_SCROLLBARS), 05799 CC_RUNTIME_CLASS(OpToggleScroll), 05800 OPTOKEN_TOGGLESCROLL, 05801 OpToggleScroll::GetState, 05802 0, // help ID 05803 _R(IDBBL_PROPSCROLLERSOP), // bubble ID 05804 0, // bitmap ID 05805 0, // control ID 05806 SYSTEMBAR_ILLEGAL, // group bar ID 05807 TRUE, 05808 FALSE, 05809 TRUE, 05810 NULL, 05811 0, 05812 0, 05813 TRUE 05814 ); 05815 #else 05816 return FALSE; 05817 #endif 05818 }
|