OpenXLSX 1.9.1
Loading...
Searching...
No Matches
OpenXLSX::XLRichText Class Reference

A class representing rich text in a cell. More...

#include <XLRichText.hpp>

Public Member Functions

 XLRichText ()=default
 
 XLRichText (const std::string &plainText)
 
XLRichTextaddRun (const XLRichTextRun &run)
 
XLRichTextRunaddRun (const std::string &text)
 
const std::vector< XLRichTextRun > & runs () const
 
std::vector< XLRichTextRun > & runs ()
 
std::string plainText () const
 Get the plain text representation of the rich text.
 
bool empty () const
 
void clear ()
 
XLRichTextoperator+= (const XLRichText &other)
 
XLRichTextoperator+= (const std::string &text)
 
XLRichTextoperator+= (const XLRichTextRun &run)
 

Detailed Description

A class representing rich text in a cell.

Constructor & Destructor Documentation

◆ XLRichText() [1/2]

OpenXLSX::XLRichText::XLRichText ( )
default

◆ XLRichText() [2/2]

OpenXLSX::XLRichText::XLRichText ( const std::string &  plainText)
inlineexplicit

Member Function Documentation

◆ addRun() [1/2]

XLRichTextRun & OpenXLSX::XLRichText::addRun ( const std::string &  text)
inline

◆ addRun() [2/2]

XLRichText & OpenXLSX::XLRichText::addRun ( const XLRichTextRun run)
inline

◆ clear()

void OpenXLSX::XLRichText::clear ( )
inline

◆ empty()

bool OpenXLSX::XLRichText::empty ( ) const
inline

◆ operator+=() [1/3]

XLRichText & OpenXLSX::XLRichText::operator+= ( const std::string &  text)
inline

◆ operator+=() [2/3]

XLRichText & OpenXLSX::XLRichText::operator+= ( const XLRichText other)
inline

◆ operator+=() [3/3]

XLRichText & OpenXLSX::XLRichText::operator+= ( const XLRichTextRun run)
inline

◆ plainText()

std::string OpenXLSX::XLRichText::plainText ( ) const
inline

Get the plain text representation of the rich text.

◆ runs() [1/2]

std::vector< XLRichTextRun > & OpenXLSX::XLRichText::runs ( )
inline

◆ runs() [2/2]

const std::vector< XLRichTextRun > & OpenXLSX::XLRichText::runs ( ) const
inline

The documentation for this class was generated from the following file: