InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
RunInGrepStyleRule Class Reference

#include <RunInGrepStyleList.h>

Public Types

typedef object_type data_type
 

Public Member Functions

 RunInGrepStyleRule (UID charstyle, const WideString &trigger)
 
bool operator== (const RunInGrepStyleRule &) const
 
void SetCharacterStyle (const UID &cs)
 
UID GetCharacterStyle () const
 
WideString GetGrepExpression () const
 
void SetGrepExpression (const WideString &s)
 
void ReadWrite (IPMStream *stream)
 

Detailed Description

A description of a single grep-based style, where a grep-style is the application of a character style to text that matches a particular GREP expression. A paragraph will have a text attribute (kTextAttrGrepStylesBoss) specified by either a paragraph style or a locally applied attribute. This attribute contains a list of RunInGrepStyleRule objects called a RunInGrepStyleList.

See Also
RunInGrepStyleList
ITextAttrGrepStyle

Member Function Documentation

UID RunInGrepStyleRule::GetCharacterStyle () const
inline
Returns
the character style associated with this run-in style
WideString RunInGrepStyleRule::GetGrepExpression () const
inline
Returns
the GREP expression associated with this run-in style
void RunInGrepStyleRule::ReadWrite (IPMStreamstream)

read or write the single run-in style rule to the stream

void RunInGrepStyleRule::SetCharacterStyle (const UIDcs)
inline

assign the character style associated with this run-in style

Parameters
characterstyle UID