InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IToolBoxUtils.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Bernd Paradies
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
16 //
17 // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
18 // with the terms of the Adobe license agreement accompanying it. If you have received
19 // this file from a source other than Adobe, then your use, modification, or
20 // distribution of it requires the prior written permission of Adobe.
21 //
22 //========================================================================================
23 
24 #ifndef __IToolBoxUtils__
25 #define __IToolBoxUtils__
26 
27 #include "ToolboxID.h"
28 #include "IPMUnknown.h"
29 #include "Utils.h"
30 #include "LayoutUIID.h"
31 
32 class ITool;
33 
37 class IToolBoxUtils : public IPMUnknown
38 {
39 public:
40  enum { kDefaultIID = IID_ITOOLBOXUTILS };
41 
48  virtual bool16 SetActiveTool( ITool* itool,ClassID toolType = kPointerToolBoss) = 0;
49 
55  virtual ITool* QueryActiveTool(ClassID toolType = kPointerToolBoss) = 0;
56 
62  virtual ITool* QueryPreviousActiveTool(ClassID toolType = kPointerToolBoss) = 0;
63 
67  virtual ITool* QueryMostRecentSelectionTool() = 0;
68 
72  virtual ITool* QueryMostRecentCreationTool() = 0;
73 
78  virtual ITool* QueryTool(ClassID toolClass) = 0;
79 
83  virtual int32 GetNumTools() = 0;
84 
89  virtual ITool* QueryNthTool(int32 index) = 0;
90 
94  virtual void EnableToolsForViewClass(ClassID theClass) = 0;
95 
100  virtual bool16 IsToolEnabled(ITool* itool) = 0;
101 };
102 
103 
104 #endif // __IToolBoxUtils__
105 
106