summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Riemer <ruderphilipp@gmail.com>2013-04-07 21:24:55 +0200
committerMiklos Vajna <vmiklos@suse.cz>2013-04-08 08:38:14 +0000
commitadea2a859dcc2722fc9db8acb5bddb864f40e0c4 (patch)
tree7918b32e12a6ef3b6f7fd4fe25ab8b855d0f6ffc
parentdoxygen-ize comments in sw/source/core/doc (diff)
downloadcore-adea2a859dcc2722fc9db8acb5bddb864f40e0c4.tar.gz
core-adea2a859dcc2722fc9db8acb5bddb864f40e0c4.zip
fdo#62475 - remove pointless comments and ASCII art in sw/source/core/doc
Change-Id: I15f0af451a2259ddfeaa5e7964317e6c0537e4db Reviewed-on: https://gerrit.libreoffice.org/3262 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
-rw-r--r--sw/source/core/doc/docdesc.cxx19
-rw-r--r--sw/source/core/doc/docdraw.cxx38
-rw-r--r--sw/source/core/doc/docedt.cxx3
-rw-r--r--sw/source/core/doc/docfld.cxx7
-rw-r--r--sw/source/core/doc/doclay.cxx23
-rw-r--r--sw/source/core/doc/docnew.cxx4
-rw-r--r--sw/source/core/doc/docsort.cxx9
-rw-r--r--sw/source/core/doc/docstat.cxx9
-rw-r--r--sw/source/core/doc/doctxm.cxx11
-rw-r--r--sw/source/core/doc/fmtcol.cxx4
-rw-r--r--sw/source/core/doc/list.cxx7
-rw-r--r--sw/source/core/doc/notxtfrm.cxx46
-rw-r--r--sw/source/core/doc/sortopt.cxx6
-rw-r--r--sw/source/core/doc/tblafmt.cxx2
14 files changed, 9 insertions, 179 deletions
diff --git a/sw/source/core/doc/docdesc.cxx b/sw/source/core/doc/docdesc.cxx
index 9f3fa78e6103..fc6809c2ee5c 100644
--- a/sw/source/core/doc/docdesc.cxx
+++ b/sw/source/core/doc/docdesc.cxx
@@ -114,12 +114,6 @@ static void lcl_DefaultPageFmt( sal_uInt16 nPoolFmtId,
rFmt3.SetFmtAttr( aUL );
}
-/*************************************************************************
-|*
-|* SwDoc::ChgPageDesc()
-|*
-|*************************************************************************/
-
static void lcl_DescSetAttr( const SwFrmFmt &rSource, SwFrmFmt &rDest,
const bool bPage = true )
{
@@ -514,14 +508,6 @@ void SwDoc::DelPageDesc( sal_uInt16 i, bool bBroadcast )
SetModified();
}
-
-
-/*************************************************************************
-|*
-|* SwDoc::MakePageDesc()
-|*
-|*************************************************************************/
-
sal_uInt16 SwDoc::MakePageDesc( const String &rName, const SwPageDesc *pCpy,
bool bRegardLanguage, bool bBroadcast)
{
@@ -582,11 +568,6 @@ SwPageDesc* SwDoc::FindPageDescByName( const String& rName, sal_uInt16* pPos ) c
return pRet;
}
-/******************************************************************************
- * Method : void SwDoc::PrtDataChanged()
- * Description :
- ******************************************************************************/
-
void SwDoc::PrtDataChanged()
{
// If you change this, also modify InJobSetup in Sw3io if appropriate.
diff --git a/sw/source/core/doc/docdraw.cxx b/sw/source/core/doc/docdraw.cxx
index c172e1f1c2b1..80cedc9a4a17 100644
--- a/sw/source/core/doc/docdraw.cxx
+++ b/sw/source/core/doc/docdraw.cxx
@@ -381,12 +381,6 @@ void SwDoc::UnGroupSelection( SdrView& rDrawView )
delete [] pFmtsAndObjs;
}
-/*************************************************************************
-|*
-|* SwDoc::DeleteSelection()
-|*
-|*************************************************************************/
-
bool SwDoc::DeleteSelection( SwDrawView& rDrawView )
{
bool bCallBase = false;
@@ -482,12 +476,6 @@ bool SwDoc::DeleteSelection( SwDrawView& rDrawView )
return bCallBase;
}
-/*************************************************************************
-|*
-|* SwDoc::DeleteSelection()
-|*
-|*************************************************************************/
-
_ZSortFly::_ZSortFly( const SwFrmFmt* pFrmFmt, const SwFmtAnchor* pFlyAn,
sal_uInt32 nArrOrdNum )
: pFmt( pFrmFmt ), pAnchor( pFlyAn ), nOrdNum( nArrOrdNum )
@@ -524,7 +512,6 @@ _ZSortFly::_ZSortFly( const SwFrmFmt* pFrmFmt, const SwFmtAnchor* pFlyAn,
}
}
-/*************************************************************************/
// Is also called by the Sw3 Reader, if there was an error when reading the
// drawing layer. If it is called by the Sw3 Reader the layer is rebuilt
// from scratch.
@@ -762,9 +749,6 @@ SdrLayerID SwDoc::GetInvisibleLayerIdByVisibleOne( const SdrLayerID& _nVisibleLa
return nInvisibleLayerId;
}
-/*************************************************************************/
-
-
void SwDoc::ReleaseDrawModel()
{
if ( mpDrawModel )
@@ -786,9 +770,6 @@ void SwDoc::ReleaseDrawModel()
}
}
-/*************************************************************************/
-
-
SdrModel* SwDoc::_MakeDrawModel()
{
OSL_ENSURE( !mpDrawModel, "_MakeDrawModel: Why?" );
@@ -812,8 +793,6 @@ SdrModel* SwDoc::_MakeDrawModel()
return mpDrawModel;
}
-/*************************************************************************/
-
void SwDoc::DrawNotifyUndoHdl()
{
mpDrawModel->SetNotifyUndoActionHdl( Link() );
@@ -835,19 +814,14 @@ IMPL_LINK(SwDoc, CalcFieldValueHdl, EditFieldInfo*, pInfo)
if (pField && pField->ISA(SvxDateField))
{
- /******************************************************************
- * Date field
- ******************************************************************/
+ // Date field
pInfo->SetRepresentation(
((const SvxDateField*) pField)->GetFormatted(
*GetNumberFormatter( sal_True ), LANGUAGE_SYSTEM) );
}
else if (pField && pField->ISA(SvxURLField))
{
- /******************************************************************
- * URL field
- ******************************************************************/
-
+ // URL field
switch ( ((const SvxURLField*) pField)->GetFormat() )
{
case SVXURLFORMAT_APPDEFAULT: //!!! Can be set in App???
@@ -883,16 +857,12 @@ IMPL_LINK(SwDoc, CalcFieldValueHdl, EditFieldInfo*, pInfo)
}
else if (pField && pField->ISA(SdrMeasureField))
{
- /******************************************************************
- * Measure field
- ******************************************************************/
+ // Measure field
pInfo->ClearFldColor();
}
else if ( pField && pField->ISA(SvxExtTimeField))
{
- /******************************************************************
- * Time field
- ******************************************************************/
+ // Time field
pInfo->SetRepresentation(
((const SvxExtTimeField*) pField)->GetFormatted(
*GetNumberFormatter( sal_True ), LANGUAGE_SYSTEM) );
diff --git a/sw/source/core/doc/docedt.cxx b/sw/source/core/doc/docedt.cxx
index 7a9c89084f60..39d895d5b0f8 100644
--- a/sw/source/core/doc/docedt.cxx
+++ b/sw/source/core/doc/docedt.cxx
@@ -703,9 +703,6 @@ void SwDoc::SetModified(SwPaM &rPaM)
SetModified();
}
-/*************************************************************************
- * SwDoc::Overwrite()
- ************************************************************************/
bool SwDoc::Overwrite( const SwPaM &rRg, const String &rStr )
{
SwPosition& rPt = *(SwPosition*)rRg.GetPoint();
diff --git a/sw/source/core/doc/docfld.cxx b/sw/source/core/doc/docfld.cxx
index 477bc5d96363..c27319c3b970 100644
--- a/sw/source/core/doc/docfld.cxx
+++ b/sw/source/core/doc/docfld.cxx
@@ -298,10 +298,6 @@ SwFieldType* SwDoc::GetFldType( sal_uInt16 nResId, const String& rName,
return pRet;
}
-/*************************************************************************
-|* SwDoc::UpdateFlds()
-|* Description: Update fields
-*************************************************************************/
/*
* All have to be re-evaluated.
*/
@@ -362,9 +358,6 @@ void SwDoc::UpdateFlds( SfxPoolItem *pNewHt, bool bCloseDB )
SetModified();
}
-/******************************************************************************
- * void SwDoc::UpdateUsrFlds()
- ******************************************************************************/
void SwDoc::UpdateUsrFlds()
{
SwCalc* pCalc = 0;
diff --git a/sw/source/core/doc/doclay.cxx b/sw/source/core/doc/doclay.cxx
index 0f509a1d2861..b3920de82fe5 100644
--- a/sw/source/core/doc/doclay.cxx
+++ b/sw/source/core/doc/doclay.cxx
@@ -1091,12 +1091,6 @@ void SwDoc::GetAllFlyFmts( SwPosFlyFrms& rPosFlyFmts,
}
}
-/*************************************************************************
-|*
-|* SwDoc::InsertLabel()
-|*
-|*************************************************************************/
-
/* #i6447# changed behaviour if lcl_CpyAttr:
If the old item set contains the item to set (no inheritance) copy the item
@@ -1489,12 +1483,6 @@ SwDoc::InsertLabel(
return pNewFmt;
}
-
-/*************************************************************************
-|*
-|* SwDoc::InsertDrawLabel()
-|*
-|*************************************************************************/
static SwFlyFrmFmt *
lcl_InsertDrawLabel( SwDoc & rDoc, SwTxtFmtColls *const pTxtFmtCollTbl,
SwUndoInsertLabel *const pUndo, SwDrawFrmFmt *const pOldFmt,
@@ -1780,12 +1768,8 @@ SwFlyFrmFmt* SwDoc::InsertDrawLabel(
return pNewFmt;
}
+// IDocumentTimerAccess methods ------------------------------------------
-/*************************************************************************
-|*
-|* IDocumentTimerAccess methods
-|*
-|*************************************************************************/
void SwDoc::StartIdling()
{
mbStartIdleTimer = true;
@@ -1817,11 +1801,6 @@ void SwDoc::StartBackgroundJobs() {
maIdleTimer.Start();
}
-/*************************************************************************
-|*
-|* SwDoc::DoIdleJobs()
-|*
-|*************************************************************************/
IMPL_LINK( SwDoc, DoIdleJobs, Timer *, pTimer )
{
#ifdef TIMELOG
diff --git a/sw/source/core/doc/docnew.cxx b/sw/source/core/doc/docnew.cxx
index b4e65b75687c..463037d235a4 100644
--- a/sw/source/core/doc/docnew.cxx
+++ b/sw/source/core/doc/docnew.cxx
@@ -1156,9 +1156,7 @@ SfxObjectShell* SwDoc::CreateCopy(bool bCallInitNew ) const
return pRetShell;
}
-/*-------------------------------------------------------------------------
- copy document content - code from SwFEShell::Paste( SwDoc* )
- -----------------------------------------------------------------------*/
+// copy document content - code from SwFEShell::Paste( SwDoc* )
void SwDoc::Paste( const SwDoc& rSource )
{
// this has to be empty const sal_uInt16 nStartPageNumber = GetPhyPageNum();
diff --git a/sw/source/core/doc/docsort.cxx b/sw/source/core/doc/docsort.cxx
index 9f8a11f3c29b..306736366ff9 100644
--- a/sw/source/core/doc/docsort.cxx
+++ b/sw/source/core/doc/docsort.cxx
@@ -157,17 +157,11 @@ int SwSortElement::keycompare(const SwSortElement& rCmp, sal_uInt16 nKey) const
return nCmp;
}
-/*--------------------------------------------------------------------
- Description: Comparison operators
- --------------------------------------------------------------------*/
bool SwSortElement::operator==(const SwSortElement& ) const
{
return false;
}
-/*--------------------------------------------------------------------
- Description: Less-than operator for sorting
- --------------------------------------------------------------------*/
bool SwSortElement::operator<(const SwSortElement& rCmp) const
{
// The actual comparison
@@ -199,9 +193,6 @@ SwSortTxtElement::~SwSortTxtElement()
{
}
-/*--------------------------------------------------------------------
- Description: Get Key
- --------------------------------------------------------------------*/
String SwSortTxtElement::GetKey(sal_uInt16 nId) const
{
SwTxtNode* pTxtNd = aPos.GetNode().GetTxtNode();
diff --git a/sw/source/core/doc/docstat.cxx b/sw/source/core/doc/docstat.cxx
index d2501e387718..bb23ce20e13b 100644
--- a/sw/source/core/doc/docstat.cxx
+++ b/sw/source/core/doc/docstat.cxx
@@ -19,11 +19,6 @@
#include <docstat.hxx>
-
-/************************************************************************
- * SwDocStat::SwDocStat()
- ************************************************************************/
-
SwDocStat::SwDocStat() :
nTbl(0),
nGrf(0),
@@ -38,10 +33,6 @@ SwDocStat::SwDocStat() :
bModified(sal_True)
{}
-/************************************************************************
- * void SwDocStat::Reset()
- ************************************************************************/
-
void SwDocStat::Reset()
{
nTbl = 0;
diff --git a/sw/source/core/doc/doctxm.cxx b/sw/source/core/doc/doctxm.cxx
index ad3d8375d348..96e1792f7a68 100644
--- a/sw/source/core/doc/doctxm.cxx
+++ b/sw/source/core/doc/doctxm.cxx
@@ -696,9 +696,8 @@ static const SwTxtNode* lcl_FindChapterNode( const SwNode& rNd, sal_uInt8 nLvl =
return pNd ? pNd->FindOutlineNodeOfLevel( nLvl ) : 0;
}
-/*--------------------------------------------------------------------
- Description: Table of contents class
- --------------------------------------------------------------------*/
+// Table of contents class ------------------------------------------
+
SwTOXBaseSection::SwTOXBaseSection(SwTOXBase const& rBase, SwSectionFmt & rFmt)
: SwTOXBase( rBase )
, SwSection( TOX_CONTENT_SECTION, aEmptyStr, rFmt )
@@ -1011,9 +1010,6 @@ void SwTOXBaseSection::Update(const SfxItemSet* pAttr,
SetProtect( SwTOXBase::IsProtected() );
}
-/*--------------------------------------------------------------------
- Description: Insert AlphaDelimitter
- --------------------------------------------------------------------*/
void SwTOXBaseSection::InsertAlphaDelimitter( const SwTOXInternational& rIntl )
{
SwDoc* pDoc = (SwDoc*)GetFmt()->GetDoc();
@@ -2129,9 +2125,6 @@ void SwTOXBaseSection::_UpdatePageNum( SwTxtNode* pNd,
delete pCharStyleIdx;
}
-/*--------------------------------------------------------------------
- Description: Insert sorted into aSortArr
- --------------------------------------------------------------------*/
void SwTOXBaseSection::InsertSorted(SwTOXSortTabBase* pNew)
{
Range aRange(0, aSortArr.size());
diff --git a/sw/source/core/doc/fmtcol.cxx b/sw/source/core/doc/fmtcol.cxx
index 2f6b170f9ab0..fc71b6609b89 100644
--- a/sw/source/core/doc/fmtcol.cxx
+++ b/sw/source/core/doc/fmtcol.cxx
@@ -112,10 +112,6 @@ namespace TxtFmtCollFunc
}
} // end of namespace TxtFmtCollFunc
-/*
- * SwTxtFmtColl TXT
- */
-
void SwTxtFmtColl::Modify( const SfxPoolItem* pOld, const SfxPoolItem* pNew )
{
if( GetDoc()->IsInDtor() )
diff --git a/sw/source/core/doc/list.cxx b/sw/source/core/doc/list.cxx
index 941f94c5bf5d..f37e9995e41e 100644
--- a/sw/source/core/doc/list.cxx
+++ b/sw/source/core/doc/list.cxx
@@ -27,10 +27,7 @@
#include <pam.hxx>
#include <SwNodeNum.hxx>
-// ----------------------------------------------------------------------------
-// SwListImpl
// implementation class for SwList
-// ----------------------------------------------------------------------------
class SwListImpl
{
public:
@@ -223,9 +220,7 @@ void SwListImpl::NotifyItemsOnListLevel( const int nLevel )
}
}
-// ----------------------------------------------------------------------------
-// SwList
-// ----------------------------------------------------------------------------
+// SwList ---------------------------------------------------------------------
SwList::SwList( const String sListId,
SwNumRule& rDefaultListStyle,
const SwNodes& rNodes )
diff --git a/sw/source/core/doc/notxtfrm.cxx b/sw/source/core/doc/notxtfrm.cxx
index 84e9b9a2d0ef..bf9c7e880561 100644
--- a/sw/source/core/doc/notxtfrm.cxx
+++ b/sw/source/core/doc/notxtfrm.cxx
@@ -138,13 +138,6 @@ static void lcl_PaintReplacement( const SwRect &rRect, const String &rText,
Graphic::DrawEx( rSh.GetOut(), rText, *pFont, rBmp, rRect.Pos(), rRect.SSize() );
}
-/*************************************************************************
-|*
-|* SwGrfFrm::SwGrfFrm(ViewShell * const,SwGrfNode *)
-|*
-*************************************************************************/
-
-
SwNoTxtFrm::SwNoTxtFrm(SwNoTxtNode * const pNode, SwFrm* pSib )
: SwCntntFrm( pNode, pSib )
{
@@ -161,35 +154,16 @@ void SwNoTxtFrm::InitCtor()
nWeight = 0;
}
-/*************************************************************************
-|*
-|* SwNoTxtNode::MakeFrm()
-|*
-*************************************************************************/
-
-
SwCntntFrm *SwNoTxtNode::MakeFrm( SwFrm* pSib )
{
return new SwNoTxtFrm(this, pSib);
}
-/*************************************************************************
-|*
-|* SwNoTxtFrm::~SwNoTxtFrm()
-|*
-*************************************************************************/
-
SwNoTxtFrm::~SwNoTxtFrm()
{
StopAnimation();
}
-/*************************************************************************
-|*
-|* void SwNoTxtFrm::Modify( SwHint * pOld, SwHint * pNew )
-|*
-*************************************************************************/
-
void SetOutDev( ViewShell *pSh, OutputDevice *pOut )
{
pSh->mpOut = pOut;
@@ -223,12 +197,6 @@ static void lcl_ClearArea( const SwFrm &rFrm,
}
}
-/*************************************************************************
-|*
-|* void SwNoTxtFrm::Paint()
-|*
-*************************************************************************/
-
void SwNoTxtFrm::Paint(SwRect const& rRect, SwPrintData const*const) const
{
if ( Frm().IsEmpty() )
@@ -478,13 +446,6 @@ const Size& SwNoTxtFrm::GetSize() const
return pFly->Prt().SSize();
}
-/*************************************************************************
-|*
-|* SwNoTxtFrm::MakeAll()
-|*
-*************************************************************************/
-
-
void SwNoTxtFrm::MakeAll()
{
SwCntntNotify aNotify( this );
@@ -522,13 +483,6 @@ void SwNoTxtFrm::Format( const SwBorderAttrs * )
Shrink( Min(Prt().Height(), -nChgHght) );
}
-/*************************************************************************
-|*
-|* SwNoTxtFrm::GetCharRect()
-|*
-|*************************************************************************/
-
-
sal_Bool SwNoTxtFrm::GetCharRect( SwRect &rRect, const SwPosition& rPos,
SwCrsrMoveState *pCMS ) const
{
diff --git a/sw/source/core/doc/sortopt.cxx b/sw/source/core/doc/sortopt.cxx
index 1f7c4b211b39..e27c2696deaa 100644
--- a/sw/source/core/doc/sortopt.cxx
+++ b/sw/source/core/doc/sortopt.cxx
@@ -22,9 +22,6 @@
#include <sortopt.hxx>
#include <boost/foreach.hpp>
-/*--------------------------------------------------------------------
- Description: Sort Key
- --------------------------------------------------------------------*/
SwSortKey::SwSortKey() :
eSortOrder( SRT_ASCENDING ),
nColumnId( 0 ),
@@ -48,9 +45,6 @@ SwSortKey::SwSortKey(const SwSortKey& rOld) :
{
}
-/*--------------------------------------------------------------------
- Description: Sorting options for Sorting
- --------------------------------------------------------------------*/
SwSortOptions::SwSortOptions()
: eDirection( SRT_ROWS ),
cDeli( 9 ),
diff --git a/sw/source/core/doc/tblafmt.cxx b/sw/source/core/doc/tblafmt.cxx
index 516df7ae7867..1a98459e9e8a 100644
--- a/sw/source/core/doc/tblafmt.cxx
+++ b/sw/source/core/doc/tblafmt.cxx
@@ -256,8 +256,6 @@ void SwAfVersions::Load( SvStream& rStream, sal_uInt16 nVer )
rStream >> nNumFmtVersion;
}
-// ---------------------------------------------------------------------------
-
SwBoxAutoFmt::SwBoxAutoFmt()
: aFont( *(SvxFontItem*)GetDfltAttr( RES_CHRATR_FONT ) ),
aHeight( 240, 100, RES_CHRATR_FONTSIZE ),