Hot Door CORE 0.8.2
Adobe® Illustrator® Plug-in Library
|
Public Types | |
typedef std::vector< std::shared_ptr< TextPara > > | TextParaVector |
typedef std::vector< std::shared_ptr< TextRange > > | TextRangeVector |
typedef std::vector< std::shared_ptr< TextWord > > | TextWordVector |
Public Member Functions | |
TextRangeSet () | |
Creates a new TextRangeSet object. | |
TextRangeSet (const TextRangeSet &rs_) | |
TextRangeSet copy constructor. | |
virtual | ~TextRangeSet () |
Destructs a TextRangeSet object. | |
virtual TextRangeSet & | operator= (const TextRangeSet &rhs_) |
Overloaded assignment operator for TextRangeSet objects. | |
virtual bool | operator== (const TextRangeSet &rhs_) const |
Tests whether a given TextRangeSet object is the same as another. | |
virtual bool | operator!= (const TextRangeSet &rhs_) const |
Tests whether a given TextRangeSet object is not the same as another. | |
virtual std::unique_ptr< ATE::ITextRanges > | ateTextRangeSet () const |
Gets the ATE range set ref around which the target object is wrapped. | |
virtual bool | isEmpty () const |
Gets whether the target TextRangeSet object is empty. | |
virtual int32_t | size () const |
Retrieves the number of members of the target set. | |
virtual std::unique_ptr< TextRangeSet > | selections () const |
Retrieves the selected text within the target text range set. | |
virtual TextParaVector | paragraphs () const |
Retrieves a vector of paragraphs contained in the target text range set. | |
virtual TextWordVector | words () const |
Retrieves a vector of words contained in the target text range set. | |
virtual TextRangeVector | runs () const |
Retrieves a vector of runs (ranges) contained in the target text range set. | |
virtual std::unique_ptr< TextCharInspector > | charInspector () const |
Creates an inspector with which to access the character features of all characters in the target text range set. | |
virtual std::unique_ptr< TextParaInspector > | paraInspector () const |
Creates an inspector with which to access the paragraph features of all paragraphs in the target text range set. | |
virtual void | clearNamedCharStyle () |
Removes the association of the target text range set and its character style. Copies the feature values of the character style into local override values in the contained characters. | |
virtual void | clearNamedParaStyle () |
Removes the association of the target text range set and its paragraph style. Copies the feature values of the paragraph style into local override values in the contained paragraphs. | |
virtual std::unique_ptr< TextCharFeatures > | uniqueCharFeatures () const |
Retrieves the unique character features used in the target text range set. Unique features are those which have the same value in all text runs in the ranges. | |
virtual std::unique_ptr< TextParaFeatures > | uniqueParaFeatures () const |
Retrieves the unique paragraph features used in the target text range set. Unique features are those which have the same value in all text runs in the ranges. | |
virtual bool | hasLocalCharFeatures () |
Reports whether there any local character feature overrides for characters contained in the target text range set. | |
virtual bool | hasLocalParaFeatures () |
Reports whether there any local paragraph feature overrides for paragraphs contained in the target text range set. | |
virtual std::unique_ptr< TextCharFeatures > | localCharFeatures () |
Retrieves the character features that have local overrides in the target text range set, and whose local values are the same in all text runs in the ranges. | |
virtual void | setLocalCharFeatures (const TextCharFeatures &feat_) |
Replaces all of the local overrides for all characters in the target text range set with a new set of feature values. All values that are assigned become local values, replacing any previous local value. These local values override any specified in a style associated with a character or a text range. All values that are unassigned remove any previous local values, so that those values are inherited. | |
virtual void | replaceOrAddLocalCharFeatures (const TextCharFeatures &feat_) |
Modifies the local overrides for all characters in the target text range set. All values that are assigned become local values, replacing any previous local value. Values that are unassigned leave any previous local values unchanged. | |
virtual void | clearLocalCharFeatures () |
Removes all local overrides for all characters in the target text range set. All character features are then inherited from styles associated with the character or text range, or from the Normal style. | |
virtual std::unique_ptr< TextParaFeatures > | localParaFeatures () |
Retrieves the paragraph features that have local overrides in the target text range set, and whose local values are the same in all text runs in the ranges. | |
virtual void | setLocalParaFeatures (const TextParaFeatures &feat_) |
Replaces all of the local overrides for all paragraphs in the target text range set with a new set of feature values. All values that are assigned become local values, replacing any previous local value. These local values override any specified in a style associated with a paragraph or a text range. All values that are unassigned remove any previous local values, so that those values are inherited. | |
virtual void | replaceOrAddLocalParaFeatures (const TextParaFeatures &feat_) |
Modifies the local overrides for all paragraphs in the target text range set. All values that are assigned become local values, replacing any previous local value. Values that are unassigned leave any previous local values unchanged. | |
virtual void | clearLocalParaFeatures () |
Removes all local overrides for all paragraphs in this text range set. All paragraph features are then inherited from styles associated with the paragraph or text range, or from the Normal style. | |
virtual void | select (const bool addToCurrSelection_=false) |
Selects the text in the target text range set. | |
virtual void | deselect () |
Deselects the text in the target text range set. This can result in a discontiguous selection, if this text is a subset of the selected text. | |
virtual std::string | contents (const std::string &le_="\n") const |
Gets the value (contents) of the text range. | |
virtual void | changeCase (const CaseChangeType type_) |
Changes the case of the text in the target text range set. | |
virtual void | add (const TextRange &range_) |
Adds a text range as a member of this set. | |
virtual std::unique_ptr< TextRange > | textRange (const int32_t index_) const |
Retrieves a member of this set by position index. | |
virtual void | remove (const int32_t index_) |
Removes a member from the set. | |
virtual void | removeAll () |
Removes all members from the set. | |
Friends | |
aip::TextRangeSet * | __accessImpl (const TextRangeSet &) |
TextRangeSet | __accessCtor (const aip::TextRangeSet &) |
hdi::core::TextRangeSet::TextRangeSet | ( | ) |
Creates a new TextRangeSet object.
hdi::core::TextRangeSet::TextRangeSet | ( | const TextRangeSet & | rs_ | ) |
|
virtual |
Destructs a TextRangeSet object.
|
virtual |
Adds a text range as a member of this set.
range_ | The text range object to add |
|
virtual |
Gets the ATE range set ref around which the target object is wrapped.
|
virtual |
Changes the case of the text in the target text range set.
The | case type enum value |
|
virtual |
Creates an inspector with which to access the character features of all characters in the target text range set.
|
virtual |
Removes all local overrides for all characters in the target text range set. All character features are then inherited from styles associated with the character or text range, or from the Normal style.
|
virtual |
Removes all local overrides for all paragraphs in this text range set. All paragraph features are then inherited from styles associated with the paragraph or text range, or from the Normal style.
|
virtual |
Removes the association of the target text range set and its character style. Copies the feature values of the character style into local override values in the contained characters.
|
virtual |
Removes the association of the target text range set and its paragraph style. Copies the feature values of the paragraph style into local override values in the contained paragraphs.
|
virtual |
Gets the value (contents) of the text range.
le_ | Indicates the desired line ending for the output string |
|
virtual |
Deselects the text in the target text range set. This can result in a discontiguous selection, if this text is a subset of the selected text.
|
virtual |
Reports whether there any local character feature overrides for characters contained in the target text range set.
|
virtual |
Reports whether there any local paragraph feature overrides for paragraphs contained in the target text range set.
|
virtual |
Gets whether the target TextRangeSet object is empty.
|
virtual |
Retrieves the character features that have local overrides in the target text range set, and whose local values are the same in all text runs in the ranges.
|
virtual |
Retrieves the paragraph features that have local overrides in the target text range set, and whose local values are the same in all text runs in the ranges.
|
virtual |
Tests whether a given TextRangeSet object is not the same as another.
rhs_ | TextRangeSet to compare against (righthand side of inequality operator) |
|
virtual |
Overloaded assignment operator for TextRangeSet objects.
|
virtual |
Tests whether a given TextRangeSet object is the same as another.
rhs_ | TextRangeSet to compare against (righthand side of equality operator) |
|
virtual |
Retrieves a vector of paragraphs contained in the target text range set.
|
virtual |
Creates an inspector with which to access the paragraph features of all paragraphs in the target text range set.
|
virtual |
Removes a member from the set.
index_ | The 0-based position index of the member to remove |
|
virtual |
Removes all members from the set.
|
virtual |
Modifies the local overrides for all characters in the target text range set. All values that are assigned become local values, replacing any previous local value. Values that are unassigned leave any previous local values unchanged.
feat_ | The new feature set object |
|
virtual |
Modifies the local overrides for all paragraphs in the target text range set. All values that are assigned become local values, replacing any previous local value. Values that are unassigned leave any previous local values unchanged.
feat_ | The new feature set object |
|
virtual |
Retrieves a vector of runs (ranges) contained in the target text range set.
|
virtual |
Selects the text in the target text range set.
addToCurrSelection_ | true to add this text to the current selection, false to clear the current selection before selecting this text |
|
virtual |
Retrieves the selected text within the target text range set.
|
virtual |
Replaces all of the local overrides for all characters in the target text range set with a new set of feature values. All values that are assigned become local values, replacing any previous local value. These local values override any specified in a style associated with a character or a text range. All values that are unassigned remove any previous local values, so that those values are inherited.
feat_ | The new feature set object |
|
virtual |
Replaces all of the local overrides for all paragraphs in the target text range set with a new set of feature values. All values that are assigned become local values, replacing any previous local value. These local values override any specified in a style associated with a paragraph or a text range. All values that are unassigned remove any previous local values, so that those values are inherited.
feat_ | The new feature set object |
|
virtual |
Retrieves the number of members of the target set.
|
virtual |
Retrieves a member of this set by position index.
index_ | The 0-based position index |
|
virtual |
Retrieves the unique character features used in the target text range set. Unique features are those which have the same value in all text runs in the ranges.
|
virtual |
Retrieves the unique paragraph features used in the target text range set. Unique features are those which have the same value in all text runs in the ranges.
|
virtual |
Retrieves a vector of words contained in the target text range set.