diff options
author | Kayo Hamid <revol.code@yahoo.com> | 2010-11-22 10:32:27 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-11-22 10:32:27 +0000 |
commit | 58012767d94eb0028fdfe87d620553090465dc6c (patch) | |
tree | a492acaf59acdf49c36784d4f60b4d9ee85a5bb8 /sw/source/core/fields/chpfld.cxx | |
parent | 1b0c06fa5141409d33aa4acf581a7806947f2ff8 (diff) |
Clean code and comments at writer
Diffstat (limited to 'sw/source/core/fields/chpfld.cxx')
-rw-r--r-- | sw/source/core/fields/chpfld.cxx | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/sw/source/core/fields/chpfld.cxx b/sw/source/core/fields/chpfld.cxx index fff3739631c0..f3d8c04055ec 100644 --- a/sw/source/core/fields/chpfld.cxx +++ b/sw/source/core/fields/chpfld.cxx @@ -102,22 +102,6 @@ SwField* SwChapterField::Copy() const return pTmp; } -// --> OD 2008-02-14 #i53420# -//void SwChapterField::ChangeExpansion( const SwFrm* pFrm, -// const SwTxtNode* pTxtNd, -// sal_Bool bSrchNum ) -//{ -// ASSERT( pFrm, "in welchem Frame stehe ich denn?" ) -// SwDoc* pDoc = (SwDoc*)pTxtNd->GetDoc(); -// SwPosition aPos( pDoc->GetNodes().GetEndOfContent() ); - -// if( pFrm->IsInDocBody() ) -// aPos.nNode = *pTxtNd; -// else if( 0 == (pTxtNd = GetBodyTxtNode( *pDoc, aPos, *pFrm )) ) -// // kein TxtNode (Formatierung Kopf/Fusszeile) -// return; -// ChangeExpansion(*pTxtNd, bSrchNum); -//} void SwChapterField::ChangeExpansion(const SwFrm* pFrm, const SwCntntNode* pCntntNode, sal_Bool bSrchNum ) @@ -153,12 +137,6 @@ void SwChapterField::ChangeExpansion(const SwTxtNode &rTxtNd, sal_Bool bSrchNum) { BYTE nPrevLvl = nLevel; - // --> OD 2008-04-02 #refactorlists# -// nLevel = GetRealLevel( pONd->GetTxtColl()-> -// GetOutlineLevel() ); - //ASSERT( pONd->GetOutlineLevel() >= 0 && pONd->GetOutlineLevel() < MAXLEVEL, //#outline level,zhaojianwei - // "<SwChapterField::ChangeExpansion(..)> - outline node with inconsistent outline level. Serious defect -> please inform OD." ); - //nLevel = static_cast<BYTE>(pONd->GetOutlineLevel()); ASSERT( pONd->GetAttrOutlineLevel() >= 0 && pONd->GetAttrOutlineLevel() <= MAXLEVEL, "<SwChapterField::ChangeExpansion(..)> - outline node with inconsistent outline level. Serious defect -> please inform OD." ); nLevel = static_cast<BYTE>(pONd->GetAttrOutlineLevel()); //<-end,zhaojianwei @@ -289,7 +267,7 @@ bool SwChapterField::PutValue( const uno::Any& rAny, USHORT nWhichId ) case text::ChapterFormat::DIGIT: SetFormat(CF_NUMBER_NOPREPST); break; - //case text::ChapterFormat::NAME_NUMBER: + default: SetFormat(CF_NUM_TITLE); } } |