OpToggleScroll Class Reference

This class represents the ToggleScroll operation. Creating an instance of this class and calling its "Do" function will change the state of the BOOL which determines whether standard Window scroll bars or RISCOS-like proportional scroll bars are used. More...

#include <docview.h>

Inheritance diagram for OpToggleScroll:

Operation MessageHandler ListItem CCObject SimpleCCObject List of all members.

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.

Detailed Description

This class represents the ToggleScroll operation. Creating an instance of this class and calling its "Do" function will change the state of the BOOL which determines whether standard Window scroll bars or RISCOS-like proportional scroll bars are used.

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

Definition at line 674 of file docview.h.


Constructor & Destructor Documentation

OpToggleScroll::OpToggleScroll  ) 
 

Constructs an OpToggleScroll object.

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

Errors: -

See also:
-

Definition at line 5686 of file docview.cpp.

05687   : Operation()
05688 {
05689     // Empty
05690 }

OpToggleScroll::~OpToggleScroll  ) 
 

Destructs an OpToggleScroll object.

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

Errors: -

See also:
-

Definition at line 5710 of file docview.cpp.

05711 {
05712 }


Member Function Documentation

void OpToggleScroll::Do OpDescriptor  )  [virtual]
 

Actually "DO" a ToggleScroll operation.

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

Errors: -

See also:
-

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 }

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

Find the state of the OpToggleScroll operation.

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

Errors: -

See also:
-

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 }

BOOL OpToggleScroll::Init void   )  [static]
 

Create an OpDescriptor for the ToggleScroll 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 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 }


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