LibreOffice Module sc (master)  1
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
ScOrcusStyles Class Reference

#include <orcusinterface.hxx>

Inheritance diagram for ScOrcusStyles:
[legend]
Collaboration diagram for ScOrcusStyles:
[legend]

Classes

struct  border
 
struct  cell_style
 
struct  fill
 
struct  font
 
struct  number_format
 
struct  protection
 
struct  xf
 

Public Member Functions

 ScOrcusStyles (ScOrcusFactory &rFactory, bool bSkipDefaultStyles=false)
 
void applyXfToItemSet (SfxItemSet &rSet, size_t xfId)
 
virtual void set_font_count (size_t n) override
 
virtual void set_font_bold (bool b) override
 
virtual void set_font_italic (bool b) override
 
virtual void set_font_name (const char *s, size_t n) override
 
virtual void set_font_size (double point) override
 
virtual void set_font_underline (orcus::spreadsheet::underline_t e) override
 
virtual void set_font_underline_width (orcus::spreadsheet::underline_width_t e) override
 
virtual void set_font_underline_mode (orcus::spreadsheet::underline_mode_t e) override
 
virtual void set_font_underline_type (orcus::spreadsheet::underline_type_t e) override
 
virtual void set_font_underline_color (orcus::spreadsheet::color_elem_t alpha, orcus::spreadsheet::color_elem_t red, orcus::spreadsheet::color_elem_t green, orcus::spreadsheet::color_elem_t blue) override
 
virtual void set_font_color (orcus::spreadsheet::color_elem_t alpha, orcus::spreadsheet::color_elem_t red, orcus::spreadsheet::color_elem_t green, orcus::spreadsheet::color_elem_t blue) override
 
virtual void set_strikethrough_style (orcus::spreadsheet::strikethrough_style_t s) override
 
virtual void set_strikethrough_type (orcus::spreadsheet::strikethrough_type_t s) override
 
virtual void set_strikethrough_width (orcus::spreadsheet::strikethrough_width_t s) override
 
virtual void set_strikethrough_text (orcus::spreadsheet::strikethrough_text_t s) override
 
virtual size_t commit_font () override
 
virtual void set_fill_count (size_t n) override
 
virtual void set_fill_pattern_type (orcus::spreadsheet::fill_pattern_t fp) override
 
virtual void set_fill_fg_color (orcus::spreadsheet::color_elem_t alpha, orcus::spreadsheet::color_elem_t red, orcus::spreadsheet::color_elem_t green, orcus::spreadsheet::color_elem_t blue) override
 
virtual void set_fill_bg_color (orcus::spreadsheet::color_elem_t alpha, orcus::spreadsheet::color_elem_t red, orcus::spreadsheet::color_elem_t green, orcus::spreadsheet::color_elem_t blue) override
 
virtual size_t commit_fill () override
 
virtual void set_border_count (size_t n) override
 
virtual void set_border_style (orcus::spreadsheet::border_direction_t dir, orcus::spreadsheet::border_style_t style) override
 
virtual void set_border_color (orcus::spreadsheet::border_direction_t dir, orcus::spreadsheet::color_elem_t alpha, orcus::spreadsheet::color_elem_t red, orcus::spreadsheet::color_elem_t green, orcus::spreadsheet::color_elem_t blue) override
 
virtual void set_border_width (orcus::spreadsheet::border_direction_t dir, double val, orcus::length_unit_t unit) override
 
virtual size_t commit_border () override
 
virtual void set_cell_hidden (bool b) override
 
virtual void set_cell_locked (bool b) override
 
virtual void set_cell_print_content (bool b) override
 
virtual void set_cell_formula_hidden (bool b) override
 
virtual size_t commit_cell_protection () override
 
virtual void set_number_format_count (size_t n) override
 
virtual void set_number_format_identifier (size_t n) override
 
virtual void set_number_format_code (const char *s, size_t n) override
 
virtual size_t commit_number_format () override
 
virtual void set_cell_style_xf_count (size_t n) override
 
virtual size_t commit_cell_style_xf () override
 
virtual void set_cell_xf_count (size_t n) override
 
virtual size_t commit_cell_xf () override
 
virtual void set_dxf_count (size_t count) override
 
virtual size_t commit_dxf () override
 
virtual void set_xf_number_format (size_t index) override
 
virtual void set_xf_font (size_t index) override
 
virtual void set_xf_fill (size_t index) override
 
virtual void set_xf_border (size_t index) override
 
virtual void set_xf_protection (size_t index) override
 
virtual void set_xf_style_xf (size_t index) override
 
virtual void set_xf_apply_alignment (bool b) override
 
virtual void set_xf_horizontal_alignment (orcus::spreadsheet::hor_alignment_t align) override
 
virtual void set_xf_vertical_alignment (orcus::spreadsheet::ver_alignment_t align) override
 
virtual void set_cell_style_count (size_t n) override
 
virtual void set_cell_style_name (const char *s, size_t n) override
 
virtual void set_cell_style_xf (size_t index) override
 
virtual void set_cell_style_builtin (size_t index) override
 
virtual void set_cell_style_parent_name (const char *s, size_t n) override
 
virtual size_t commit_cell_style () override
 

Private Member Functions

void applyXfToItemSet (SfxItemSet &rSet, const xf &rXf)
 

Private Attributes

ScOrcusFactorymrFactory
 
font maCurrentFont
 
std::vector< fontmaFonts
 
fill maCurrentFill
 
std::vector< fillmaFills
 
border maCurrentBorder
 
std::vector< bordermaBorders
 
protection maCurrentProtection
 
std::vector< protectionmaProtections
 
number_format maCurrentNumberFormat
 
std::vector< number_formatmaNumberFormats
 
xf maCurrentXF
 
std::vector< xfmaCellStyleXfs
 
std::vector< xfmaCellXfs
 
cell_style maCurrentCellStyle
 

Detailed Description

Definition at line 352 of file orcusinterface.hxx.

Constructor & Destructor Documentation

ScOrcusStyles::ScOrcusStyles ( ScOrcusFactory rFactory,
bool  bSkipDefaultStyles = false 
)

Member Function Documentation

void ScOrcusStyles::applyXfToItemSet ( SfxItemSet rSet,
const xf rXf 
)
private
void ScOrcusStyles::applyXfToItemSet ( SfxItemSet rSet,
size_t  xfId 
)

Definition at line 1583 of file interface.cxx.

References applyXfToItemSet(), maCellXfs, SAL_INFO, and SAL_WARN.

size_t ScOrcusStyles::commit_border ( )
overridevirtual

Definition at line 1939 of file interface.cxx.

References maBorders, maCurrentBorder, and SAL_INFO.

size_t ScOrcusStyles::commit_cell_protection ( )
overridevirtual

Definition at line 1972 of file interface.cxx.

References maCurrentProtection, maProtections, and SAL_INFO.

size_t ScOrcusStyles::commit_cell_style ( )
overridevirtual
size_t ScOrcusStyles::commit_cell_style_xf ( )
overridevirtual

Definition at line 2010 of file interface.cxx.

References maCellStyleXfs, maCurrentXF, and SAL_INFO.

size_t ScOrcusStyles::commit_cell_xf ( )
overridevirtual

Definition at line 2024 of file interface.cxx.

References maCellXfs, maCurrentXF, and SAL_INFO.

size_t ScOrcusStyles::commit_dxf ( )
overridevirtual

Definition at line 2037 of file interface.cxx.

size_t ScOrcusStyles::commit_fill ( )
overridevirtual

Definition at line 1839 of file interface.cxx.

References maCurrentFill, maFills, and SAL_INFO.

size_t ScOrcusStyles::commit_font ( )
overridevirtual

Definition at line 1803 of file interface.cxx.

References maCurrentFont, maFonts, and SAL_INFO.

size_t ScOrcusStyles::commit_number_format ( )
overridevirtual

Definition at line 1995 of file interface.cxx.

References maCurrentNumberFormat, maNumberFormats, and SAL_INFO.

void ScOrcusStyles::set_border_color ( orcus::spreadsheet::border_direction_t  dir,
orcus::spreadsheet::color_elem_t  alpha,
orcus::spreadsheet::color_elem_t  red,
orcus::spreadsheet::color_elem_t  green,
orcus::spreadsheet::color_elem_t  blue 
)
overridevirtual
void ScOrcusStyles::set_border_count ( size_t  n)
overridevirtual

Definition at line 1849 of file interface.cxx.

void ScOrcusStyles::set_border_style ( orcus::spreadsheet::border_direction_t  dir,
orcus::spreadsheet::border_style_t  style 
)
overridevirtual
void ScOrcusStyles::set_border_width ( orcus::spreadsheet::border_direction_t  dir,
double  val,
orcus::length_unit_t  unit 
)
overridevirtual
void ScOrcusStyles::set_cell_formula_hidden ( bool  b)
overridevirtual
void ScOrcusStyles::set_cell_hidden ( bool  b)
overridevirtual
void ScOrcusStyles::set_cell_locked ( bool  b)
overridevirtual
void ScOrcusStyles::set_cell_print_content ( bool  b)
overridevirtual
void ScOrcusStyles::set_cell_style_builtin ( size_t  index)
overridevirtual

Definition at line 2155 of file interface.cxx.

References maCurrentCellStyle, and ScOrcusStyles::cell_style::mnBuiltInId.

void ScOrcusStyles::set_cell_style_count ( size_t  n)
overridevirtual

Definition at line 2139 of file interface.cxx.

void ScOrcusStyles::set_cell_style_name ( const char *  s,
size_t  n 
)
overridevirtual
void ScOrcusStyles::set_cell_style_parent_name ( const char *  s,
size_t  n 
)
overridevirtual
void ScOrcusStyles::set_cell_style_xf ( size_t  index)
overridevirtual

Definition at line 2150 of file interface.cxx.

References maCurrentCellStyle, and ScOrcusStyles::cell_style::mnXFId.

void ScOrcusStyles::set_cell_style_xf_count ( size_t  n)
overridevirtual

Definition at line 2005 of file interface.cxx.

void ScOrcusStyles::set_cell_xf_count ( size_t  n)
overridevirtual

Definition at line 2019 of file interface.cxx.

void ScOrcusStyles::set_dxf_count ( size_t  count)
overridevirtual

Definition at line 2033 of file interface.cxx.

void ScOrcusStyles::set_fill_bg_color ( orcus::spreadsheet::color_elem_t  alpha,
orcus::spreadsheet::color_elem_t  red,
orcus::spreadsheet::color_elem_t  green,
orcus::spreadsheet::color_elem_t  blue 
)
overridevirtual
void ScOrcusStyles::set_fill_count ( size_t  n)
overridevirtual

Definition at line 1813 of file interface.cxx.

void ScOrcusStyles::set_fill_fg_color ( orcus::spreadsheet::color_elem_t  alpha,
orcus::spreadsheet::color_elem_t  red,
orcus::spreadsheet::color_elem_t  green,
orcus::spreadsheet::color_elem_t  blue 
)
overridevirtual
void ScOrcusStyles::set_fill_pattern_type ( orcus::spreadsheet::fill_pattern_t  fp)
overridevirtual

Definition at line 1818 of file interface.cxx.

References maCurrentFill, and ScOrcusStyles::fill::mePattern.

void ScOrcusStyles::set_font_bold ( bool  b)
overridevirtual
void ScOrcusStyles::set_font_color ( orcus::spreadsheet::color_elem_t  alpha,
orcus::spreadsheet::color_elem_t  red,
orcus::spreadsheet::color_elem_t  green,
orcus::spreadsheet::color_elem_t  blue 
)
overridevirtual
void ScOrcusStyles::set_font_count ( size_t  n)
overridevirtual

Definition at line 1596 of file interface.cxx.

void ScOrcusStyles::set_font_italic ( bool  b)
overridevirtual
void ScOrcusStyles::set_font_name ( const char *  s,
size_t  n 
)
overridevirtual
void ScOrcusStyles::set_font_size ( double  point)
overridevirtual
void ScOrcusStyles::set_font_underline ( orcus::spreadsheet::underline_t  e)
overridevirtual
void ScOrcusStyles::set_font_underline_color ( orcus::spreadsheet::color_elem_t  alpha,
orcus::spreadsheet::color_elem_t  red,
orcus::spreadsheet::color_elem_t  green,
orcus::spreadsheet::color_elem_t  blue 
)
overridevirtual

Definition at line 1725 of file interface.cxx.

References maCurrentFont, and ScOrcusStyles::font::maUnderlineColor.

void ScOrcusStyles::set_font_underline_mode ( orcus::spreadsheet::underline_mode_t  e)
overridevirtual

Definition at line 1700 of file interface.cxx.

void ScOrcusStyles::set_font_underline_type ( orcus::spreadsheet::underline_type_t  e)
overridevirtual
void ScOrcusStyles::set_font_underline_width ( orcus::spreadsheet::underline_width_t  e)
overridevirtual
void ScOrcusStyles::set_number_format_code ( const char *  s,
size_t  n 
)
overridevirtual
void ScOrcusStyles::set_number_format_count ( size_t  n)
overridevirtual

Definition at line 1980 of file interface.cxx.

void ScOrcusStyles::set_number_format_identifier ( size_t  n)
overridevirtual

Definition at line 1984 of file interface.cxx.

void ScOrcusStyles::set_strikethrough_style ( orcus::spreadsheet::strikethrough_style_t  s)
overridevirtual

Definition at line 1743 of file interface.cxx.

void ScOrcusStyles::set_strikethrough_text ( orcus::spreadsheet::strikethrough_text_t  s)
overridevirtual
void ScOrcusStyles::set_strikethrough_type ( orcus::spreadsheet::strikethrough_type_t  s)
overridevirtual
void ScOrcusStyles::set_strikethrough_width ( orcus::spreadsheet::strikethrough_width_t  s)
overridevirtual
void ScOrcusStyles::set_xf_apply_alignment ( bool  b)
overridevirtual

Definition at line 2074 of file interface.cxx.

void ScOrcusStyles::set_xf_border ( size_t  index)
overridevirtual

Definition at line 2059 of file interface.cxx.

References maCurrentXF, and ScOrcusStyles::xf::mnBorderId.

void ScOrcusStyles::set_xf_fill ( size_t  index)
overridevirtual

Definition at line 2054 of file interface.cxx.

References maCurrentXF, and ScOrcusStyles::xf::mnFillId.

void ScOrcusStyles::set_xf_font ( size_t  index)
overridevirtual

Definition at line 2049 of file interface.cxx.

References maCurrentXF, and ScOrcusStyles::xf::mnFontId.

void ScOrcusStyles::set_xf_horizontal_alignment ( orcus::spreadsheet::hor_alignment_t  align)
overridevirtual
void ScOrcusStyles::set_xf_number_format ( size_t  index)
overridevirtual

Definition at line 2044 of file interface.cxx.

References maCurrentXF, and ScOrcusStyles::xf::mnNumberFormatId.

void ScOrcusStyles::set_xf_protection ( size_t  index)
overridevirtual

Definition at line 2064 of file interface.cxx.

References maCurrentXF, and ScOrcusStyles::xf::mnProtectionId.

void ScOrcusStyles::set_xf_style_xf ( size_t  index)
overridevirtual

Definition at line 2069 of file interface.cxx.

References maCurrentXF, and ScOrcusStyles::xf::mnStyleXf.

void ScOrcusStyles::set_xf_vertical_alignment ( orcus::spreadsheet::ver_alignment_t  align)
overridevirtual

Member Data Documentation

std::vector<border> ScOrcusStyles::maBorders
private

Definition at line 418 of file orcusinterface.hxx.

Referenced by applyXfToItemSet(), and commit_border().

std::vector<xf> ScOrcusStyles::maCellStyleXfs
private

Definition at line 468 of file orcusinterface.hxx.

Referenced by commit_cell_style(), and commit_cell_style_xf().

std::vector<xf> ScOrcusStyles::maCellXfs
private

Definition at line 469 of file orcusinterface.hxx.

Referenced by applyXfToItemSet(), and commit_cell_xf().

border ScOrcusStyles::maCurrentBorder
private
cell_style ScOrcusStyles::maCurrentCellStyle
private
fill ScOrcusStyles::maCurrentFill
private
font ScOrcusStyles::maCurrentFont
private
number_format ScOrcusStyles::maCurrentNumberFormat
private

Definition at line 446 of file orcusinterface.hxx.

Referenced by commit_number_format(), and set_number_format_code().

protection ScOrcusStyles::maCurrentProtection
private
xf ScOrcusStyles::maCurrentXF
private
std::vector<fill> ScOrcusStyles::maFills
private

Definition at line 396 of file orcusinterface.hxx.

Referenced by applyXfToItemSet(), and commit_fill().

std::vector<font> ScOrcusStyles::maFonts
private

Definition at line 380 of file orcusinterface.hxx.

Referenced by applyXfToItemSet(), and commit_font().

std::vector<number_format> ScOrcusStyles::maNumberFormats
private

Definition at line 447 of file orcusinterface.hxx.

Referenced by applyXfToItemSet(), and commit_number_format().

std::vector<protection> ScOrcusStyles::maProtections
private

Definition at line 434 of file orcusinterface.hxx.

Referenced by applyXfToItemSet(), and commit_cell_protection().

ScOrcusFactory& ScOrcusStyles::mrFactory
private

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