import_border_style

Defined in header: <orcus/spreadsheet/import_interface_styles.hpp>

class import_border_style

Interface for importing border style items.

Public Functions

virtual ~import_border_style()
virtual void set_style(border_direction_t dir, border_style_t style) = 0

Set the border style to a specified border position.

Parameters:
  • dir – position of a border to set the style to.

  • style – border style to set.

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

Set the color of a border.

Parameters:
  • dir – position of a border to set the color to.

  • alpha – alpha element of the color.

  • red – red element of the color.

  • green – green element of the color.

  • blue – blue element of the color.

virtual void set_width(border_direction_t dir, double width, orcus::length_unit_t unit) = 0

Set the width of a border.

Parameters:
  • dir – position of a border.

  • width – width of a border.

  • unit – unit of measurement to use in the border width.

virtual size_t commit() = 0

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.