7#ifndef __HDI_CORE_TEXT_STORY__
8#define __HDI_CORE_TEXT_STORY__
10#if defined(HDI_CORE_AIP_MODE)
38 typedef std::vector< std::shared_ptr<TextArt> > TextArtVector;
39 typedef std::vector< std::shared_ptr<TextPara> > TextParaVector;
40 typedef std::vector< std::shared_ptr<TextRange> > TextRangeVector;
41 typedef std::vector< std::shared_ptr<TextWord> > TextWordVector;
111 virtual std::unique_ptr<ATE::IStory>
ateStory()
const;
169 virtual std::unique_ptr<TextRange>
textRange(
const int32_t start_,
const int32_t end_)
const;
187 virtual std::unique_ptr<TextStorySet>
stories()
const;
214 virtual TextWordVector
words()
const;
223 virtual TextRangeVector
runs()
const;
233 virtual std::unique_ptr<TextArt>
textFrame(
const int32_t index_)
const;
298 friend aip::TextStory* __accessImpl(
const TextStory&);
299 friend TextStory __accessCtor(
const aip::TextStory&);
304 aip::TextStory* __impl;
314 typedef std::unique_ptr<TextStory> TextStoryUP;
315 typedef std::shared_ptr<TextStory> TextStorySP;
316 typedef std::weak_ptr<TextStory> TextStoryWP;
318 extern aip::TextStory* __accessImpl(
const TextStory&);
319 extern TextStory __accessCtor(
const aip::TextStory&);
Allows for text frame manipulation, selection, metadata access, etc.
Definition hdicoreTextArt.h:29
Encapsulates text paragraph functionality from the Illustrator SDK.
Definition hdicoreTextPara.h:34
Allows for easy manipulation of Illustrator text ranges.
Definition hdicoreTextRange.h:41
Encapsulates text range set functionality from the Illustrator SDK.
Definition hdicoreTextRangeSet.h:37
Encapsulates story functionality from the Illustrator SDK.
Definition hdicoreTextStory.h:36
virtual TextStory & operator=(const TextStory &rhs_)
Overloaded assignment operator for TextStory objects.
virtual TextArtVector textFrames() const
Retrieves a vector of text frames contained in the target story.
virtual TextRangeVector runs() const
Retrieves a vector of runs contained in the target story.
virtual void setKerningForChar(const int32_t index_, const int32_t kerning_)
Sets a specific kern value in the target story.
virtual std::unique_ptr< TextRange > textRange(const int32_t start_, const int32_t end_) const
Retrieves an arbitrary text range from this story.
virtual bool operator!=(const TextStory &rhs_) const
Tests whether a given TextStory object is not the same as another.
virtual void resumeReflow()
Resumes normal reflow calculation after a call to suspendReflow()
virtual std::unique_ptr< TextArt > textFrame(const int32_t index_) const
Retrieves a specific text frame from the target story.
virtual bool operator==(const TextStory &rhs_) const
Tests whether a given TextStory object is the same as another.
virtual ~TextStory()
Destructs a TextStory object.
virtual std::unique_ptr< ATE::IStory > ateStory() const
Gets the ATE story ref around which the target object is wrapped.
virtual std::unique_ptr< TextStory > duplicate()
Duplicates the target object.
virtual std::unique_ptr< TextRangeSet > selections() const
Retrieves the set of text ranges that contains the selected text of the target story.
virtual int32_t index() const
Retrieves the index position of the target story in its collection.
virtual TextWordVector words() const
Retrieves a vector of words contained in the target story.
virtual void suspendReflow()
Suspends reflow calculation for the target story. Speeds up calls that cause reflow,...
TextStory()
Creates a new TextStory object.
virtual bool kerningForRange(const TextRange &range_, AutoKernType &type__, int32_t &kerning__) const
Retrieves the kerning type and value for a text range in the target story.
virtual void setAutoKerningForRange(const TextRange &range_, const AutoKernType type_)
Sets automatic or optical kerning for a text range in the target story.
virtual bool isEmpty() const
Gets whether the target TextStory object is empty.
virtual int32_t charCount() const
Retrieves the number of characters in the target story.
virtual bool kerningForChar(const int32_t index_, AutoKernType &type__, int32_t &kerning__) const
Retrieves the kerning type and value for a character in the target story.
virtual TextParaVector paragraphs() const
Retrieves a vector of paragraphs contained in the target story.
virtual std::unique_ptr< TextRange > textRange() const
Retrieves the text range that contains the entire text of the target story.
TextStory(const TextStory &s_)
TextStory copy constructor.
virtual std::unique_ptr< TextStorySet > stories() const
Retrieves the story collection that contains the target story.
Encapsulates story set functionality from the Illustrator SDK.
Definition hdicoreTextStorySet.h:35
Encapsulates text word functionality from the Illustrator SDK.
Definition hdicoreTextWord.h:29
Header file for a wide variety of necessary typedefs, enums, and forwards declarations.
AutoKernType
Indicates the kerning type of some text.
Definition hdicoreTypes.h:495