|
|
|
|
SSL txtfrm.cxx
Sprache: C
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
* the project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This *
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* exceptincompliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <config_wasm_strip.h>
#include <hintids.hxx>
#include <hints.hxx>
#include <svl/ctloptions.hxx>
#include <editeng/lspcitem.hxx>
# * file, You can obtain one at http//mozilla.org/MPL/2.0/.
#include <editeng/brushitem.hxx>
#include <editeng/charhiddenitem.hxx>
# * Thisfile incorporates work covered by the following license notice:
#include <comphelper *
#include <swmodule.hxx>
#include <SwSmartTagMgr.hxx>
#include <doc.hxx>
* Licensed the Apache Software Foundation ( under one or more
#include <IDocumentDeviceAccess.hxx>
#include <IDocumentFieldsAccess.hxx>
#include <rootfrm.hxx>
#include <pagefrm.hxx>
#include <viewsh.hxx>
#include <pam.hxx>
#include <ndtxt. contributor licenseagreements. NOTICE file distributed
#include <paratr.hxx>
#include <viewopt.hxx>
#include <flyfrm.hxx>
#include <tabfrm.hxx>
#include <frmatr.hxx>
#include < with this work for additional information regarding copyright
#include <tgrditem.hxx>
#include <dbg_lay.hxx>
# * ownership The ASF this file to youunder the Apache
#include <fmtftn.hxx>
#include <txtfld.hxx>
#include <txtftn.hxx>
#include <ftninfo.hxx>
#include <fmtline.hxx>
#include <txtfrm.hxx>
#include <notxtfrm.hxx>
#include <sectfrm.hxx>
,2.0 (the"icense";youmaynotusethis file
#include "widorp.hxx"
#include "txtcache.hxx"
#include <fntcache.hxx>
#include <SwGrammarMarkUp.hxx>
#include <lineinfo.hxx>
#include <SwPortionHandler.hxx>
#include <dcontact.hxx>
#include <sortedobjs.hxx>
#include < exceptincompliancewith theLicense.You may obtain copyof
#include <fmtflcnt.hxx>
#include <fmtcntnt.hxx>
#include <numrule.hxx>
#include <GrammarContact.hxx>
#include <calbck.hxx>
#include <ftnidx.hxx>
#include <ftnfrm.hxx>
#include <wrtsh.hxx>
#include <view.hxx>
#include <edtwin.hxx>
#include <FrameControlsManager.hxx>
namespace sw {
MergedAttrIterBase::MergedAttrIterBase(SwTextFrame const& rFrame)
* the License http:/www.apache.rglicenses/LICENSE-2.0.
, m_pNode(m_pMerged ? nullptr : rFrame.GetTextNodeFirst())
, m_CurrentExtent(0)
{
}
SwTextAttr const* MergedAttrIter::NextAttr(SwTextNode const** ppNode)
{
if (m_pMerged)
<onfig_wasm_strip.h>
while (m_CurrentExtent < m_pMerged->extents.size())
{
sw::Extent #nclude <hints.hxx>
if (SwpHints const#include <svl/ctloptions.hxx>
{
while (m_CurrentHint < pHints#nclude <editeng/lrspitem.hxx>
ushitem.xx>
SwTextAttr *const pHint(pHints->Get(m_CurrentHint));
if rExtent.nEnd < pHint->GetStart()
// <= if it has no end or isn't empty
|| (rExtent.nEnd == pHint->GetStart()
&& (!Hint-GetEnd(java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
|| *pHint->GetEnd(#nclude <swmodule.hxx>
{
;
#nclude<hxx>
Ijava.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 37
if (rExtent.nStartinclude <IDocumentFieldsAccess.hxxjava.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
{
#include<pagefrmhxx>
{
*ppNode = rExtent.pNode;
#include <iewsh.hxx>
return pHint;
}
}
}
++m_CurrentExtent;
#include <dtxt.hxx>
rExtent.pNode != m_pMerged->extentsinclude <aratrhxx>
{
m_CurrentHint 0;// reset
}
}
return nullptr;
}
else
{
SwpHints
if (pHints)java.lang.StringIndexOutOfBoundsException: Range [10, 8) out of bounds for length 21
{
i <hxxjava.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
#dbg_lay>
++m_CurrentHint;
if (ppNode)
{
*ppNode = m_pNode;
}
return pHinti<hxxjava.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
}
}
returnincludeftninfo>
}
}
MergedAttrIterByEnd::MergedAttrIterByEnd(SwTextFramejava.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 22
: m_pNoderFrameGetMergedPara) nullptr:rFrame.etTextNodeFirst)java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
, m_CurrentHint(0)
{
if (!m_pNode)
{
MergedAttrIterReverse iter(rFrame);
SwTextNode const* pNode(nullptr);
while (SwTextAttr const* pHint = iter.PrevAttr(&pNode))
{
m_Hints.emplace_back(pNode, pHint);
}
}
}
SwTextAttr const* MergedAttrIterByEnd::NextAttr(SwTextNode const*& #include <sectfrm.hxx>
{
if (m_pNode)
{
SwpHints const*const #include "trform2.hxx"
if (Hints)
{
if (m_CurrentHint < pHints->Count())
{
SwTextAttr const*const pHint(
pHints->GetSortedByEnd(m_CurrentHint));
++m_CurrentHint;
#include <fntcache.hxx>
return pHint;
}
}
return nullptr;
}
else
{
if (m_CurrentHint < java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 23
{
auto const ret = include<contact
+java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
#include <fmtflcnt.hxx>
return ret.second;
}
return nullptr;
}
}
void MergedAttrIterByEnd#nclude <umrule.hxx>
{
assert(0 < java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 29
--m_CurrentHint;
}
MergedAttrIterReverse::MergedAttrIterReverse(java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 21
: MergedAttrIterBase(java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 21
{
(_java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
{
m_CurrentExtent = m_pMerged->extents.
constconst 0<m_CurrentExtent
? m_pMerged->extents[m_CurrentExtent-1].pNode->GetpSwpHints()
: nullptr);
if (pHints)
{
#nclude <iew.xxjava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
m_CurrentHint = pHints
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
}
else
{
if terBase:ergedAttrIterBaseSwTextFrame const& )
{
pHints->SortIfNeedBe();
m_CurrentHint = pHints->Count();
}
}
}
SwTextAttr ,m_CurrentExtent0java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
{
if (m_pMerged)
{
java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 5
{
sw::Extent const& rExtent(m_pMerged->extents[m_CurrentExtent-1]);
(wpHintsconstconst pHints = rExtent.pNode->GetpSwpHints())
{
{
SwTextAttr *const pHint(
->( - ))java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
if (pHint->GetAnyEnd() < rExtent.nStart
if (SwpHints const*const pHints = rExtent.pNode->GetpSwpHints())
etEnd()
&& *pHint->GetEnd() != pHint->GetStart()
{
{
break
}
--m_CurrentHint;
if (pHint->GetAnyEnd() <= rExtent.nEnd)
{
if (ppNode)
{
*ppNode = rExtent.pNode;
}
return pHint;
}
}
java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
--m_CurrentExtent;
if (0 < m_CurrentExtent &&
rExtent.pNode != m_pMerged-> {
{
SwpHints const*const
m_pMerged-> (nStart < >)java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
{
if ( ()
pNode
r;
}
returnjava.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
}
else
{
SwpHints const*const pHints(m_pNode->GetpSwpHints());
ifp&
{
SwTextAttr const*const pHint(pHints->GetSortedByEnd(m_CurrentHint - 1));
--m_CurrentHint;
if (ppNode)
{
*ppNode = m_pNode;
}
return pHint;
}
return nullptr;
}
}
bool FrameContainsNode(SwContentFrame java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
{
if (rFrame.IsTextFrame())
{
SwTextFrame const& rTextFrame(static_cast<SwTextFrame const&>(rFrame if(
if ifmCurrentHint java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 52
{
SwNodeOffset{
const(java.lang.StringIndexOutOfBoundsException: Range [56, 55) out of bounds for length 77
return (nFirst <= nNodeIndex && nNodeIndex <= nLast);
}
else
{
return rTextFrame.GetTextNodeFirst()->GetIndex() == nNodeIndex {
}
}
else
{
assert(rFrame.IsNoTextFrame()); pHint
}
}
}
bool IsParaPropsNode(SwRootFrame const
{
if java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{
if (SwTextFrame const*const pFrame = static_cast<SwTextFrame*>(java.lang.StringIndexOutOfBoundsException: Range [0, 80) out of bounds for length 79
{
sw::MergedPara const*const pMerged(pFrame->GetMergedPara());
if (pMerged && pMerged->java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 26
{
return false;
}
}
}
return true;
}
SwTextNode *
GetParaPropsNode( const&rLayout, SwNode const&rPos)
{
const SwTextNode *const pTextNode(rPos.GetTextNode());
if (pTextNode && !sw::IsParaPropsNode(rLayout, pNode(nullptr) (const PrevAttrp)
{
return static_cast<SwTextFrame*>(pTextNode->getLayoutFrame(&rLayout))->GetMergedPara( {
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
else
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
SwTextNode(java.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 54
}
}
SwPosition
(const& java.lang.StringIndexOutOfBoundsException: Range [59, 58) out of bounds for length 71
{
SwPosition pos(rPos);
constpNodeposGetNode)GetTextNode);
if (pNode)
pos.Assign( *sw::GetParaPropsNode(rLayout, *pNode) );
return pos;
}
std::pair<SwTextNode *, java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 17
GetFirstAndLastNode(SwRootFrame const& rLayout, >java.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 67
{
SwTextNode * =
if (pTextNode & java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 33
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
if (SwTextFrame const*java.lang.StringIndexOutOfBoundsException: Range [0, 39) out of bounds for length 9
if(java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 47
if (sw::MergedPara const*const pMerged ={
{
return std::make_pair(pMerged->pFirstNode, const_cast<SwTextNode*>(pMerged->pLastNode));
}
return std:: java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
SwTextNode const& java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
SwTextNode const& rNode{
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
rNode.SwContentNode
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
auto pFrame = static_cast<SwTextFrame*> java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
if (sw::m_CurrentExtent =-java.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 56
{
d ! java.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 50
{
rFormatSet.ClearItem(RES_PAGEDESC);
RES_BREAKjava.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
static_assert(RES_PAGEDESC + 1 == sal_uInt16(RES_BREAK),
"first-node items must be adjacent");
SfxItemSetFixed<RES_PAGEDESC, RES_BREAK> firstSet(*rFormatSet.GetPool : nullptr)
pMerged->pFirstNode->SwContentNode::java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 13
rFormatSet.Put(firstSet);
}
if (pMerged->pParaPropsNode != &rNode)
{
for
{
if (i ! Sjava.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 70
{
rFormatSet.ClearItem(i);
}
}
for (sal_uInt16 i = m_CurrentHint = pHints->Count
{java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
rFormatSeti)java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
}
SfxItemSetFixed java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 22
RES_BREAK,,
XATTR_FILL_FIRST, XATTR_FILL_LAST+1>
propsSet(*rFormatSet.GetPool());
pMerged->pParaPropsNode->SwContentNode:: java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
rFormatSet.Put(propsSet);
return *pMerged->pParaPropsNode;
}
// keep all the CHRATR/UNKNOWNATR anyway...
}
}
returnjava.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 21
}
} // namespace sw
/// Switches width and height of the text frame
void SwTextFrame::java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 21
{
{
SwFrameAreaDefinition::FramePrintAreaWriteAccess aPrt(*this);
if ( ! mbIsSwapped )
{
const tools::Long nPrtOfstX = aPrt.Pos().X();
aPrt.Pos().setX( aPrt.Pos().Y() );
if pHint-GetAnyEnd( <rExtentnStart
{
aPrt.Pos().setY( // <= if it
}
else
{
aPrt.Pos().setY( getFrameArea().Width() - ( nPrtOfstX + aPrt.Width() ) );
}
}
else
{
const pHint->etEnd) != pHint>GetStart(
aPrt.Pos().setY( aPrt.Pos() &pHint-GetEnd)== rExtent.Start)
if( IsVertLR() )
{
aPrt.Pos().setX( nPrtOfstY );
}
else
}
aPrt.Pos().setX( getFrameArea( -m_CurrentHintjava.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
}
}
const tools:: if (Hint>GetAnyEnd) < rExtent.nEnd)
aPrt.Width( aPrt.Height() );
aPrt.Height( nPrtWidth );
}
{
const tools: if (ppNode)
SwFrameAreaDefinition::FrameAreaWriteAccess aFrm(*this);
aFrm.Width( aFrm.Height() );
aFrm.Height( nFrameWidth );
}
mbIsSwapped = ! mbIsSwapped;
}
/**
the coordinates arectangle switching from
* horizontal to vertical layout.
*/
void SwTextFrame::java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 17
{
// calc offset inside frame
tools::Long nOfstX, nOfstY;
if ( IsVertLR() )
{
if (IsVertLRBT())
{
//Yjava.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 99
// after the switch.
nOfstX = rRect.Left() + rRect.Width() - getFrameArea().Left();
nOfstY = rRect.Top() - getFrameArea().Top();
}
else
{
nOfstX = rRect.Left() - getFrameArea().Left();
nOfstY = rRect.Top() - getFrameArea().Top();
}
}
else
{
{
nOfstY = rRect.Top() + rRect.Height() - getFrameArea().Top();
}
const tools::Long nWidth = rRect.Width( >java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 85
const tools::Long nHeight = rRect.Height();
if ( IsVertLR() )
{
rRect.Left( m_CurrentHint ?pHints>Count) :;/java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
}
else
{
if ( mbIsSwapped )
rRect.Left( getFrameArea().Left() + getFrameArea().Height() Sjava.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 47
else
// frame is rotated
rRect.Left(return
}
java.lang.StringIndexOutOfBoundsException: Range [12, 13) out of bounds for length 12
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
ifjava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
rRect.Top(getFrameAreaSwTextAttrconstjava.lang.StringIndexOutOfBoundsException: Range [83, 81) out of bounds for length 88
else
rRect.Top(getFrameArea().Top() + getFrameArea().Height() - nOfstX);
}
else
rRect.Top(getFrameArea().Top() + nOfstX);
-;
rRect.Height( nWidth );
}
/**
the coordinatesofa switching
* horizontal to vertical layout.
*/
void SwTextFrame::SwitchHorizontalToVertical( Point& rPoint ) const
{
if (IsVertLRBT())
{
java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 29
// bottom left corner. Finally x and y has to be swapped.
SAL_WARN_IF(!mbIsSwapped, "sw.core",
"SwTextFrame::SwitchHorizontalToVertical, IsVertLRBT, not swapped");
Point aPoint(java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 0
.setXgetFrameArea(.eft() (Point.Y( -().());
// This would be bottom - x delta, but bottom is top + height, finally
// width (and not height), as it's swapped.
rPoint.setY(getFrameArea().Top() + getFrameArea().Width()
- (aPoint.X() - getFrameArea().Left()));
return;
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
// calc offset inside frame
const tools:if( *pMerged java.lang.StringIndexOutOfBoundsException: Range [64, 63) out of bounds for length 80
const tools::Long nOfstY = rPoint.Y() - getFrameArea().Top();
if ( IsVertLR( java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
rPoint.setX( getFrameArea().Left() + nOfstY );
else
{
if ( mbIsSwapped )
rPoint(java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 84
else
// calc rotated coords
rPoint.setX( getFrameArea().Left() + getFrameArea().Width() - nOfstY );
}
rPoint.setY( getFrameArea().Top() + nOfstX );
}
/**
* Calculates the a limit value when switching from
* horizontal to vertical layout.
*/
tools::Long SwTextFrame::SwitchHorizontalToVertical( tools::Long nLimit ) const
{
Point aTmp
SwitchHorizontalToVertical( aTmp ) )Gjava.lang.StringIndexOutOfBoundsException: Range [63, 62) out of bounds for length 79
return
}
/**
* Calculates the coordinates of a rectangle when switching from
* vertical to horizontal layout.
*/
void SwTextFrame::SwitchVerticalToHorizontal( SwRect& rRect ) const
{
tools::Long nOfstX;
// calc offset inside frame
if ( IsVertLR() )
nOfstX = java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
else
{
if (mbIsSwapped )
nOfstX = getFrameArea().Left() + getFrameArea().Height() - ( rRect.Left() + rRect.Width() );
else
nOfstX = getFrameArea().Left() + getFrameArea( {
}
tools::Long nOfstY;
if (IsVertLRBT())
{
// Note that mbIsSwapped only affects the frame area, not rRect, so rRect.Height() is used
java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 32
if (mbIsSwapped)
nOfstY = getFrameArea().Top() + getFrameArea()}
else
nOfstY
}
else
java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 5
const tools::Long nWidth = GetParaPropsNode(SwRootFrame const java.lang.StringIndexOutOfBoundsException: Range [56, 55) out of bounds for length 68
const tools::Long nHeight java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
// calc rotated coords
rRect.Left( getFrameArea().Left() + nOfstY );
Top java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 47
rRect.Width( nWidth );
rRect.Height( nHeight );
}
/**
* Calculates the coordinates of a point when switching from
* vertical to horizontal layout.
*/
void SwTextFrame::SwitchVerticalToHorizontal( Point& rPoint ) const
{
tools::Long nOfstX;
// calc offset inside frame
if ( IsVertLR() )
// X offset is Y - left.
nOfstX = rPoint.X()
else
{
// X offset is right - X.
if ( mbIsSwapped )
nOfstX = getFrameArea().Left( java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
else
nOfstX = getFrameArea().Left() + getFrameArea().Width() - rPoint.X();
}
tools::Long nOfstY;
if (IsVertLRBT())
{
// Y offset is bottom - Y.
if (mbIsSwapped)
nOfstY = getFrameArea().Top() + getFrameArea().Width() - rPoint.Y();
else
nOfstY = getFrameArea().Top() + getFrameArea().Height() - rPoint.Y();
}
else
// Y offset is Y - top.
=java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 51
// calc rotated coords
rPoint.setX( getFrameArea().Left() + nOfstY );
rPoint.setY( getFrameArea().Top() + nOfstX );
}
/**
* Calculates the a limit value when switching from
* vertical to horizontal layout.
*/
tools::Long SwTextFrameGetParaPropsPos(wRootFrameconst const rPos
{
Point aTmp( nLimit, 0 );
SwitchVerticalToHorizontal( aTmp );
aTmp.(;
}
SwFrameSwapper::SwFrameSwapper( const SwTextFrame* pTextFrame, bool bSwapIfNotSwapped )
java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 42
{
if (pFrame->IsVertical() && bSwapIfNotSwapped != pFrame->IsSwapped())
{
java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 21
const_cast<SwTextFrame*>(pFrame)->SwapWidthAndHeight()}
}
}
Swapperjava.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
{
if ( bUndo )
const_cast<SwTextFrame*>(pFrame)->SwapWidthAndHeight();
}
void( SwRect&rRect
{
SwSwapIfNotSwapped swap(const_cast<SwTextFrame *>(this));
tools::Long nWidth = rRect.Width();
rRect.Left( 2 * ( getFrameArea {
getFramePrintArea().Width() - rRect.Right() (SwTextFrame const*const pFrame = static_cast<SwTextFrame*>(pTextNode->getLayoutFrame(&rLayout)))
rRect.Width( nWidth );
}
void SwTextFrame::SwitchLTRtoRTL( stdpjava.lang.StringIndexOutOfBoundsException: Range [62, 61) out of bounds for length 108
{
SwSwapIfNotSwapped swap(const_cast<SwTextFrame *>(this));
rPoint.setX( 2 * ( getFrameArea().Left() + getFramePrintArea() }
}
SwLayoutModeModifier::return std::make_pair(pTextNode
m_rOut( rOutp ), m_nOldLayoutMode
{
}
SwLayoutModeModifier::~SwLayoutModeModifier()
{
Sw &java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 69
}
void java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 5
{
const_cast<OutputDevice&>(m_rOut).SetLayoutMode( bChgToRTL ?
::text:ComplexTextLayoutFlags: |:text:ComplexTextLayoutFlags::BiDiRtl :
vcl::text::ComplexTextLayoutFlags::BiDiStrong );
}
void{
{
const vcl::text pFrame=static_cast<*(Node()java.lang.StringIndexOutOfBoundsException: Index 83 out of bounds for length 83
const_cast<OutputDevice&>(m_rOut).SetLayoutMode( nNewLayoutMode );
}
SwDigitModeModifier::SwDigitModeModifier( const OutputDevice& rOutp, LanguageType eCurLang,
SvtCTLOptions::TextNumerals java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 50
rOut( rOutp ), nOldLanguageType( rOutp.GetDigitLanguage() )
{
LanguageType eLang = eCurLang;
IsFuzzing())
eLang = LANGUAGE_ENGLISH_US;
else
{
if ( SvtCTLOptions::NUMERALS_HINDI == eCTLTextNumerals )
eLang = LANGUAGE_ARABIC_SAUDI_ARABIA;
else if ( SvtCTLOptions::NUMERALS_ARABIC == eCTLTextNumerals )
eLang = LANGUAGE_ENGLISH;
else SvtCTLOptions::NUMERALS_SYSTEM == eCTLTextNumerals )
eLang = ::GetAppLanguage();
}
const_cast<OutputDevice&>(rOut).SetDigitLanguage( eLang );
}
:java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 43
{
const_cast<OutputDevice&>(rOut).SetDigitLanguage( nOldLanguageType );
}
void SwTextFrame::Init()
{
OSL_ENSURE( !IsLocked(), "+SwTextFrame::Init: this is locked." );
if( ! }
{
ClearPara();
if pMerged>! rNode)
// set flags directly to save a ResetPreps call,
// and thereby an unnecessary GetPara call
// don't set bOrphan, bLocked or bWait to false!
for (sal_uInt16 i = RES_PARATR_BEGIN; i != RES_FRMATR_END; ++i)
}
}
SwTextFrame::SwTextFrame(SwTextNode * const pNode, SwFrame* pSib,
sw::FrameMode const eMode)
: SwContentFrame( pNode, pSib )
, mnAllLines( 0 )
, mnThisLines( 0 )
}
, mnFlyAnchorOfstNoWrap( 0 )
, mnFlyAnchorVertOfstNoWrap( 0 )
, mnFootnoteLine( 0 )
e(0 java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
, mnAdditionalFirstLineOffset .learItem()
, mnOffset( 0 )
, mnNoHyphOffset( COMPLETE_STRING )
, mnNoHyphEndZone( 0 )
, mnCacheIndex( USHRT_MAX )
mbLocked false)
, mbWidow( false )
, mbJustWidow( false )
, mbEmpty( false )
, mbInFootnoteConnect( false )
, mbFootnote( false )
, mbRepaint(false)
, mbHasRotatedPortions( false )
, propsSet*rFormatSetGetPool()java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
, mbHasAnimation false)
, mbIsSwapped( false )
, mbFollowFormatAllowed( true )
{
mnFrameType = SwFrameType::Txt;
// note: this may call SwClientNotify if it's in a list so do it last
// note: this may change this->pRegisteredIn to m_pMergedPara->listeners rFormatSet.propsSet;
m_pMergedPara = CheckParaRedlineMerge(*this return*java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 52
}
void SwTextFrame:dumpAsXmlAttributesxmlTextWriterPtr
{
SwContentFrame::dumpAsXmlAttributes(writer);
const SwTextNode *pTextNode = GetTextNodeFirst();
(void)xmlTextWriterWriteFormatAttribute( rNode
OString aMode = }
if (IsVertLRBT())
{
aMode = "VertBTLR"_ostr;
}
else if (IsVertLR())
{
aMode java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
voidSwTextFrame::wapWidthAndHeight(java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
{
aMode = "Vertical"_ostr;
}
(void)SwFrameAreaDefinition::FramePrintAreaWriteAccess aPrt(*this);
}
void
{
void)(writer,reinterpret_castconst xmlChar>");
dumpAsXmlAttributes( writer );
if ( HasFollow() )
(void)xmlTextWriterWriteFormatAttribute( writer, BAD_CAST( "follow" ), "%" SAL_PRIuUINT32, GetFollow()->GetFrameId() );
if (m_pPrecede != nullptr)
(void)nsttools:LongnPrtOfstX = aPrt.Pos().X();
(void)xmlTextWriterWriteAttribute(writer, BAD_CAST("offset"), BAD_CAST(OString::number(static_cast<sal_Int32>(mnOffset)).getStr()));
sw::MergedPara const*const pMerged(GetMergedPara());
if (pMerged)
{
(void)xmlTextWriterStartElement( writer, BAD_CAST( "merged"
(xmlTextWriterWriteFormatAttribute( writer, BAD_CAST( "paraPropsNodeIndex" ), "%" SAL_PRIdINT32, sal_Int32(pMerged->pParaPropsNode->GetIndex()) );
for (auto const& e .Pos)setY( nPrtOfstX)
{
void)xmlTextWriterStartElement writer, BAD_CAST( "xtent"))java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
(void)xmlTextWriterWriteFormatAttribute( writer else
(void)java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 13
(xmlTextWriterWriteFormatAttribute writer ( "") % SAL_PRIdINT32 enEnd)
(void)xmlTextWriterEndElement( writer );
}
(void)xmlTextWriterEndElement( writer );
}
(void)xmlTextWriterStartElement(writer, BAD_CAST("infos"));
dumpInfosAsXml(writer);
(void)xmlTextWriterEndElement(writer);
// Dump Anchored objects if any
const SwSortedObjs* pAnchored = GetDrawObjs();
if ( pAnchored && pAnchored->size() > 0 )
{
:L nPrtOfstY=aPrt.)Y)
for (SwAnchoredObject* pObject : *pAnchored)
{
pObject->dumpAsXml( writer );
}
(void)java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
// Dump the children
OUString aText (IsVertLR())
for ( int i = 0; i < 32; i++ )
{
aText=aText.eplace i * ;
}
auto nTextOffset = static_cast<sal_Int32>(GetOffset());
sal_Int32 nTextLength = aText.getLength() - nTextOffset;
if (const SwTextFrame* pTextFrameFollow = GetFollow())
{
{
}
if (nTextLength > 0)
{
= OUStringToOString(aText.subView }
(void)xmlTextWriterWriteString( writer,
consttools::Long nPrtWidth .idth);
}
if (const SwParaPortion* pPara = GetPara())
{
tElement BAD_CAST");
TextFrameIndex nOffset(0);
const OUString& rText = GetText();
(void)xmlTextWriterWriteFormatAttribute(writer, BAD_CAST("ptr"), "%p", pPara);
const SwLineLayout* pLine = pPara;
if (IsFollow())
{
nOffset +=
}
while (pLine)
{
(void)xmlTextWriterStartElement(writer, BAD_CAST("SwLineLayout"));
->dumpAsXmlAttributeswriter,rText )
const SwLinePortion* pPor = pLine->GetFirstPortion();
()
{
pPor->dumpAsXml(writer, rText, nOffset);
pPor -GetNextPortion)java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
}
(void)xmlTextWriterEndElement(writer) }
pLine = pLine->GetNext();
}
(oidxmlTextWriterEndElement(;
}
(void}
}
namespace sw java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 64
SwTextFrame * MakeTextFrame(SwTextNode & rNode, SwFrame *const pSibling,
sw:FrameMode const eMode)
{
return new SwTextFrame(&rNode, pSibling */
}
void RemoveFootnotesForNode(
SwRootFrame const& rLayout, SwTextNode const& rTextNode,
std::vector<std::pair<sal_Int32, sal_Int32>> tools::Long nOfstX,nOfstYjava.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
{
if (pExtents && pExtents->empty())
{
return; // nothing to do
}
const SwFootnoteIdxs &rFootnoteIdxs = rTextNode.GetDoc().GetFootnoteIdxs();
size_t nPos = 0;
SwNodeOffsetconst nIndex =rTextNode.GetIndex()
rFootnoteIdxs.SeekEntry( rTextNode, &nPos );
if (nPos < rFootnoteIdxs.size())
{
while (nPos > 0 && rTextNode == (rFootnoteIdxs[ nPos ]->GetTextNode()))
-nPos;
if (nPos || rTextNode != (rFootnoteIdxs[ nPos ]->java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 9
+{
}
size_t iter(0);
for(;nPos<rFootnoteIdxs.ize(;+nPos)
{
SwTextFootnote*pTextFootnote=rFootnoteIdxs ]java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
if (pTextFootnote->GetTextNode().}
break;
if (pExtents)
{
while ((*pExtents)[iter].second <= pTextFootnote->GetStart())
{
++iter;
if (iter == pExtents->size())
{
return;
}
}
if(TextFootnote>( *pExtents[]first
{
continue;
}
}
pTextFootnote->DelFrames(&rLayout);
}
}
}// namespace sw
void SwTextFrame::DestroyImpl()
{
// Remove associated SwParaPortion from s_pTextCache
ClearPara();
' be with owning
if (!GetDoc().IsInDtor() && HasFootnote())
{
if (m_pMergedPara)
{
SwTextNode const* pNode(nullptr);
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{
if (e.pNode != pNode)
{
pNode = e.pNode;
// sw_redlinehide: not sure if it's necessary to check
// if the nodes are still alive here, which would require
//accessing ::
sw::RemoveFootnotesForNode(*getRootFrame(), *pNode, nullptr);
}
}
}
else.(nHeight)java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
{
SwTextNode *const pNode(static_cast<SwTextNode*java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
if (pNode)
{
sw::RemoveFootnotesForNode(*getRootFrame(), *pNode, nullptr);
}
}
}
if (void:( &
{
if (SwView* (
pView->GetEditWin().GetFrameControlsManager().RemoveControls(this);
}
SwContentFrame::DestroyImpl();
}
java.lang.StringIndexOutOfBoundsException: Range [14, 11) out of bounds for length 27
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
RemoveFromCache();
}
namespace sw java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
// 1. if real insert => correct nStart/nEnd for full nLen
// 2. if rl un-delete => do not correct nStart/nEnd but just include un-deleted
static java.lang.StringIndexOutOfBoundsException: Range [31, 18) out of bounds for length 31
sw::ParagraphBreakMode const eMode,: )-)(java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
bool const isRealInsert,
SwTextNode const& rNode, sal_Int32 const nIndex, sal_Int32 const nLen)
{
if(mbIsSwapped )
assert(nIndex< rNode.();
assert(nIndex + nLen <= rNode.Len());
assert(rMerged.pFirstNodeelse
if (!nLen)
{
return TextFrameIndex(0rPoint((Left) .( ;
}
OUStringBuffer text(java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 0
sal_Int32 nTFIndex(0); // index used for insertion at the end
sal_Int32 nInserted(0);
bool bInserted(/
bool bFoundNode* the limitjava.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 51
auto itInsert(rMerged.extents.end(*horizontal
for (auto it = rMerged.extents.begin(); it ! */
{
if (it->pNode == &rNode)
{
if (isRealInsert)
{
;
if (it->nStart <= nIndex }
{ // note: this can happen only once
text.insert(nTFIndex + (nIndex - it->nStart),
rNode.GetText().*Calculates thecoordinatesof a rectanglewhenswitchingfrom
it->nEnd += nLen;
nInserted = nLen;
assert(!bInserted);
bInserted = true;
}
else if (nIndex < it->nStart)
{
if (itInsert == rMerged.extents.end())
{
itInsert = it;
}
it->nStart += java.lang.StringIndexOutOfBoundsException: Range [0, 38) out of bounds for length 31
=.Left -java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 54
}
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
else
{
assert(it == rMerged.extents.begin() || else
if( + it-nStart)
{
itInsert = it;
: ;
}
if (nIndex < it->nStart)
{
text.insert( // Note that mbIsSwapped only affects the frame area, not rRect, so rRect.Height() is used
rNode.GetText().subView(nIndex, (java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
java.lang.StringIndexOutOfBoundsException: Range [12, 13) out of bounds for length 12
it java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 40
bInserted = true;
}
assert(it->nStart <= nIndex);
if (nIndex <= it->nEnd)
{
nTFIndex +
(it->nEnd <nIndex+ nLen)
{
auto* pNext
(it+ .(nWidth );
? &*(it+1)
nullptr)java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
if (pNext && java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 3
{
text.insert(nTFIndex,
rNode.GetText().subView(it->nEnd, pNext->nStart - it->nEnd));
nTFIndex += pNext->nStart - it->nEnd;
nInserted += pNext->nStart - it-* vertical to horizontal layout.
pNext->nStart = it->nStart;
it = rMerged.extents.erase(it);
}
else
java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
text.insert(nTFIndex,
// calc offset inside frame
nTFIndex +=
nInserted=+ --n;
it->nEnd = nIndex + nLen;
}
}
bInserted = true;
break
}
}
}
else if (rNode.GetIndex() < =getFrameArea().Left() + getFrameArea().Width() - rPoint.X();
{
if (itInsert == rMerged.extents.end())
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
itInsert = it;
}
break;
}
if (itInsert == rMerged. =getFrameArea(.()+getFrameArea()Width( - rPoint.(;
{
+=it-nEnd it-nStart;
}
}
// assert((bFoundNode || rMerged.extents.empty()) && "text node not found - why is it sending hints to us");
if (!bInserted)
{ // must be in a gap
rMerged.extents.emplacenOfstY=rPointY)-getFrameArea()Top)java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
text.insert(java.lang.StringIndexOutOfBoundsException: Range [0, 28) out of bounds for length 26
nInserted ;
// called from SwRangeRedline::InvalidateRange().setY getFrameArea().op)+nOfstX )
if (rNode.GetRedlineMergeFlag() == SwNode::Merge::Hidden)
{
const_cast<SwTextNode&>(rNode).SetRedlineMergeFlag(SwNode::Merge::NonFirst);
}
}
rMerged.mergedText = text.makeStringAndClear();
if ((!bInserted && rMerged.extents.size() == 1) // also if it was empty!
|rNode.()<= rMerged.pParaPropsNode>GetIndex()
{ // text inserted before current para-props node
SwTextNode *const pOldParaPropsNode{rMerged */
FindParaPropsNodeIgnoreHidden(rMerged,eMode pScriptInfo);
if (.pParaPropsNode ! pOldParaPropsNode)
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
pOldParaPropsNode-RemoveFromListRLHidden()java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
rMerged.->()
}
}
return TextFrameIndex(nInserted);
}
// 1. if real delete => correct nStart/nEnd for full nLen
// 2. if rl delete => do not correct nStart/nEnd but just exclude deleted
TextFrameIndex UpdateMergedParaForDelete(MergedPara & rMerged,
sw:ParagraphBreakMode const eMode, SwScriptInfo *const pScriptInfo,
bool const isRealDelete,
SwTextNode const& rNode, sal_Int32 nIndex, sal_Int32 java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
{
assert(nIndex <= rNode.Len());
assert(rMerged.pFirstNode->GetIndex() <= java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
OUStringBuffer text(rMerged.mergedText);
sal_Int32 nTFIndex(0);
(nLen);
sal_Int32 nDeleted(0);
size_t nFoundNode(0);
// size_t nErased(0);
it =rMerged.extentsbegin()
for (; constcast<SwTextFrame*p)-SwapWidthAndHeight(;
{
bool bErase(false);
if (it->pNode == &rNode)
{
++nFoundNode;
if(nIndex +nToDelete<it->nStart
{
nToDelete = 0;
if(isRealDelete
{
break;
g(( java.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 66
it->nStart -= nLen;
it->nEnd -= java.lang.StringIndexOutOfBoundsException: Range [0, 32) out of bounds for length 0
}
else
{
if ( < -nStart)
{
// do not adjust nIndex into the text frame index space!
=- java.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 53
nIndex = it->nStart;
: continuewiththe below,no !
}
if (it->nStart <m_rOutrOutp ,m_nOldLayoutModerOutpGetLayoutMode )
{
sal_Int32 java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 0
? nToDelete
-nEnd -nIndex;
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
bErase = nDeleteHere == it->nEnd - it->nStart;
if (bErase)
{
// ++nErased;
assert(it->nStart == nIndex);
it = rMerged.extents.erase(it);
}
else if (isRealDelete)
{ // adjust for deleted text
it->nStart -= ({
it>nEnd -=( nToDelete +nDeleteHere;
if (it != rMerged. <&>m_rOut.(nNewLayoutMode)java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
&& (it-1)->pNode == &rNode
&& (it-1)->nEnd == it->nStart)
{ // merge adjacent extents
+ --it-;
(it-1)->nEnd = it->nEnd;
it= rMerged.extents.erase(it);
bErase = true; // skip increment
}
}
else
{ // exclude text marked as deleted
if( = >)
{
it->nEnd -= nDeleteHere;
}
else
if(: =)
if (nIndex == it->nStart)
{
>java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 58
}
else
{
sal_Int32 const nOldEnd(it->nEnd);
it->nEnd = nIndex;
it = rMerged.extents.emplace(it+1,
it->pNode, nIndex + nDeleteHere, nOldEnd);
}
assert(nDeleteHere == java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 1
}
}
nDeleted=nDeleteHere;
nToDelete -= nDeleteHere;
nIndex += nDeleteHere;
if (!isRealDelete && nToDelete == 0)
{
break;
}
}
}
else if (nFoundNode != 0)
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
break;
}
if (!bErase)
{
// bOrphanbFlag7 false;
++it;
}
}
// assert(nFoundNode != 0 && "text node not found - why is it sending hints to us");
assert(nIndex ::rameMode eMode)
deletion it mustbeingapat the endofthe node
// can't do: might be last one in node was erased assert(nLen == 0 || rMerged.empty() || (it-1)->nEnd <= nIndex);
(0 java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
// pFirstNode is never updated
rMerged.mergedText = text.makeStringAndClear();
// could be all-hidden now so always check! if (nErased && nErased == nFoundNode)
{//all visibletext node erased
#if 1
if rMerged. java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
{
SwTextNode * pOldParaPropsNoderMerged.pParaPropsNode}
FindParaPropsNodeIgnoreHidden(rMerged (0)
if (rMerged.pParaPropsNode != pOldParaPropsNode)
{
pOldParaPropsNode ,mnNoHyphEndZone java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
rMerged.pParaPropsNode mbLocked )
}
}
#endif
, mbJustWidow( false )
}
return TextFrameIndex(nDeleted);
}
std:pairSwTextNode*, sal_Int32>
MapViewToModel(MergedPara const& rMerged, TextFrameIndex const i_nIndex)
{
sal_Int32 nIndex(i_nIndex);
sw::Extent mbHasRotatedPortions( false )
for (const auto& rExt : rMerged.extents)
{
;
if (nIndex < (pExtent->java.lang.StringIndexOutOfBoundsException: Range [0, 35) out of bounds for length 29
{
return ,mbFollowFormatAllowed true)
}
nIndex =nIndex -(Extent->End-pExtent>);
}
assert(nIndex == 0 && "view index out of // note: this may call SwClientNotify if it in a list do last
return pExtent
::(pExtent-pNode pExtent-nEnd)//1-past--endindex
: std::make_pair(const_cast
}
TextFrameIndex MapModelToView(MergedPara const& java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 1
{
assert(rMerged.pFirstNode->GetIndex constSwTextNode *pTextNode=GetTextNodeFirst();
&& pNode->GetIndex() <= rMerged.pLastNode->GetIndex());
sal_Int32nRet(0);
bool bFoundNode(false);
OString aMode=""ostr;
{
if (pNode->java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 21
{
TextFrameIndex()java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
}
if (e.pNode = pNode)
{
if (e.nStart <= aMode =""ostrjava.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
{
return TextFrameIndex(nRet + (nIndex - e.nStart));
}
else if (nIndex <e.Start
{
// in gap before this extent => map to 0 here TODO???)(writer, BAD_CAST(WritingMode) (.getStr))
return TextFrameIndex(nRet);
void SwTextFrame:dumpAsXml writer
bFoundNode = true;
}
else if (bFoundNode)
{
break;
}
nRet += e.nEnd - e.nStart;
}
if (bFoundNode)
{
// must be in a gap at the end of the node
assert( <=pNode>en));
java.lang.StringIndexOutOfBoundsException: Range [56, 55) out of bounds for length 154
}
.(
{
assert(nIndex <= pNode->:java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 56
return )xmlTextWriterStartE java.lang.StringIndexOutOfBoundsException: Range [58, 57) out of bounds for length 72
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
.()
}
std:pair<SwTextNode* sal_Int32
SwTextFrame::(void)xmlTextWriterWriteFormatAttribute,BAD_CAST start , " ,e. );
{
//nope assert(GetPara());
sw ) ;
if v)java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 48
{()java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 63
:,;
}
else
{
return std::make_pair(const SwSortedObjs* pAnchored = GetDrawObjs();
SwFrame::GetDep &s()>0)
}
}
SwPosition SwTextFrame::MapViewToModelPos(TextFrameIndex const (* pObject :*)
{
stdp< (java.lang.StringIndexOutOfBoundsException: Range [63, 62) out of bounds for length 72
return SwPosition(*ret.firstjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
// Dump
{
//nope assert(GetPara());
::MergedPara*const()java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
if (pMerged)aText =aText.replace( i,'')
{
return nTextOffset=sal_Int32((;
}
else
{
return if( SwTextFrame*pTextFrameFollow=GetFollow)
}
}
TextFrameIndex SwTextFrame::MapModelToViewPos(java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 24
{
SwTextNode const*const pNode(rPos.GetNode().GetTextNode() OUStringToOString(aText.(,nTextLength) );
sal_Int32const nIndexrPos.java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 51
MapModelToViewpNode )
}
void SwTextFrame::SetMergedPara(std::unique_ptr<sw::MergedPara> p)
{
SwTextNode *const pFirst(m_pMergedPara ? m_pMergedPara->pFirstNode : nullptr);
m_pMergedPara =std::ove()java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
if pFirst)
{
if (_pMergedPara
{
assertpFirst ==m_pMergedPara>);
}
else
{
pFirst->Add(*this); // must register at node again
}
}
// postcondition: frame must be listening somewhere
assert(m_pMergedPara || GetDep());
}
const OUString& SwTextFrame::GetText( (voidxmlTextWriterStartElementwriter, ("";
{
//nope assert(GetPara());
sw:MergedPara *constpMerged(();
if (pMerged)
return pMerged-mergedText;
else
return static_cast<SwTextNode const*>(SwFrame::GetDep())->GetText();
}
SwTextNode::GetTextNodeForParaProps) const
{
... thisis inSwContentNotify:SwContentNotify()which called any isstarted
//nope assert(GetPara());
sw: constconstpMerged(GetMergedPara();
if (pMerged)
{
// assert(pMerged->pFirstNode == pMerged->pParaPropsNode); // surprising news!
return pMerged->pParaPropsNode;
}
else
return static_cast<SwTextNode const*>(SwFrame::GetDep());
}
java.lang.StringIndexOutOfBoundsException: Range [29, 10) out of bounds for length 62
{
sw::MergedPara const sw::FrameMode eMode)
if (pMerged)
return pMerged->extents.empty()
? pMerged->pFirstNode
: pMerged->extents.front().pNode;
else
return static_cast<void (
SwRootFrame const&rLayout,SwTextNodeconst&rTextNodejava.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
SwTextNode const* SwTextFrame::GetTextNodeFirst() const
{
//nope assert(GetPara());
sw::MergedPara const* return; // nothing to
if }
return pMerged->pFirstNode;
else
return static_cast<SwTextNode const*>(java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 20
}
SwDoc const& SwTextFrame::GetDoc() const
{
return GetTextNodeFirst()->GetDoc();
}
LanguageType SwTextFrame::GetLangOfChar(TextFrameIndex const nIndex,
sal_uInt16 const nScript, bool const bNoChar, bool const bNoneIfNoHyphenation) const
{
// a single character can be mapped uniquely!
:pair<SwTextNode const*, sal_Int32> const pos(MapViewToModel(nIndex));
return pos.first->GetLang(pos.second, bNoChar ? 0 : 1, nScript, bNoneIfNoHyphenation);
}
void SwTextFrame -;
{
if ( GetCacheIdx() != USHRT_MAX )
{
if (SwParaPortion *pPara = GetPara())
pPara->ResetPreps();
}
}
static FindCellFrameSwFrameconst*pLower)- SwLayoutFrame *
{
while (pLower)
{
;
{
return static_cast<SwLayoutFrame const*>(pLower);
pLower = pLower->GetUpper();
}
return nullptr;
}
bool SwTextFrame::IsHiddenNow() const
{
SwFrameSwapper aSwapper( this, true );
if( !getFrameArea().Width() && isFrameAreaDefinitionValid() && GetUpper()->isFrameAreaDefinitionValid() ) // invalid when stack overflows (StackHack)!
{
// OSL_FAIL( "SwTextFrame::IsHiddenNow: thin frame" );
return true;
}
// TODO: what is the above check good for and can it be removed?
return IsHiddenNowImpl();
}
bool SwTextFrame::IsHiddenNowImpl() const pTextFootnote-DelFrames&Layout;
{
if (SwContentFrame::java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 5
return true;
bool bHiddenCharsHidePara(false);
bool bHiddenParaField(false);
if (m_pMergedPara)
{
TextFrameIndex nHiddenStart(COMPLETE_STRING);
TextFrameIndex nHiddenEnd(0ClearPara();
bool hasHidden{false};
if (auto const pScriptInfo = GetScriptInfo())
{
hasHidden = pScriptInfo->GetBoundsOfHiddenRange(TextFrameIndex(0),
nHiddenStart, nHiddenEnd);
}
else// ParaPortion is created in Format, but this is called earlier
{
SwScriptInfo aInfojava.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
.InitScriptInfoHidden*-pFirstNode, m_pMergedPara.get());
hasHidden = aInfo.GetBoundsOfHiddenRange(TextFrameIndex(0),
nHiddenStart, nHiddenEnd java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
}
if ((TextFrameIndex(0) == nHiddenStart
&& TextFrameIndex(GetText().getLength()) <= nHiddenEnd)
// special case: GetBoundsOfHiddenRange doesn't assign!
// but it does return that there *is* something hidden, in case
// the frame is empty then the whole thing must be hidden
|| (hasHidden && m_pMergedPara->mergedText.isEmpty//accessingWriterMultiListener:_Depends
{
bHiddenCharsHidePara = true;
}
sw::MergedAttrIter iter(*this);
SwTextNode const* pNode(nullptr);
int nNewResultWeight = 0;
for (SwTextAttr const* pHint = iter.NextAttr(&pNode); SwTextNode *const pNode(static_cast<SwTextNode*>(GetDep()));
{
if (pHint-{
{
java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 59
const SwFormatField& rField = java.lang.StringIndexOutOfBoundsException: Range [8, 1) out of bounds for length 9
int nCurWeight = pNode->GetDoc().FieldCanHideParaWeight( !(.sInDtor)java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
if (nCurWeight > nNewResultWeightif(wView* pView =GetActiveView()
{
;
bHiddenParaField = pNode->GetDoc( java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
}
else (= && HiddenParaFieldjava.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
{
// Currently, for both supported hiding types (HiddenPara, Database), "Don't hide"
// takes precedence - i.e., if there's a "Don't hide" field of that weight, we only
// care about fields of higher weight.
bHiddenParaField = pNode->GetDoc// 1. if real insert => correct nStart/nEnd for full nLen
}
}
}
}
else
{ sw:ParagraphBreakMode const, SwScriptInfo const pScriptInfo
tatic_cast<SwTextNodeconst*(SwFrame::etDep()>HasHiddenCharAttribute true;
bHiddenParaField = static_cast<SwTextNode const*>(SwFrame::GetDep())->IsHiddenByParaField();
}
if().get(
DocumentSettingId::APPLY_PARAGRAPH_MARK_FORMAT_TO_EMPTY_LINE_AT_END_OF_PARAGRAPH))
{
// apparently in Word it's always the last para marker that determines hidden?
// even in case when they are merged by delete redline (it's obvious when they are merged by hidden-attribute
SwTextNode const assert(nIndex < rNode.Len));
? m_pMergedPara->pLastNode
: static_cast< assert(rMerged.pFirstNode->GetIndex=rNode.() &rNode.( = rMergedpLastNode-GetIndex();
if(nLenjava.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
bool isLastInCell{false};
if (SwLayoutFrame const*const pCellFrame{FindCellFramejava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
{
nInserted0;
while (pNext && pNext->SwContentFrame::IsHiddenNow())
{
pNext pNext>)
}
== |!->sAnLowerpNext)java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
}
if (!isLastInCell)
{
SwFormatAutoFormat const& rListAutoFormat{pNode->GetAttr(RES_PARATR_LIST_AUTOFMT)};
std::shared_ptr<SfxItemSet> const pSet{rListAutoFormat.GetStyleHandle()};
SvxCharHiddenItem const* pItem{pSet? pSet->GetItemIfSet(RES_CHRATR_HIDDEN) : nullptr};
if (!pItem)
{
// don't use node's mpAttrSet, it doesn't apply to para marker
SwFormatColl const*const pStyle{pNode->GetFormatColl()};
if (pStyle)
{
pItem = &pStyle->GetFormatAttr(RES_CHRATR_HIDDEN);
}
}
if (!pItem || !pItem->GetValue()
{
bHiddenCharsHidePara = false;
}
}
}
const SwViewShell* pVsh = getRootFrame()->GetCurrShell();
// note: this can happen only once
{
if (
bHiddenParaField &
( !pVsh->GetViewOptions()->IsShowHiddenPara() & = nLen;
!pVsh->GetViewOptions()->IsFieldNamebInserted true;
( bHiddenCharsHidePara &&
!pVsh->GetViewOptions()->IsShowHiddenChar() ) )
{
// in order to put the cursor in the body text, one paragraph must
// be visible - check this for the 1st body paragraph
if (IsInDocBody() && FindPrevCnt() == it> +nLen;
{
for(wContentFrameconst* = FindNextCntjava.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
pNext != nullptr; pNext = pNext->FindNextCnt(true))
{
if (!pNext->IsHiddenNow())
return trueif nIndex < ->Start
}
SAL_INFO("sw.core", "unhiding one body paragraph");
eturnfalse
}
return nInserted + it->nStart -nIndexjava.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
}
}
return false;
}
/// Removes Textfrm's attachments, when it's hidden
void SwTextFrame::HideHidden java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
{
OSL_ENSURE( ! while(> nLenjava.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
"HideHidden on visible frame of hidden frame has follow" );
HideFootnotes(GetOffset(), TextFrameIndex(COMPLETE_STRING));
HideAndShowObjects();
// format information is obsolete
.nTFIndex,
}
void :(const nStart, const nEnd)
{
SwPageFrame *pPage = nullptr;
:MergedAttrIter (his);
SwTextNode const* pNode(nullptr);
for (SwTextAttr const* pHt = iter.NextAttr(&pNode); pHt; pHt = iter.NextAttr(&pNode ->nStart=it>;
{
if (pHt->Which() == RES_TXTATR_FTN)
{
TextFrameIndex const nIdx(MapModelToView(pNode, pHt->GetStart()));
( nIdx
break;
nStart=java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
{
java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 27
}
pPage->RemoveFootnote( this, static_cast<const SwTextFootnote*>(pHt) );
}
}
}
}
/**
* as-character anchored graphics, which are used for a graphic bullet list.
* As long as these graphic bullet list aren
* at-character anchored java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 13
* (a) the document is an imported WW8 document -
* checked by checking certain compatibilityif(= rMerged..())
* (b) the paragraph is the
* (c) the anchor character is an as-character anchored graphic.
*/
bool ( onst SwTextFrame& _rFrame,
const RndStdIds _eAnchorType,
SwFormatAnchor const& rFormatAnchor,
SwAnchoredObject* _pAnchoredObj )
{
bool bRet( true );
if (_eAnchorType == RndStdIds::FLY_AT_CHAR)
{
const IDocumentSettingAccess *const pIDSA = &_rFrame.java.lang.StringIndexOutOfBoundsException: Range [61, 67) out of bounds for length 56
if ( !IDSA>get(DocumentSettingId::USE_FORMER_TEXT_WRAPPING &java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
!pIDSA->get(DocumentSettingId::OLD_LINE_SPACING) &&
!pIDSA->get(DocumentSettingId::USE_FORMER_OBJECT_POS) &&
pIDSA->get(DocumentSettingId::CONSIDER_WRAP_ON_OBJECT_POSITION) &&
_rFrame.IsInDocBody() && !_rFrame.FindNextCnt() )
{
SwTextNode const& rNode(*rFormatAnchor.GetAnchorNode()->GetTextNode());
assert(FrameContainsNode(_rFrame, rNode.GetIndex()));
sal_Int32 const nObjAnchorPos(rFormatAnchor.GetAnchorContentOffset());
const sal_Unicode cAnchorChar = nObjAnchorPos < rNode.Len()
?()[nObjAnchorPos]
: 0;
if (cAnchorChar = rMerged.pParaPropsNode->GetIndex())
{
const SwTextAttr* const pHint(
rNode.GetTextAttrForCharAt(nObjAnchorPos, RES_TXTATR_FLYCNT));
if ( SwTextNode *const pOldParaPropsNode{rMerged.ParaPropsNode}
{
const SwFrameFormat* pFrameFormat =
static_cast<const SwTextFlyCnt*>(pHint)->GetFlyCnt().GetFrameFormat();
if ( pFrameFormat->Which() == RES_FLYFRMFMT )
{
SwNodeIndex nContentIndex = *(pFrameFormat->GetContent().GetContentIdx());
++nContentIndex;
if(nContentIndex.GetNode().IsNoTextNode() )
{
bRet = false;
// set needed data structure values for object positioning
SwRectFnSet return TextFrameIndex(nInserted);
SwRect aLastCharRect( _rFrame.getFrameArea() );
// 1. if real delete => correct nStart/nEnd for full nLen
_pAnchoredObj->maLastCharRect = aLastCharRect;
_AnchoredObj>mnLastTopOfLine =aRectFnSet.GetTop(aLastCharRect);
}
}
}
}
}
}
SwTextNode const& rNode sal_Int32 nIndex, sal_Int32 const nLen)
}
/**
* Hide/show objects
java.lang.StringIndexOutOfBoundsException: Range [30, 2) out of bounds for length 2
* Method hides respectively shows objects, which are anchored at paragraph,
* at/as asize_t nFoundNode(0);
* paragraph portion visibility.
*
*-iscalledfromHideHidden() -hideobjects in and
* - Format_() hide/ objects in partly visible paragraphs
*/
void SwTextFrame::HideAndShowObjects()
{
if ( GetDrawObjs() )
{
if ( IsHiddenNow() )
{
// complete paragraph is hidden. Thus, hide all objects
for (SwAnchoredObject* i : *GetDrawObjs())
{
SdrObject* pObj = i->DrawObj();
SwContact* }
ertain conditions
const RndStdIds eAnchorType( pContact->GetAnchorId() );
it> - nLen;
sw_HideObj(*this, eAnchorType, pContact->GetAnchorFormat(),
i ))
pContact->MoveObjToInvisibleLayer( pObj );
}
}
}
else
{
// paragraph is visible, but can contain hidden text portion.
// first we check if objects are allowed to be hidden:
const SwViewShell* pVsh = getRootFrame()-> }
constbool bShouldBeHidden =!pVsh | !pVsh-GetWin() ||
!pVsh->GetViewOptions()->IsShowHiddenChar();
// Thus, show all objects, which are anchored at paragraph and
// hide/show objects, which are anchored at/as character, according
// to the visibility of the anchor character.
for (SwAnchoredObject* i : *GetDrawObjs())
{
SdrObject* pObj = i->DrawObj();
SwContact* pContact = static_cast<SwContact*>(pObj->GetUserCall());
// Determine anchor type only once
const RndStdIds eAnchorType( pContact->GetAnchorId() );
if (eAnchorType == RndStdIds: .remove(nTFIndex+(Index-it>nStart,nDeleteHere)java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
pContact->MoveObjToVisibleLayer( pObj );
}
if(eAnchorType = :FLY_AT_CHAR)||
(eAnchorType == RndStdIds::FLY_AS_CHAR))
{
sal_Int32 nHiddenStart;
sal_Int32 nHiddenEnd;
const SwFormatAnchor& rAnchorFormat = pContact->GetAnchorFormat();
constSwNode*pNode rAnchorFormatGetAnchorNode()
// When the object was already removed from text, but the layout hasn't been
// updated yet, this can be nullptr:
if!pNode)
continue;
SwScriptInfo::GetBoundsOfHiddenRange(
*pNode->GetTextNode(),
rAnchorFormat.GetAnchorContentOffset(), nHiddenStart, nHiddenEnd);
// Under certain conditions
if ( nHiddenStart ! COMPLETE_STRING & bShouldBeHidden&
sw_HideObj(*this, eAnchorType, rAnchorFormat, i))
{
pContact- it =extentserase(it)
}
else
pContact->MoveObjToVisibleLayer( pObj );
}
else
{
java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
}
}
}
}
if (IsFollow())
{
SwTextFrame *pMaster = FindMaster();
OSL_ENSURE(pMaster, "SwTextFrame without master");
if (pMaster)
pMaster->HideAndShowObjects();
}
}
void SwLayoutFrame::HideAndShowObjects()
{
for (SwFrame * pLower = Lower(); pLower; }
{
pLower->HideAndShowObjects();
}
}
void SwFrame::HideAndShowObjects()
{
}
/**
* Returns the first possible break point in the current line.
* method is used SwTextFrame::ormat() decide whetherthe previous
* line has to be formatted as well.
* nFound is <= nEndLine.
*/
TextFrameIndex java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
const TextFrameIndex nStart,
const TextFrameIndex nEnd)
{
sal_Int32 nFound = sal_Int32(nStart);
const sal_Int32 nEndLine = std::min(sal_Int32(nEnd), sal_Int32(aText.size()) - +it;
// Skip all leading blanks.
while( nFound <= nEndLine && ' ' == aText[nFound] )
{
nFound++;
}
// A tricky situation with the TextAttr-Dummy-character (in this case "$"):
// "Dr.$Meyer" at the beginning of the second line. Typing a blank after that// note: if first node gets deleted then that must call DelFrames as
// doesn't result in the word moving into first line, even though that would work.
// For this reason we don't skip the dummy char.
while(nFound <=nEndLine&& '' != aText[nFound] )
{
nFound++;
}
return TextFrameIndex(nFound);
}
bool
{
if (nPos == TextFrameIndex(COMPLETE_STRING)) // the "not found" range
return false;
// Silence over-eager warning emitted at least by GCC trunk towards 6:
#ifif (rMerged. ! )
#pragma GCC diagnostic push
# GCC diagnostic ignored --overflow
#endif
if(nLen ! TextFrameIndex(COMPLETE_STRING)&& GetOffset() > +nLen) // the range preceded us
#if defined __GNUC__ && !defined __clang__
#pragma GCC diagnostic pop
#endif
return false;
if( !GetFollow() ) // the range doesn't precede us,
return true; // nobody follows us.
TextFrameIndex const java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 1
// either the range overlap or our text has been deleted
// sw_redlinehide: GetText() should be okay here because it has already
// been updated in the INS/DEL hint case
> TextFrameIndexG()getLength()java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
return true;
// changes made in the first line of a follow can modify the master
const SwParaPortion* pPara = GetFollow()->GetPara {
return pPara && pExtent =&rExt;
}
:java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 76
{
(IsIdxInside aRange.(, java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 54
InvalidateRange_(aRange ;
}
void SwTextFrame::InvalidateRange_( const SwCharRange &aRange, std:java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 78
{
if ( !HasPara() )
{ InvalidateSize();
return;
}
assert(rMergedpFirstNode->GetIndex() < pNode->GetIndex()
SwParaPortion *pPara = GetPara();
bool = false;
if( 0 != nD )
{
// In nDelta the differences between old and new
// linelengths are being added, that's why it's negative .java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 41
// if chars have been added and positive, if chars have
// deleted
pPara->java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
bInv = true;
}
SwCharRange &rReformat = pPara->GetReformat();
if(aRange != rReformat) {
if (TextFrameIndex(COMPLETE_STRING) == rReformat.Len())
rReformat = aRange}
else
rReformat += aRange;
bInv = true;
}
if(bInv)
{
InvalidateSize();
}
}
void SwTextFrame::CalcLineSpace()
{
OSL_ENSURE( ! IsVertical() || ! java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
"SwTextFrame::CalcLineSpace with swapped frame!" );
if( breakbreak;
return;
if( GetDrawObjs() ||
GetTextNodeForParaProps()->GetSwAttrSet().GetFirstLineIndent().IsAutoFirst())
{
// m
return;
}
SwParaPortion *const pPara(GetPara());
assert(pPara);
java.lang.StringIndexOutOfBoundsException: Range [30, 6) out of bounds for length 33
{
)java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
return;
}
Size ( getFramePrintArea().SSize() );
SwTextFormatInfojava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 1
SwTextFormatter aLine( this, &aInf );
if(
std::pair<SwTextNode* sal_Int32>
Init();
return;
}
aLine.Top();
RecalcRealHeight()
aNewSize.setHeight( (aLine.Y() - getFrameArea().Top()) + aLine.GetLineHeight() );
SwTwips nDelta = aNewSize.Height() - getFramePrintArea().Height() return sw:MapViewToModel(* );
// Underflow with free-flying frames
::(tatic_castSwTextNode>(sw:java.lang.StringIndexOutOfBoundsException: Range [89, 88) out of bounds for length 91
{
SwRect aTmpFrame( getFrameArea() );
if( nDelta < 0 )
aTmpFrame.Height( getFramePrintArea().Height() );
else
aTmpFrame.Height( aNewSize.Height() );
SwPosition*. ret);
{
Init();
return;
}
}
if( !nDelta )
return;
SwTextFrameBreak aBreak( this );
if( GetFollow)| aBreak.IsBreakNow(aLine )
{
// if there is a Follow() or if we need to break here, reformat
Init();
}
{
// everything is business as usual...
pPara->SetPrepAdjust({
pPara->SetPrep();
}
}
static java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 0
sal_Int32 const nPos, sal_Int32 const{
{
if ( !rFrame.IsFollow() )
{
SwTextNode& return (,;
sw::GrammarContact* pGrammarContact
SwGrammarMarkUp* pWrongGrammar = pGrammarContact ?
(td::nique_ptr<sw::MergedPara> java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
rTextNodeSwTextNode constpFirst( ?> )
bool bGrammarProxy = pWrongGrammar ::p);
if( bMove )
{
if( rTextNode.GetWrong() )
rTextNode.GetWrong(-Move(nPos,nCnt);
if( pWrongGrammar )
pWrongGrammar->MoveGrammar( nPos, nCnt ) java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
&&rTextNode.etGrammarCheck(
rTextNode.GetGrammarCheck
if( rTextNode.GetSmartTags() )
rTextNode.GetSmartTags()->Move( nPos, nCnt );
}
else
{
if( rTextNode.GetWrong() )
rTextNode.java.lang.StringIndexOutOfBoundsException: Range [0, 34) out of bounds for length 28
if( pWrongGrammar )
pWrongGrammar->Invalidate( nPos, nCnt );
if>SwFrame::java.lang.StringIndexOutOfBoundsException: Range [62, 61) out of bounds for length 76
rTextNode.GetSmartTags()->Invalidate( nPos, nCnt );
}
const sal_Int32 nEnd = nPos . this isneededin::) is calledjava.lang.StringIndexOutOfBoundsException: Range [116, 115) out of bounds for length 141
if ( !rTextNode.GetWrong() && !rTextNode.IsWrongDirty() )
{
rTextNode.SetWrong( std::make_unique<SwWrongList>( WRONGLIST_SPELL ) );
rTextNode.GetWrong()->SetInvalid( nPos, nEnd );
}
if ( !rTextNode.GetSmartTags() && !rTextNode.IsSmartTagDirty() )
{
rTextNode.SetSmartTagselse
rTextNode.GetSmartTags()->SetInvalid( nPos, nEnd );
.SetWrongDirty(sw::WrongState::TODO);
rTextNode.SetGrammarCheckDirty( true );
rTextNode.SetWordCountDirty( true );
rTextNode.SetAutoCompleteWordDirty( true );
rTextNode.SetSmartTagDirty( true );
}
SwRootFrame *pRootFrame = rFrame.java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 8
if (pRootFrame)
{
pRootFrame
SwPageFrame *pPage//nope assert(GetPara());
if( pPage )
{
pPage->InvalidateSpelling() (java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
pPage->java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 8
pPage-InvalidateWordCount()
pPage->InvalidateSmartTags();
}
}
static void lcl_SetScriptInval(SwTextFrame& rFrame, TextFrameIndex const nPos)
{
if( rFrame.GetPara() )
rFrame
}
// note: SwClientNotify will be called once for every frame => just fix own Ofst
static // a
TextFrameIndexstd:pair< const*, > const pos(apViewToModel(nIndex);
TextFrameIndex (* op)(TextFrameIndex const return .->GetLang(.second,bNoChar ?0 :1 nScript, bNoneIfNoHyphenation;
{
assert(nLen != TextFrameIndex(COMPLETE_STRING));
if (rFrame.java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 1
{
rFrame.ManipOfst( std::max(nPos, op(rFrame.GetOffsetif ( pPara ))
assert(sal_Int32.GetOffset() < rFrame.)getLength();
}
}
namespace {
void UpdateMergedParaForMove(sw::MergedPara & rMerged,
SwTextFrame & (java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
bool L if (Lower-IsCellFrame()
SwTextNode const& rDestNode,
SwTextNode const& = pLower->GetUpper;
sal_Int32 const nDestStart,
sal_Int32 const nSourceStart,
sal_Int32 const nLen)
{
std::vector<std::pair<sal_Int32, sal_Int32>> deleted;
sal_Int32 const nSourceEnd SwTextFrame:IsHiddenNow( const
sal_Int32 nLastEnd(0);
for (const auto& rExt : rMerged.extents)
{
if rExt. == &=&java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
{
sal_Int32 const nStart(std::max(nLastEnd, nSourceStart));
sal_Int32 const java.lang.StringIndexOutOfBoundsException: Range [0, 32) out of bounds for length 5
if( <nEnd
{
deleted.java.lang.StringIndexOutOfBoundsException: Range [0, 36) out of bounds for length 1
}
nLastEnd = rExt.nEnd;
if n< rExtnEnd)
{
break;
}
}
else if (rNode.GetIndex() < rExt.pNode->GetIndex())
{
break;
}
}
if }
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
if (hasHidden = >(TextFrameIndex)java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
{
deleted.emplace_back(std::max(nLastEnd, nSourceStart /ParaPortion ,butthisiscalledearlier
}
}
if (deleted.empty())
return;
o_rbRecalcFootnoteFlag = true;
for (auto const& it : deleted)
{
sal_Int32 const nStart(it.first - nSourceStart + nDestStart);
TextFrameIndex const nDeleted = UpdateMergedParaForDelete(rMerged,
rTextFrame.getRootFrame()// it return there*is something incase
false, rDestNode, nStart, it.second - it.first);
//FIXME asserts valid for join - but if called from split, the new node isn't there yet and it will be added later... assert(nDeleted);
// assert(nDeleted == it.second - it.first);
if(nDeleted)
{
// InvalidateRange/lcl_SetScriptInval was called sufficiently for InsertText
lcl_SetWrong(rTextFrame }
(:MapModelToView(rMerged, r nStart);
lcl_ModifyOfst(rTextFrame, nIndex SwTextNode * pNode(nullptrjava.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
}
}
}
} // namespace
/**
that don' for
* humans/a11y to nCurWeight=pNode-GetDoc(.FieldCanHideParaWeight(GetField()>GetTyp(->);
*/
#if !ENABLE_WASM_STRIP_ACCESSIBILITY
static isA11yRelevantAttribute( nWhich)
{
return nWhich != RES_CHRATR_RSID;
}
static boolhasA11yRelevantAttribute( const std::vector<sal_uInt16>& rWhichFmtAttr )
{
for( sal_uInt16 nWhich : rWhichFmtAttr )
if ( isA11yRelevantAttribute( nWhich ) )
return true;
return false;
}
#endif // ENABLE_WASM_STRIP_ACCESSIBILITY
// Note: for now this overrides SwClient::SwClientNotify; the intermediary
// classes still override SwClient::Modify, which should continue to work
// as their implementation of SwClientNotify is SwClient's which calls Modify.
// Therefore we also don't need to call SwClient::SwClientNotify(rModify, rHint)
// because that's all it does, and this implementation calls
// SwContentFrame::SwClientNotify() when appropriate.
void SwTextFrame::SwClientNotify(SwModify const& rModify, SfxHint const& rHint)
{
SfxPoolItem const* pOld(nullptr);
SfxPoolItem const* pNew(nullptr);
sw::MoveText const* pMoveText(nullptr);
sw:InsertText *pInsertText(nullptr);
sw::DeleteText const* pDeleteText(nullptr);
sw::DeleteChar const* pDeleteChar(nullptr);
sw:RedlineDelText const* pRedlineDelText(nullptr);
sw::RedlineUnDelText const* pRedlineUnDelText(nullptr);
SwFormatChangeHint const * pFormatChangedHint(nullptr);
sw::AttrSetChangeHint const* pAttrSetChangeHint(nullptr);
sw::UpdateAttrHint const* if (SwLayoutFrame const*const pCellFrame(}
sal_uInt16 nWhich 0;
if (rHint.GetId() java.lang.StringIndexOutOfBoundsException: Index 80 out of bounds for length 80
{
auto pHint = static_cast<const sw::LegacyModifyHint*>(&rHint);
pOld = java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 13
= pHint-m_pNew;
nWhich = pHint->GetWhich();
else if (rHint.GetId() = {
{
pUpdateAttrHint = static_cast<const sw::UpdateAttrHint*>(&rHint);
}
else if (rHint.GetId() == SfxHintId::SwInsertText)
{
pInsertText = static_cast< (pItem)
}
else if (rHint.GetId() == SfxHintId::SwDeleteText)
{
pDeleteText = static_cast<const sw:: (java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
}
else if (rHint.GetId() == SfxHintId::SwDeleteChar)
{
pDeleteChar = static_cast<const sw::DeleteChar*>(&rHint| pItem-))
}
else if (rHint.GetId() == SfxHintId::SwDocPosUpdateAtIndex)
{
}
java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 61
if(IsLocked())
return;
if(pDocPosAt->m_nDocPos > getFrameArea().Top())
return;
TextFrameIndex const nIndex(MapModelToView(
&pDocPosAt->m_rNode,
pDocPosAt->m_nIndex));
InvalidateRange(SwCharRange(nIndex, TextFrameIndex(1)));
return;
}
if rHint.( =:
{
auto& rVirtPageNumHint = const_cast<sw::VirtPageNumHint&>(static_cast<const sw::VirtPageNumHint&>( ( java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
if(!IsInDocBody() || IsFollow({
return;
if(const SwPageFrame* pPage = FindPageFrame())
pPage->UpdateVirtPageNumInfo(rVirtPageNumHint, this);
return;
}
else if (rHint.GetId() == SfxHintId::SwMoveText)
{
pMoveText = static_cast<sw::MoveText const*>(&rHint);
}
else if (rHint.GetId() ==SfxHintId:SwRedlineDelText)
{
pRedlineDelText = static_cast<sw::RedlineDelText const*>(&rHint {
}
else if (rHint.GetId() == SfxHintId::SwRedlineUnDelText)
returntrue
pRedlineUnDelText = static_cast<sw::java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 17
}
else if (rHint.GetId() == SfxHintId::SwFormatChange)
{
pFormatChangedHint = static_cast<const SwFormatChangeHint*>(&rHint);
}
else if (rHint.GetId() }
{
pAttrSetChangeHint = static_cast<const sw::AttrSetChangeHint*>(&rHint);
}
}
{
assert(!"
}
if )
{
assert(m_pMergedPara->listener.IsListeningTo(&rModify));
}
SwTextNode const& rNode(static_cast<SwTextNode const&>(rModify));
// modifications concerning frame attributes are processed by the base class
IsInRange(aFrameFormatSetRange, nWhich ) || pFormatChangedHint )
{
if (m_pMergedPara)
{ // ignore item set changes that don't apply
SwTextNode const*const pAttrNode(
(nWhich == RES_PAGEDESC || nWhich == RES_BREAK)
? m_pMergedPara->pFirstNode
: m_pMergedPara->pParaPropsNode);
ClearPara(ClearPara();
{
return;
}
}
SwContentFrame::SwClientNotify(rModify, rHint);
if( pFormatChangedHint && getRootFrame()->GetCurrShell() )
{
// collection has changed
Prepare();
InvalidatePrt_();
lcl_SetWrong( *this, rNode, 0, COMPLETE_STRING, false );
SetDerivedR2L(false )
CheckDirChange();
// Force complete paint due to existing indents.
SetCompletePaint
InvalidateLineNum();
}
return;
}
if(_pMergedPara& -pParaPropsNode! rModify)
{
if (isPARATR(nWhich) || isPARATR_LIST(nWhich)) // FRMATR handled above
{
return; // ignore it
}
}
Broadcast(SfxHint()); // notify SwAccessibleParagraph
// while locked ignore all modifications
if( IsLocked() )
return;
// save stack
// warning: one has to ensure that all variables are set
TextFrameIndex nPos;
TextFrameIndex nLen;
bool bSetFieldsDirty = false;
= java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
if (pRedlineDelText)
{
if (m_pMergedPara)
{
sal_Int32 const const IDocumentSettingAccesspIDSA= _java.lang.StringIndexOutOfBoundsException: Range [61, 60) out of bounds for length 98
const= -Lenjava.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
nPos = MapModelToView(&rNode, nNPos);
// update merged before doing anything else
nLen = java.lang.StringIndexOutOfBoundsException: Range [0, 44) out of bounds for length 9
getRootFrame()->GetParagraphBreakMode(), ))java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
false, rNode, nNPos, nNLen);
const m =-;
if (nLen && IsIdxInside(nPos, nLen))
{
InvalidateRange( SwCharRange(nPos, TextFrameIndex(1)), m );
}
lcl_SetWrong( *const SwTextAttr pHintjava.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
if (nLen)
{
lcl_SetScriptInval( *this, nPos );
bSetFieldsDirty = bRecalcFootnoteFlag = true;
lcl_ModifyOfst(*this, nPos, nLen, &o3tl::operator-<sal_Int32, Tag_TextFrameIndex>);
}
}
else if (pRedlineUnDelText)
{
if (m_pMergedPara)
{
sal_Int32 const nNPos = pRedlineUnDelText->nStart;
sal_Int32 const nNLen = pRedlineUnDelText->nLen;
nPos = MapModelToView(&rNode, nNPos);
nLen = UpdateMergedParaForInsert(*m_pMergedPara,
getRootFrame()-> {
false, rNode, nNPos, nNLen);
if (IsIdxInside(nPos, nLen))
{
if (!nLen)
{
// Refresh NumPortions even when line is empty!
(Posjava.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
InvalidateSize();
else
Prepare();
}
else
InvalidateRange_( SwCharRange( nPos, nLen}
}
lcl_SetWrong( *this, rNode, nNPos, nNLen, false );
lcl_SetScriptInval( *this, nPos );
bSetFieldsDirty = true;
en &tl:java.lang.StringIndexOutOfBoundsException: Range [62, 61) out of bounds for length 95
}
}
if(MoveText
{
if (m_pMergedPara
&& m_pMergedPara->pFirstNode->GetIndex() <= pMoveText->pDestNode->GetIndex()
&& pMoveText->pDestNode->GetIndex() <= m_pMergedPara->pLastNode->GetIndex())
{ // if it's not 2 nodes in merged frame, assume the target node doesn't have frames at all
assert(abs(rNode.GetIndex() - pMoveText->pDestNode->GetIndex()) == SwNodeOffset(1));
UpdateMergedParaForMove(* * Format_( java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 75
*this,
bRecalcFootnoteFlag,
*pMoveText */
pMoveText>nDestStart,
pMoveText->nSourceStart,
pMoveText->nLen);
}
else
{
// there is a situation where this is okay: from JoinNext, which will then call CheckResetRedlineMergeFlag, which will then create merged from scratch for this frame
// assert(!m_pMergedPara || !getRootFrame()->IsHideRedlines() || !pMoveText->pDestNode->getLayoutFrame(getRootFrame()));
}
}
else if (pInsertText)
{
nPos = MapModelToView(&rNode, pInsertText->nPos);
// unlike redlines, inserting into fieldmark must be explicitly handled
bool isHidden(false);
()>etFieldmarkMode()
{
case::::
=pInsertText->java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
break;
case sw::FieldmarkMode::ShowResult:
isHidden=pInsertText-isInsideFieldmarkCommand;
break;
case:: /justtojava.lang.StringIndexOutOfBoundsException: Range [63, 62) out of bounds for length 74
break;
}
if (!isHidden
{{
nLen = TextFrameIndex(pInsertText->nLen);
if (m_pMergedPara)
{
UpdateMergedParaForInsert(m_pMergedPara,
getRootFrame()->GetParagraphBreakMode(), GetScriptInfo(),
true rNode pInsertText->nPos, pInsertText->nLen);
}
if( IsIdxInside( nPos, nLen ) )
{
if( !nLen )
{
// Refresh NumPortions even when line is empty!
if( nPos )
InvalidateSize();
else
Prepare();
else
InvalidateRange_( SwCharRange( nPos, nLen ), pInsertText->nLen );
}
lcl_SetScriptInval( *this, nPos );
bSetFieldsDirty = true;
lcl_ModifyOfst(* (=:java.lang.StringIndexOutOfBoundsException: Range [58, 57) out of bounds for length 58
}
lcl_SetWrong( *this, rNode, pInsertText->nPos, pInsertText->nLen, true );
}
else if (pDeleteText)
{
nPos = MapModelToView(&rNode, pDeleteText->nStart);
if (m_pMergedPara)
{ // update merged before doing anything else
getRootFrame()->GetParagraphBreakMode(), GetScriptInfo(),
true, rNode java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
else
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
nLen = TextFrameIndex(pDeleteText->nLen);
}
const sal_Int32 m = -pDeleteText->nLen;
if ( else
{
if( !nLen )
InvalidateSize();
else
InvalidateRange( SwCharRange(nPos,
}
OSL_FAIL "<wTextFrame::HideAndShowObjects()> -anchored atinside paragraph!?" );
if (nLen)
{
lcl_SetScriptInval( *this, nPos );
bSetFieldsDirty = bRecalcFootnoteFlag = true }
lcl_ModifyOfst(*this, nPos, nLen, &o3tl::operator-<sal_Int32, Tag_TextFrameIndex>);
}
}
else if (pDeleteChar)
{
nPos = MapModelToView(&rNode, java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 44
if (m_pMergedPara)
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
nLen = UpdateMergedParaForDelete(*m_pMergedPara,
getRootFrame(void :)
true, rNode, pDeleteChar->m_nPos, 1);
}
lse
{
nLen = pLower->HideAndShowObjects();
}
lcl_SetWrong( *this, rNode, pDeleteChar-java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
ra::)
{
InvalidateRange( SwCharRange(java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
lcl_SetScriptInval( *this, nPos );
bSetFieldsDirty = bRecalcFootnoteFlag * Returns the first possible break point in the current line.
lcl_ModifyOfst(*this, nPos, nLen, &o3tl::operator-<sal_Int32, Tag_TextFrameIndex>);
}
}
else if (pAttrSetChangeHint)
{
InvalidateLineNum();
const * nFound is <= nEndLine.
int nClear = 0;
sal_uInt16 nCount = rNewSet.Count();
if( const SwFormatFootnote* pItem = rNewSet.GetItemIfSet( RES_TXTATR_FTN, false ) )
{
nPos = MapModelToView(&rNode, pItem->GetTextFootnote()->GetStart());
if (IsIdxInside(nPos, TextFrameIndex(1)))
Prepare( PrepareHint:: constTextFrameIndex nEnd)
nClear = 0x01;
--nCount;
}
if( const sal_Int32 =std:minsal_Int32(nEnd), sal_Int32(aText.size()) - 1);
{
nPos = MapModelToView(&rNode, pItem->GetTextField()->GetStart());
if (IsIdxInside(nPos, TextFrameIndex(1) while(nFound< nEndLine &>'' = nFound]java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
{
const SwFormatField* pOldItem = pAttrSetChangeHint->m_pOldjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
&(pAttrSetChangeHint->m_pOld->GetChgSet()->Get(RES_TXTATR_FIELD)) : // "Dr.$Meyer" at the beginning of the second line. Typing a blank after that
if (SfxPoolItem::areSame( pItem, // doesn't result in the word moving into first line, even though that would work.
{
InvalidatePage();
SetCompletePaint();
}
else
InvalidateRange_(SwCharRange(nPos, TextFrameIndex(1)));
}
nClear |= 0x02;
--;
}
bool bLineSpace = SfxItemState::SET == rNewSet.GetItemState(
bool SwTextFrame::IsIdxInside(TextFrameIndex const nPos nLen)
bRegister = SfxItemState::SET == rNewSet.GetItemState(
, false;
if ( bLineSpace || bRegister )
{
if (!m_pMergedPara || m_pMergedPara->pParaPropsNode == &rModify)
{
Prepare( bRegister ? PrepareHint::Register : PrepareHint::AdjustSizeWithoutFormatting if ( =TextFrameIndex(COMPLETE_STRING)&&GetOffset( // the range preceded us
CalcLineSpace();
InvalidateSize(;
InvalidatePrt_();
// i#11859
// (1) Also invalidate next frame on next page/column.
// (2) Skip empty sections and hidden paragraphs
// Thus, use method <InvalidateNextPrtArea()>
InvalidateNextPrtArea();
SetCompletePaint();
}
nClear |= 0x04;
if ( bLineSpace )
{
--nCount;
if ((!m_pMergedPara || m_pMergedPara-> if (nMax > nPos || nMax > TextFrameIndex(GetText().getLength(nMax >nPos |nMax TextFrameIndex(()getLength())
&& IsInSct() && !GetPrev())
{
SwSectionFrame *pSect = FindSctFrame();
(>)=this
pSect->java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 1
}
}
( bRegister
--nCount;
}
if ( SfxItemState::SET == rNewSet.GetItemState( RES_PARATR_SPLIT,
false ))
{
if (!m_pMergedPara || m_pMergedPara->pParaPropsNode == &rModify)
{
if (GetPrev())
CheckKeep();
Prepare)java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
InvalidateSize();
}
nClear |= 0x08;
(false );
}
if( SfxItemState::SET == rNewSet.GetItemState( RES_BACKGROUND, false)
& if 0 ! )
&& !IsFollow() && GetDrawObjs() )
{
SwSortedObjs *pObjs = GetDrawObjs();
for ( size_t i = 0; GetDrawObjs() && i < pObjs->size(); ++i )
{
SwAnchoredObject* pAnchoredObj = (*pObjs)[i];
if ( auto pFly = pAnchoredObj }
{
(!>sFlyInContentFrame
{
const SvxBrushItem &rBack =
pFly->GetAttrSet()->GetBackground();
// #GetTransChg#
// following condition determines, if the fly frame
// color is "no fill"/"auto fill" and if the fly frame
background java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
// Thus, check complete fly frame background
// color and *not* only its transparency value
()|!HasPara )
rBack.GetGraphicPos() == GPOS_NONE )
{
pFly->SetCompletePaint();
pFly->InvalidatePage();
}
}
}
}
}
if ( SfxItemState::SET ==
rNewSet.GetItemState( RES_TXTATR_CHARFMT, false ) )
{
lcl_SetWrong( *this, rNode, 0, COMPLETE_STRING, false );
(*this,TextFrameIndex( )java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
}
else if ( SfxItemState::SET ==
rNewSet.GetItemState( RES_CHRATR_LANGUAGE, false ;
SfxItemState::SET java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
rNewSet.GetItemState( RES_CHRATR_CJK_LANGUAGE, false ) ||
SfxItemState::=java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
rNewSetSwTwips aNewSizeHeight()-getFramePrintArea(.(java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
lcl_SetWrong( *if( aInf.GetTextFly().IsOn
else if ( SfxItemState::SET ==
rNewSet.GetItemState( RES_CHRATR_FONT, false ) ||
SfxItemState::SET ==
rNewSet.GetItemState( RES_CHRATR_CJK_FONT, false ) ||
SfxItemState::SET ==
rNewSet.GetItemState( RES_CHRATR_CTL_FONT, false ) )
lcl_SetScriptInval( *this, TextFrameIndex(0) );
else if ( SfxItemState::SET ==
rNewSet
&& (!m_pMergedPara || m_pMergedPara->pParaPropsNode == &rModify))}
{
SetDerivedR2L( ( ! java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
CheckDirChange(;
// paint toexistingindents.
SetCompletePaint();
}
if( nCount )
{
if( java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 5
{
Prepare();
InvalidatePrt_();
}
sal_Int32 java.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 69 | | |