diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2016-05-11 21:45:56 -0400 |
---|---|---|
committer | Kohei Yoshida <libreoffice@kohei.us> | 2016-05-13 00:35:20 +0000 |
commit | db729f3b685fd832a3ec7387b339cf2bbeb4bd4d (patch) | |
tree | 035b7b9510f9bde6f069eae0add535626e2cc3dc /sc | |
parent | 0876e5a20ac9873dd111eb2a30a76488b642614f (diff) |
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 <ci@libreoffice.org>
Reviewed-by: Kohei Yoshida <libreoffice@kohei.us>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/inc/mtvelements.hxx | 2 | ||||
-rw-r--r-- | sc/source/core/tool/scmatrix.cxx | 9 |
2 files changed, 6 insertions, 5 deletions
diff --git a/sc/inc/mtvelements.hxx b/sc/inc/mtvelements.hxx index 0bc516223968..18edafc40e70 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_type_formula, ScFor /// Mapped standard element blocks (for convenience). typedef mdds::mtv::numeric_element_block numeric_block; +typedef mdds::mtv::ushort_element_block uint16_block; /// This needs to be in the same namespace as CellTextAttr. MDDS_MTV_DEFINE_ELEMENT_CALLBACKS(CellTextAttr, element_type_celltextattr, CellTextAttr(), celltextattr_block) diff --git a/sc/source/core/tool/scmatrix.cxx b/sc/source/core/tool/scmatrix.cxx index f1ce9a5a0536..1689809bc4e2 100644 --- a/sc/source/core/tool/scmatrix.cxx +++ b/sc/source/core/tool/scmatrix.cxx @@ -57,17 +57,15 @@ using ::std::unary_function; * Custom string trait struct to tell mdds::multi_type_matrix about the * custom string type and how to handle blocks storing them. */ -struct custom_string_trait +struct matrix_trait { - typedef svl::SharedString string_type; typedef sc::string_block string_element_block; - - static const mdds::mtv::element_t string_type_identifier = sc::element_type_string; + typedef sc::uint16_block integer_element_block; typedef mdds::mtv::custom_block_func1<sc::string_block> element_block_func; }; -typedef mdds::multi_type_matrix<custom_string_trait> MatrixImplType; +typedef mdds::multi_type_matrix<matrix_trait> MatrixImplType; namespace { @@ -2304,6 +2302,7 @@ public: } } break; + case mdds::mtm::element_integer: case mdds::mtm::element_empty: break; } |