diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2017-11-15 20:42:23 -0500 |
---|---|---|
committer | Kohei Yoshida <libreoffice@kohei.us> | 2017-11-18 13:32:52 +0100 |
commit | 38c4f46325260ffe176937fa309ef804e3bb0c31 (patch) | |
tree | d20f9212af8ae867ea3f92d5bd917c9bbdb9ef19 /sc | |
parent | 0557a9aace85b7d47f77de758bb4f9f97303d07c (diff) |
Updated liborcus to 0.13.1.
Change-Id: Id5aa07f87603879fe7a21dc96cad207f1b168286
Reviewed-on: https://gerrit.libreoffice.org/44850
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Kohei Yoshida <libreoffice@kohei.us>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/qa/unit/helper/csv_handler.hxx | 4 | ||||
-rw-r--r-- | sc/source/filter/inc/orcusinterface.hxx | 10 | ||||
-rw-r--r-- | sc/source/filter/orcus/interface.cxx | 22 | ||||
-rw-r--r-- | sc/source/ui/dataprovider/csvdataprovider.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/docshell/datastream.cxx | 2 |
5 files changed, 26 insertions, 14 deletions
diff --git a/sc/qa/unit/helper/csv_handler.hxx b/sc/qa/unit/helper/csv_handler.hxx index c4b5fafc63b6..8f0e8a8c2be3 100644 --- a/sc/qa/unit/helper/csv_handler.hxx +++ b/sc/qa/unit/helper/csv_handler.hxx @@ -98,7 +98,7 @@ public: mnCol = 0; } - void cell(const char* p, size_t n) + void cell(const char* p, size_t n, bool /*transient*/) { #if DEBUG_CSV_HANDLER std::cout << "Col: " << mnCol << " Row: " << mnRow << std::endl; @@ -194,7 +194,7 @@ public: mnCol = 0; } - void cell(const char* p, size_t n) + void cell(const char* p, size_t n, bool /*transient*/) { #if DEBUG_CSV_HANDLER std::cout << "Col: " << mnCol << " Row: " << mnRow << std::endl; diff --git a/sc/source/filter/inc/orcusinterface.hxx b/sc/source/filter/inc/orcusinterface.hxx index 1d4c285200ee..9938cf10d5fd 100644 --- a/sc/source/filter/inc/orcusinterface.hxx +++ b/sc/source/filter/inc/orcusinterface.hxx @@ -182,7 +182,8 @@ public: virtual void set_row_hidden(orcus::spreadsheet::row_t row, bool hidden) override; - virtual void set_merge_cell_range(const char* p_range, size_t n_range) override; + + virtual void set_merge_cell_range(const orcus::spreadsheet::range_t& range) override; }; class ScOrcusSheet : public orcus::spreadsheet::iface::import_sheet @@ -242,6 +243,8 @@ public: orcus::spreadsheet::row_t row, orcus::spreadsheet::col_t col, orcus::spreadsheet::formula_grammar_t grammar, const char* p, size_t n, const char* p_range, size_t n_range) override; + virtual orcus::spreadsheet::range_size_t get_sheet_size() const override; + SCTAB getIndex() const { return mnTab; } }; @@ -417,7 +420,7 @@ public: // border virtual void set_border_count(size_t n) override; - virtual void set_border_style(orcus::spreadsheet::border_direction_t dir, const char* s, 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, @@ -507,7 +510,8 @@ class ScOrcusFactory : public orcus::spreadsheet::iface::import_factory public: ScOrcusFactory(ScDocument& rDoc); - virtual orcus::spreadsheet::iface::import_sheet* append_sheet(const char *sheet_name, size_t sheet_name_length) override; + virtual orcus::spreadsheet::iface::import_sheet* append_sheet( + orcus::spreadsheet::sheet_t sheet_index, const char *sheet_name, size_t sheet_name_length) override; virtual orcus::spreadsheet::iface::import_sheet* get_sheet(const char *sheet_name, size_t sheet_name_length) override; virtual orcus::spreadsheet::iface::import_sheet* get_sheet(orcus::spreadsheet::sheet_t sheet_index) override; virtual orcus::spreadsheet::iface::import_global_settings* get_global_settings() override; diff --git a/sc/source/filter/orcus/interface.cxx b/sc/source/filter/orcus/interface.cxx index e98df4e4e1a6..de52b861e5fc 100644 --- a/sc/source/filter/orcus/interface.cxx +++ b/sc/source/filter/orcus/interface.cxx @@ -84,7 +84,8 @@ ScOrcusFactory::ScOrcusFactory(ScDocument& rDoc) : maStyles(rDoc), mnProgress(0) {} -orcus::spreadsheet::iface::import_sheet* ScOrcusFactory::append_sheet(const char* sheet_name, size_t sheet_name_length) +orcus::spreadsheet::iface::import_sheet* ScOrcusFactory::append_sheet( + orcus::spreadsheet::sheet_t /*sheet_index*/, const char* sheet_name, size_t sheet_name_length) { OUString aTabName(sheet_name, sheet_name_length, RTL_TEXTENCODING_UTF8); if (!maDoc.appendSheet(aTabName)) @@ -296,7 +297,7 @@ void ScOrcusSheetProperties::set_row_hidden(os::row_t row, bool hidden) mrDoc.getDoc().SetRowHidden(row, row, mnTab, hidden); } -void ScOrcusSheetProperties::set_merge_cell_range(const char* /*p_range*/, size_t /*n_range*/) +void ScOrcusSheetProperties::set_merge_cell_range(const orcus::spreadsheet::range_t& /*range*/) { } @@ -574,6 +575,9 @@ formula::FormulaGrammar::Grammar getCalcGrammarFromOrcus( os::formula_grammar_t case orcus::spreadsheet::formula_grammar_t::gnumeric: eGrammar = formula::FormulaGrammar::GRAM_ENGLISH_XL_A1; break; + case orcus::spreadsheet::formula_grammar_t::xls_xml: + eGrammar = formula::FormulaGrammar::GRAM_ENGLISH_XL_R1C1; + break; case orcus::spreadsheet::formula_grammar_t::unknown: break; } @@ -689,6 +693,15 @@ void ScOrcusSheet::set_array_formula( { } +orcus::spreadsheet::range_size_t ScOrcusSheet::get_sheet_size() const +{ + orcus::spreadsheet::range_size_t ret; + ret.rows = MAXROWCOUNT; + ret.columns = MAXCOLCOUNT; + + return ret; +} + ScOrcusSharedStrings::ScOrcusSharedStrings(ScOrcusFactory& rFactory) : mrFactory(rFactory) {} @@ -1279,11 +1292,6 @@ void ScOrcusStyles::set_border_count(size_t /*n*/) // needed at all? } -void ScOrcusStyles::set_border_style(orcus::spreadsheet::border_direction_t /*dir*/, const char* /*s*/, size_t /*n*/) -{ - // implement later -} - void ScOrcusStyles::set_border_style( orcus::spreadsheet::border_direction_t dir, orcus::spreadsheet::border_style_t style) { diff --git a/sc/source/ui/dataprovider/csvdataprovider.cxx b/sc/source/ui/dataprovider/csvdataprovider.cxx index f961a4c21977..1d61996f7a6e 100644 --- a/sc/source/ui/dataprovider/csvdataprovider.cxx +++ b/sc/source/ui/dataprovider/csvdataprovider.cxx @@ -41,7 +41,7 @@ public: mnCol = 0; } - void cell(const char* p, size_t n) + void cell(const char* p, size_t n, bool /*transient*/) { if (mnCol > MAXCOL) return; diff --git a/sc/source/ui/docshell/datastream.cxx b/sc/source/ui/docshell/datastream.cxx index 16a6cb09409e..f74feb7a7d06 100644 --- a/sc/source/ui/docshell/datastream.cxx +++ b/sc/source/ui/docshell/datastream.cxx @@ -71,7 +71,7 @@ public: static void begin_row() {} static void end_row() {} - void cell(const char* p, size_t n) + void cell(const char* p, size_t n, bool /*transient*/) { if (mnCols >= mnColCount) return; |