![]() | InDesign SDK 20.5 |
#include <RunInStyleList.h>
Public Types | |
| enum | RunInErrorType { kRI_NoError = 0, kRI_Empty, kRI_UnmatchedBraces, kRI_NoTrigger } |
| typedef object_type | data_type |
Public Member Functions | |
| RunInStyleRule (UID charstyle, const WideString &trigger) | |
| bool | operator== (const RunInStyleRule &) const |
| void | SetTriggerExpression (const WideString &s) |
| bool16 | IsLoopbackStyleRule (int32 *pNextRuleIndex=nil) const |
| void | SetCharacterStyle (const UID &cs) |
| UID | GetCharacterStyle () const |
| const WideString & | GetTriggerExpression () const |
| void | ReadWrite (IPMStream *stream) |
Static Public Member Functions | |
| static RunInErrorType | VerifyExpression (const WideString &test) |
A description of a single run-in style, where a run-in style is an ordered application of character styles to text according to some simple rules. (next word, next sentence, etc). A paragraph will have a text attribute (kTextAttrRunInStylesBoss) specified by either a paragraph style or a locally applied attribute. This attribute contains a list of RunInStyleRule objects called a RunInStyleList.
possible errors returned by RunInStyleRule::VerifyExpression()
| inline |
| inline |
| bool16 RunInStyleRule::IsLoopbackStyleRule | ( | int32 * | pNextRuleIndex = nil | ) | const |
Is this rule a loop-back?
| pNextRuleIndex | will be set to the next rule index specified by the loopback. |
| void RunInStyleRule::ReadWrite | ( | IPMStream * | stream | ) |
read or write the single run-in style rule to the stream
| inline |
assign the character style associated with this run-in style
| character | style UID |
| inline |
Assign the rule that determines when to STOP applying the associated character style
| the | trigger expression the format of the trigger expression should be: either [x]n or (x)n – if n is missing, "1" is assumed. – if braces are missing, "()" is assumed where n = base-10 number (can be multi-digit) where x = list of characters, any of which will cause the expression to "succeed" where [] mean do NOT include the triggering character, and () means include it |
| static |
verify that the trigger expression is considered legal
| the | string to test |