summaryrefslogtreecommitdiff
path: root/xmloff/source/text
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-02-15 01:21:49 +0100
committerThomas Arnhold <thomas@arnhold.org>2011-02-15 13:27:12 +0100
commitb3e28f672eb06949090c51398d6f2f24fe591936 (patch)
treea17809b319edfc764d3da2ec7eb56c79876592a5 /xmloff/source/text
parent6d3f9a4848fc141eb1a87bc77e16ae851d62fe8e (diff)
Remove XML_CHECK_UI_CON(T)STRAINS
Diffstat (limited to 'xmloff/source/text')
-rw-r--r--xmloff/source/text/txtimppr.cxx57
1 files changed, 0 insertions, 57 deletions
diff --git a/xmloff/source/text/txtimppr.cxx b/xmloff/source/text/txtimppr.cxx
index 274aac773dd1..b18b6c8a3069 100644
--- a/xmloff/source/text/txtimppr.cxx
+++ b/xmloff/source/text/txtimppr.cxx
@@ -435,62 +435,6 @@ void XMLTextImportPropertyMapper::finished(
else
pBorderWidths[i]->mnIndex = -1;
-#ifdef XML_CHECK_UI_CONSTRAINS
- sal_Bool bHasBorder = sal_False;
- if( pBorders[i] )
- {
- table::BorderLine2 aBorderLine;
- pBorders[i]->maValue >>= aBorderLine;
-
- if( pBorderWidths[i] )
- {
- table::BorderLine2 aBorderLineWidth;
- pBorderWidths[i]->maValue >>= aBorderLineWidth;
- aBorderLine.OuterLineWidth = aBorderLineWidth.OuterLineWidth;
- aBorderLine.InnerLineWidth = aBorderLineWidth.InnerLineWidth;
- aBorderLine.LineDistance = aBorderLineWidth.LineDistance;
-
- pBorders[i]->maValue <<= aBorderLine;
- }
- bHasBorder = (aBorderLine.OuterLineWidth +
- aBorderLine.InnerLineWidth) > 0;
- }
- if( bHasBorder )
- {
- if( !pBorderDistances[i] )
- {
-#ifdef DBG_UTIL
- sal_Int16 nTmp = getPropertySetMapper()->GetEntryContextId(
- pBorders[i]->mnIndex + 5 );
- DBG_ASSERT( nTmp >= CTF_LEFTBORDERDISTANCE &&
- nTmp <= CTF_BOTTOMBORDERDISTANCE,
- "wrong property context id" );
-#endif
-
- pNewBorderDistances[i] =
- new XMLPropertyState( pBorders[i]->mnIndex + 5 );
- pNewBorderDistances[i]->maValue <<= (sal_Int32)MIN_BORDER_DIST;
- pBorderDistances[i] = pNewBorderDistances[i];
- }
- else
- {
- sal_Int32 nDist;
- pBorderDistances[i]->maValue >>= nDist;
- if( nDist < MIN_BORDER_DIST )
- pBorderDistances[i]->maValue <<= (sal_Int32)MIN_BORDER_DIST;
- }
- }
- else
- {
- if( pBorderDistances[i] )
- {
- sal_Int32 nDist;
- pBorderDistances[i]->maValue >>= nDist;
- if( nDist > 0 )
- pBorderDistances[i]->maValue <<= (sal_Int32)0;
- }
- }
-#else
if( pBorders[i] && pBorderWidths[i] )
{
table::BorderLine2 aBorderLine;
@@ -505,7 +449,6 @@ void XMLTextImportPropertyMapper::finished(
pBorders[i]->maValue <<= aBorderLine;
}
-#endif
}
if( pAllBorderDistance )
pAllBorderDistance->mnIndex = -1;