![]() | InDesign SDK 20.5 |
#include <IToolBoxUtils.h>

Public Types | |
| enum | { kDefaultIID = IID_ITOOLBOXUTILS } |
Public Member Functions | |
| virtual bool16 | SetActiveTool (ITool *itool, ClassID toolType=kPointerToolBoss)=0 |
| virtual ITool * | QueryActiveTool (ClassID toolType=kPointerToolBoss)=0 |
| virtual ITool * | QueryPreviousActiveTool (ClassID toolType=kPointerToolBoss)=0 |
| virtual ITool * | QueryMostRecentSelectionTool ()=0 |
| virtual ITool * | QueryMostRecentCreationTool ()=0 |
| virtual ITool * | QueryTool (ClassID toolClass)=0 |
| virtual int32 | GetNumTools ()=0 |
| virtual ITool * | QueryNthTool (int32 index)=0 |
| virtual void | EnableToolsForViewClass (ClassID theClass)=0 |
| virtual bool16 | IsToolEnabled (ITool *itool)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
This interface provides utility routines for dealing with tools. i.e. Utils<IToolBoxUtils>()->SetActiveTool( ... ) ;
| pure virtual |
Enables/disables tools in the toolbox based on the classID of the passed in view. Tools which don't work in this view are disabled.
| theClass | The class of the view you want to base tool enabling on. |
| pure virtual |
Counts the number of tools that live in the toolbox. This includes tools in the main toolbox, and 'subtools' which are accessible 'under' a toolbox tool.
| pure virtual |
Tests to see if a tool in the tool panel is enabled. This returns kTrue if the tool panel is hidden.
| itool | the tool to test. |
| pure virtual |
Retrieves the currently active tool.
| toolType | the type of the tool you're interested in. Tools of the same type are mutually exclusive. "Traditional" tools(creation, selection,...) are of type kPointerToolBoss |
| pure virtual |
Retrieves the most recently active tool which is classified as a creation tool.
| pure virtual |
Retrieves the most recently active tool which is classified as a selection tool.
| pure virtual |
Gets the nth tool from the toolbox
| index | which tool you're interested in |
| pure virtual |
Retrieves the previous active tool.
| toolType | the type of the tool you're interested in. Tools of the same type are mutually exclusive. "Traditional" tools(creation, selection,...) are of type kPointerToolBoss |
Retrieves the pointer to the tool with the given ClassID
| toolClass | the boss ID of the tool you're interested in |
| pure virtual |
Sets the currently active tool. Tool can be set to nil.
| itool | The tool to set active |
| toolType | the type of the tool. Tools of the same type are mutually exclusive. "Traditional" tools(creation, selection,...) are of type kPointerToolBoss |