From db729f3b685fd832a3ec7387b339cf2bbeb4bd4d Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Wed, 11 May 2016 21:45:56 -0400 Subject: Update mdds to 1.2.0. Note that the API version is also up. liborcus-0.11.2 is out only to make it buildable with mdds-1.2. Change-Id: I9648d827b008da252c57be0ebfd2efccb008ac70 Reviewed-on: https://gerrit.libreoffice.org/24944 Tested-by: Jenkins Reviewed-by: Kohei Yoshida diff --git a/configure.ac b/configure.ac index 3f1b7f0..6dea282 100644 --- a/configure.ac +++ b/configure.ac @@ -8832,7 +8832,7 @@ AC_SUBST(SYSTEM_BOOST) dnl =================================================================== dnl Check for system mdds dnl =================================================================== -libo_CHECK_SYSTEM_MODULE([mdds], [MDDS], [mdds >= 0.12.0], ["-I${WORKDIR}/UnpackedTarball/mdds/include"]) +libo_CHECK_SYSTEM_MODULE([mdds], [MDDS], [mdds-1.2 >= 1.2.0], ["-I${WORKDIR}/UnpackedTarball/mdds/include"]) dnl =================================================================== dnl Check for system glm @@ -9148,7 +9148,7 @@ if test -z "$enable_orcus" -o "$enable_orcus" != no; then ENABLE_ORCUS="TRUE" AC_DEFINE(ENABLE_ORCUS) - libo_CHECK_SYSTEM_MODULE([orcus],[ORCUS],[liborcus-0.11 >= 0.11.0]) + libo_CHECK_SYSTEM_MODULE([orcus],[ORCUS],[liborcus-0.11 >= 0.11.2]) if test "$with_system_orcus" != "yes"; then if test "$SYSTEM_BOOST" = "TRUE"; then # =========================================================== diff --git a/sc/inc/mtvelements.hxx b/sc/inc/mtvelements.hxx index 0bc5162..18edafc 100644 --- a/sc/inc/mtvelements.hxx +++ b/sc/inc/mtvelements.hxx @@ -53,6 +53,7 @@ const mdds::mtv::element_t element_type_cellnote = mdds::mtv::element_type_user_ /// Mapped standard element types (for convenience). const mdds::mtv::element_t element_type_numeric = mdds::mtv::element_type_numeric; const mdds::mtv::element_t element_type_empty = mdds::mtv::element_type_empty; +const mdds::mtv::element_t element_type_uint16 = mdds::mtv::element_type_ushort; /// Custom element blocks. @@ -65,6 +66,7 @@ typedef mdds::mtv::noncopyable_managed_element_block element_block_func; }; -typedef mdds::multi_type_matrix MatrixImplType; +typedef mdds::multi_type_matrix MatrixImplType; namespace { @@ -2304,6 +2302,7 @@ public: } } break; + case mdds::mtm::element_integer: case mdds::mtm::element_empty: break; } diff --git a/svl/source/misc/gridprinter.cxx b/svl/source/misc/gridprinter.cxx index 4044b3e..70e7439 100644 --- a/svl/source/misc/gridprinter.cxx +++ b/svl/source/misc/gridprinter.cxx @@ -26,12 +26,10 @@ const mdds::mtv::element_t element_type_string = mdds::mtv::element_type_user_st // String block typedef mdds::mtv::default_element_block string_block; -struct custom_string_trait +struct matrix_trait { - typedef OUString string_type; typedef string_block string_element_block; - - static const mdds::mtv::element_t string_type_identifier = element_type_string; + typedef mdds::mtv::ushort_element_block integer_element_block; typedef mdds::mtv::custom_block_func1 element_block_func; }; @@ -48,7 +46,7 @@ MDDS_MTV_DEFINE_ELEMENT_CALLBACKS(OUString, svl::element_type_string, OUString() namespace svl { -typedef mdds::multi_type_matrix MatrixImplType; +typedef mdds::multi_type_matrix MatrixImplType; struct GridPrinter::Impl { -- cgit v0.10.2