diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-05-15 14:17:39 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-05-20 20:13:07 -0400 |
commit | f8ed5c3ffea38b75df0a6dc44f5ee3d6da68c5ff (patch) | |
tree | 6df541046e56bc5120b708039bafa082518006e5 /sc/inc/mtvelements.hxx | |
parent | b7c84a69bf989bef8de30cad36d2b5d17190d302 (diff) |
Move the column element block definitions out of ScColumn.
so that I can reference it in another class.
Change-Id: I035cc1d37ec219c3e3da2e180a0337fb3c6fba8a
Diffstat (limited to 'sc/inc/mtvelements.hxx')
-rw-r--r-- | sc/inc/mtvelements.hxx | 24 |
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: */ |