0001-Update-mdds-orcus.patch 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451
  1. From 56ffe3c0a1261cd98a3d42b8b08d5f8eb013ead4 Mon Sep 17 00:00:00 2001
  2. From: Kohei Yoshida <kohei@libreoffice.org>
  3. Date: Mon, 12 Aug 2019 13:57:34 -0400
  4. Subject: [PATCH] Switch mdds to 1.5.0 and liborcus to 0.15.0.
  5. Change-Id: Ibff9a5e0f0771e4cf12b4dc3985661a01195e265
  6. Reviewed-on: https://gerrit.libreoffice.org/77482
  7. Tested-by: Jenkins
  8. Reviewed-by: Kohei Yoshida <kohei@libreoffice.org>
  9. ---
  10. RepositoryExternal.mk | 4 +--
  11. configure.ac | 4 +--
  12. download.lst | 8 +++---
  13. ...1-Prevent-unsigned-integer-underflow.patch | 27 -------------------
  14. external/liborcus/ExternalPackage_liborcus.mk | 8 +++---
  15. external/liborcus/ExternalProject_liborcus.mk | 4 +--
  16. external/liborcus/Library_orcus-parser.mk | 2 ++
  17. external/liborcus/Library_orcus.mk | 7 +++++
  18. external/liborcus/UnpackedTarball_liborcus.mk | 3 ---
  19. external/liborcus/version.patch.0 | 11 --------
  20. sc/inc/mtvelements.hxx | 8 +++---
  21. sc/inc/orcusxml.hxx | 1 +
  22. sc/qa/unit/dataproviders_test.cxx | 1 +
  23. sc/source/core/tool/scmatrix.cxx | 8 +++---
  24. sc/source/filter/inc/orcusinterface.hxx | 2 ++
  25. sc/source/filter/orcus/interface.cxx | 8 ++++--
  26. sc/source/filter/orcus/orcusfiltersimpl.cxx | 4 +--
  27. sc/source/filter/orcus/xmlcontext.cxx | 9 ++++++-
  28. sc/source/ui/xmlsource/xmlsourcedlg.cxx | 6 +++++
  29. svl/source/misc/gridprinter.cxx | 2 +-
  30. 20 files changed, 58 insertions(+), 69 deletions(-)
  31. delete mode 100644 external/liborcus/0001-Prevent-unsigned-integer-underflow.patch
  32. delete mode 100644 external/liborcus/version.patch.0
  33. diff --git a/RepositoryExternal.mk b/RepositoryExternal.mk
  34. index 54ab1dbfdcc3..57f66b8f344a 100644
  35. --- a/RepositoryExternal.mk
  36. +++ b/RepositoryExternal.mk
  37. @@ -3262,7 +3262,7 @@ $(call gb_LinkTarget_set_include,$(1),\
  38. )
  39. $(call gb_LinkTarget_add_libs,$(1),\
  40. - -L$(call gb_UnpackedTarball_get_dir,liborcus)/src/liborcus/.libs -lorcus-0.14 \
  41. + -L$(call gb_UnpackedTarball_get_dir,liborcus)/src/liborcus/.libs -lorcus-0.15 \
  42. )
  43. $(if $(SYSTEM_BOOST), \
  44. @@ -3281,7 +3281,7 @@ $(call gb_LinkTarget_set_include,$(1),\
  45. )
  46. $(call gb_LinkTarget_add_libs,$(1),\
  47. - -L$(call gb_UnpackedTarball_get_dir,liborcus)/src/parser/.libs -lorcus-parser-0.14 \
  48. + -L$(call gb_UnpackedTarball_get_dir,liborcus)/src/parser/.libs -lorcus-parser-0.15 \
  49. )
  50. endef
  51. diff --git a/configure.ac b/configure.ac
  52. index 1510daf22454..d0e6759b1f52 100644
  53. --- a/configure.ac
  54. +++ b/configure.ac
  55. @@ -9291,7 +9291,7 @@ AC_SUBST(SYSTEM_BOOST)
  56. dnl ===================================================================
  57. dnl Check for system mdds
  58. dnl ===================================================================
  59. -libo_CHECK_SYSTEM_MODULE([mdds], [MDDS], [mdds-1.4 >= 1.4.1], ["-I${WORKDIR}/UnpackedTarball/mdds/include"])
  60. +libo_CHECK_SYSTEM_MODULE([mdds], [MDDS], [mdds-1.5 >= 1.5.0], ["-I${WORKDIR}/UnpackedTarball/mdds/include"])
  61. dnl ===================================================================
  62. dnl Check for system glm
  63. @@ -9597,7 +9597,7 @@ AC_SUBST(ENABLE_FUZZERS)
  64. dnl ===================================================================
  65. dnl Orcus
  66. dnl ===================================================================
  67. -libo_CHECK_SYSTEM_MODULE([orcus],[ORCUS],[liborcus-0.14 >= 0.14.0])
  68. +libo_CHECK_SYSTEM_MODULE([orcus],[ORCUS],[liborcus-0.15 >= 0.15.0])
  69. if test "$with_system_orcus" != "yes"; then
  70. if test "$SYSTEM_BOOST" = "TRUE"; then
  71. # ===========================================================
  72. diff --git a/download.lst b/download.lst
  73. index b57ed794d2a6..59b58f96347c 100644
  74. --- a/download.lst
  75. +++ b/download.lst
  76. @@ -168,8 +168,8 @@
  77. export LXML_TARBALL := lxml-4.1.1.tgz
  78. export MARIADB_CONNECTOR_C_SHA256SUM := fd2f751dea049c1907735eb236aeace1d811d6a8218118b00bbaa9b84dc5cd60
  79. export MARIADB_CONNECTOR_C_TARBALL := a233181e03d3c307668b4c722d881661-mariadb_client-2.0.0-src.tar.gz
  80. -export MDDS_SHA256SUM := 25ce3d5af9f6609e1de05bb22b2316e57b74a72a5b686fbb2da199da72349c81
  81. -export MDDS_TARBALL := mdds-1.4.3.tar.bz2
  82. +export MDDS_SHA256SUM := 74cda018d5aa39a2f91652608efb066fd225f3597ce54733e6ab1e99e52606f7
  83. +export MDDS_TARBALL := mdds-1.5.0.tar.bz2
  84. export MDNSRESPONDER_SHA256SUM := e777b4d7dbf5eb1552cb80090ad1ede319067ab6e45e3990d68aabf6e8b3f5a0
  85. export MDNSRESPONDER_TARBALL := mDNSResponder-878.200.35.tar.gz
  86. export MSPUB_SHA256SUM := ef36c1a1aabb2ba3b0bedaaafe717bf4480be2ba8de6f3894be5fd3702b013ba
  87. @@ -194,8 +194,8 @@
  88. export OPENLDAP_TARBALL := openldap-2.4.45.tgz
  89. export OPENSSL_SHA256SUM := 14cb464efe7ac6b54799b34456bd69558a749a4931ecfd9cf9f71d7881cac7bc
  90. export OPENSSL_TARBALL := openssl-1.0.2t.tar.gz
  91. -export ORCUS_SHA256SUM := 3f48cfbc21ad74787218284939c04d42cb836c73bc393f27f538b668e4d78a5f
  92. -export ORCUS_TARBALL := liborcus-0.14.1.tar.gz
  93. +export ORCUS_SHA256SUM := 06ec7567896d76ca579efada794cc281a5d6b427195def01cbcfd79795e8a944
  94. +export ORCUS_TARBALL := liborcus-0.15.0.tar.gz
  95. export OWNCLOUD_ANDROID_LIB_SHA256SUM := b18b3e3ef7fae6a79b62f2bb43cc47a5346b6330f6a383dc4be34439aca5e9fb
  96. export OWNCLOUD_ANDROID_LIB_TARBALL := owncloud-android-library-0.9.4-no-binary-deps.tar.gz
  97. export PAGEMAKER_SHA256SUM := 66adacd705a7d19895e08eac46d1e851332adf2e736c566bef1164e7a442519d
  98. diff --git a/external/liborcus/0001-Prevent-unsigned-integer-underflow.patch b/external/liborcus/0001-Prevent-unsigned-integer-underflow.patch
  99. deleted file mode 100644
  100. index 3353857a2d10..000000000000
  101. --- a/external/liborcus/0001-Prevent-unsigned-integer-underflow.patch
  102. +++ /dev/null
  103. @@ -1,27 +0,0 @@
  104. -From 1967be013804f4f578b53659d7ef459b4c35de9f Mon Sep 17 00:00:00 2001
  105. -From: Kohei Yoshida <kohei.yoshida@gmail.com>
  106. -Date: Wed, 7 Nov 2018 21:08:40 -0500
  107. -Subject: [PATCH] Prevent unsigned integer underflow.
  108. -
  109. -(cherry picked from commit 40bbce85048b77c545103af124f3d9831dd4a458)
  110. ----
  111. - src/parser/parser_base.cpp | 3 ++-
  112. - 1 file changed, 2 insertions(+), 1 deletion(-)
  113. -
  114. -diff --git a/src/parser/parser_base.cpp b/src/parser/parser_base.cpp
  115. -index 586d495f..9d426efb 100644
  116. ---- a/src/parser/parser_base.cpp
  117. -+++ b/src/parser/parser_base.cpp
  118. -@@ -120,7 +120,8 @@ double parser_base::parse_double()
  119. -
  120. - size_t parser_base::remaining_size() const
  121. - {
  122. -- return std::distance(mp_char, mp_end) - 1;
  123. -+ size_t n = std::distance(mp_char, mp_end);
  124. -+ return n ? (n - 1) : 0;
  125. - }
  126. -
  127. - std::ptrdiff_t parser_base::offset() const
  128. ---
  129. -2.17.1
  130. -
  131. diff --git a/external/liborcus/ExternalPackage_liborcus.mk b/external/liborcus/ExternalPackage_liborcus.mk
  132. index ffa0b38bea19..21dd1bfb1ce5 100644
  133. --- a/external/liborcus/ExternalPackage_liborcus.mk
  134. +++ b/external/liborcus/ExternalPackage_liborcus.mk
  135. @@ -12,11 +12,11 @@ $(eval $(call gb_ExternalPackage_ExternalPackage,liborcus,liborcus))
  136. $(eval $(call gb_ExternalPackage_use_external_project,liborcus,liborcus))
  137. ifeq ($(OS),MACOSX)
  138. -$(eval $(call gb_ExternalPackage_add_file,liborcus,$(LIBO_LIB_FOLDER)/liborcus-0.14.0.dylib,src/liborcus/.libs/liborcus-0.14.0.dylib))
  139. -$(eval $(call gb_ExternalPackage_add_file,liborcus,$(LIBO_LIB_FOLDER)/liborcus-parser-0.14.0.dylib,src/parser/.libs/liborcus-parser-0.14.0.dylib))
  140. +$(eval $(call gb_ExternalPackage_add_file,liborcus,$(LIBO_LIB_FOLDER)/liborcus-0.15.0.dylib,src/liborcus/.libs/liborcus-0.15.0.dylib))
  141. +$(eval $(call gb_ExternalPackage_add_file,liborcus,$(LIBO_LIB_FOLDER)/liborcus-parser-0.15.0.dylib,src/parser/.libs/liborcus-parser-0.15.0.dylib))
  142. else ifeq ($(DISABLE_DYNLOADING),)
  143. -$(eval $(call gb_ExternalPackage_add_file,liborcus,$(LIBO_LIB_FOLDER)/liborcus-0.14.so.0,src/liborcus/.libs/liborcus-0.14.so.0.0.0))
  144. -$(eval $(call gb_ExternalPackage_add_file,liborcus,$(LIBO_LIB_FOLDER)/liborcus-parser-0.14.so.0,src/parser/.libs/liborcus-parser-0.14.so.0.0.0))
  145. +$(eval $(call gb_ExternalPackage_add_file,liborcus,$(LIBO_LIB_FOLDER)/liborcus-0.15.so.0,src/liborcus/.libs/liborcus-0.15.so.0.0.0))
  146. +$(eval $(call gb_ExternalPackage_add_file,liborcus,$(LIBO_LIB_FOLDER)/liborcus-parser-0.15.so.0,src/parser/.libs/liborcus-parser-0.15.so.0.0.0))
  147. endif
  148. # vim: set noet sw=4 ts=4:
  149. diff --git a/external/liborcus/ExternalProject_liborcus.mk b/external/liborcus/ExternalProject_liborcus.mk
  150. index 8cc1c030fa98..0bd36c379d9b 100644
  151. --- a/external/liborcus/ExternalProject_liborcus.mk
  152. +++ b/external/liborcus/ExternalProject_liborcus.mk
  153. @@ -122,8 +122,8 @@ $(call gb_ExternalProject_get_state_target,liborcus,build) :
  154. $(MAKE) \
  155. $(if $(filter MACOSX,$(OS)),\
  156. && $(PERL) $(SRCDIR)/solenv/bin/macosx-change-install-names.pl shl OOO \
  157. - $(EXTERNAL_WORKDIR)/src/liborcus/.libs/liborcus-0.14.0.dylib \
  158. - $(EXTERNAL_WORKDIR)/src/parser/.libs/liborcus-parser-0.14.0.dylib \
  159. + $(EXTERNAL_WORKDIR)/src/liborcus/.libs/liborcus-0.15.0.dylib \
  160. + $(EXTERNAL_WORKDIR)/src/parser/.libs/liborcus-parser-0.15.0.dylib \
  161. ) \
  162. )
  163. diff --git a/external/liborcus/Library_orcus-parser.mk b/external/liborcus/Library_orcus-parser.mk
  164. index 32367b843f68..d25d82163d9a 100644
  165. --- a/external/liborcus/Library_orcus-parser.mk
  166. +++ b/external/liborcus/Library_orcus-parser.mk
  167. @@ -13,6 +13,7 @@ $(eval $(call gb_Library_use_unpacked,orcus-parser,liborcus))
  168. $(eval $(call gb_Library_use_externals,orcus-parser,\
  169. boost_headers \
  170. + boost_filesystem \
  171. boost_system \
  172. mdds_headers \
  173. zlib \
  174. @@ -22,6 +23,7 @@ $(eval $(call gb_Library_set_warnings_disabled,orcus-parser))
  175. $(eval $(call gb_Library_set_include,orcus-parser,\
  176. -I$(call gb_UnpackedTarball_get_dir,liborcus)/include \
  177. + -I$(call gb_UnpackedTarball_get_dir,liborcus)/src/include \
  178. $$(INCLUDE) \
  179. ))
  180. diff --git a/external/liborcus/Library_orcus.mk b/external/liborcus/Library_orcus.mk
  181. index 2b20cdf84ea4..3793805c3c00 100644
  182. --- a/external/liborcus/Library_orcus.mk
  183. +++ b/external/liborcus/Library_orcus.mk
  184. @@ -24,6 +24,7 @@ $(eval $(call gb_Library_set_warnings_disabled,orcus))
  185. $(eval $(call gb_Library_set_include,orcus,\
  186. -I$(call gb_UnpackedTarball_get_dir,liborcus)/include \
  187. + -I$(call gb_UnpackedTarball_get_dir,liborcus)/src/include \
  188. $$(INCLUDE) \
  189. ))
  190. @@ -68,6 +69,9 @@ $(eval $(call gb_Library_add_generated_exception_objects,orcus,\
  191. UnpackedTarball/liborcus/src/liborcus/info \
  192. UnpackedTarball/liborcus/src/liborcus/interface \
  193. UnpackedTarball/liborcus/src/liborcus/json_document_tree \
  194. + UnpackedTarball/liborcus/src/liborcus/json_map_tree \
  195. + UnpackedTarball/liborcus/src/liborcus/json_structure_mapper \
  196. + UnpackedTarball/liborcus/src/liborcus/json_structure_tree \
  197. UnpackedTarball/liborcus/src/liborcus/json_util \
  198. UnpackedTarball/liborcus/src/liborcus/measurement \
  199. UnpackedTarball/liborcus/src/liborcus/odf_helper \
  200. @@ -92,12 +96,15 @@ $(eval $(call gb_Library_add_generated_exception_objects,orcus,\
  201. UnpackedTarball/liborcus/src/liborcus/orcus_gnumeric \
  202. UnpackedTarball/liborcus/src/liborcus/orcus_import_ods \
  203. UnpackedTarball/liborcus/src/liborcus/orcus_import_xlsx \
  204. + UnpackedTarball/liborcus/src/liborcus/orcus_json \
  205. UnpackedTarball/liborcus/src/liborcus/orcus_ods \
  206. UnpackedTarball/liborcus/src/liborcus/orcus_xls_xml \
  207. UnpackedTarball/liborcus/src/liborcus/orcus_xlsx \
  208. UnpackedTarball/liborcus/src/liborcus/orcus_xml \
  209. + UnpackedTarball/liborcus/src/liborcus/orcus_xml_map_def \
  210. UnpackedTarball/liborcus/src/liborcus/session_context \
  211. UnpackedTarball/liborcus/src/liborcus/spreadsheet_iface_util \
  212. + UnpackedTarball/liborcus/src/liborcus/spreadsheet_impl_types \
  213. UnpackedTarball/liborcus/src/liborcus/spreadsheet_interface \
  214. UnpackedTarball/liborcus/src/liborcus/spreadsheet_types \
  215. UnpackedTarball/liborcus/src/liborcus/string_helper \
  216. diff --git a/external/liborcus/UnpackedTarball_liborcus.mk b/external/liborcus/UnpackedTarball_liborcus.mk
  217. index e1d810a49dc2..74fbbb2e9e33 100644
  218. --- a/external/liborcus/UnpackedTarball_liborcus.mk
  219. +++ b/external/liborcus/UnpackedTarball_liborcus.mk
  220. @@ -19,12 +19,9 @@ $(eval $(call gb_UnpackedTarball_update_autoconf_configs,liborcus))
  221. # <https://gitlab.com/orcus/orcus/commit/0dfa88f2adca7887dbe44bdb7025985777c89673> "Remove unused
  222. # VERSION file":
  223. $(eval $(call gb_UnpackedTarball_add_patches,liborcus,\
  224. - external/liborcus/0001-workaround-a-linking-problem-on-windows.patch \
  225. external/liborcus/rpath.patch.0 \
  226. external/liborcus/gcc9.patch.0 \
  227. - external/liborcus/version.patch.0 \
  228. external/liborcus/libtool.patch.0 \
  229. - external/liborcus/0001-Prevent-unsigned-integer-underflow.patch \
  230. ))
  231. ifeq ($(OS),WNT)
  232. diff --git a/external/liborcus/version.patch.0 b/external/liborcus/version.patch.0
  233. deleted file mode 100644
  234. index 2c0b5ae4ca07..000000000000
  235. --- a/external/liborcus/version.patch.0
  236. +++ /dev/null
  237. @@ -1,11 +0,0 @@
  238. ---- configure
  239. -+++ configure
  240. -@@ -21055,7 +21055,7 @@
  241. -
  242. - fi
  243. -
  244. --ac_config_files="$ac_config_files Makefile liborcus-$ORCUS_API_VERSION.pc:liborcus.pc.in liborcus-spreadsheet-model-$ORCUS_API_VERSION.pc:liborcus-spreadsheet-model.pc.in VERSION include/Makefile include/orcus/Makefile include/orcus/detail/Makefile include/orcus/mso/Makefile include/orcus/spreadsheet/Makefile src/Makefile src/liborcus/Makefile src/liborcus/constants.inl src/mso/Makefile src/parser/Makefile src/python/Makefile src/spreadsheet/Makefile parser_handlers/Makefile benchmark/Makefile doc_example/Makefile"
  245. -+ac_config_files="$ac_config_files Makefile liborcus-$ORCUS_API_VERSION.pc:liborcus.pc.in liborcus-spreadsheet-model-$ORCUS_API_VERSION.pc:liborcus-spreadsheet-model.pc.in include/Makefile include/orcus/Makefile include/orcus/detail/Makefile include/orcus/mso/Makefile include/orcus/spreadsheet/Makefile src/Makefile src/liborcus/Makefile src/liborcus/constants.inl src/mso/Makefile src/parser/Makefile src/python/Makefile src/spreadsheet/Makefile parser_handlers/Makefile benchmark/Makefile doc_example/Makefile"
  246. -
  247. - cat >confcache <<\_ACEOF
  248. - # This file is a shell script that caches the results of configure
  249. diff --git a/sc/inc/mtvelements.hxx b/sc/inc/mtvelements.hxx
  250. index 407f0392c4cd..382fb4d2b688 100644
  251. --- a/sc/inc/mtvelements.hxx
  252. +++ b/sc/inc/mtvelements.hxx
  253. @@ -52,9 +52,9 @@ const mdds::mtv::element_t element_type_formula = mdds::mtv::element_type_user_s
  254. const mdds::mtv::element_t element_type_cellnote = mdds::mtv::element_type_user_start + 5;
  255. /// Mapped standard element types (for convenience).
  256. -const mdds::mtv::element_t element_type_numeric = mdds::mtv::element_type_numeric;
  257. +const mdds::mtv::element_t element_type_numeric = mdds::mtv::element_type_double;
  258. const mdds::mtv::element_t element_type_empty = mdds::mtv::element_type_empty;
  259. -const mdds::mtv::element_t element_type_uint16 = mdds::mtv::element_type_ushort;
  260. +const mdds::mtv::element_t element_type_uint16 = mdds::mtv::element_type_uint16;
  261. /// Custom element blocks.
  262. @@ -66,8 +66,8 @@ typedef mdds::mtv::noncopyable_managed_element_block<element_type_edittext, Edit
  263. typedef mdds::mtv::noncopyable_managed_element_block<element_type_formula, ScFormulaCell> formula_block;
  264. /// Mapped standard element blocks (for convenience).
  265. -typedef mdds::mtv::numeric_element_block numeric_block;
  266. -typedef mdds::mtv::ushort_element_block uint16_block;
  267. +typedef mdds::mtv::double_element_block numeric_block;
  268. +typedef mdds::mtv::uint16_element_block uint16_block;
  269. /// This needs to be in the same namespace as CellTextAttr.
  270. MDDS_MTV_DEFINE_ELEMENT_CALLBACKS(CellTextAttr, element_type_celltextattr, CellTextAttr(), celltextattr_block)
  271. diff --git a/sc/inc/orcusxml.hxx b/sc/inc/orcusxml.hxx
  272. index ced991e51ded..5db292c29d54 100644
  273. --- a/sc/inc/orcusxml.hxx
  274. +++ b/sc/inc/orcusxml.hxx
  275. @@ -69,6 +69,7 @@ struct ScOrcusImportXMLParam
  276. {
  277. ScAddress maPos;
  278. std::vector<OString> maFieldPaths;
  279. + std::vector<OString> maRowGroups;
  280. };
  281. typedef std::vector<CellLink> CellLinksType;
  282. diff --git a/sc/qa/unit/dataproviders_test.cxx b/sc/qa/unit/dataproviders_test.cxx
  283. index 1e9cf97e8dc3..a9b6b1142c7f 100644
  284. --- a/sc/qa/unit/dataproviders_test.cxx
  285. +++ b/sc/qa/unit/dataproviders_test.cxx
  286. @@ -156,6 +156,7 @@ void ScDataProvidersTest::testXMLImport()
  287. aRangeLink.maPos = ScAddress(0,0,0);
  288. aRangeLink.maFieldPaths.push_back("/bookstore/book/title");
  289. aRangeLink.maFieldPaths.push_back("/bookstore/book/author");
  290. + aRangeLink.maRowGroups.push_back("/bookstore/book");
  291. aParam.maRangeLinks.push_back(aRangeLink);
  292. createFileURL("test1.", "xml", aFileURL);
  293. diff --git a/sc/source/core/tool/scmatrix.cxx b/sc/source/core/tool/scmatrix.cxx
  294. index 04660abe195c..2c03fe0a074e 100644
  295. --- a/sc/source/core/tool/scmatrix.cxx
  296. +++ b/sc/source/core/tool/scmatrix.cxx
  297. @@ -1935,8 +1935,8 @@ class ToDoubleArray
  298. {
  299. case mdds::mtm::element_numeric:
  300. {
  301. - numeric_element_block::const_iterator it = numeric_element_block::begin(*node.data);
  302. - numeric_element_block::const_iterator itEnd = numeric_element_block::end(*node.data);
  303. + double_element_block::const_iterator it = double_element_block::begin(*node.data);
  304. + double_element_block::const_iterator itEnd = double_element_block::end(*node.data);
  305. for (; it != itEnd; ++it, ++miPos)
  306. *miPos = *it;
  307. }
  308. @@ -2012,8 +2012,8 @@ class MergeDoubleArrayFunc
  309. {
  310. case mdds::mtm::element_numeric:
  311. {
  312. - numeric_element_block::const_iterator it = numeric_element_block::begin(*node.data);
  313. - numeric_element_block::const_iterator itEnd = numeric_element_block::end(*node.data);
  314. + double_element_block::const_iterator it = double_element_block::begin(*node.data);
  315. + double_element_block::const_iterator itEnd = double_element_block::end(*node.data);
  316. for (; it != itEnd; ++it, ++miPos)
  317. {
  318. if (GetDoubleErrorValue(*miPos) == FormulaError::ElementNaN)
  319. diff --git a/sc/source/filter/inc/orcusinterface.hxx b/sc/source/filter/inc/orcusinterface.hxx
  320. index 9d090b744619..7c7c4f20bb3c 100644
  321. --- a/sc/source/filter/inc/orcusinterface.hxx
  322. +++ b/sc/source/filter/inc/orcusinterface.hxx
  323. @@ -332,6 +332,8 @@ public:
  324. virtual orcus::spreadsheet::range_size_t get_sheet_size() const override;
  325. + virtual void fill_down_cells(orcus::spreadsheet::row_t row, orcus::spreadsheet::col_t col, orcus::spreadsheet::row_t range_size) override;
  326. +
  327. SCTAB getIndex() const { return mnTab; }
  328. const sc::SharedFormulaGroups& getSharedFormulaGroups() const;
  329. diff --git a/sc/source/filter/orcus/interface.cxx b/sc/source/filter/orcus/interface.cxx
  330. index 833fb278e397..23f17a1dc854 100644
  331. --- a/sc/source/filter/orcus/interface.cxx
  332. +++ b/sc/source/filter/orcus/interface.cxx
  333. @@ -61,8 +61,7 @@ formula::FormulaGrammar::Grammar getCalcGrammarFromOrcus( os::formula_grammar_t
  334. case orcus::spreadsheet::formula_grammar_t::ods:
  335. eGrammar = formula::FormulaGrammar::GRAM_ODFF;
  336. break;
  337. - case orcus::spreadsheet::formula_grammar_t::xlsx_2007:
  338. - case orcus::spreadsheet::formula_grammar_t::xlsx_2010:
  339. + case orcus::spreadsheet::formula_grammar_t::xlsx:
  340. eGrammar = formula::FormulaGrammar::GRAM_OOXML;
  341. break;
  342. case orcus::spreadsheet::formula_grammar_t::gnumeric:
  343. @@ -1188,6 +1187,11 @@ orcus::spreadsheet::range_size_t ScOrcusSheet::get_sheet_size() const
  344. return ret;
  345. }
  346. +void ScOrcusSheet::fill_down_cells(os::row_t /*row*/, os::col_t /*col*/, os::row_t /*range_size*/)
  347. +{
  348. + // TODO : implement this.
  349. +}
  350. +
  351. const sc::SharedFormulaGroups& ScOrcusSheet::getSharedFormulaGroups() const
  352. {
  353. return maFormulaGroups;
  354. diff --git a/sc/source/filter/orcus/orcusfiltersimpl.cxx b/sc/source/filter/orcus/orcusfiltersimpl.cxx
  355. index cdfb70d71c1b..8e9b0b1a5f04 100644
  356. --- a/sc/source/filter/orcus/orcusfiltersimpl.cxx
  357. +++ b/sc/source/filter/orcus/orcusfiltersimpl.cxx
  358. @@ -139,10 +139,10 @@ bool ScOrcusFiltersImpl::importODS_Styles(ScDocument& rDoc, OUString& aPath) con
  359. try
  360. {
  361. - std::string content = orcus::load_file_content(path);
  362. + orcus::file_content content(path);
  363. ScOrcusFactory aFactory(rDoc);
  364. ScOrcusStyles aStyles(aFactory);
  365. - orcus::import_ods::read_styles(content.c_str(), content.size(), &aStyles);
  366. + orcus::import_ods::read_styles(content.data(), content.size(), &aStyles);
  367. }
  368. catch (const std::exception& e)
  369. {
  370. diff --git a/sc/source/filter/orcus/xmlcontext.cxx b/sc/source/filter/orcus/xmlcontext.cxx
  371. index 2548f5b19d9f..71c44bc35823 100644
  372. --- a/sc/source/filter/orcus/xmlcontext.cxx
  373. +++ b/sc/source/filter/orcus/xmlcontext.cxx
  374. @@ -269,10 +269,17 @@ void ScOrcusXMLContextImpl::importXML(const ScOrcusImportXMLParam& rParam)
  375. std::for_each(rLink.maFieldPaths.begin(), rLink.maFieldPaths.end(), InsertFieldPath(filter));
  376. + std::for_each(rLink.maRowGroups.begin(), rLink.maRowGroups.end(),
  377. + [&filter] (const OString& rRowGroup)
  378. + {
  379. + filter.set_range_row_group(rRowGroup.getStr());
  380. + }
  381. + );
  382. +
  383. filter.commit_range();
  384. }
  385. - std::string content = orcus::load_file_content(path);
  386. + orcus::file_content content(path);
  387. filter.read_stream(content.data(), content.size());
  388. aFactory.finalize();
  389. diff --git a/sc/source/ui/xmlsource/xmlsourcedlg.cxx b/sc/source/ui/xmlsource/xmlsourcedlg.cxx
  390. index 95e80068f48d..26b0cbcf4f1a 100644
  391. --- a/sc/source/ui/xmlsource/xmlsourcedlg.cxx
  392. +++ b/sc/source/ui/xmlsource/xmlsourcedlg.cxx
  393. @@ -533,6 +533,12 @@ void ScXMLSourceDlg::OkPressed()
  394. // Go through all its child elements.
  395. getFieldLinks(aRangeLink, aParam.maNamespaces, *mxLbTree, *rEntry);
  396. + // Add the anchor node as a grouping node, which will be used as a
  397. + // row position increment point.
  398. + OUString aThisEntry = getXPath(*mxLbTree, *rEntry, aParam.maNamespaces);
  399. + aRangeLink.maRowGroups.push_back(
  400. + OUStringToOString(aThisEntry, RTL_TEXTENCODING_UTF8));
  401. +
  402. aParam.maRangeLinks.push_back(aRangeLink);
  403. }
  404. }
  405. diff --git a/svl/source/misc/gridprinter.cxx b/svl/source/misc/gridprinter.cxx
  406. index e129457a8215..4f013d4b6b8c 100644
  407. --- a/svl/source/misc/gridprinter.cxx
  408. +++ b/svl/source/misc/gridprinter.cxx
  409. @@ -29,7 +29,7 @@ typedef mdds::mtv::default_element_block<element_type_string, OUString> string_b
  410. struct matrix_trait
  411. {
  412. typedef string_block string_element_block;
  413. - typedef mdds::mtv::ushort_element_block integer_element_block;
  414. + typedef mdds::mtv::uint16_element_block integer_element_block;
  415. typedef mdds::mtv::custom_block_func1<string_block> element_block_func;
  416. };