ON_TextRunBuilder Class Reference

#include <opennurbs_textiterator.h>

Inheritance diagram for ON_TextRunBuilder:
ON_TextBuilder

Public Member Functions

 ON_TextRunBuilder (ON_TextContent &text, ON_TextRunArray &runs, const ON_DimStyle *dimstyle, double height, ON_Color color)
 
virtual ~ON_TextRunBuilder ()
 
void AppendCurrentRun ()
 
void BeginColorTable () override
 
void BeginFontTable () override
 
void BeginHeader () override
 
void Bold (const wchar_t *value) override
 
void ColorBackground (const wchar_t *value) override
 
void ColorBlue (const wchar_t *value) override
 
void ColorForeground (const wchar_t *value) override
 
void ColorGreen (const wchar_t *value) override
 
void ColorRed (const wchar_t *value) override
 
void DefaultFont (const wchar_t *value) override
 
void FinishCurrentRun ()
 
void FlushText (size_t count, ON__UINT32 *cp_array) override
 
void FontSize (const wchar_t *value) override
 
void FontTag (const wchar_t *value) override
 
void GroupBegin () override
 
void GroupEnd () override
 
void InitBuilder (const ON_Font *default_font) override
 
void Italic (const wchar_t *value) override
 
void Newline () override
 
void NoSuperSub () override
 
void Paragraph () override
 
void ParagraphDefaults () override
 
void Section () override
 
void SetStackScale (const wchar_t *value) override
 
void StackEnd () override
 
void StackFraction (const wchar_t *value) override
 
void Strikethrough (const wchar_t *value) override
 
void Subscript () override
 
void Superscript () override
 
void Tab () override
 
void TextField (const wchar_t *name) override
 
void UnderlineOff () override
 
void UnderlineOn () override
 
void UniDest (const wchar_t *value) override
 
void UniEmbeddedDest (const wchar_t *value) override
 
- Public Member Functions inherited from ON_TextBuilder
 ON_TextBuilder ()
 
virtual ~ON_TextBuilder ()
 
virtual bool AppendCodePoint (ON__UINT32 codept)
 
virtual void Bullet ()
 
virtual void CharSet (const wchar_t *value)
 
unsigned int CharSetFromMap (int nval)
 
virtual void CodePage (const wchar_t *value)
 
unsigned int CodePageFromMap (int nval)
 
virtual void EmDash ()
 
virtual void EnDash ()
 
const ON_wString FaceNameFromMap (int nval)
 
virtual void LDblQuote ()
 
virtual void LQuote ()
 
virtual void RDblQuote ()
 
virtual void RQuote ()
 
ON__UINT32 * RunCodePoints (const ON_TextRun &run)
 
virtual void UniCpCount (const wchar_t *value)
 
virtual void UniDecimal (const wchar_t *value)
 

Public Attributes

const ON_Fontm_current_font = &ON_Font::Default
 
ON_TextRun m_current_run
 
ON_SimpleArray< const ON_Font *> m_font_stack
 
ON_TextRunArraym_runs
 
ON_TextContentm_text
 
- Public Attributes inherited from ON_TextBuilder
ON_SimpleArray< int > m_ansi_equiv_chars = 0
 
ON_SimpleArray< ON__UINT32 > m_current_codepoints
 
TextProps m_current_props
 
ON__UINT16 m_current_UTF16_buffer [2]
 
ON__INT32 m_current_UTF16_buffer_count = 0
 
ON__INT32 m_default_font_index = 0
 
ON_ClassArray< ON_FaceNameKeym_facename_map
 
ON__INT32 m_font_index = 0
 
ON__INT32 m_font_table_level = -1
 
ON__INT32 m_in_run
 
ON__INT32 m_level = 0
 
ON_ClassArray< TextPropsm_prop_stack
 

Additional Inherited Members

- Public Types inherited from ON_TextBuilder
enum  : ON__UINT16 { m_UFT16_waiting_mark = 0xEEEE, m_UFT16_unused_mark = 0xFFFF }
 

Constructor & Destructor Documentation

◆ ON_TextRunBuilder()

ON_TextRunBuilder::ON_TextRunBuilder ( ON_TextContent text,
ON_TextRunArray runs,
const ON_DimStyle dimstyle,
double  height,
ON_Color  color 
)

◆ ~ON_TextRunBuilder()

virtual ON_TextRunBuilder::~ON_TextRunBuilder ( )
virtual

Member Function Documentation

◆ AppendCurrentRun()

void ON_TextRunBuilder::AppendCurrentRun ( )

◆ BeginColorTable()

void ON_TextRunBuilder::BeginColorTable ( )
overridevirtual

Reimplemented from ON_TextBuilder.

◆ BeginFontTable()

void ON_TextRunBuilder::BeginFontTable ( )
overridevirtual

Reimplemented from ON_TextBuilder.

◆ BeginHeader()

void ON_TextRunBuilder::BeginHeader ( )
overridevirtual

Reimplemented from ON_TextBuilder.

◆ Bold()

void ON_TextRunBuilder::Bold ( const wchar_t *  value)
overridevirtual

Reimplemented from ON_TextBuilder.

◆ ColorBackground()

void ON_TextRunBuilder::ColorBackground ( const wchar_t *  value)
overridevirtual

Reimplemented from ON_TextBuilder.

◆ ColorBlue()

void ON_TextRunBuilder::ColorBlue ( const wchar_t *  value)
overridevirtual

Reimplemented from ON_TextBuilder.

◆ ColorForeground()

void ON_TextRunBuilder::ColorForeground ( const wchar_t *  value)
overridevirtual

Reimplemented from ON_TextBuilder.

◆ ColorGreen()

void ON_TextRunBuilder::ColorGreen ( const wchar_t *  value)
overridevirtual

Reimplemented from ON_TextBuilder.

◆ ColorRed()

void ON_TextRunBuilder::ColorRed ( const wchar_t *  value)
overridevirtual

Reimplemented from ON_TextBuilder.

◆ DefaultFont()

void ON_TextRunBuilder::DefaultFont ( const wchar_t *  value)
overridevirtual

Reimplemented from ON_TextBuilder.

◆ FinishCurrentRun()

void ON_TextRunBuilder::FinishCurrentRun ( )

◆ FlushText()

void ON_TextRunBuilder::FlushText ( size_t  count,
ON__UINT32 *  cp_array 
)
overridevirtual

Reimplemented from ON_TextBuilder.

◆ FontSize()

void ON_TextRunBuilder::FontSize ( const wchar_t *  value)
overridevirtual

Reimplemented from ON_TextBuilder.

◆ FontTag()

void ON_TextRunBuilder::FontTag ( const wchar_t *  value)
overridevirtual

Reimplemented from ON_TextBuilder.

◆ GroupBegin()

void ON_TextRunBuilder::GroupBegin ( )
overridevirtual

Reimplemented from ON_TextBuilder.

◆ GroupEnd()

void ON_TextRunBuilder::GroupEnd ( )
overridevirtual

Reimplemented from ON_TextBuilder.

◆ InitBuilder()

void ON_TextRunBuilder::InitBuilder ( const ON_Font default_font)
overridevirtual

Reimplemented from ON_TextBuilder.

◆ Italic()

void ON_TextRunBuilder::Italic ( const wchar_t *  value)
overridevirtual

Reimplemented from ON_TextBuilder.

◆ Newline()

void ON_TextRunBuilder::Newline ( )
overridevirtual

Reimplemented from ON_TextBuilder.

◆ NoSuperSub()

void ON_TextRunBuilder::NoSuperSub ( )
overridevirtual

Reimplemented from ON_TextBuilder.

◆ Paragraph()

void ON_TextRunBuilder::Paragraph ( )
overridevirtual

Reimplemented from ON_TextBuilder.

◆ ParagraphDefaults()

void ON_TextRunBuilder::ParagraphDefaults ( )
overridevirtual

Reimplemented from ON_TextBuilder.

◆ Section()

void ON_TextRunBuilder::Section ( )
overridevirtual

Reimplemented from ON_TextBuilder.

◆ SetStackScale()

void ON_TextRunBuilder::SetStackScale ( const wchar_t *  value)
overridevirtual

Reimplemented from ON_TextBuilder.

◆ StackEnd()

void ON_TextRunBuilder::StackEnd ( )
overridevirtual

Reimplemented from ON_TextBuilder.

◆ StackFraction()

void ON_TextRunBuilder::StackFraction ( const wchar_t *  value)
overridevirtual

Reimplemented from ON_TextBuilder.

◆ Strikethrough()

void ON_TextRunBuilder::Strikethrough ( const wchar_t *  value)
overridevirtual

Reimplemented from ON_TextBuilder.

◆ Subscript()

void ON_TextRunBuilder::Subscript ( )
overridevirtual

Reimplemented from ON_TextBuilder.

◆ Superscript()

void ON_TextRunBuilder::Superscript ( )
overridevirtual

Reimplemented from ON_TextBuilder.

◆ Tab()

void ON_TextRunBuilder::Tab ( )
overridevirtual

Reimplemented from ON_TextBuilder.

◆ TextField()

void ON_TextRunBuilder::TextField ( const wchar_t *  name)
overridevirtual

Reimplemented from ON_TextBuilder.

◆ UnderlineOff()

void ON_TextRunBuilder::UnderlineOff ( )
overridevirtual

Reimplemented from ON_TextBuilder.

◆ UnderlineOn()

void ON_TextRunBuilder::UnderlineOn ( )
overridevirtual

Reimplemented from ON_TextBuilder.

◆ UniDest()

void ON_TextRunBuilder::UniDest ( const wchar_t *  value)
overridevirtual

Reimplemented from ON_TextBuilder.

◆ UniEmbeddedDest()

void ON_TextRunBuilder::UniEmbeddedDest ( const wchar_t *  value)
overridevirtual

Reimplemented from ON_TextBuilder.

Member Data Documentation

◆ m_current_font

const ON_Font* ON_TextRunBuilder::m_current_font = &ON_Font::Default

◆ m_current_run

ON_TextRun ON_TextRunBuilder::m_current_run

◆ m_font_stack

ON_SimpleArray< const ON_Font* > ON_TextRunBuilder::m_font_stack

◆ m_runs

ON_TextRunArray& ON_TextRunBuilder::m_runs

◆ m_text

ON_TextContent& ON_TextRunBuilder::m_text