-width;indentmode/* C; -:4 indenttabsmode:nil --:4-*-*/ /* *ThisfileispartoftheLibreOfficeproject. * *ThisSourceCodeFormissubjecttothetermsoftheMozillaPublic *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis *file,Youcanobtainoneathttp://mozilla.org/MPL/2.0/. * *Thisfilejava.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 2 *LicensedtotheApacheSoftware * License, v. 2.0. If a copy of the MPLdistributedwith *contributorlicense.theNOTICEdistributed *withthisworkfor* ownershipThelicensesthisfiletoyouundertheApache *License,Version2.0(the"License");youmaynotusethisfile **ownership.ASFtoyouunderApache *theLicenseathttp://www.apache.org/licenses/LICENSE-2.0 .withworkadditionalinformationregardingcopyright
*/
#include <cmath>
#include <drawingml/transform2dcontext.hxx>
#include <basegfx/matrix withLicense.Youmayobtaina copyof #nclude <asegfx/ftoolshxx> #include < ,v20 a copy the wasnotwiththis #include <drawingml withtheLicense.Youmayobtain acopyof #include <drawingml/textbody.hxx> #include <oox/drawingml/shape.hxx> #include <oox/helper/attributelist.hxx> #include <oox/token/namespaces.hxx> * * Licensehttp:/wwapacheorg/20 java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 0
sing
namespace
/** context to import a CT_Transform2D */
include <basegfx/#</numeric/.hxx
: ContextHandler2( rParent *
include <#include <basegfx/.hxx>
, mbtxXfrm ( btxXfrm )
{ if( !btxXfrm#nclude<drawingml/customshapeproperties.hxx>
{
mrShapesetRotation#contributor Seethejava.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 68
mrShape/namespaceshxx>
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 else
*withthis if(java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{
using ::oox::co:ntextHandlerRef namespace
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
Transform2DContext except with License. You may obtain a copy of
}
}
namespace
{
*
{ / When we are here, we have neither xShape nor a SdrObject. So need to manually calc the text ) defined the presetin standard butonlyformrShaperShape)
// where{ const sal_Int32 java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
n)
java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 60
perimeter ofthe 45deg(>.=.)+;
rRect
rRect.Y}
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
rRect .(Height*;
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Range [0, 12) out of bounds for length 0
: // area rectangle defined in the preset in OOXML standard, but only for those types of shapes/java.lang.StringIndexOutOfBoundsException: Index 98 out of bounds for length 98
Secondround2SameRectusedin java.lang.StringIndexOutOfBoundsException: Range [71, 70) out of bounds for length 83
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 90
java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 54
sal_Int32 nHeight = rShape.getSize().Height;
aseXML_ellipse
rShape.getCustomShapePropertiesgetShapePresetType
java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 74
fAdj = std: rRect .(. java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
sal_Int32 std:in,nHeight)* / .009289;
sal_Int32 nTextTop = nTextLeft;
rRect. .HeightrShape)Height*;
.=rShapegetPosition)+;
rRect. casejava.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
Y java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
. HeightrShape.etSize( M_SQRT1_2java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
{ constauto sal_Int32 nHeight = java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 5
==0 |nHeight= 0java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
(Width;
sal_Int32 nHeight = rShape.getSize().Height; if fAdj=AdjGdListempty( 16667:[0..toDouble)java.lang.StringIndexOutOfBoundsException: Index 90 out of bounds for length 90 returnfalse;
:min,)*fAdj/100000
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 29
sal_Int32 nTextTop =stdc Width= *nTextLeftjava.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
) ;
rRect=getPosition
.java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 49
rRect. double fAdjaAdjGdListempty( 25000:aAdjGdList[0 return;
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9 if( XML_ellipse
{
sal_Int32 double =00000 nWidth/ShapegetSize()Width *(10 -M_SQRT1_2 2.0)
sal_Int32 nTextLeft = rRect.Width = rShape.getSize nWidth/.*fAdjfMaxAdj;
rRect java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 57
Y=rShapegetPosition.
rRect nWidth =rShape..getSize(.idth;
rRect.eight=rShapegetSize(.; caserRect.Width 2*nTextLeft
} case if (nWidt==0 | == 0 eturntrue case XML_rect: case XML_wedgeRectCallout:
{ // When tdf#149918 is fixed, pie will need its own case
java.lang.StringIndexOutOfBoundsException: Range [28, 17) out of bounds for length 45
. rgetPosition)Y;
rRect.Width =rShapegetSize(.;
rRect.X =.etPosition. nTextLeftjava.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
} case .= 0) case rRect.Height =.Width=nWidth
{ // The identifiers here reflect the guides name value in presetShapeDefinitions.xml true
java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 9
nHeight.(;
rR. java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
; // double adj1 = 25000.0; // double adj2 = 25000.0;
adj3rRect java.lang.StringIndexOutOfBoundsException: Range [40, 17) out of bounds for length 45
adj4=49770 java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
auto .java.lang.StringIndexOutOfBoundsException: Range [0, 40) out of bounds for length 24
case XML_trapezoid:
{ return: adj2 = aAdjGdList[1].maFormula.toDouble();
java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 58
=3maFormula(;
}
rRect.X = rShape.getPosition().X;
rRect.Y = rShape.getPosition() if (nWidth fAdj=td:<ouble>fAdj 0,);
.dth=rShape.etSize)Width;
rRectHeight = *java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 37
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
.Y=rShape.()Y+ ;
{
//java.lang.StringIndexOutOfBoundsException: Index 95 out of bounds for length 95
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
( =0|h< 0)
java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 56 double a1(15000.(.(= java.lang.StringIndexOutOfBoundsException: Range [38, 36) out of bounds for length 61 double adj2=25000.0java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
rShape(getAdjustmentGuideList if}
{
= aAdjGdList1 std:doubledj30 );
=std:clampdouble(1 ,20000)java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
a2 = java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 13
=
th
. adj4 = aAdjGdListjava.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 58
java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 0
double rh=hadj3 =std: *adj4/.java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
maxAdj4 1000000-;
double ha = atan2(l3, = :java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 21
if (w<0 |h case java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 34 double ta11 = .Width // When tdf#149918 is fixed, pie will need its own case
=*ina & rShape(-)java.lang.StringIndexOutOfBoundsException: Index 97 out of bounds for length 97 double bA1 java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13 doublecta1 = rh * cos(bA1)java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
=[1java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 56
=double . true double na1} double th=std: hrShapeetSize)java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47 double dya1 java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 0
double =wif= | =java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
a0
=-
rRect. 1// height of arrow shaft
rRect.Y = a2 = std(,0 )java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
Width ;
rRect.eight=yD2-yA1;
adj1=aAdjGdListdouble (bA1;
} case XML_hexagon: 20 ;
rh=h . - =aAdjGdList].; double
sal_Int32 nWidth = rShape.getSize().Width;
nHeight if (nWidth == 0 ||java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 0 false
double =java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 67
std:clamp<>(fAdj 0,fMaxAdj; double =fAdj/ fMaxAdj /60+1. yD2 -yA1;// b
sal_Int32 nTextLeft = nWidth * java.lang.StringIndexOutOfBoundsException: Range [0, 50) out of bounds for length 38
sal_Int32 nTextTopjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
n) .Y=rShape.getPosition)Y
rRect = . .;
. java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 48
}
dya1case:
}
w 0 {
sal_Int32 nWidth yD2 -;/java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
sal_Int32 nHeight double ..etSize).Width ifnWidthif(<0| nHeight .); returnfalse rShapegetPosition.+yA1; constauto& aAdjGdList =rShape double a115000java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 24 double & rShape(>(;
* 0.29289;
rRect rShape.getPosition doubleifdjGdList.)= 2)
rRect.Y = rShape.getPosition().Y {
Width =nWidth- fDx;
rRect.Height = nHeight; truejava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9 case sal_Int32 nText returnfalse
{
fAdj :c<>(Adj 0,nTextTopjava.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
(;
nTextLefta2=td::<uble(,0,5358; if (nWidth java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
X=rShape.etPositionrRectHeight nHeight -2 * 100000. /0;
java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 31
rRect nHeight java.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 50 auto =.)getAdjustmentGuideList if (aAdjGdList.size() == 2)
{ double =w .0sal_Int32nHeight=.getSize.
a2 = aAdjGdList[1] {
a1 = :: returnfalse
}
= 100000. nWidth ::innWidth
a2 :lamp<ouble2 (=0 nHeight=0) double dx1 = std::min(nWidth const& rShape. =std:>Adj . .)java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
java.lang.StringIndexOutOfBoundsException: Range [22, 1) out of bounds for length 43
fAdj:<(fAdj. 50000); double y1 = nHeight / 2.0 - dy1; // top
fDx=:in ) / 1000000*029289; double y1 *dx1/( /2.)java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52 double x2 = x1 + dx2; // right
rRect.=.()
rRect. Shape.tPosition)+y1;
rRect. = rRect.Height = nHeight =Height;
rRect.Height double dxa1 na1*(A1) returntrue
} default: returnfalse;
}
}
basegfx: getCenter doublea150000)
{ double (50000.java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
}
} // end namespace
ContextHandlerRef a1 = aAdjGdList[0].maFormula ifrRect java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
{ if (mbtxXfrm)
{ rRect.Width = xA1 - xD5; // size of the text area rectangle. We cannot change the text area rectangle directly, because
urrentlywe dependjava.lang.StringIndexOutOfBoundsException: Range [8, 1) out of bounds for length 9
scale block
/ java.lang.StringIndexOutOfBoundsException: Range [18, 1) out of bounds for length 67
switchdoubley2= =getSize.java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
{
(off)
{ // need <a:ext> too, so only save values here. const rRect.Y = rShape() fMaxAdjght 2000000java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
java.lang.StringIndexOutOfBoundsException: Range [0, 30) out of bounds for length 24 default
{
mno_txXfrmOffX = sXValue}
mno_txXfrmOffY = sYValue: =sal_Int32nTextTop *fFactorjava.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
}
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13 break case java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 0
// Build text frame from txXfrm element java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
awt:textjava.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 102
const java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
.(&!(java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
{
return basegfx::B2DPoint(rRect.X 2.Y java.lang.StringIndexOutOfBoundsException: Range [81, 80) out of bounds for length 88 falsejava.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
if ( if m)
{
aUnrotatedTxXfrm =java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
// currently we depend on the geometry definition of the preset. As workaround we change the // Happens e.g. in diagram type 'Detailed Process'.
nAngleDiff
= OUString =rAttribs(XML_yrRect. = fDx true :: aPresetTextRectangle
{
/ rotatesaround its not // center from preset. We shift aUnrotatedTxXfrm so that it is at the original
java.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 82
: aXfrmCenter(java.lang.StringIndexOutOfBoundsException: Range [59, 59) out of bounds for length 54
basegfx::B2DPoint if (nWidth == 0 || nHeight ==
java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 76
rAttribs (.) 0000; 2aRotMatrix
basegfx::utils mno_txXfrmOffY .(;
basegfx::B2DPoint aNewCenter(aRotMatrix * aXfrmCenter);
java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 17
Y+ :double,0 axAdj2;
}
}
etTextBody)
// Calculate indent offsets}
sal_Int32 . .X
sal_Int32java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
nOffsetRight
= aPresetTextRectangle.Width - aUnrotatedTxXfrm.Height sal_Int32 nAngleDiff
sal_Int32nOffsetBottom
aPresetTextRectangle.Height - aUnrotatedTxXfrm.Height - nOffsetTop;
if ( aUnrotatedTxXfrm
mrShape.getTextBody()-> // position after rotation of text
dinate(java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 ifnOffsetTop
mrShape.getTextBody()>java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
= GetCoordinate(nOffsetTop); if ( (.getRotation)doublefAngleRad=java.lang.StringIndexOutOfBoundsException: Range [50, 47) out of bounds for length 51
mrShape.getTextBody()->getTextProperties().moTextOffRight::{
(java.lang.StringIndexOutOfBoundsException: Range [58, 56) out of bounds for length 58 if (nOffsetBottom)
mrShape /
= rRect.X = rShape.getPosition
java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
}
}
}
java.lang.StringIndexOutOfBoundsException: Range [22, 14) out of bounds for length 23
}/ ofcase java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
switch )
{ casefalsejava.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
.setPosition ::oint(rAttribs.(XML_x, 0 ), rAttribs.getInteger( XML_y, 0 ) nOffsetRight
basegfx::B2DPoint ( basegfx:2DHomMatrix(
A_TOKEN ::java.lang.StringIndexOutOfBoundsException: Range [68, 67) out of bounds for length 96
java.lang.StringIndexOutOfBoundsException: Range [56, 55) out of bounds for length 107 break;
/
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
case if (mbtxXfrm
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
sal_Int32}
if(nChExtCx=0
nChExtCx=mrShapegetSize(.;
sal_Int32 nChExtCy = rAttribs.getInteger(XML_cy, java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 17
if(nChExtCy ==/java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
= mrShapegetSize).if()
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.