Allows for text frame manipulation, selection, metadata access, etc.
More...
#include <hdicoreTextArt.h>
|
enum | Type { UnknownType = 0
, PointTextType = 10
, InPathTextType = 20
, OnPathTextType = 30
} |
|
enum | LineOrientation { UnknownLineOrientation = 0
, HorizLineOrientation = 10
, VertL2RLineOrientation = 20
, VertR2LLineOrientation = 30
} |
|
typedef std::vector< std::shared_ptr< TextLine > > | TextLineVector |
|
|
| ~TextArt () |
| Destructs a TextArt object.
|
|
std::unique_ptr< ATE::ITextFrame > | ateTextFrame () const |
| Gets the ATE text frame ref around which the target object is wrapped.
|
|
std::unique_ptr< TextStory > | parentStory () const |
| Retrieves the parent story of the target text frame.
|
|
std::unique_ptr< TextRange > | textRange () const |
| Retrieves the text range of the target frame.
|
|
TextLineVector | textLines () const |
| Retrieves a text-line vector with which you can access the text lines of the target text frame.
|
|
Type | frameType () const |
| Retrieves the type of the target text frame.
|
|
bool | selected () const |
| Reports whether the target frame is selected.
|
|
LineOrientation | lineOrientation () const |
| Retrieves the line orientation of the target text frame.
|
|
void | setLineOrientation (const LineOrientation orientation_) |
| Sets the line orientation value for the target text frame.
|
|
int32_t | rowCount () const |
| Retrieves the number of rows for the target text frame.
|
|
void | setRowCount (const int32_t count_) |
| Sets the number of rows for the target text frame.
|
|
int32_t | columnCount () const |
| Retrieves the number of columns for the target text frame.
|
|
void | setColumnCount (const int32_t count_) |
| Sets the number of columns for the target text frame.
|
|
bool | rowMajorOrder () const |
| Reports whether the text range is arranged in row-major order.
|
|
void | setRowMajorOrder (const bool isMajor_) |
| Turns row-major order on or off for the target text frame.
|
|
double | rowGutter () const |
| Retrieves the row gutter value for the target text frame.
|
|
void | setRowGutter (const double gutter_) |
| Sets the row gutter value for the target text frame.
|
|
double | columnGutter () const |
| Retrieves the column gutter value for the target text frame.
|
|
void | setColumnGutter (const double gutter_) |
| Sets the column gutter value for the target text frame.
|
|
double | spacing () const |
| Retrieves the line spacing value for the target text frame.
|
|
void | setSpacing (const double spacing_) |
| Sets the line spacing value for the target text frame.
|
|
bool | opticalAlignment () const |
| Reports whether optical alignment is on for the target text frame.
|
|
void | setOpticalAlignment (const bool active_) |
| Turns optical alignment on or off for the target text frame.
|
|
|
class | Art |
|
class | TextLine |
|
class | TextRange |
|
class | TextStory |
|
Allows for text frame manipulation, selection, metadata access, etc.
◆ ~TextArt()
hdi::core::TextArt::~TextArt |
( |
| ) |
|
Destructs a TextArt object.
- Author
- GW
- Date
- 08/2013
◆ ateTextFrame()
std::unique_ptr< ATE::ITextFrame > hdi::core::TextArt::ateTextFrame |
( |
| ) |
const |
Gets the ATE text frame ref around which the target object is wrapped.
- Author
- GW
- Date
- 08/2014
- Returns
- ATE::ITextFrame for the target object
- Note
- Generally, you shouldn't need to call this method. Only use it if you know what you're doing. If a specific piece of functionality provided by Illustrator is not handled by this class (or related classes), then it should probably be added to the hdi_core library.
◆ columnCount()
int32_t hdi::core::TextArt::columnCount |
( |
| ) |
const |
Retrieves the number of columns for the target text frame.
- Author
- GW
- Date
- 12/2013
- Returns
- Number of frame columns
◆ columnGutter()
double hdi::core::TextArt::columnGutter |
( |
| ) |
const |
Retrieves the column gutter value for the target text frame.
- Author
- GW
- Date
- 12/2013
- Returns
- The frame's column gutter value
◆ frameType()
Type hdi::core::TextArt::frameType |
( |
| ) |
const |
Retrieves the type of the target text frame.
- Author
- GW
- Date
- 12/2013
- Returns
- The text frame type
◆ lineOrientation()
LineOrientation hdi::core::TextArt::lineOrientation |
( |
| ) |
const |
Retrieves the line orientation of the target text frame.
- Author
- GW
- Date
- 12/2013
- Returns
- The line orientation
◆ opticalAlignment()
bool hdi::core::TextArt::opticalAlignment |
( |
| ) |
const |
Reports whether optical alignment is on for the target text frame.
- Author
- GW
- Date
- 12/2013
- Returns
- true if optical alignment is active, false otherwise
◆ parentStory()
std::unique_ptr< TextStory > hdi::core::TextArt::parentStory |
( |
| ) |
const |
Retrieves the parent story of the target text frame.
- Author
- GW
- Date
- 12/2013
- Returns
- The parent story, or NULL if error
◆ rowCount()
int32_t hdi::core::TextArt::rowCount |
( |
| ) |
const |
Retrieves the number of rows for the target text frame.
- Author
- GW
- Date
- 12/2013
- Returns
- Number of frame rows
◆ rowGutter()
double hdi::core::TextArt::rowGutter |
( |
| ) |
const |
Retrieves the row gutter value for the target text frame.
- Author
- GW
- Date
- 12/2013
- Returns
- The frame's row gutter value
◆ rowMajorOrder()
bool hdi::core::TextArt::rowMajorOrder |
( |
| ) |
const |
Reports whether the text range is arranged in row-major order.
- Author
- GW
- Date
- 12/2013
- Returns
- true if in row-major order, false otherwise
◆ selected()
bool hdi::core::TextArt::selected |
( |
| ) |
const |
Reports whether the target frame is selected.
- Author
- GW
- Date
- 12/2013
- Returns
- true if selected, false otherwise
◆ setColumnCount()
void hdi::core::TextArt::setColumnCount |
( |
const int32_t |
count_ | ) |
|
Sets the number of columns for the target text frame.
- Author
- GW
- Date
- 12/2013
- Parameters
-
◆ setColumnGutter()
void hdi::core::TextArt::setColumnGutter |
( |
const double |
gutter_ | ) |
|
Sets the column gutter value for the target text frame.
- Author
- GW
- Date
- 12/2013
- Parameters
-
gutter_ | New column gutter value |
◆ setLineOrientation()
void hdi::core::TextArt::setLineOrientation |
( |
const LineOrientation |
orientation_ | ) |
|
Sets the line orientation value for the target text frame.
- Author
- GW
- Date
- 12/2013
- Parameters
-
orientation_ | New line orientation |
◆ setOpticalAlignment()
void hdi::core::TextArt::setOpticalAlignment |
( |
const bool |
active_ | ) |
|
Turns optical alignment on or off for the target text frame.
- Author
- GW
- Date
- 12/2013
- Parameters
-
active_ | true to activate optical alignment, false otherwise |
◆ setRowCount()
void hdi::core::TextArt::setRowCount |
( |
const int32_t |
count_ | ) |
|
Sets the number of rows for the target text frame.
- Author
- GW
- Date
- 12/2013
- Parameters
-
◆ setRowGutter()
void hdi::core::TextArt::setRowGutter |
( |
const double |
gutter_ | ) |
|
Sets the row gutter value for the target text frame.
- Author
- GW
- Date
- 12/2013
- Parameters
-
gutter_ | New row gutter value |
◆ setRowMajorOrder()
void hdi::core::TextArt::setRowMajorOrder |
( |
const bool |
isMajor_ | ) |
|
Turns row-major order on or off for the target text frame.
- Author
- GW
- Date
- 12/2013
- Parameters
-
isMajor_ | true to enable row-major order, false otherwise |
◆ setSpacing()
void hdi::core::TextArt::setSpacing |
( |
const double |
spacing_ | ) |
|
Sets the line spacing value for the target text frame.
- Author
- GW
- Date
- 12/2013
- Parameters
-
spacing_ | New line spacing value |
◆ spacing()
double hdi::core::TextArt::spacing |
( |
| ) |
const |
Retrieves the line spacing value for the target text frame.
- Author
- GW
- Date
- 12/2013
- Returns
- The frame's line spacing value
◆ textLines()
TextLineVector hdi::core::TextArt::textLines |
( |
| ) |
const |
Retrieves a text-line vector with which you can access the text lines of the target text frame.
- Author
- GW
- Date
- 12/2013
- Returns
- A vector of TextLine object pointers
◆ textRange()
std::unique_ptr< TextRange > hdi::core::TextArt::textRange |
( |
| ) |
const |
Retrieves the text range of the target frame.
- Author
- GW
- Date
- 12/2013
- Returns
- The text range, or NULL if error