summaryrefslogtreecommitdiff
path: root/sw/inc/swtable.hxx
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2010-11-25 18:50:04 +0100
committerJan Holesovsky <kendy@suse.cz>2010-11-25 18:50:04 +0100
commit1a6bf8c433b128606af043a01a1366eab00b3d68 (patch)
tree446ad553d122fad153e3a28a52770dd7bd671e82 /sw/inc/swtable.hxx
parent2b20a3ef7a0b2ff030945d679b897c2062d7e0ff (diff)
parentc16ba8a04fd4599e439e7e039705e41691c43acb (diff)
Merge remote branch 'origin/libreoffice-3-3'
Conflicts: sw/inc/SwNumberTree.hxx sw/inc/calbck.hxx sw/inc/tox.hxx sw/inc/viscrs.hxx sw/source/core/doc/docnum.cxx sw/source/core/docnode/finalthreadmanager.cxx sw/source/core/docnode/ndnum.cxx sw/source/core/docnode/ndtbl.cxx sw/source/core/draw/dcontact.cxx sw/source/core/edit/edlingu.cxx sw/source/core/edit/ednumber.cxx sw/source/core/except/errhdl.cxx sw/source/core/fields/chpfld.cxx sw/source/core/fields/fldbas.cxx sw/source/core/frmedt/fetab.cxx sw/source/core/layout/flycnt.cxx sw/source/core/layout/makefile.mk sw/source/core/layout/pagechg.cxx sw/source/core/layout/tabfrm.cxx sw/source/core/ole/ndole.cxx sw/source/core/text/makefile.mk sw/source/core/txtnode/txtedt.cxx sw/source/filter/basflt/fltini.cxx sw/source/filter/html/swhtml.cxx sw/source/filter/ww1/fltshell.cxx sw/source/filter/ww1/w1sprm.cxx sw/source/filter/ww8/wrtw8nds.cxx sw/source/filter/ww8/wrtw8num.cxx sw/source/filter/ww8/ww8par3.cxx sw/source/filter/ww8/ww8par5.cxx sw/source/filter/ww8/ww8par6.cxx sw/source/filter/xml/xmltble.cxx sw/source/filter/xml/xmltbli.cxx sw/source/ui/dbui/dbinsdlg.cxx sw/source/ui/dbui/mmoutputpage.cxx sw/source/ui/dialog/swdlgfact.cxx sw/source/ui/docvw/edtwin.cxx sw/source/ui/docvw/srcedtw.cxx
Diffstat (limited to 'sw/inc/swtable.hxx')
-rw-r--r--sw/inc/swtable.hxx21
1 files changed, 11 insertions, 10 deletions
diff --git a/sw/inc/swtable.hxx b/sw/inc/swtable.hxx
index fd73bdbb7d55..d6581a60d56b 100644
--- a/sw/inc/swtable.hxx
+++ b/sw/inc/swtable.hxx
@@ -34,12 +34,13 @@
#include <swtypes.hxx>
#include <calbck.hxx>
#include <swrect.hxx>
-#ifndef DBG_UTIL
-#include <node.hxx> // fuer StartNode->GetMyIndex
-#else
+
+#if OSL_DEBUG_LEVEL > 1
class SwStartNode;
#include <memory>
#include <boost/noncopyable.hpp>
+#else
+#include <node.hxx> // fuer StartNode->GetMyIndex
#endif
class Color;
@@ -109,7 +110,7 @@ protected:
BOOL bModifyLocked :1;
BOOL bNewModel :1; // FALSE: old SubTableModel; TRUE: new RowSpanModel
-#ifdef DBG_UTIL
+#if OSL_DEBUG_LEVEL > 1
bool bDontChangeModel; // This is set by functions (like Merge()) to forbid a laet model change
#endif
@@ -208,7 +209,7 @@ public:
BOOL Merge( SwDoc* pDoc, const SwSelBoxes& rBoxes, const SwSelBoxes& rMerged,
SwTableBox* pMergeBox, SwUndoTblMerge* pUndo = 0 )
{
-#ifdef DBG_UTIL
+#if OSL_DEBUG_LEVEL > 1
bDontChangeModel = true;
#endif
return bNewModel ? NewMerge( pDoc, rBoxes, rMerged, pMergeBox, pUndo ) :
@@ -217,7 +218,7 @@ public:
BOOL SplitRow( SwDoc* pDoc, const SwSelBoxes& rBoxes, USHORT nCnt=1,
BOOL bSameHeight = FALSE )
{
-#ifdef DBG_UTIL
+#if OSL_DEBUG_LEVEL > 1
bDontChangeModel = true;
#endif
return bNewModel ? NewSplitRow( pDoc, rBoxes, nCnt, bSameHeight ) :
@@ -319,7 +320,7 @@ public:
SwTwips nAbsDiff, SwTwips nRelDiff, SwUndo** ppUndo );
BOOL SetRowHeight( SwTableBox& rAktBox, USHORT eType,
SwTwips nAbsDiff, SwTwips nRelDiff, SwUndo** ppUndo );
-#ifdef DBG_UTIL
+#if OSL_DEBUG_LEVEL > 1
void CheckConsistency() const;
#endif
};
@@ -408,10 +409,10 @@ public:
const SwStartNode *GetSttNd() const { return pSttNd; }
ULONG GetSttIdx() const
-#ifndef DBG_UTIL
- { return pSttNd ? pSttNd->GetIndex() : 0; }
-#else
+#if OSL_DEBUG_LEVEL > 1
;
+#else
+ { return pSttNd ? pSttNd->GetIndex() : 0; }
#endif
// suche nach der naechsten/vorherigen Box mit Inhalt