diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-12-10 22:47:05 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-12-10 22:50:22 -0500 |
commit | 808fd5fbd8868dfd95c8a38676815798fa2b79c4 (patch) | |
tree | 5bec9519ec53ec0a0f68688a3e156b4bf8eb71a2 /sc/inc/clipcontext.hxx | |
parent | 6e91763769a562b88882a4c2a94b1367c6ed4866 (diff) |
Deteremine the script type of source cell during paste replication.
Doing this ahead of time eliminates the need to update script types of
all replicated cells after the paste. This makes significant performance
impact.
Change-Id: Ic4f7d7b2fe152bd5640ddb1dae01cc2ed757657e
Diffstat (limited to 'sc/inc/clipcontext.hxx')
-rw-r--r-- | sc/inc/clipcontext.hxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sc/inc/clipcontext.hxx b/sc/inc/clipcontext.hxx index aa783e4aa203..78481992dc40 100644 --- a/sc/inc/clipcontext.hxx +++ b/sc/inc/clipcontext.hxx @@ -12,6 +12,7 @@ #include "address.hxx" #include "cellvalue.hxx" +#include <celltextattr.hxx> #include <vector> #include <boost/unordered_map.hpp> @@ -57,6 +58,7 @@ class CopyFromClipContext : public ClipContextBase InsertDeleteFlags mnDeleteFlag; std::vector<ScCellValue> maSingleCells; + std::vector<sc::CellTextAttr> maSingleCellAttrs; std::vector<const ScPatternAttr*> maSinglePatterns; std::vector<const ScPostIt*> maSingleNotes; @@ -107,8 +109,11 @@ public: void setSingleCellColumnSize( size_t nSize ); ScCellValue& getSingleCell( size_t nColOffset ); + sc::CellTextAttr& getSingleCellAttr( size_t nColOffset ); + void setSingleCell( const ScAddress& rSrcPos, const ScColumn& rSrcCol ); + const ScPatternAttr* getSingleCellPattern( size_t nColOffset ) const; void setSingleCellPattern( size_t nColOffset, const ScPatternAttr* pAttr ); |