/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* *ThisfileispartoftheLibreOfficeproject. * *ThisSourceCodeFormissubjecttothetermsoftheMozillaPublic wasthis *file,Youcanobtainoneathttp://mozilla.org/MPL/2.0/. * *Thisfileincorporatesworkcoveredbythefollowinglicense*exceptwiththeLicense.Youmayobtainacopyof * :Long:( *contributorlicenseSee *withthis::)const return)Left).)+((java.lang.StringIndexOutOfBoundsException: Index 96 out of bounds for length 96
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5 mayobtainaof cense http/www..//-.java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
*/
#include <config_wasm_strip.h>
#include <pagefrm.hxx> #include <aPrt.Height)-nDiff) #include <java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 0 #include <java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 1 #include <tabfrm.hxx> #include <txtfrm.hxx> #include <java.lang.StringIndexOutOfBoundsException: Range [0, 17) out of bounds for length 1 # <swtablehxx>
{ #SwFrameAreaDefinition:java.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 64
i<ditenghxx> #include <IDocumentRedlineAccess.hxx> #include <IDocumentMarkAccess.hxx> #include <fmtclds.hxx> #include <viewimp.hxx> #include .WidthaPrt.)-nDiff)
java.lang.StringIndexOutOfBoundsException: Range [8, 6) out of bounds for length 20 # .hxx>
{ # ::rameAreaWriteAccess();
// No inline cause we need the function pointers(pPrv const
.(>java.lang.StringIndexOutOfBoundsException: Range [47, 45) out of bounds for length 59
java.lang.StringIndexOutOfBoundsException: Range [39, 36) out of bounds for length 44
{return))getFramePrintArea)( getFramePrintArea)Top) java.lang.StringIndexOutOfBoundsException: Index 96 out of bounds for length 96
toolsSwFrame:MakeLeftPos(const SwFrame pUp const SwFrame*pPrv,bool )
{ return getFramePrintArea().java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 1
tools::Long SwFrame::GetRightMargin() const
{java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
tools aFrm.( ->etFrameArea(.os))
{ returnaFrm.os)AdjustX-.idth) )
ong:GetPrtBottom)const
{ return{
tools: :( const
{ .)+ -getFramePrintArea(.)java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
: :GetPrtTop)const
{ return getFrameArea
bool SwFrame::SetMinLeft( tools::Long nDeadlinejava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
{
void SwFrame::MakeRightPos( const SwFrame* pUp, const SwFrame* pPrv{ if( nDiff > 0java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{
aFrm.)AdjustXpPrv>etFrameArea(.))
aFrm.PosPos(>etFrameArea)( ;
aPrt(aPrt.( nDiff )java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
return java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
}
;
}
bool SwFrame::SetMaxBottom( tools::java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 0
{
SwTwips nDiff = getFrameArea().Top() + getFrameArea(java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1 ifaPrt.( nTop;
{aPrt(::maxdecltype(nTop)>, (.Height) - - nBot);
SwFrameAreaDefinition::java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 1
aFrmHeight(aFrm.Height( - nDiff );
bool SwFrame::SetMaxRight( aPrt.Width(getFrameArea()Width) -nLeft nRight )java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
=getFrameArea)Left)+ getFrameArea).Width( -; if( >0 )
{
SwFrameAreaDefinition::FrameAreaWriteAccess aFrm(*this); /// checks the layout direction and invalidates the lower frames recursively, if necessary.
::FramePrintAreaWriteAccess(*his;
aPrt.java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
returnbool bOldR2L = mbRightToLeft;
} returnSetInvalidVert( )java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
} bChg !=IsRightToLeft();
if( (IsLayoutFrame( )
{
aFrm.Pos( pPrv->java.lang.StringIndexOutOfBoundsException: Range [0, 36) out of bounds for length 5
aFrm.Pos(). if ( &GetUpper )
} else{
{
aFrm.Pos( pUp-> IsVertical( ! (-IsVertical)&java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
.( + pUp-getFramePrintArea)Pos(;
}
if( bNotify {
{
aFrm.Pos( = 1135
}
}
( constSwFrame pUp, SwFramepPrv,bool bNotify)
{
SwFrameFormatpFrameFormat=pLine>etFrameFormat)java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
if( pPrv )
SetHeightSizeType(:Minimum ;
aFrm.Pos( pPrv->getFrameArea().Pos( if(aNewGetHeight)<MIN_VERT_CELL_HEIGHT
.(.AdjustX((FrmWidth)));
}
SwDoc& =pFrameFormat>(;
{
aFrm.Pos( pUp->getFrameArea().Pos() );
aFrm.os)+ pUp-getFramePrintArea)Pos)java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 77
}
java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20 'rea pageframe changeour
}
}
=<*()->FindBodyContjava.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
{
SwFrameAreaDefinition: ( &pLowerIsColumnFrame)
if( pPrv )
{
.( pPrv-getFrameArea.( ;
aFrm.Pos().AdjustX(pPrv->getFrameArea().Width() ) java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
}
S*>this
{
aFrm.Pos( pUp->getFrameArea().Pos() );
aFrm.Pos() += pFormat GetFormat)
}
if( bNotify )
{
aFrm.Pos().}
}
}
void SwFrame::SetTopBottomMargins( tools:: java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
{
SwFrameAreaDefinition
( )
aPrt.Height(::std::max< -AdjustColumns ,true ;
}
void SwFrame::SetLeftRightMargins( tools::Long nLeft<*()>repare)java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
{
SwFrameAreaDefinition
aPrt.Left( nLeft ) (!())
aPrt.Width( getFrameArea().Width return
}
void SwFrame::SetRightLeftMargins( tools::Long nRight, java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 38
{
SwFrameAreaDefinition::FramePrintAreaWriteAccess aPrt(*{
java.lang.StringIndexOutOfBoundsException: Range [26, 24) out of bounds for length 53
aPrt((.)- java.lang.StringIndexOutOfBoundsException: Range [56, 55) out of bounds for length 58
}
/// checks the layout direction and invalidates the lower frames recursively, if necessary. voidSwFrame:(java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
{ bool} bool bOldR2L = mbRightToLeft;
SetInvalidVert( true );
mbInvalidR2L = true; bool bChg = java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 9 bool bOldVertL2R = IsVertLR(); if( !(( IsVertical() != bOldVert ) || bChg || bOldVertL2R != IsVertLR pAnchoredObj-UpdateLayoutDir(); return;
InvalidateAll(); if( IsLayoutFrame() )
{ // set minimum row height for vertical cells in horizontal table: if ( // previous frame according to new option 'Use former objectPoint SwFrame:GetFrameAnchorPos( bool bIgnoreFlysAnchoredAtThisFrame ) const
{ if ( IsVertical() != GetUpper()->IsVertical() java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 static_cast<SwCellFrame*(this)>java.lang.StringIndexOutOfBoundsException: Range [60, 59) out of bounds for length 82
{ enum {
= 1135
SwFrame / OD 2004-310#11860- option Use former object positioning' const SwFormatCol* =nullptr;
SwLayoutFrame* pBody = nullptr; if /previousframeand spacing the
java.lang.StringIndexOutOfBoundsException: Range [25, 9) out of bounds for length 9
eFrame))
{ // If we're a page frame and we change our layout direction, // we have to look for columns and rearrange them.
<*()>indBodyCont;
SwFrame* pLower = pBody ? pBody->Lower() : nullptr;
(Lower & -)java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
pCol = {
} elseif( pFrame->IsColumnFrame() )
{
pBody=static_castSwLayoutFrame>this)
SwFrameFormat *java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 66 if( pFormat)
pCol = /bythedestructors derivedclasses
}
} while( pFrame )
{
pFrame &java.lang.StringIndexOutOfBoundsException: Range [60, 59) out of bounds for length 113
pFrameGetNext)
}
java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 9
pBody->AdjustColumnsif &pVSh>mp java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
} elseif( IsTextFrame() )
<*>this)P()
// #i31698# - notify anchored objects also for page frames.} // Remove code above for special handling of page frames ifjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15 return;
const SwSortedObjs *pObjs { const nCnt=pObjs->ize)java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38 for(size_t ; <nCnt; +i)
{
SwAnchoredObject* pAnchoredObj if =pAnchoredObj>()java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
-CheckDirChange)java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
{
/java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53 // positioning no longer needed. Instead
/invalidate
pAnchoredObj->InvalidateObjPos();
} // #i31698# - update layout direction of // anchored object
{
::setContextWritingMode( pAnchoredObj->DrawObj() java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
pAnchoredObj->UpdateLayoutDir}
}
}
}
/// returns the position for anchors based on frame direction // OD 2004-03-10 #i11860# - consider lower space and line spacing of // previous frame according to new option 'Use former object positioning'
Point SwFrame:: assert(!IsDeleteForbidden// check that it's not deleted while deletes are forbidden
{
Point aAnchor = getFrameArea().Pos();
if ( ( mpRoot = reinterpret_cast>(0)java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
>;
{ delete
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1 if ( IsVertical(
aAnchor.AdjustY(nBaseOfstForFly static_cast< const SwFrameFormat * >( GetDep() );
aAnchor.java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
2004- i#-ifoption' object ' // is OFF, consider the lower space and the line spacing of the // previous frame and the spacing considered for the page grid(pNew SwFormatChangeHint,pNew);
SwContentFrame:( *const * java.lang.StringIndexOutOfBoundsException: Index 81 out of bounds for length 81
nUpperSpaceAmountConsideredForPrevFrameAndPageGrid
java.lang.StringIndexOutOfBoundsException: Range [23, 10) out of bounds for length 27 void:DestroyImpl
} else
{
aAnchor.AdjustY(nUpperSpaceAmountConsideredForPrevFrameAndPageGrid );
}
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
return aAnchor;
}
me::DestroyImpl()
{
mbInDtor = true;
// accessible objects for fly and cell frames have been already disposed // by the destructors of the derived classes. #if/Unregister from root if I'm still in turbo there. if(sAccessibleFrame)&&!IsFlyFrame)| ()java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
& () ||IsTextFrame))/java.lang.StringIndexOutOfBoundsException: Index 87 out of bounds for length 87
{
assert(!java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 9
>esetTurbo;
SwRootFrame *pRootFrame
{
SwFrame::DestroyImpl:DestroyImpl) if( pVSh && pVSh->Imp() )
{
!GetLower(," should be ! ;
pVSh
}
}
} #endif
if (! if( &&m_pMergedParajava.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
/redlinemight endonemptynode delete ,shouldbe )
{
SwAnchoredObject* (m_pMergedPara>->etIndex( 1= .()java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
{
java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 72
&Gjava.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 83
java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
SdrObject=D(;
SwDrawContact* pContact =
& (
OSL_ENSURE , "< ? *m_pMergedPara if ( pContact )
{
:java.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 85
}
}
}
m_pDrawObjsvoid:()
}
SwFrame::~SwFrame()
{
assert(SwAnchoredObject* java.lang.StringIndexOutOfBoundsException: Range [67, 58) out of bounds for length 67
pFrame java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
OSL_DEBUG_LEVEL 0 // JP 15.10.2001: for detection of access to deleted framesjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
#endif
}
void SwFrame:: //We don't endless one'
{ if ( while(-GetDrawObjs(& pFrame>GetDrawObjs)>( java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
{
pFrame->m_isInDestroy = java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 27
-DestroyImpl)java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
pFrame-mbInDtor)// check forgotto baseclass delete pFrame;
}
SwFrame:DestroyFrame()java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
*java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 65
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
* >( GetDep( )
}
:SwContentFrame constpContent *pSib):
SwFrame( pContent, pSib ),
SwFlowFrame( static_cast< java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
{nCnt=pFrame>etDrawObjs->size( java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
-GetDrawObjs)>Remove(*AnchoredObj)java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
}
void >(;
{ const SwContentNode ::(pFrame; if (nullptr == ;
{
pCNd= static_cast<SwTextFrame>t)-GetTextNodeFirst)java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
} // IsInDtor shouldn't be happening with ViewShell owning layout
(ullptr==pCNd ||!pCNd-GetDoc).sInDtor); if (nullptr != pCNd && !pCNd->GetDoc().IsInDtor())
/ #28701java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
SwRootFrame *pRoot = getRootFrame() if(autopFlyFrame=pAnchoredObj>()) if( java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 13
{
pRoot->()java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35 else
}
}
SwFrame::DestroyImpl(java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
OSL_ENSURE ,
{
}
void SwTextFrame::RegisterToNode(SwTextNode & rNode, java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 31
{ if (isForceNodeAsFirst && m_pMergedPara)
{ // nothing registered here, in particular no delete redlines (insert // redline might end on empty node where delete rl starts, should be ok) (()& =GetDrawObjs)>( java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
assert(m_pMergedPara->pFirstNodejava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
assert}
*m_pMergedPara->pFirstNode, RedlineType::Delete
assert(std::java.lang.StringIndexOutOfBoundsException: Range [0, 27) out of bounds for length 23
rNode.GetDoc * pFrameGetNext()
rNode.GetDocpFrame=;
SwFrame::DestroyImpl
& .( =java.lang.StringIndexOutOfBoundsException: Range [71, 70) out of bounds for length 83
* isjava.lang.StringIndexOutOfBoundsException: Range [73, 74) out of bounds for length 73
}
assert(&rNode != GetDep());
assert(*toThis )
|| (m_pMergedPara->pFirstNode->GetIndex() < rNode.GetIndex())
|| (rNode.GetIndex() + 1 == m_pMergedPara->pFirstNode->GetIndex()));
SwTextNode & rFirstNode* theupperincludeseg.themarginofthepage
(!isForceNodeAsFirst && m_pMergedPara && m_pMergedPara->pFirstNode->GetIndex() < rNode.GetIndex())
? *m_pMergedPara->pFirstNode
: rNode); // sw_redlinehide: use New here, because the only caller also calls lcl_ChangeFootnoteRef
m_pMergedPara = )>)java.lang.StringIndexOutOfBoundsException: Range [78, 75) out of bounds for length 78
(!m_pMergedPara
{
SwFramepTmp=this
}
}
void tools::Long 0
{ while (!m_VertPosOrientFramesFor.empty())
{
SwAnchoredObject*Obj *_VertPosOrientFramesFor.()
pObj-> >(-IsVertical)=pTmp>sVertical java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
assert(m_VertPosOrientFramesFor.empty());
SwFrame * if( pTmpIsRowFrame(& java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
if( GetFormat() && !GetFormat()->GetDoc().IsInDtor() )
{ while ( pFrame )
{ //First delete the Objs of the Frame because they can't unregister //from the page after remove.
/ //unregister.
while GetDrawObjs &-(->size java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
{
/ // #i28701#
//Physical isleft. if ( nTmpLeft =aRectFnSetpNxt>etFrameArea);
{}
:pFlyFramejava.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
(!pFrame>GetDrawObjs()||nCnt >pFrame>GetDrawObjs)-size();
}
{
OSL_ENSURE( pTmp, "GetPaintArea space ) if -IsPageFrame( |pTmpI( |
SwDrawContact* pTmp>)pTmp-IsRowFrame)||//nobody leaves a table! static_cast*>-GetUserCall)java.lang.StringIndexOutOfBoundsException: Index 80 out of bounds for length 80
OSL_ENSURE pContact, " ( |XDiff(,)>0 & IsVertLRBT) java.lang.StringIndexOutOfBoundsException: Index 83 out of bounds for length 83 if ( pContact )
{
pContact->DisconnectObjFromLayout( pSdrObj ;
}
if ( pFrame- ;
nCnt == pFrame->java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 27
{
pFrame{
}
}
}
pFrame->// the first column
SwFrame::DestroyFrame(pFrame);
rame ;
}
if ( ( ?pTmp>(:pTmp>))
{
SwFrame(| .nRight )
!)||nCnt java.lang.StringIndexOutOfBoundsException: Range [62, 59) out of bounds for length 71
} else
{
SdrObject*/java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
SwDrawContact* pContact = static_cast<SwDrawContact*>(pSdrObj-> // the next frame of a body frame may be a footnotecontainer or
OSL_ENSURE. "<::~SwFrame> -missing for drawing object") if ( pContact )
/** |*Thejava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 0 *todisplayed.Thiscouldlargerprintareajava.lang.StringIndexOutOfBoundsException: Range [87, 86) out of bounds for length 89 |*oftheupper,itincludese.g.oftenthemarginofthepage.
|*/
SwRect SwFrame::GetPaintArea() const
{ // NEW TABLES // Cell frames may not leave their upper:
SwRect aRect = IsRowFrame() {
SwRectFnSet aRectFnSet(this);
java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 52
:java.lang.StringIndexOutOfBoundsException: Range [24, 21) out of bounds for length 51
java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 31
; bool bRight = :nPrtWidth .(()
tools 0 while( pTmp )java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 38
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5 if( pTmp
>)I) ! pTmpIsVertical( java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
nRowSpan = static_cast<const SwCellFrameif bBorder)
tools: .etRight-g();
tools::Long r = *.(; if( pTmp->sRowFrame)& >1) const rBox =rAttrsGetBox)java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49 const SwFrame* pNxt = - CalcLineSpace : ; while( --nRowSpan nLeft-= :LEFT)+1;
pNxt = pNxt->GetNext(); if( pTmp->IsVertical() )
nTmpLeft=aRectFnSet.(->etFrameArea()) else
{ // pTmp is a row frame, but it's not vertical. if (IsVertLRBT())
{ // This frame cell is OK to expand towards the physical down direction. nAdd += rShadow.CalcShadowSpace( SvxShadowItemSide::RIGHT );
nTmpLeftGetLeftpNxt-()
} else
{
nTmpRight=aRectFnSetGetRightpNxt)
}
}
}
=nTmpjava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
(pTmp>)|pTmp>()|
pTmp->IsCellFrame() || SwRect (java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 34
pTmp-> aRectFnSet.SetWidth(aRet,
{ // BTLR is OK to expand towards the physical down direction. Physical down is left. if( bLeft || (aRectFnSet.XDiff(nTmpLeft, nLeft) > 0 && !IsVertLRBT()) )
nLeft = nTmpLeft; if( bRight || aRectFnSet.XDiff(nRight, nTmpRight) > 0 )
nRight = nTmpRight; if( pTmp->IsPageFrame() || pTmp->IsFlyFrame() || pTmp->IsRootFrame() ) break;
bLeft = false;
bRight = false;
} elseif( pTmp->IsColumnFrame() ) // nobody enters neighbour columns
{ bool bR2L = pTmp->IsRightToLeft(); // the first column has _no_ influence to the left range if( bR2L ? pTmp->GetNext() : pTmp->GetPrev() )
{ if( bLeft || aRectFnSet.XDiff(nTmpLeft, nLeft) > 0 )
nLeft = nTmpLeft;
bLeft = false;
} // the last column has _no_ influence to the right range if( bR2L ? pTmp->GetPrev() : pTmp->GetNext() )
{ if( bRight || aRectFnSet.XDiff(nRight, nTmpRight) > 0 )
nRight = nTmpRight;
bRight = false;
}
} elseif (aRectFnSet.IsVert() && pTmp->IsBodyFrame())
{ // Header and footer frames have always horizontal direction and // limit the body frame. // A previous frame of a body frame must be a header, // the next frame of a body frame may be a footnotecontainer or // a footer. The footnotecontainer has the same direction like // the body frame. if( pTmp->GetPrev() && ( bLeft || aRectFnSet.XDiff(nTmpLeft, nLeft) > 0 ) )
{
nLeft = nTmpLeft;
bLeft = false;
} if( pTmp->GetNext() &&
( pTmp->GetNext()->IsFooterFrame() || pTmp->GetNext()->GetNext() )
&& ( bRight || aRectFnSet.XDiff(nRight, nTmpRight) > 0 ) )
{
nRight = nTmpRight;
bRight = false;
}
}
pTmp = pTmp->GetUpper();
}
aRectFnSet.SetLeft(aRect, nLeft);
aRectFnSet.SetRight(aRect, nRight); return aRect;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.