|
Public Member Functions |
| RotateTool () |
| ~RotateTool () |
BOOL | Init () |
| Called after tool's constructor to ask it whether it wants to exist or not. Each tool is asked in two passes, so that its existence can depend on another tool. If a tool does not want to exist, it should return FALSE, when it will be deleted.
|
void | Describe (void *InfoPtr) |
| Asks a tool for more information. The pointer points to a struct such as ToolInfo_v1 which the tool should fill in. All fields should be filled (NULL is OK for char* variables). The type of the pointer is not explicitly defined so the structure can evolve while keeping backward compatibility.
|
UINT32 | GetID () |
virtual void | SelectChange (BOOL) |
| Used to inform a tool that it is being selected or deselected. Default behaviour is to do nothing. A real tool should update the infobar when the tool is selected - this is usually all a tool will do.
|
virtual void | OnClick (DocCoord, ClickType, ClickModifiers, Spread *) |
| This function should be overridden by any tool that wants to receive clicks on the document. When DocView receives a click event from the OIL layer it finds the current tool and calls this function.
|
virtual void | RenderToolBlobs (Spread *, DocRect *) |
| This function is called in the main drawing loop to get the tool to render its blobs (ie the centre of rotation for the rotation tool). Since this is the base class version of this function and will be called if the tool does not provide its own RenderToolBlobs function, then it can be assumed that the tool does not need to draw anything, so it does nothing.
|
Private Member Functions |
| CC_DECLARE_MEMDUMP (RotateTool) |
Private Attributes |
DocCoord | ClickStart |
Spread * | StartSpread |
DocCoord | CentreOfRot |
DocRect | SelectionBox |
BOOL | IsSelection |
Cursor * | pRotateCursor |
RotateInfoBarOp * | pInfoBarOp |
Static Private Attributes |
static char * | FamilyName |
static char * | ToolName |
static char * | Purpose |
static char * | Author |