summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-02-05 16:03:55 +0100
committerThomas Arnhold <thomas@arnhold.org>2011-02-06 17:38:15 +0100
commit458850e7f39a58d4b741d20cea4bd0a20d3be210 (patch)
tree98529a983446821e7c0f563adfd7adff56700253 /sw/source
parentc0727a60f3b5d808ffe7c761a200bf2ba52d1dab (diff)
Remove DEBUG_TBLDLG
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/ui/table/swtablerep.cxx21
-rw-r--r--sw/source/ui/table/tabledlg.cxx44
2 files changed, 0 insertions, 65 deletions
diff --git a/sw/source/ui/table/swtablerep.cxx b/sw/source/ui/table/swtablerep.cxx
index 9359e1d3c78d..fd19c60000dc 100644
--- a/sw/source/ui/table/swtablerep.cxx
+++ b/sw/source/ui/table/swtablerep.cxx
@@ -67,19 +67,6 @@
#include <table.hrc>
#include "swtablerep.hxx"
-#ifdef DEBUG_TBLDLG
-
-void DbgTColumn(TColumn* pTColumn, USHORT nCount)
-{
- for(USHORT i = 0; i < nCount; i++)
- {
- String sMsg(i);
- sMsg += pTColumn[i].bVisible ? " v " : " h ";
- sMsg += pTColumn[i].nWidth;
- OSL_ENSURE(false, sMsg);
- }
-}
-#endif
SwTableRep::SwTableRep( const SwTabCols& rTabCol, BOOL bCplx )
:
@@ -133,10 +120,6 @@ BOOL SwTableRep::FillTabCols( SwTabCols& rTabCols ) const
break;
}
-#ifdef DEBUG_TBLDLG
-#define DbgTColumn(pTColumns, nAllCols);
-#endif
-
SwTwips nPos = 0;
SwTwips nLeft = GetLeftSpace();
rTabCols.SetLeft(nLeft);
@@ -157,10 +140,6 @@ BOOL SwTableRep::FillTabCols( SwTabCols& rTabCols ) const
pOldTColumns[nAllCols - 1].nWidth = rTabCols.GetRight() - rTabCols.GetLeft() - nStart;
pOldTColumns[nAllCols - 1].bVisible = TRUE;
-#ifdef DEBUG_TBLDLG
-#define DbgTColumn(pOldTColumns, nAllCols);
-#endif
-
USHORT nOldPos = 0;
USHORT nNewPos = 0;
SwTwips nOld = 0;
diff --git a/sw/source/ui/table/tabledlg.cxx b/sw/source/ui/table/tabledlg.cxx
index 8ee1506e4fa6..713da1694648 100644
--- a/sw/source/ui/table/tabledlg.cxx
+++ b/sw/source/ui/table/tabledlg.cxx
@@ -77,40 +77,6 @@
using namespace ::com::sun::star;
-#ifdef DEBUG_TBLDLG
-void DbgTblRep(SwTableRep* pRep)
-{
- OSL_ENSURE(false, String(pRep->GetColCount()));
- OSL_ENSURE(false, String(pRep->GetAllColCount()));
- SwTwips nSum = 0;
- for(USHORT i = 0; i < pRep->GetAllColCount(); i++)
- {
- String sMsg(i);
- sMsg += pRep->GetColumns()[i].bVisible ? " v " : " h ";
- sMsg += pRep->GetColumns()[i].nWidth;
- nSum +=pRep->GetColumns()[i].nWidth;
- OSL_ENSURE(false, sMsg);
- }
- String sMsg("Column sum: ");
- sMsg += nSum;
- sMsg += " table width: ";
- sMsg += pRep->GetWidth();
- OSL_ENSURE(false, sMsg);
- sMsg = "Gesamt/Links/Rechts: ";
- sMsg += pRep->GetSpace();
- sMsg += '/';
- sMsg += pRep->GetLeftSpace();
- sMsg += '/';
- sMsg += pRep->GetRightSpace();
- OSL_ENSURE(false, sMsg);
- sMsg = "Align: ";
- sMsg += pRep->GetAlign();
- OSL_ENSURE(false, sMsg);
-
-};
-
-#endif
-
SwFormatTablePage::SwFormatTablePage( Window* pParent, const SfxItemSet& rSet ) :
SfxTabPage(pParent, SW_RES( TP_FORMAT_TABLE ), rSet ),
@@ -791,9 +757,6 @@ int SwFormatTablePage::DeactivatePage( SfxItemSet* _pSet )
if(pTblData->HasWidthChanged())
_pSet->Put(SwPtrItem(FN_TABLE_REP, pTblData));
}
-#ifdef DEBUG_TBLDLG
-DbgTblRep(pTblData)
-#endif
}
return TRUE;
}
@@ -1162,10 +1125,6 @@ void SwTableColumnPage::UpdateCols( USHORT nAktPos )
nTableWidth += nAdd;
}
-#ifdef DEBUG_TBLDLG
-DbgTblRep(pTblData)
-#endif
-
if(!bPercentMode)
aSpaceED.SetValue(aSpaceED.Normalize( pTblData->GetSpace() - nTableWidth) , FUNIT_TWIP);
@@ -1282,9 +1241,6 @@ int SwTableColumnPage::DeactivatePage( SfxItemSet* _pSet )
}
pTblData->SetWidthChanged();
}
-#ifdef DEBUG_TBLDLG
-DbgTblRep(pTblData)
-#endif
_pSet->Put(SwPtrItem( FN_TABLE_REP, pTblData ));
}
return TRUE;