From 902082656655aeab559c0b5781907ff004179468 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Fri, 13 Jul 2012 08:17:26 +0200 Subject: 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 --- sc/inc/attarray.hxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sc/inc/attarray.hxx') 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 ); -- cgit