diff options
author | RĂ¼diger Timm <rt@openoffice.org> | 2005-03-29 12:28:51 +0000 |
---|---|---|
committer | RĂ¼diger Timm <rt@openoffice.org> | 2005-03-29 12:28:51 +0000 |
commit | 5b770b717305bf965bec02a4d420805829675562 (patch) | |
tree | b478cef999c31bfa11cccb91eaf2af6dbac6f8b0 /sc/inc/attarray.hxx | |
parent | INTEGRATION: CWS dr34 (1.5.2); FILE MERGED (diff) | |
download | core-5b770b717305bf965bec02a4d420805829675562.tar.gz core-5b770b717305bf965bec02a4d420805829675562.zip |
INTEGRATION: CWS dr34 (1.6.2); FILE MERGED
2005/03/10 11:41:13 nn 1.6.2.1: #i44697# detect equal ScPatternAttr pointers across MergePatternArea calls
Diffstat (limited to 'sc/inc/attarray.hxx')
-rw-r--r-- | sc/inc/attarray.hxx | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/sc/inc/attarray.hxx b/sc/inc/attarray.hxx index bd7bc1d5fae2..038553476a46 100644 --- a/sc/inc/attarray.hxx +++ b/sc/inc/attarray.hxx @@ -2,9 +2,9 @@ * * $RCSfile: attarray.hxx,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: vg $ $Date: 2005-02-21 15:56:26 $ + * last change: $Author: rt $ $Date: 2005-03-29 13:28:51 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -101,6 +101,15 @@ struct ScLineFlags nBottom(SC_LINE_EMPTY),nHori(SC_LINE_EMPTY),nVert(SC_LINE_EMPTY) {} }; +struct ScMergePatternState +{ + SfxItemSet* pItemSet; // allocated in MergePatternArea, used for resulting ScPatternAttr + const ScPatternAttr* pOld1; // existing objects, temporary + const ScPatternAttr* pOld2; + + ScMergePatternState() : pItemSet(NULL), pOld1(NULL), pOld2(NULL) {} +}; + struct ScAttrEntry { SCROW nRow; @@ -144,7 +153,7 @@ public: const ScPatternAttr* GetPattern( SCROW nRow ) const; const ScPatternAttr* GetPatternRange( SCROW& rStartRow, SCROW& rEndRow, SCROW nRow ) const; - void MergePatternArea( SCROW nStartRow, SCROW nEndRow, SfxItemSet** ppSet, BOOL bDeep ) const; + void MergePatternArea( SCROW nStartRow, SCROW nEndRow, ScMergePatternState& rState, BOOL bDeep ) const; void MergeBlockFrame( SvxBoxItem* pLineOuter, SvxBoxInfoItem* pLineInner, ScLineFlags& rFlags, SCROW nStartRow, SCROW nEndRow, BOOL bLeft, SCCOL nDistRight ) const; |