summaryrefslogtreecommitdiffstats
path: root/sc/inc/attarray.hxx
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-07-13 08:17:26 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-07-13 08:34:41 +0200
commit902082656655aeab559c0b5781907ff004179468 (patch)
treed6c316c31816bfd68abbcc05dd22803d8743053c /sc/inc/attarray.hxx
parentFix broken ODS column width import fdo#51446 (diff)
downloadcore-902082656655aeab559c0b5781907ff004179468.tar.gz
core-902082656655aeab559c0b5781907ff004179468.zip
don't delete ScPatternAttr from doc pool for swap, i#118877
the original apache commit is quite ugly and should not be used!! Change-Id: Id02d2cf474e49b97bfe285fe76867d1b1d944ec3
Diffstat (limited to 'sc/inc/attarray.hxx')
-rw-r--r--sc/inc/attarray.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/inc/attarray.hxx b/sc/inc/attarray.hxx
index 9b81440b668d..6ce325a7c092 100644
--- a/sc/inc/attarray.hxx
+++ b/sc/inc/attarray.hxx
@@ -131,6 +131,9 @@ public:
void SetPattern( SCROW nRow, const ScPatternAttr* pPattern, bool bPutToPool = false );
void SetPatternArea( SCROW nStartRow, SCROW nEndRow, const ScPatternAttr* pPattern,
bool bPutToPool = false, ScEditDataArray* pDataArray = NULL );
+
+ //swap two column patterns without adding and removing them from the pool
+ void SwapPattern( ScAttrArray& pArray2, SCROW nRow1, SCROW nRow2, const ScPatternAttr* pPattern1, const ScPatternAttr* pPattern2 );
void ApplyStyleArea( SCROW nStartRow, SCROW nEndRow, ScStyleSheet* pStyle );
void ApplyCacheArea( SCROW nStartRow, SCROW nEndRow, SfxItemPoolCache* pCache,
ScEditDataArray* pDataArray = NULL );