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

#include <import_interface_styles.hpp>

Public Member Functions

virtual void set_style (border_direction_t dir, border_style_t style)=0
virtual void set_color (border_direction_t dir, color_elem_t alpha, color_elem_t red, color_elem_t green, color_elem_t blue)=0
virtual void set_width (border_direction_t dir, double width, orcus::length_unit_t unit)=0
virtual size_t commit ()=0

Detailed Description

Interface for importing border style items.

Member Function Documentation

◆ commit()

virtual size_t orcus::spreadsheet::iface::import_border_style::commit ( )
pure virtual

Commit the border style in the current buffer.

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

◆ set_color()

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

Set the color of a border.

Parameters
dirposition of a border to set the color to.
alphaalpha element of the color.
redred element of the color.
greengreen element of the color.
blueblue element of the color.

◆ set_style()

virtual void orcus::spreadsheet::iface::import_border_style::set_style ( border_direction_t dir,
border_style_t style )
pure virtual

Set the border style to a specified border position.

Parameters
dirposition of a border to set the style to.
styleborder style to set.

◆ set_width()

virtual void orcus::spreadsheet::iface::import_border_style::set_width ( border_direction_t dir,
double width,
orcus::length_unit_t unit )
pure virtual

Set the width of a border.

Parameters
dirposition of a border.
widthwidth of a border.
unitunit of measurement to use in the border width.