summaryrefslogtreecommitdiff
path: root/sw/inc/tblsel.hxx
diff options
context:
space:
mode:
authorjp <jp@openoffice.org>2002-03-21 11:57:09 +0000
committerjp <jp@openoffice.org>2002-03-21 11:57:09 +0000
commit8ce6e3ad91507e943660beb515a1dfcdd1a52e3e (patch)
treeeb51ac99bbf90ded455fc78905953fb9431bff83 /sw/inc/tblsel.hxx
parentdd8dacac09f810f0f65be4ac324674a42b27a3b7 (diff)
Task #92287#: optimize code and runtine for get selected row/box structure of tables
Diffstat (limited to 'sw/inc/tblsel.hxx')
-rw-r--r--sw/inc/tblsel.hxx34
1 files changed, 14 insertions, 20 deletions
diff --git a/sw/inc/tblsel.hxx b/sw/inc/tblsel.hxx
index 668e879f708f..8db60a499baa 100644
--- a/sw/inc/tblsel.hxx
+++ b/sw/inc/tblsel.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: tblsel.hxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: cmc $ $Date: 2001-07-26 15:55:43 $
+ * last change: $Author: jp $ $Date: 2002-03-21 12:57:09 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -206,10 +206,22 @@ class _FndBox
SwTableLine *pLineBefore; //Zum Loeschen/Restaurieren des Layouts.
SwTableLine *pLineBehind;
+ static void AddToFndBox( _FndBox*& rpParent, const SwTableBox& rBox );
+ static void AppendLine( _FndBox& rBox, const SwTableLine& rLine );
+ static void AppendBox( _FndLine& rLine, const SwTableBox& rBox );
+ static void AddSelLine( _FndBox& rBox, const SwTableLine& rLine,
+ SwSelBoxes& rBoxes );
+ static void AddSelBox( _FndLine& rLine, const SwTableBox& rBox,
+ SwSelBoxes& rBoxes );
public:
_FndBox( SwTableBox* pB, _FndLine* pFL ) :
pBox(pB), pUpper(pFL), pLineBefore( 0 ), pLineBehind( 0 ) {}
+ // fill with the structure from the selection (the selboxes)
+ _FndBox( const SwSelBoxes& rBoxes );
+ // fill with the structure from the TableLine
+ _FndBox( const SwTableLine& rLine );
+
const _FndLines& GetLines() const { return aLines; }
_FndLines& GetLines() { return aLines; }
const SwTableBox* GetBox() const { return pBox; }
@@ -250,22 +262,4 @@ public:
};
-struct _FndPara
-{
- _FndBox* pFndBox;
- _FndLine* pFndLine;
- const SwSelBoxes& rBoxes;
-
- _FndPara( const SwSelBoxes& rBxs, _FndBox* pFB )
- : rBoxes( rBxs ), pFndBox( pFB ) {}
- _FndPara( const _FndPara& rPara, _FndBox* pFB )
- : rBoxes(rPara.rBoxes), pFndLine(rPara.pFndLine), pFndBox(pFB) {}
- _FndPara( const _FndPara& rPara, _FndLine* pFL )
- : rBoxes(rPara.rBoxes), pFndLine(pFL), pFndBox(rPara.pFndBox) {}
-};
-
-BOOL _FndBoxCopyCol( const SwTableBox*& rpBox, void* pPara );
-BOOL _FndLineCopyCol( const SwTableLine*& rpLine, void* pPara );
-
-
#endif // _TBLSEL_HXX