diff options
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; } |