summaryrefslogtreecommitdiff
path: root/sw/source/core/text/itradj.cxx
diff options
context:
space:
mode:
authorChris Laplante <mostthingsweb@gmail.com>2014-04-18 00:59:07 -0400
committerCaolán McNamara <caolanm@redhat.com>2014-04-18 09:22:37 +0000
commitd8f8c8aa4544e2a0e7e3c43764080d5fe0effacf (patch)
tree6c98195ee46e29478c3589380665aad8f034b715 /sw/source/core/text/itradj.cxx
parentefaa53bc980c92054ae39f4317b8acc607fd6a34 (diff)
Begin removing ASCII art and useless comments from sw
Change-Id: Ic367b2ebca1a766c830ccd44a84274d86be4f080 Reviewed-on: https://gerrit.libreoffice.org/9090 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/core/text/itradj.cxx')
-rw-r--r--sw/source/core/text/itradj.cxx61
1 files changed, 8 insertions, 53 deletions
diff --git a/sw/source/core/text/itradj.cxx b/sw/source/core/text/itradj.cxx
index 2dca3187542e..24e71116f116 100644
--- a/sw/source/core/text/itradj.cxx
+++ b/sw/source/core/text/itradj.cxx
@@ -35,10 +35,6 @@
using namespace ::com::sun::star;
-/*************************************************************************
- * SwTxtAdjuster::FormatBlock()
- *************************************************************************/
-
void SwTxtAdjuster::FormatBlock( )
{
// Block format does not apply to the last line.
@@ -113,9 +109,6 @@ void SwTxtAdjuster::FormatBlock( )
GetInfo().GetParaPortion()->GetRepaint()->SetOfst(0);
}
-/*************************************************************************
- * lcl_CheckKashidaPositions()
- *************************************************************************/
static bool lcl_CheckKashidaPositions( SwScriptInfo& rSI, SwTxtSizeInfo& rInf, SwTxtIter& rItr,
sal_Int32& rKashidas, sal_Int32& nGluePortion )
{
@@ -195,9 +188,6 @@ static bool lcl_CheckKashidaPositions( SwScriptInfo& rSI, SwTxtSizeInfo& rInf, S
return (rKashidas > 0);
}
-/*************************************************************************
- * lcl_CheckKashidaWidth()
- *************************************************************************/
static bool lcl_CheckKashidaWidth ( SwScriptInfo& rSI, SwTxtSizeInfo& rInf, SwTxtIter& rItr, sal_Int32& rKashidas,
sal_Int32& nGluePortion, const long nGluePortionWidth, long& nSpaceAdd )
{
@@ -255,14 +245,9 @@ static bool lcl_CheckKashidaWidth ( SwScriptInfo& rSI, SwTxtSizeInfo& rInf, SwTx
return true;
}
-/*************************************************************************
- * SwTxtAdjuster::CalcNewBlock()
- *
- * CalcNewBlock() must only be called _after_ CalcLine()!
- * We always span between two RandPortions or FixPortions (Tabs and Flys).
- * We count the Glues and call ExpandBlock.
- *************************************************************************/
-
+// CalcNewBlock() must only be called _after_ CalcLine()!
+// We always span between two RandPortions or FixPortions (Tabs and Flys).
+// We count the Glues and call ExpandBlock.
void SwTxtAdjuster::CalcNewBlock( SwLineLayout *pCurrent,
const SwLinePortion *pStopAt, SwTwips nReal, bool bSkipKashida )
{
@@ -410,10 +395,6 @@ void SwTxtAdjuster::CalcNewBlock( SwLineLayout *pCurrent,
}
}
-/*************************************************************************
- * SwTxtAdjuster::CalcKanaAdj()
- *************************************************************************/
-
SwTwips SwTxtAdjuster::CalcKanaAdj( SwLineLayout* pCurrent )
{
OSL_ENSURE( pCurrent->Height(), "SwTxtAdjuster::CalcBlockAdjust: missing CalcLine()" );
@@ -556,10 +537,6 @@ SwTwips SwTxtAdjuster::CalcKanaAdj( SwLineLayout* pCurrent )
return nRepaintOfst;
}
-/*************************************************************************
- * SwTxtAdjuster::CalcRightMargin()
- *************************************************************************/
-
SwMarginPortion *SwTxtAdjuster::CalcRightMargin( SwLineLayout *pCurrent,
SwTwips nReal )
{
@@ -611,10 +588,6 @@ SwMarginPortion *SwTxtAdjuster::CalcRightMargin( SwLineLayout *pCurrent,
return pRight;
}
-/*************************************************************************
- * SwTxtAdjuster::CalcFlyAdjust()
- *************************************************************************/
-
void SwTxtAdjuster::CalcFlyAdjust( SwLineLayout *pCurrent )
{
// 1) We insert a left margin:
@@ -690,10 +663,6 @@ void SwTxtAdjuster::CalcFlyAdjust( SwLineLayout *pCurrent )
pLeft->AdjustRight( pCurrent );
}
-/*************************************************************************
- * SwTxtAdjuster::CalcAdjLine()
- *************************************************************************/
-
void SwTxtAdjuster::CalcAdjLine( SwLineLayout *pCurrent )
{
OSL_ENSURE( pCurrent->IsFormatAdj(), "CalcAdjLine: Why?" );
@@ -720,15 +689,10 @@ void SwTxtAdjuster::CalcAdjLine( SwLineLayout *pCurrent )
}
}
-/*************************************************************************
- * SwTxtAdjuster::CalcFlyPortion()
- *
- * This is a quite complicated calculation: nCurrWidth is the width _before_
- * adding the word, that still fits onto the line! For this reason the FlyPortion's
- * width is still correct if we get a deadlock-situation of:
- * bFirstWord && !WORDFITS
- *************************************************************************/
-
+// This is a quite complicated calculation: nCurrWidth is the width _before_
+// adding the word, that still fits onto the line! For this reason the FlyPortion's
+// width is still correct if we get a deadlock-situation of:
+// bFirstWord && !WORDFITS
SwFlyPortion *SwTxtAdjuster::CalcFlyPortion( const long nRealWidth,
const SwRect &rCurrRect )
{
@@ -773,12 +737,7 @@ SwFlyPortion *SwTxtAdjuster::CalcFlyPortion( const long nRealWidth,
return pFlyPortion;
}
-/*************************************************************************
- * SwTxtPainter::_CalcDropAdjust()
- * Drops and Adjustment
- * CalcDropAdjust is called at the end by Format() if needed
- *************************************************************************/
-
+// CalcDropAdjust is called at the end by Format() if needed
void SwTxtAdjuster::CalcDropAdjust()
{
OSL_ENSURE( 1<GetDropLines() && SVX_ADJUST_LEFT!=GetAdjust() && SVX_ADJUST_BLOCK!=GetAdjust(),
@@ -862,10 +821,6 @@ void SwTxtAdjuster::CalcDropAdjust()
}
}
-/*************************************************************************
- * SwTxtAdjuster::CalcDropRepaint()
- *************************************************************************/
-
void SwTxtAdjuster::CalcDropRepaint()
{
Top();