summaryrefslogtreecommitdiff
path: root/sc/inc/mtvelements.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/inc/mtvelements.hxx')
-rw-r--r--sc/inc/mtvelements.hxx24
1 files changed, 23 insertions, 1 deletions
diff --git a/sc/inc/mtvelements.hxx b/sc/inc/mtvelements.hxx
index 9fc5947ea2e1..16113d5bfe61 100644
--- a/sc/inc/mtvelements.hxx
+++ b/sc/inc/mtvelements.hxx
@@ -12,8 +12,18 @@
#include "svl/broadcast.hxx"
+#define DEBUG_COLUMN_STORAGE 0
+
+#if DEBUG_COLUMN_STORAGE
+#ifdef NDEBUG
+#undef NDEBUG
+#endif
+#define MDDS_MULTI_TYPE_VECTOR_DEBUG 1
+#endif
+
#include <mdds/multi_type_vector_macro.hpp>
-#include <mdds/multi_type_vector_types.hpp>
+#include <mdds/multi_type_vector.hpp>
+#include <mdds/multi_type_vector_custom_func1.hpp>
namespace sc {
@@ -45,6 +55,18 @@ MDDS_MTV_DEFINE_ELEMENT_CALLBACKS(CellTextAttr, element_type_celltextattr, CellT
// This needs to be in global namespace just like SvtBroacaster is.
MDDS_MTV_DEFINE_ELEMENT_CALLBACKS_PTR(SvtBroadcaster, sc::element_type_broadcaster, NULL, sc::custom_broadcaster_block)
+namespace sc {
+
+// Broadcaster storage container
+typedef mdds::mtv::custom_block_func1<sc::element_type_broadcaster, sc::custom_broadcaster_block> BCBlkFunc;
+typedef mdds::multi_type_vector<BCBlkFunc> BroadcasterStoreType;
+
+// Cell text attribute container.
+typedef mdds::mtv::custom_block_func1<sc::element_type_celltextattr, sc::custom_celltextattr_block> CTAttrFunc;
+typedef mdds::multi_type_vector<CTAttrFunc> CellTextAttrStoreType;
+
+}
+
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */