From 5a2b92977df1ce28f99b1a391fdfd3a37bd727f9 Mon Sep 17 00:00:00 2001 From: Jaskaran Singh Date: Sun, 26 Jun 2016 13:13:42 +0530 Subject: [PATCH] Declare font, border, protection orcus interface methods Change-Id: I486d861ba3c2c763964cdc3af2312661ef1a533d --- sc/source/filter/inc/orcusinterface.hxx | 10 +++++++++ sc/source/filter/orcus/interface.cxx | 38 +++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) diff --git a/sc/source/filter/inc/orcusinterface.hxx b/sc/source/filter/inc/orcusinterface.hxx index 3046b44..521b388 100644 --- a/sc/source/filter/inc/orcusinterface.hxx +++ b/sc/source/filter/inc/orcusinterface.hxx @@ -357,6 +357,13 @@ public: 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, @@ -381,11 +388,14 @@ public: 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, orcus::length_t width) override; virtual size_t commit_border() override; // cell protection 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; // number format diff --git a/sc/source/filter/orcus/interface.cxx b/sc/source/filter/orcus/interface.cxx index e8a2dba..dbeb6aa 100644 --- a/sc/source/filter/orcus/interface.cxx +++ b/sc/source/filter/orcus/interface.cxx @@ -961,6 +961,29 @@ void ScOrcusStyles::set_font_underline(orcus::spreadsheet::underline_t e) } } +void ScOrcusStyles::set_font_underline_width(orcus::spreadsheet::underline_width_t /* e */) +{ + +} + +void ScOrcusStyles::set_font_underline_mode(orcus::spreadsheet::underline_mode_t /* e */) +{ + +} + +void ScOrcusStyles::set_font_underline_type(orcus::spreadsheet::underline_type_t /* e */) +{ + +} + +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*/) +{ + +} + void ScOrcusStyles::set_font_color(orcus::spreadsheet::color_elem_t alpha, orcus::spreadsheet::color_elem_t red, orcus::spreadsheet::color_elem_t green, @@ -1035,6 +1058,11 @@ void ScOrcusStyles::set_border_color(orcus::spreadsheet::border_direction_t dir, current_line.maColor = Color(alpha, red, green, blue); } +void ScOrcusStyles::set_border_width(orcus::spreadsheet::border_direction_t /* dir */, orcus::length_t /* width */) +{ + +} + size_t ScOrcusStyles::commit_border() { SAL_INFO("sc.orcus.style", "commit border"); @@ -1054,6 +1082,16 @@ void ScOrcusStyles::set_cell_locked(bool b) maCurrentProtection.mbLocked = b; } +void ScOrcusStyles::set_cell_print_content(bool /* b */) +{ + +} + +void ScOrcusStyles::set_cell_formula_hidden(bool /* b */) +{ + +} + size_t ScOrcusStyles::commit_cell_protection() { SAL_INFO("sc.orcus.style", "commit cell protection"); -- 2.9.3