import_fill_style¶
Defined in header: <orcus/spreadsheet/import_interface_styles.hpp>
-
class import_fill_style¶
Interface for importing fill style items.
Public Functions
-
virtual ~import_fill_style()¶
-
virtual void set_pattern_type(fill_pattern_t fp) = 0¶
Set the type of fill pattern.
- Parameters:
fp – fill pattern type.
-
virtual void set_fg_color(color_elem_t alpha, color_elem_t red, color_elem_t green, color_elem_t blue) = 0¶
Set the foreground color of a fill. Note that for a solid fill type, the foreground color will be used.
- Parameters:
alpha – alpha component ranging from 0 (fully transparent) to 255 (fully opaque).
red – red component ranging from 0 to 255.
green – green component ranging from 0 to 255.
blue – blue component ranging from 0 to 255.
-
virtual void set_bg_color(color_elem_t alpha, color_elem_t red, color_elem_t green, color_elem_t blue) = 0¶
Set the background color of a fill. Note that this color will be ignored for a solid fill type.
- Parameters:
alpha – alpha component ranging from 0 (fully transparent) to 255 (fully opaque).
red – red component ranging from 0 to 255.
green – green component ranging from 0 to 255.
blue – blue component ranging from 0 to 255.
-
virtual size_t commit() = 0¶
Commit the fill style in the current buffer.
- Returns:
index of the committed fill style, to be passed on to the import_xf::set_fill() method as its argument.
-
virtual ~import_fill_style()¶