summaryrefslogtreecommitdiff
path: root/lotuswordpro/source/filter/lwpparastyle.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-07-17 12:32:31 +0200
committerNoel Grandin <noel@peralex.com>2015-07-17 12:33:13 +0200
commit81d873336bc55a6854fdc0b2a53faada0c552e1f (patch)
tree18cf222d9b870061cb6e7e597ab0b37e0302e005 /lotuswordpro/source/filter/lwpparastyle.cxx
parent6a1f31898d4d44d69f4f65e56f5dd087607885af (diff)
remove pointless comments in lotuswordpro
change control, empty documentation tags Change-Id: Iad06c00ebad7dcb7d7d40040d77dee2d6307c9a5
Diffstat (limited to 'lotuswordpro/source/filter/lwpparastyle.cxx')
-rw-r--r--lotuswordpro/source/filter/lwpparastyle.cxx29
1 files changed, 3 insertions, 26 deletions
diff --git a/lotuswordpro/source/filter/lwpparastyle.cxx b/lotuswordpro/source/filter/lwpparastyle.cxx
index 6d6d6372ce94..9d67ea96ebaf 100644
--- a/lotuswordpro/source/filter/lwpparastyle.cxx
+++ b/lotuswordpro/source/filter/lwpparastyle.cxx
@@ -57,10 +57,6 @@
* @file
* For LWP filter architecture prototype
************************************************************************/
-/*************************************************************************
- * Change History
- Jan 2005 Created
- ************************************************************************/
#include <boost/scoped_ptr.hpp>
@@ -176,7 +172,7 @@ void LwpParaStyle::Apply(XFParaStyle *pParaStyle)
LwpIndentOverride *pIndent = dynamic_cast<LwpIndentOverride*>(pPiece->GetOverride());
if( pIndent )
{
- if (!m_pBulletOverride->IsInValid())//Add by ,for remove bullet indent in named bullet style
+ if (!m_pBulletOverride->IsInValid())// for remove bullet indent in named bullet style
{
boost::scoped_ptr<LwpIndentOverride> pNewIndent(pIndent->clone());
pNewIndent->SetMFirst(0);
@@ -448,7 +444,7 @@ void LwpParaStyle::ApplyIndent(LwpPara* pPara, XFParaStyle* pParaStyle, LwpInden
return;
pTotalIndent.reset(pIndent->clone());
- //add by ,for bullet only
+ //for bullet only
if (pPara)
{
if (pPara->GetBulletFlag())
@@ -461,7 +457,6 @@ void LwpParaStyle::ApplyIndent(LwpPara* pPara, XFParaStyle* pParaStyle, LwpInden
return;
}
}
- //end add
sal_uInt16 relative = pParentIndent->GetRelative();
sal_Int32 Amount = pParentIndent->GetMAll();
@@ -481,19 +476,16 @@ void LwpParaStyle::ApplyIndent(LwpPara* pPara, XFParaStyle* pParaStyle, LwpInden
else
{
pTotalIndent.reset(pIndent->clone());
- //add by
if (pPara)
{
if (pPara->GetBulletFlag())
{
-// pParaStyle->SetIndent(LwpTools::ConvertFromUnits(pIndent->GetMAll()));
pParaStyle->SetMargins(LwpTools::ConvertToMetric(
LwpTools::ConvertFromUnits(pIndent->GetMAll())), pIndent->GetRight());
pPara->SetIndent(pTotalIndent.release());
return;
}
}
- //end add
pParaStyle->SetIndent(pIndent->GetFirst());
pParaStyle->SetMargins(pIndent->GetLeft(), pIndent->GetRight());
@@ -552,7 +544,6 @@ void LwpParaStyle::ApplySpacing(LwpPara* pPara, XFParaStyle* pParaStyle, LwpSpac
switch(type)
{
case LwpSpacingCommonOverride::SPACING_DYNAMIC:
-// above_val = LINE_HEIGHT*float(multiple)/65536L*100; //TO DO: 1-26
break;
case LwpSpacingCommonOverride::SPACING_LEADING:
break;
@@ -570,7 +561,6 @@ void LwpParaStyle::ApplySpacing(LwpPara* pPara, XFParaStyle* pParaStyle, LwpSpac
switch(type)
{
case LwpSpacingCommonOverride::SPACING_DYNAMIC:
-// below_val = LINE_HEIGHT*float(multiple)/65536L*100;//TO DO: 1-26
break;
case LwpSpacingCommonOverride::SPACING_LEADING:
break;
@@ -595,13 +585,7 @@ void LwpParaStyle::ApplySpacing(LwpPara* pPara, XFParaStyle* pParaStyle, LwpSpac
}
pParaStyle->SetMargins(-1,-1,above_val,below_val);
}
-/**************************************************************************
- * @short:
- * @descr:
- * @param:
- * @param:
- * @return:
-**************************************************************************/
+
void LwpParaStyle::ApplyTab(XFParaStyle *pParaStyle, LwpTabOverride *pTabOverRide)
{
LwpObjectID& rTabRackID = pTabOverRide->GetTabRackID();
@@ -765,13 +749,6 @@ LwpNumberingOverride* LwpParaStyle::GetNumberingOverride() const
return NULL;
}
-/**************************************************************************
- * @short:
- * @descr:
- * @param:
- * @param:
- * @return:
-**************************************************************************/
LwpTabOverride* LwpParaStyle::GetTabOverride() const
{
if(m_TabStyle.obj() == NULL)