Hot Door CORE 0.8.4
Adobe® Illustrator® Plug-in Library
Loading...
Searching...
No Matches
hdicoreTextCharInspector.h
Go to the documentation of this file.
1
6
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
93
102 virtual bool operator==(const TextCharInspector& rhs_) const;
103
112 virtual bool operator!=(const TextCharInspector& rhs_) const;
113
125 virtual std::unique_ptr<ATE::ICharInspector> ateCharInspector() const;
126
134 virtual bool isEmpty() const;
135
143 virtual FontVector font() const;
144
152 virtual DoubleVector fontSize() const;
153
161 virtual DoubleVector horizontalScale() const;
162
170 virtual DoubleVector verticalScale() const;
171
179 virtual BoolVector syntheticBold() const;
180
188 virtual BoolVector syntheticItalic() const;
189
197 virtual BoolVector autoLeading() const;
198
206 virtual DoubleVector leading() const;
207
215 virtual IntVector tracking() const;
216
224 virtual DoubleVector baselineShift() const;
225
233 virtual DoubleVector characterRotation() const;
234
242 virtual FontCapsTypeVector fontCaps() const;
243
251 virtual FontBaselineVector fontBaseline() const;
252
260 virtual FontOpenTypePositionVector fontOpenTypePosition() const;
261
269 virtual StrikethroughPositionVector strikethroughPosition() const;
270
278 virtual UnderlinePositionVector underlinePosition() const;
279
287 virtual DoubleVector underlineOffset() const;
288
296 virtual BoolVector ligature() const;
297
305 virtual BoolVector discretionaryLigatures() const;
306
314 virtual BoolVector contextualLigatures() const;
315
323 virtual BoolVector alternateLigatures() const;
324
332 virtual BoolVector oldStyle() const;
333
341 virtual BoolVector fractions() const;
342
350 virtual BoolVector ordinals() const;
351
359 virtual BoolVector swash() const;
360
368 virtual BoolVector titling() const;
369
377 virtual BoolVector connectionForms() const;
378
386 virtual BoolVector stylisticAlternates() const;
387
395 IntVector stylisticSets() const;
396
404 virtual BoolVector ornaments() const;
405
413 virtual FigureStyleVector figureStyle() const;
414
422 virtual BoolVector noBreak() const;
423
431 virtual BoolVector fill() const;
432
440 virtual BoolVector fillVisible() const;
441
449 virtual ArtColorVector fillColor() const;
450
458 virtual BoolVector fillFirst() const;
459
467 virtual BoolVector fillOverPrint() const;
468
476 virtual BoolVector fillBackground() const;
477
485 virtual ArtColorVector fillBackgroundColor() const;
486
494 virtual BoolVector stroke() const;
495
503 virtual BoolVector strokeVisible() const;
504
512 virtual ArtColorVector strokeColor() const;
513
521 virtual BoolVector strokeOverPrint() const;
522
530 virtual CapStyleVector lineCap() const;
531
539 virtual JoinStyleVector lineJoin() const;
540
548 virtual DoubleVector lineWidth() const;
549
557 virtual DoubleVector miterLimit() const;
558
566 virtual DoubleVector lineDashOffset() const;
567
575 virtual std::vector<DoubleVector> lineDashArray() const;
576
577
578 private:
579 friend aip::TextCharInspector* __accessImpl(const TextCharInspector&);
580 friend TextCharInspector __accessCtor(const aip::TextCharInspector&);
581
585 void* __data;
586
592 void* __impl() const;
593
599 TextCharInspector(const aip::TextCharInspector&);
600 };
601
602 typedef std::unique_ptr<TextCharInspector> TextCharInspectorUP;
603 typedef std::shared_ptr<TextCharInspector> TextCharInspectorSP;
604 typedef std::weak_ptr<TextCharInspector> TextCharInspectorWP;
605
606 extern aip::TextCharInspector* __accessImpl(const TextCharInspector&);
607 extern TextCharInspector __accessCtor(const aip::TextCharInspector&);
608 }
609}
610
611#endif
612// HDI_CORE_AIP_MODE
613
614#endif
615// __HDI_CORE_TEXT_CHAR_INSPECTOR__
Font class to allow for easy font manipulation.
Definition hdicoreFont.h:183
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.