Hot Door CORE  0.7.1
Adobe® Illustrator® Plug-in Library
hdicoreTextCharInspector.h
Go to the documentation of this file.
1 
7 #ifndef __HDI_CORE_TEXT_CHAR_INSPECTOR__
8 #define __HDI_CORE_TEXT_CHAR_INSPECTOR__
9 
10 #include <vector>
11 
12 #include "hdicoreArtColor.h"
13 #include "hdicorePathStyle.h"
14 #include "hdicoreTypes.h"
15 
16 namespace hdi
17 {
18  namespace plugin
19  {
20  class TextCharInspector;
21  }
22 
23  namespace core
24  {
25  class Font;
26 
31  {
32  public:
33  typedef std::vector<ArtColor> ArtColorVector;
34  typedef std::vector<bool> BoolVector;
35  typedef std::vector<double> DoubleVector;
36  typedef std::vector< Font* > FontVector;
37  typedef std::vector<int32_t> IntVector;
38 
39  typedef std::vector<StrokeStyle::CapStyle> CapStyleVector;
40  typedef std::vector<FigureStyle> FigureStyleVector;
41  typedef std::vector<FontCapsType> FontCapsTypeVector;
42  typedef std::vector<FontBaseline> FontBaselineVector;
43  typedef std::vector<FontOpenTypePosition> FontOpenTypePositionVector;
44  typedef std::vector<StrokeStyle::JoinStyle> JoinStyleVector;
45  typedef std::vector<StrikethroughPosition> StrikethroughPositionVector;
46  typedef std::vector<UnderlinePosition> UnderlinePositionVector;
47 
48  enum CollapseDirection
49  {
50  UnknownCollapseDir = 0,
51  CollapseEndDir = 10,
52  CollapseStartDir = 20
53  };
54 
65 
74 
80  virtual ~TextCharInspector();
81 
87  virtual TextCharInspector& operator=(const TextCharInspector& rhs_);
88 
97  virtual bool operator==(const TextCharInspector& rhs_) const;
98 
107  virtual bool operator!=(const TextCharInspector& rhs_) const;
108 
120  virtual std::auto_ptr<ATE::ICharInspector> ateCharInspector() const;
121 
129  virtual bool isEmpty() const;
130 
140  virtual FontVector font() const;
141 
149  virtual DoubleVector fontSize() const;
150 
158  virtual DoubleVector horizontalScale() const;
159 
167  virtual DoubleVector verticalScale() const;
168 
176  virtual BoolVector syntheticBold() const;
177 
185  virtual BoolVector syntheticItalic() const;
186 
194  virtual BoolVector autoLeading() const;
195 
203  virtual DoubleVector leading() const;
204 
212  virtual IntVector tracking() const;
213 
221  virtual DoubleVector baselineShift() const;
222 
230  virtual DoubleVector characterRotation() const;
231 
239  virtual FontCapsTypeVector fontCaps() const;
240 
248  virtual FontBaselineVector fontBaseline() const;
249 
257  virtual FontOpenTypePositionVector fontOpenTypePosition() const;
258 
266  virtual StrikethroughPositionVector strikethroughPosition() const;
267 
275  virtual UnderlinePositionVector underlinePosition() const;
276 
284  virtual DoubleVector underlineOffset() const;
285 
293  virtual BoolVector ligature() const;
294 
302  virtual BoolVector discretionaryLigatures() const;
303 
311  virtual BoolVector contextualLigatures() const;
312 
320  virtual BoolVector alternateLigatures() const;
321 
329  virtual BoolVector oldStyle() const;
330 
338  virtual BoolVector fractions() const;
339 
347  virtual BoolVector ordinals() const;
348 
356  virtual BoolVector swash() const;
357 
365  virtual BoolVector titling() const;
366 
374  virtual BoolVector connectionForms() const;
375 
383  virtual BoolVector stylisticAlternates() const;
384 
385  #if HDI_CORE_COMPILE_AI22_PLUS
386 
393  IntVector stylisticSets() const;
394  #endif
395 
403  virtual BoolVector ornaments() const;
404 
412  virtual FigureStyleVector figureStyle() const;
413 
421  virtual BoolVector noBreak() const;
422 
430  virtual BoolVector fill() const;
431 
439  virtual BoolVector fillVisible() const;
440 
448  virtual ArtColorVector fillColor() const;
449 
457  virtual BoolVector fillFirst() const;
458 
466  virtual BoolVector fillOverPrint() const;
467 
475  virtual BoolVector fillBackground() const;
476 
484  virtual ArtColorVector fillBackgroundColor() const;
485 
493  virtual BoolVector stroke() const;
494 
502  virtual BoolVector strokeVisible() const;
503 
511  virtual ArtColorVector strokeColor() const;
512 
520  virtual BoolVector strokeOverPrint() const;
521 
529  virtual CapStyleVector lineCap() const;
530 
538  virtual JoinStyleVector lineJoin() const;
539 
547  virtual DoubleVector lineWidth() const;
548 
556  virtual DoubleVector miterLimit() const;
557 
565  virtual DoubleVector lineDashOffset() const;
566 
574  virtual std::vector<DoubleVector> lineDashArray() const;
575 
576 
577  private:
578  friend plugin::TextCharInspector* __accessImpl(const TextCharInspector&);
579  friend TextCharInspector __accessCtor(const plugin::TextCharInspector&);
580 
584  void* __data;
585 
591  void* __impl() const;
592 
598  TextCharInspector(const plugin::TextCharInspector&);
599  };
600 
601  typedef std::auto_ptr<TextCharInspector> TextCharInspectorAP;
602 
603  extern plugin::TextCharInspector* __accessImpl(const TextCharInspector&);
604  extern TextCharInspector __accessCtor(const plugin::TextCharInspector&);
605  }
606 }
607 
608 #endif
609 // __HDI_CORE_TEXT_CHAR_INSPECTOR__
Header file for Illustrator art color manipulation.
double lineWidth()
Gets the line width used when drawing paths or unfilled objects.
double fontSize()
Gets the current font size for annotation text art.
Header file for a wide variety of necessary typedefs, enums, and forwards declarations.
Header file for path style-related classes.
std::auto_ptr< Font > font()
Gets the current font for annotation text art.
Definition: hdicoreaiArray.h:12
Allows for easy inspection of Illustrator text characters.
Definition: hdicoreTextCharInspector.h:30