Orcus
Loading...
Searching...
No Matches
orcus::spreadsheet::iface::import_font_style Class Referenceabstract

#include <import_interface_styles.hpp>

Public Member Functions

virtual void set_bold (bool b)=0
 
virtual void set_bold_asian (bool b)=0
 
virtual void set_bold_complex (bool b)=0
 
virtual void set_italic (bool b)=0
 
virtual void set_italic_asian (bool b)=0
 
virtual void set_italic_complex (bool b)=0
 
virtual void set_name (std::string_view s)=0
 
virtual void set_name_asian (std::string_view s)=0
 
virtual void set_name_complex (std::string_view s)=0
 
virtual void set_size (double point)=0
 
virtual void set_size_asian (double point)=0
 
virtual void set_size_complex (double point)=0
 
virtual void set_color (color_elem_t alpha, color_elem_t red, color_elem_t green, color_elem_t blue)=0
 
virtual import_underlinestart_underline ()
 
virtual import_strikethroughstart_strikethrough ()
 
virtual std::size_t commit ()=0
 

Detailed Description

Interface for importing font style items. The following font style properties store different values for western, asian and complex scripts:

  • font name
  • font size
  • font weight (normal or bold)
  • font style (normal or italic)

Member Function Documentation

◆ commit()

virtual std::size_t orcus::spreadsheet::iface::import_font_style::commit ( )
pure virtual

Commit the font style in the current buffer.

Returns
index of the committed font style, to be passed on to the import_xf::set_font() method as its argument.

◆ set_bold()

virtual void orcus::spreadsheet::iface::import_font_style::set_bold ( bool b)
pure virtual

Set the font weight to either normal or bold, for western script.

Parameters
bwhether the font has normal (false) or bold weight (true).

◆ set_bold_asian()

virtual void orcus::spreadsheet::iface::import_font_style::set_bold_asian ( bool b)
pure virtual

Set the font weight to either normal or bold, for asian script.

Parameters
bwhether the font has normal (false) or bold weight (true).

◆ set_bold_complex()

virtual void orcus::spreadsheet::iface::import_font_style::set_bold_complex ( bool b)
pure virtual

Set the font weight to either normal or bold, for complex script.

Parameters
bwhether the font has normal (false) or bold weight (true).

◆ set_color()

virtual void orcus::spreadsheet::iface::import_font_style::set_color ( color_elem_t alpha,
color_elem_t red,
color_elem_t green,
color_elem_t blue )
pure virtual

Specify the color of font in ARGB format.

Parameters
alphaalpha component of the color.
redred component of the color.
greengreen component of the color.
blueblue component of the color.

◆ set_italic()

virtual void orcus::spreadsheet::iface::import_font_style::set_italic ( bool b)
pure virtual

Set the font style to either normal or italic, for western script.

Parameters
bwhether the font has normal (false) or italic style (true).

◆ set_italic_asian()

virtual void orcus::spreadsheet::iface::import_font_style::set_italic_asian ( bool b)
pure virtual

Set the font style to either normal or italic, for asian script.

Parameters
bwhether the font has normal (false) or italic style (true).

◆ set_italic_complex()

virtual void orcus::spreadsheet::iface::import_font_style::set_italic_complex ( bool b)
pure virtual

Set the font style to either normal or italic, for complex script.

Parameters
bwhether the font has normal (false) or italic style (true).

◆ set_name()

virtual void orcus::spreadsheet::iface::import_font_style::set_name ( std::string_view s)
pure virtual

Set the name of a font, for western script.

Parameters
sfont name.

◆ set_name_asian()

virtual void orcus::spreadsheet::iface::import_font_style::set_name_asian ( std::string_view s)
pure virtual

Set the name of a font, for asian script.

Parameters
sfont name.

◆ set_name_complex()

virtual void orcus::spreadsheet::iface::import_font_style::set_name_complex ( std::string_view s)
pure virtual

Set the name of a font, for complex script.

Parameters
sfont name.

◆ set_size()

virtual void orcus::spreadsheet::iface::import_font_style::set_size ( double point)
pure virtual

Set the size of a font in points, for western script.

Parameters
pointfont size in points.

◆ set_size_asian()

virtual void orcus::spreadsheet::iface::import_font_style::set_size_asian ( double point)
pure virtual

Set the size of a font in points, for asian script.

Parameters
pointfont size in points.

◆ set_size_complex()

virtual void orcus::spreadsheet::iface::import_font_style::set_size_complex ( double point)
pure virtual

Set the size of a font in points, for complex script.

Parameters
pointfont size in points.

◆ start_strikethrough()

virtual import_strikethrough * orcus::spreadsheet::iface::import_font_style::start_strikethrough ( )
virtual

Get an interface for importing the strikethrough attributes and applying them to the font style.

Returns
Pointer to an interface for applying the strikethrough-related attributes to the font style. The implementer may return nullptr if the implementation does not support it.

◆ start_underline()

virtual import_underline * orcus::spreadsheet::iface::import_font_style::start_underline ( )
virtual

Get an interface for importing the underline attributes and applying them to the font style.

Returns
Pointer to an interface for applying the underline-related attributes to the font style. The implementer may return nullptr if the implementation does not support it.