Hot Door CORE 0.8.2
Adobe® Illustrator® Plug-in Library
Loading...
Searching...
No Matches
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#if defined(HDI_CORE_AIP_MODE)
11
12#include <vector>
13
14#include "hdicoreArtColor.h"
15#include "hdicorePathStyle.h"
16#include "hdicoreTypes.h"
17
18namespace hdi
19{
20 namespace aip
21 {
22 class TextCharInspector;
23 }
24
25 namespace core
26 {
27 class Font;
28
33 {
34 public:
35 typedef std::vector<ArtColor> ArtColorVector;
36 typedef std::vector<bool> BoolVector;
37 typedef std::vector<double> DoubleVector;
38 typedef std::vector< std::shared_ptr<Font> > FontVector;
39 typedef std::vector<int32_t> IntVector;
40
41 typedef std::vector<StrokeStyle::CapStyle> CapStyleVector;
42 typedef std::vector<FigureStyle> FigureStyleVector;
43 typedef std::vector<FontCapsType> FontCapsTypeVector;
44 typedef std::vector<FontBaseline> FontBaselineVector;
45 typedef std::vector<FontOpenTypePosition> FontOpenTypePositionVector;
46 typedef std::vector<StrokeStyle::JoinStyle> JoinStyleVector;
47 typedef std::vector<StrikethroughPosition> StrikethroughPositionVector;
48 typedef std::vector<UnderlinePosition> UnderlinePositionVector;
49
50 enum CollapseDirection
51 {
52 UnknownCollapseDir = 0,
53 CollapseEndDir = 10,
54 CollapseStartDir = 20
55 };
56
67
76
83
90
99 virtual bool operator==(const TextCharInspector& rhs_) const;
100
109 virtual bool operator!=(const TextCharInspector& rhs_) const;
110
122 virtual std::unique_ptr<ATE::ICharInspector> ateCharInspector() const;
123
131 virtual bool isEmpty() const;
132
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 IntVector stylisticSets() const;
393
401 virtual BoolVector ornaments() const;
402
410 virtual FigureStyleVector figureStyle() const;
411
419 virtual BoolVector noBreak() const;
420
428 virtual BoolVector fill() const;
429
437 virtual BoolVector fillVisible() const;
438
446 virtual ArtColorVector fillColor() const;
447
455 virtual BoolVector fillFirst() const;
456
464 virtual BoolVector fillOverPrint() const;
465
473 virtual BoolVector fillBackground() const;
474
482 virtual ArtColorVector fillBackgroundColor() const;
483
491 virtual BoolVector stroke() const;
492
500 virtual BoolVector strokeVisible() const;
501
509 virtual ArtColorVector strokeColor() const;
510
518 virtual BoolVector strokeOverPrint() const;
519
527 virtual CapStyleVector lineCap() const;
528
536 virtual JoinStyleVector lineJoin() const;
537
545 virtual DoubleVector lineWidth() const;
546
554 virtual DoubleVector miterLimit() const;
555
563 virtual DoubleVector lineDashOffset() const;
564
572 virtual std::vector<DoubleVector> lineDashArray() const;
573
574
575 private:
576 friend aip::TextCharInspector* __accessImpl(const TextCharInspector&);
577 friend TextCharInspector __accessCtor(const aip::TextCharInspector&);
578
582 void* __data;
583
589 void* __impl() const;
590
596 TextCharInspector(const aip::TextCharInspector&);
597 };
598
599 typedef std::unique_ptr<TextCharInspector> TextCharInspectorUP;
600 typedef std::shared_ptr<TextCharInspector> TextCharInspectorSP;
601 typedef std::weak_ptr<TextCharInspector> TextCharInspectorWP;
602
603 extern aip::TextCharInspector* __accessImpl(const TextCharInspector&);
604 extern TextCharInspector __accessCtor(const aip::TextCharInspector&);
605 }
606}
607
608#endif
609// HDI_CORE_AIP_MODE
610
611#endif
612// __HDI_CORE_TEXT_CHAR_INSPECTOR__
Allows for easy inspection of Illustrator text characters.
Definition: hdicoreTextCharInspector.h:33
virtual BoolVector contextualLigatures() const
Retrieves the contextual ligature values from the character set.
virtual DoubleVector miterLimit() const
Retrieves the miter limit values from the character set.
virtual UnderlinePositionVector underlinePosition() const
Retrieves the underline position values from the character set.
TextCharInspector(const TextCharInspector &ci_)
TextCharInspector copy constructor.
virtual TextCharInspector & operator=(const TextCharInspector &rhs_)
Overloaded assignment operator for TextCharInspector objects.
virtual BoolVector strokeVisible() const
Retrieves the stroke visibility values from the character set.
virtual BoolVector fillFirst() const
Retrieves the fill-first values from the character set.
virtual BoolVector autoLeading() const
Retrieves the auto-leading values from the character set.
virtual BoolVector ornaments() const
Retrieves the ornament values from the character set.
virtual FigureStyleVector figureStyle() const
Retrieves the figure style values from the character set.
virtual BoolVector oldStyle() const
Retrieves the old-style values from the character set.
virtual IntVector tracking() const
Retrieves the tracking values from the character set.
virtual bool operator!=(const TextCharInspector &rhs_) const
Tests whether a given TextCharInspector object is not the same as another.
virtual BoolVector discretionaryLigatures() const
Retrieves the discretionary ligature values from the character set.
virtual BoolVector syntheticItalic() const
Retrieves the synthetic italic values from the character set.
virtual CapStyleVector lineCap() const
Retrieves the line cap values from the character set.
virtual DoubleVector fontSize() const
Retrieves the font size values from the character set.
virtual BoolVector noBreak() const
Retrieves the no-break values from the character set.
virtual FontVector font() const
Retrieves the fonts from the character set.
virtual FontBaselineVector fontBaseline() const
Retrieves the font baseline values from the character set.
virtual BoolVector connectionForms() const
Retrieves the connection form values from the character set.
virtual BoolVector ligature() const
Retrieves the ligature values from the character set.
virtual BoolVector stroke() const
Retrieves the stroke values from the character set.
virtual bool operator==(const TextCharInspector &rhs_) const
Tests whether a given TextCharInspector object is the same as another.
virtual BoolVector stylisticAlternates() const
Retrieves the style alternative values from the character set.
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 fractions() const
Retrieves the fraction values from the character set.
virtual ArtColorVector fillBackgroundColor() const
Retrieves the background fill color values from the character set.
virtual BoolVector alternateLigatures() const
Retrieves the alternate ligature values from the character set.
virtual std::unique_ptr< ATE::ICharInspector > ateCharInspector() const
Gets the ATE char inspector ref around which the target object is wrapped.
virtual DoubleVector leading() const
Retrieves the leading values from the character set.
virtual JoinStyleVector lineJoin() const
Retrieves the line join values from the character set.
virtual BoolVector swash() const
Retrieves the swash values from the character set.
virtual BoolVector fillOverPrint() const
Retrieves the fill overprint values from the character set.
virtual BoolVector syntheticBold() const
Retrieves the synthetic bold values from the character set.
TextCharInspector()
Creates a new TextCharInspector object.
virtual DoubleVector baselineShift() const
Retrieves the baseline shift values from the character set.
virtual BoolVector strokeOverPrint() const
Retrieves the stroke overprint values from the character set.
virtual ArtColorVector strokeColor() const
Retrieves the stroke color values from the character set.
virtual ArtColorVector fillColor() const
Retrieves the fill color values from the character set.
IntVector stylisticSets() const
Retrieves the style sets values from the character set.
virtual BoolVector titling() const
Retrieves the titling values from the character set.
virtual FontOpenTypePositionVector fontOpenTypePosition() const
Retrieves the font position values from the character set.
virtual ~TextCharInspector()
Destructs a TextCharInspector object.
virtual DoubleVector verticalScale() const
Retrieves the vertical scale values from the character set.
virtual DoubleVector lineWidth() const
Retrieves the line width values from the character set.
virtual DoubleVector lineDashOffset() const
Retrieves the line dash offset values from the character set.
virtual BoolVector ordinals() const
Retrieves the ordinal values from the character set.
virtual BoolVector fillVisible() const
Retrieves the fill visibility values from the character set.
virtual FontCapsTypeVector fontCaps() const
Retrieves the font cap values from the character set.
virtual DoubleVector horizontalScale() const
Retrieves the horizontal scale values from the character set.
virtual std::vector< DoubleVector > lineDashArray() const
Retrieves the line dash values from the character set.
virtual BoolVector fill() const
Retrieves the fill values from the character set.
virtual StrikethroughPositionVector strikethroughPosition() const
Retrieves the strikethrough position values from the character set.
virtual bool isEmpty() const
Gets whether the target TextCharInspector object is empty.
virtual BoolVector fillBackground() const
Retrieves the background fill values from the character set.
Header file for art color manipulation.
Header file for path style-related classes.
Header file for a wide variety of necessary typedefs, enums, and forwards declarations.