summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2016-11-12 17:20:30 -0500
committerKohei Yoshida <kohei.yoshida@collabora.com>2016-11-12 17:21:53 -0500
commit633b9f30d0037f91e51e024960155c738c2fadb0 (patch)
tree93d67bec1b427e4f536548ecea6d26e69b3562d1 /sc/source
parent4b57b76b6e0200a1fbbf40b98ff1d05793223287 (diff)
Dump the other block types as well.
Change-Id: Iff41d4c2065a03865f884b2a8a260ffd83835dc1
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/core/data/column2.cxx27
1 files changed, 24 insertions, 3 deletions
diff --git a/sc/source/core/data/column2.cxx b/sc/source/core/data/column2.cxx
index 9c7eb79e564b..ce496f661e53 100644
--- a/sc/source/core/data/column2.cxx
+++ b/sc/source/core/data/column2.cxx
@@ -1577,10 +1577,31 @@ struct FormulaGroupDumper : std::unary_function<sc::CellStoreType::value_type, v
void operator() (const sc::CellStoreType::value_type& rNode) const
{
- if (rNode.type != sc::element_type_formula)
- return;
+ switch (rNode.type)
+ {
+ case sc::element_type_numeric:
+ cout << " * numeric block (pos=" << rNode.position << ", length=" << rNode.size << ")" << endl;
+ break;
+ case sc::element_type_string:
+ cout << " * string block (pos=" << rNode.position << ", length=" << rNode.size << ")" << endl;
+ break;
+ case sc::element_type_edittext:
+ cout << " * edit-text block (pos=" << rNode.position << ", length=" << rNode.size << ")" << endl;
+ break;
+ case sc::element_type_formula:
+ dumpFormulaBlock(rNode);
+ break;
+ case sc::element_type_empty:
+ cout << " * empty block (pos=" << rNode.position << ", length=" << rNode.size << ")" << endl;
+ break;
+ default:
+ cout << " * unknown block" << endl;
+ }
+ }
- cout << " * formula block" << endl;
+ void dumpFormulaBlock(const sc::CellStoreType::value_type& rNode) const
+ {
+ cout << " * formula block (pos=" << rNode.position << ", length=" << rNode.size << ")" << endl;
sc::formula_block::const_iterator it = sc::formula_block::begin(*rNode.data);
sc::formula_block::const_iterator itEnd = sc::formula_block::end(*rNode.data);