Hot Door CORE  0.7.0
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 
392  virtual BoolVector ornaments() const;
393 
401  virtual FigureStyleVector figureStyle() const;
402 
410  virtual BoolVector noBreak() const;
411 
419  virtual BoolVector fill() const;
420 
428  virtual BoolVector fillVisible() const;
429 
437  virtual ArtColorVector fillColor() const;
438 
446  virtual BoolVector fillFirst() const;
447 
455  virtual BoolVector fillOverPrint() const;
456 
464  virtual BoolVector fillBackground() const;
465 
473  virtual ArtColorVector fillBackgroundColor() const;
474 
482  virtual BoolVector stroke() const;
483 
491  virtual BoolVector strokeVisible() const;
492 
500  virtual ArtColorVector strokeColor() const;
501 
509  virtual BoolVector strokeOverPrint() const;
510 
518  virtual CapStyleVector lineCap() const;
519 
527  virtual JoinStyleVector lineJoin() const;
528 
536  virtual DoubleVector lineWidth() const;
537 
545  virtual DoubleVector miterLimit() const;
546 
554  virtual DoubleVector lineDashOffset() const;
555 
563  virtual std::vector<DoubleVector> lineDashArray() const;
564 
565 
566  private:
567  friend plugin::TextCharInspector* __accessImpl(const TextCharInspector&);
568  friend TextCharInspector __accessCtor(const plugin::TextCharInspector&);
569 
573  void* __data;
574 
580  void* __impl() const;
581 
587  TextCharInspector(const plugin::TextCharInspector&);
588  };
589 
590  typedef std::auto_ptr<TextCharInspector> TextCharInspectorAP;
591 
592  extern plugin::TextCharInspector* __accessImpl(const TextCharInspector&);
593  extern TextCharInspector __accessCtor(const plugin::TextCharInspector&);
594  }
595 }
596 
597 #endif
598 // __HDI_CORE_TEXT_CHAR_INSPECTOR__
virtual BoolVector noBreak() const
Retrieves the no-break values from the character set.
virtual ArtColorVector fillColor() const
Retrieves the fill color values from the character set.
virtual BoolVector strokeOverPrint() const
Retrieves the stroke overprint values from the character set.
virtual DoubleVector lineWidth() const
Retrieves the line width values from the character set.
virtual BoolVector fillBackground() const
Retrieves the background fill values from the character set.
virtual StrikethroughPositionVector strikethroughPosition() const
Retrieves the strikethrough position values from the character set.
virtual TextCharInspector & operator=(const TextCharInspector &rhs_)
Overloaded assignment operator for TextCharInspector objects.
virtual BoolVector fill() const
Retrieves the fill values from the character set.
virtual bool operator==(const TextCharInspector &rhs_) const
Tests whether a given TextCharInspector object is the same as another.
virtual std::auto_ptr< ATE::ICharInspector > ateCharInspector() const
Gets the ATE char inspector ref around which the target object is wrapped.
virtual BoolVector ornaments() const
Retrieves the ornament values from the character set.
Header file for Illustrator art color manipulation.
virtual DoubleVector verticalScale() const
Retrieves the vertical scale values from the character set.
virtual BoolVector fillOverPrint() const
Retrieves the fill overprint values from the character set.
virtual BoolVector stroke() const
Retrieves the stroke values from the character set.
virtual BoolVector contextualLigatures() const
Retrieves the contextual ligature values from the character set.
virtual BoolVector discretionaryLigatures() const
Retrieves the discretionary ligature values from the character set.
virtual BoolVector ligature() const
Retrieves the ligature values from the character set.
virtual IntVector tracking() const
Retrieves the tracking values from the character set.
virtual DoubleVector fontSize() const
Retrieves the font size values from the character set.
virtual BoolVector alternateLigatures() const
Retrieves the alternate ligature values from the character set.
virtual FontVector font() const
Retrieves the fonts from the character set.
virtual bool isEmpty() const
Gets whether the target TextCharInspector object is empty.
virtual FontCapsTypeVector fontCaps() const
Retrieves the font cap values from the character set.
virtual BoolVector syntheticBold() const
Retrieves the synthetic bold values from the character set.
virtual FigureStyleVector figureStyle() const
Retrieves the figure style values from the character set.
virtual BoolVector connectionForms() const
Retrieves the connection form values from the character set.
virtual BoolVector stylisticAlternates() const
Retrieves the style alternative values from the character set.
virtual BoolVector autoLeading() const
Retrieves the auto-leading values from the character set.
virtual bool operator!=(const TextCharInspector &rhs_) const
Tests whether a given TextCharInspector object is not the same as another.
Header file for a wide variety of necessary typedefs, enums, and forwards declarations.
Header file for path style-related classes.
virtual DoubleVector leading() const
Retrieves the leading values from the character set.
virtual ArtColorVector strokeColor() const
Retrieves the stroke color values from the character set.
virtual FontBaselineVector fontBaseline() const
Retrieves the font baseline values from the character set.
Definition: hdicoreaiArray.h:12
virtual CapStyleVector lineCap() const
Retrieves the line cap values from the character set.
virtual BoolVector swash() const
Retrieves the swash values from the character set.
virtual ArtColorVector fillBackgroundColor() const
Retrieves the background fill color values from the character set.
virtual BoolVector oldStyle() const
Retrieves the old-style values from the character set.
virtual BoolVector fractions() const
Retrieves the fraction values from the character set.
virtual DoubleVector lineDashOffset() const
Retrieves the line dash offset values from the character set.
virtual DoubleVector miterLimit() const
Retrieves the miter limit values from the character set.
virtual BoolVector ordinals() const
Retrieves the ordinal values from the character set.
virtual DoubleVector baselineShift() const
Retrieves the baseline shift values from the character set.
virtual JoinStyleVector lineJoin() const
Retrieves the line join values from the character set.
virtual BoolVector titling() const
Retrieves the titling values from the character set.
virtual ~TextCharInspector()
Destructs a TextCharInspector object.
TextCharInspector()
Creates a new TextCharInspector object.
virtual FontOpenTypePositionVector fontOpenTypePosition() const
Retrieves the font position values from the character set.
virtual std::vector< DoubleVector > lineDashArray() const
Retrieves the line dash values from the character set.
virtual DoubleVector horizontalScale() const
Retrieves the horizontal scale values from the character set.
virtual UnderlinePositionVector underlinePosition() const
Retrieves the underline position values from the character set.
virtual BoolVector syntheticItalic() const
Retrieves the synthetic italic values from the character set.
Allows for easy inspection of Illustrator text characters.
Definition: hdicoreTextCharInspector.h:30
virtual DoubleVector characterRotation() const
Retrieves the char rotation values from the character set.
virtual DoubleVector underlineOffset() const
Retrieves the underline offset values from the character set.
virtual BoolVector fillFirst() const
Retrieves the fill-first values from the character set.
virtual BoolVector strokeVisible() const
Retrieves the stroke visibility values from the character set.
virtual BoolVector fillVisible() const
Retrieves the fill visibility values from the character set.