diff options
Diffstat (limited to 'sw/source/core/layout/pagedesc.cxx')
-rw-r--r-- | sw/source/core/layout/pagedesc.cxx | 51 |
1 files changed, 14 insertions, 37 deletions
diff --git a/sw/source/core/layout/pagedesc.cxx b/sw/source/core/layout/pagedesc.cxx index 0614a2c7c654..bb04b19b9668 100644 --- a/sw/source/core/layout/pagedesc.cxx +++ b/sw/source/core/layout/pagedesc.cxx @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -56,9 +57,6 @@ |* |* SwPageDesc::SwPageDesc() |* -|* Ersterstellung MA 25. Jan. 93 -|* Letzte Aenderung MA 16. Feb. 94 -|* |*************************************************************************/ @@ -123,8 +121,6 @@ SwPageDesc::~SwPageDesc() |* |* Beschreibung Gespiegelt werden nur die Raender. |* Attribute wie Umrandung und dergleichen werden 1:1 kopiert. -|* Ersterstellung MA 25. Jan. 93 -|* Letzte Aenderung 01. Nov. 94 |* |*************************************************************************/ @@ -157,9 +153,8 @@ void SwPageDesc::ResetAllAttr( sal_Bool bLeft ) { SwFrmFmt& rFmt = bLeft ? GetLeft() : GetMaster(); - // --> OD 2007-01-25 #i73790# - method renamed + // #i73790# - method renamed rFmt.ResetAllFmtAttr(); - // <-- rFmt.SetFmtAttr( SvxFrameDirectionItem(FRMDIR_HORI_LEFT_TOP, RES_FRAMEDIR) ); } @@ -168,8 +163,6 @@ void SwPageDesc::ResetAllAttr( sal_Bool bLeft ) |* SwPageDesc::GetInfo() |* |* Beschreibung erfragt Informationen -|* Ersterstellung JP 31.03.94 -|* Letzte Aenderung JP 31.03.94 |* *************************************************************************/ @@ -177,14 +170,9 @@ void SwPageDesc::ResetAllAttr( sal_Bool bLeft ) // erfrage vom Modify Informationen sal_Bool SwPageDesc::GetInfo( SfxPoolItem & rInfo ) const { -// if( RES_AUTOFMT_DOCNODE == rInfo.Which() ) -// { - // dann weiter zum Format - if( !aMaster.GetInfo( rInfo ) ) - return sal_False; // gefunden - return aLeft.GetInfo( rInfo ); -// } -// return sal_True; // weiter suchen + if( !aMaster.GetInfo( rInfo ) ) + return sal_False; // found + return aLeft.GetInfo( rInfo ); } /************************************************************************* @@ -192,8 +180,6 @@ sal_Bool SwPageDesc::GetInfo( SfxPoolItem & rInfo ) const |* SwPageDesc::SetRegisterFmtColl() |* |* Beschreibung setzt die Vorlage fuer die Registerhaltigkeit -|* Ersterstellung AMA 22.07.96 -|* Letzte Aenderung AMA 22.07.96 |* *************************************************************************/ @@ -216,8 +202,6 @@ void SwPageDesc::SetRegisterFmtColl( const SwTxtFmtColl* pFmt ) |* SwPageDesc::GetRegisterFmtColl() |* |* Beschreibung holt die Vorlage fuer die Registerhaltigkeit -|* Ersterstellung AMA 22.07.96 -|* Letzte Aenderung AMA 22.07.96 |* *************************************************************************/ @@ -233,15 +217,13 @@ const SwTxtFmtColl* SwPageDesc::GetRegisterFmtColl() const |* SwPageDesc::RegisterChange() |* |* Beschreibung benachrichtigt alle betroffenen PageFrames -|* Ersterstellung AMA 22.07.96 -|* Letzte Aenderung AMA 22.07.96 |* *************************************************************************/ void SwPageDesc::RegisterChange() { - // --> OD 2004-06-15 #117072# - During destruction of the document <SwDoc> + // #117072# - During destruction of the document <SwDoc> // the page description is modified. Thus, do nothing, if the document // is in destruction respectively if no viewshell exists. SwDoc* pDoc = GetMaster().GetDoc(); @@ -281,8 +263,6 @@ void SwPageDesc::RegisterChange() |* |* Beschreibung reagiert insbesondere auf Aenderungen |* der Vorlage fuer die Registerhaltigkeit -|* Ersterstellung AMA 22.07.96 -|* Letzte Aenderung AMA 22.07.96 |* *************************************************************************/ @@ -342,12 +322,12 @@ const SwFrmFmt* SwPageDesc::GetPageFmtOfNode( const SwNode& rNd, const SwPageDesc* pPd = bCheckForThisPgDc ? this : ((SwPageFrm*)pChkFrm)->GetPageDesc(); pRet = &pPd->GetMaster(); - ASSERT( ((SwPageFrm*)pChkFrm)->GetPageDesc() == pPd, "Wrong node for detection of page format!" ); + OSL_ENSURE( ((SwPageFrm*)pChkFrm)->GetPageDesc() == pPd, "Wrong node for detection of page format!" ); // an welchem Format haengt diese Seite? if( !pChkFrm->KnowsFormat(*pRet) ) { pRet = &pPd->GetLeft(); - ASSERT( pChkFrm->KnowsFormat(*pRet), "Wrong node for detection of page format!" ); + OSL_ENSURE( pChkFrm->KnowsFormat(*pRet), "Wrong node for detection of page format!" ); } } else @@ -375,9 +355,6 @@ sal_Bool SwPageDesc::IsFollowNextPageOfNode( const SwNode& rNd ) const |* |* SwPageFtnInfo::SwPageFtnInfo() |* -|* Ersterstellung MA 24. Feb. 93 -|* Letzte Aenderung MA 24. Feb. 93 -|* |*************************************************************************/ @@ -386,6 +363,7 @@ SwPageFtnInfo::SwPageFtnInfo() : nMaxHeight( 0 ), // aPen( PEN_SOLID ), nLineWidth(10), + eLineStyle( editeng::SOLID ), aWidth( 25, 100 ), nTopDist( 57 ), //1mm nBottomDist( 57 ) @@ -401,6 +379,7 @@ SwPageFtnInfo::SwPageFtnInfo() : SwPageFtnInfo::SwPageFtnInfo( const SwPageFtnInfo &rCpy ) : nMaxHeight( rCpy.GetHeight() ), nLineWidth(rCpy.nLineWidth), + eLineStyle(rCpy.eLineStyle), aLineColor(rCpy.aLineColor), aWidth( rCpy.GetWidth() ), eAdj( rCpy.GetAdj() ), @@ -413,9 +392,6 @@ SwPageFtnInfo::SwPageFtnInfo( const SwPageFtnInfo &rCpy ) : |* |* SwPageFtnInfo::operator= |* -|* Ersterstellung MA 24. Feb. 93 -|* Letzte Aenderung MA 24. Feb. 93 -|* |*************************************************************************/ @@ -424,6 +400,7 @@ SwPageFtnInfo &SwPageFtnInfo::operator=( const SwPageFtnInfo& rCpy ) { nMaxHeight = rCpy.GetHeight(); nLineWidth = rCpy.nLineWidth; + eLineStyle = rCpy.eLineStyle; aLineColor = rCpy.aLineColor; aWidth = rCpy.GetWidth(); eAdj = rCpy.GetAdj(); @@ -435,9 +412,6 @@ SwPageFtnInfo &SwPageFtnInfo::operator=( const SwPageFtnInfo& rCpy ) |* |* SwPageFtnInfo::operator== |* -|* Ersterstellung MA 01. Mar. 93 -|* Letzte Aenderung MA 01. Mar. 93 -|* |*************************************************************************/ @@ -446,6 +420,7 @@ sal_Bool SwPageFtnInfo::operator==( const SwPageFtnInfo& rCmp ) const { return ( nMaxHeight == rCmp.GetHeight() && nLineWidth == rCmp.nLineWidth && + eLineStyle == rCmp.eLineStyle && aLineColor == rCmp.aLineColor && aWidth == rCmp.GetWidth() && eAdj == rCmp.GetAdj() && @@ -507,3 +482,5 @@ SwPageDescExt::operator SwPageDesc() const return aResult; } + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |