diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-06-19 11:19:26 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-06-24 16:51:33 -0400 |
commit | b6a6a26698cb56a194c7c99b0ad267e60e3a05d5 (patch) | |
tree | e4669d4ed6efa8b57923e7f9b6b5783d56ae210f /sc/inc | |
parent | 65be1e27254ff1292b3593af42fbfb0235c26fcd (diff) |
Have the clone handler handle the text attr array as well.
In order to handle the special case of cell removal.
Change-Id: I7782232ce0fe6c0248c40482ec62d909d2dfe621
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/cellclonehandler.hxx | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/sc/inc/cellclonehandler.hxx b/sc/inc/cellclonehandler.hxx index a08383c49024..4ae81235f416 100644 --- a/sc/inc/cellclonehandler.hxx +++ b/sc/inc/cellclonehandler.hxx @@ -25,32 +25,39 @@ class CellBlockCloneHandler ScDocument& mrSrcDoc; ScDocument& mrDestDoc; CellStoreType& mrDestCellStore; + CellTextAttrStoreType& mrDestAttrStore; protected: ScDocument& getSrcDoc(); ScDocument& getDestDoc(); const ScDocument& getDestDoc() const; CellStoreType& getDestCellStore(); + CellTextAttrStoreType& getDestAttrStore(); + + void setDefaultAttrToDest(ColumnBlockPosition& rPos, SCROW nRow); + void setDefaultAttrsToDest(ColumnBlockPosition& rPos, SCROW nRow, size_t nSize); public: CellBlockCloneHandler( - ScDocument& rSrcDoc, ScDocument& rDestDoc, CellStoreType& rDestCellStore); + ScDocument& rSrcDoc, ScDocument& rDestDoc, + CellStoreType& rDestCellStore, CellTextAttrStoreType& rDestAttrStore); + virtual ~CellBlockCloneHandler(); virtual void cloneDoubleBlock( - CellStoreType::iterator& itPos, const ScAddress& rSrcPos, const ScAddress& rDestPos, + ColumnBlockPosition& rPos, const ScAddress& rSrcPos, const ScAddress& rDestPos, const numeric_block::const_iterator& itBegin, const numeric_block::const_iterator& itEnd); virtual void cloneStringBlock( - CellStoreType::iterator& itPos, const ScAddress& rSrcPos, const ScAddress& rDestPos, + ColumnBlockPosition& rPos, const ScAddress& rSrcPos, const ScAddress& rDestPos, const string_block::const_iterator& itBegin, const string_block::const_iterator& itEnd); virtual void cloneEditTextBlock( - CellStoreType::iterator& itPos, const ScAddress& rSrcPos, const ScAddress& rDestPos, + ColumnBlockPosition& rPos, const ScAddress& rSrcPos, const ScAddress& rDestPos, const edittext_block::const_iterator& itBegin, const edittext_block::const_iterator& itEnd); virtual void cloneFormulaBlock( - CellStoreType::iterator& itPos, const ScAddress& rSrcPos, const ScAddress& rDestPos, + ColumnBlockPosition& rPos, const ScAddress& rSrcPos, const ScAddress& rDestPos, const formula_block::const_iterator& itBegin, const formula_block::const_iterator& itEnd); }; |