summaryrefslogtreecommitdiffstats
path: root/sc/inc/cellvalues.hxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-04-17 21:14:04 -0400
committerKohei Yoshida <kohei.yoshida@collabora.com>2014-04-23 21:08:20 -0400
commit210507039bc768aa1cf7013a31700b524d90aef7 (patch)
tree1062e1c2e97c70aeab6e1ec7ca4de196a19dce4e /sc/inc/cellvalues.hxx
parentStore cell text attribute pointers during initialization. (diff)
downloadcore-210507039bc768aa1cf7013a31700b524d90aef7.tar.gz
core-210507039bc768aa1cf7013a31700b524d90aef7.zip
Have CellValues handle text attribute values as well.
To ensure that the cell and cell text attribute storage stay in sync at all times. Change-Id: I5ea3fb7601f42f22af30f4f2d96d9d5e481e0853
Diffstat (limited to 'sc/inc/cellvalues.hxx')
-rw-r--r--sc/inc/cellvalues.hxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/sc/inc/cellvalues.hxx b/sc/inc/cellvalues.hxx
index 9e3d82520f6d..d84553fbdce6 100644
--- a/sc/inc/cellvalues.hxx
+++ b/sc/inc/cellvalues.hxx
@@ -18,6 +18,10 @@ namespace sc {
struct CellValuesImpl;
+/**
+ * Think of this as a mini-ScColumn like storage that only stores cell
+ * values in a column.
+ */
class CellValues
{
CellValuesImpl* mpImpl;
@@ -35,6 +39,10 @@ public:
void assign( const std::vector<double>& rVals );
size_t size() const;
+
+private:
+ void copyCellsTo( ScColumn& rCol, SCROW nRow ) const;
+ void copyCellTextAttrsTo( ScColumn& rCol, SCROW nRow ) const;
};
}