Hot Door CORE  0.7.0
Adobe® Illustrator® Plug-in Library
hdicoreBuiltinTool.h
Go to the documentation of this file.
1 
7 #ifndef __HDI_CORE_BUILTIN_TOOL__
8 #define __HDI_CORE_BUILTIN_TOOL__
9 
10 #include "hdicoreTypes.h"
11 
12 namespace hdi
13 {
14  namespace core
15  {
16  class ThirdPartyPlugin;
17 
22  {
23  public:
27  enum AdobeTool
28  {
29  HorizontalTypeTool = 10,
30  HorizontalAreaTypeTool = 20,
31  HorizontalPathTypeTool = 30,
32  VerticalTypeTool = 40,
33  VerticalAreaTypeTool = 50,
34  VerticalPathTypeTool = 60,
35  RTLHorizontalTypeTool = 70,
36  RTLHorizontalAreaTypeTool = 80,
37  RTLHorizontalPathTypeTool = 90,
38  TextPositioningTool = 100, // Illustrator 17 and above
39 
40  LineTool = 110,
41  ArcTool = 120,
42  RectangleTool = 130,
43  RoundedRectangleTool = 140,
44  EllipseTool = 150,
45  PolygonTool = 160,
46  StarTool = 170,
47  SpiralTool = 180,
48  PluginEllipseTool = 190,
49  PluginRectangleTool = 200,
50 
51  SelectTool = 210,
52  DirectSelectTool = 220,
53  DirectObjectSelectTool = 230,
54  ToggleSelectTool = 240, // Illustrator 18 and above
55  ToggleDirectSelectTool = 250, // Illustrator 18 and above
56 
57  ScaleTool = 260,
58  RotateTool = 270,
59  ReflectTool = 280,
60  ShearTool = 290,
61  FreeTransformTool = 300,
62 
63  ColumnGraphTool = 310,
64  StackedColumnGraphTool = 320,
65  LineGraphTool = 330,
66  PieGraphTool = 340,
67  AreaGraphTool = 350,
68  ScatterGraphTool = 360,
69  BarGraphTool = 370,
70  StackedBarGraphTool = 380,
71  RadarGraphTool = 390,
72 
73  ScrollTool = 400,
74  FreehandTool = 410,
75  FreehandSmoothTool = 420,
76  FreehandEditorTool = 430,
77  FreehandEraseTool = 440,
78 
79  PenTool = 450,
80  ScissorsTool = 460,
81  KnifeTool = 470,
82  ReshapeTool = 480,
83  WidthTool = 490,
84  StencilTool = 493, // Illustrator 19 and above
85  NaturalJoinTool = 496, // Illustrator 19 and above
86 
87  BlendTool = 500,
88  MeasureTool = 510,
89  PageTool = 520,
90  ZoomTool = 530,
91 
92  AddAnchorPointTool = 540,
93  DeleteAnchorPointTool = 550,
94  ConvertAnchorPointTool = 560,
95 
96  GradientVectorTool = 570,
97  BrushTool = 580,
98  EyedropperTool = 590,
99  MeshEditingTool = 600,
100  PatternTileTool = 610,
101 
102  DirectLassoTool = 620,
103  MagicWandTool = 630,
104  RectangularGridTool = 640,
105  PolarGridTool = 650,
106  PerspectiveGridTool = 660,
107  PerspectiveSelectionTool = 670,
108 
109  FlareTool = 680,
110  WarpTool = 690,
111  NewTwirlTool = 700,
112  PuckerTool = 710,
113  BloatTool = 720,
114  ScallopTool = 730,
115  CrystallizeTool = 740,
116  WrinkleTool = 750,
117  CurvatureTool = 755, // Illustrator 19 and above
118 
119  SliceTool = 760,
120  SliceSelectTool = 770,
121 
122  SymbolSprayerTool = 780,
123  SymbolShifterTool = 790,
124  SymbolScruncherTool = 800,
125  SymbolSizerTool = 810,
126  SymbolSpinnerTool = 820,
127  SymbolStainerTool = 830,
128  SymbolScreenerTool = 840,
129  SymbolStylerTool = 850,
130 
131  PlanarPaintbucketTool = 860,
132  PlanarFaceSelectTool = 870,
133 
134  EraserTool = 880,
135  CropTool = 890,
136 
137  BlobTool = 900,
138  LiveMergeTool = 910,
139 
140  PlaceGunTool = 920, // Illustrator 17 and above
141  ChartsTool = 930, // Illustrator 19 and above
142 
143  ShaperTool = 940, // Illustrator 20 and above
144  SymmetryTool = 950 // Illustrator 20 and above
145  };
146 
158  BuiltinTool();
159 
167  BuiltinTool(const BuiltinTool& tool_);
168 
181  BuiltinTool(const AdobeTool tool_);
182 
188  virtual ~BuiltinTool();
189 
199  virtual BuiltinTool& operator=(const BuiltinTool& rhs_);
200 
209  virtual bool operator==(const BuiltinTool& rhs_) const;
210 
219  virtual bool operator!=(const BuiltinTool& rhs_) const;
220 
232  virtual AIToolHandle aiToolHandle() const;
233 
241  virtual bool isEmpty() const;
242 
250  virtual std::auto_ptr<ThirdPartyPlugin> plugin() const;
251 
259  virtual bool selected() const;
260 
266  virtual void setSelected();
267 
275  virtual std::string title() const;
276 
284  virtual std::string tip() const;
285 
286 
287  private:
288  AIToolHandle __toolHandle;
289  std::string __toolName;
290  };
291 
292  typedef std::auto_ptr<BuiltinTool> BuiltinToolAP;
293  }
294 }
295 
296 #endif
297 // __HDI_CORE_BUILTIN_TOOL__
virtual std::string title() const
Gets the tool's title.
Class for accessing and querying built-in Illustrator tools.
Definition: hdicoreBuiltinTool.h:21
virtual void setSelected()
Sets the target BuiltinTool object as the currently selected tool.
AdobeTool
Describes the built-in Illustrator tools that can be acquired.
Definition: hdicoreBuiltinTool.h:27
virtual bool operator==(const BuiltinTool &rhs_) const
Tests whether a given BuiltinTool object is the same as another.
virtual bool operator!=(const BuiltinTool &rhs_) const
Tests whether a given BuiltinTool object is not the same as another.
virtual std::string tip() const
Gets the tool's tip string.
virtual bool isEmpty() const
Gets whether the target BuiltinTool object is empty (constructed with the default ctor) ...
virtual std::auto_ptr< ThirdPartyPlugin > plugin() const
Gets the plugin associated with the tool, if any.
virtual ~BuiltinTool()
Destructs a BuiltinTool object.
Header file for a wide variety of necessary typedefs, enums, and forwards declarations.
virtual AIToolHandle aiToolHandle() const
Gets the tool handle around which the target object is wrapped.
Definition: hdicoreaiArray.h:12
BuiltinTool()
Constructs an empty BuiltinTool object.
virtual bool selected() const
Gets whether the target BuiltinTool object is the currently selected tool.
virtual BuiltinTool & operator=(const BuiltinTool &rhs_)
Assigns one BuiltinTool object to another.