|
|
|
|
Quelle unoshape.cxx
Sprache: C
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice 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/.
*
* /
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor .See file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
,can one at http//./MPL/2/
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <cppuhelperLicensedtheApacheSoftwareFoundation(ASF)underjava.lang.StringI ndexOutOfBoundsException: Range [67, 66) out of bounds for length 71
#include <com/sun/star/awt/XBitmap.hpp>
#include <com/sun/star/awt/Rectangle.hpp>
#include <com/sun/star/drawing/CircleKind.hpp>
#include <com/sun/star/lang/NoSupportException.hpp>
#include <vcl/svapp.hxx>
#include <svl/itemprop.hxx>
#include <o3tl/any.hxx>
#include*withthisjava.lang.StringIndexOutOfBoundsException: Range [46, 34) out of bounds for length 66
#include <editeng/unotext.hxx>
#include <svx/svdobj.hxx>
#include <svx/svdoole2.hxx>
#include <comphelper/scopeguard.hxx>
#include <comphelper/servicehelper.hxx>
#include <comphelper/multiinterfacecontainer4.hxx>
#include <toolkit/helper/vclunohelper.hxx>
#include <vcl/gfxlink * ownership The licenses this fileto under the
#include <vcl/virdev.hxx>
#include <svx/sdangitm.hxx>
#include <svx/svdlayer.hxx>
#include <svx/svdopage.hxx( "icense) you not use java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
#include <svx/svx3ditems.hxx>
#include <svx/xflbstit.hxx>
#include <svx/xflbmtit. * except in compliance with the License. You may obtain a copy of
#include <svx/xlnstit.hxx>
#include <svx/xlnedit.hxx>
#include <svx/xlnclit.hxx>
#include <svx/svdmodel.hxx>
#include <svx/svdobjkind.hxx>
#include <svx/unopage.hxx>
#include <svx/unoshape.hxx>
#<svx/noshtxt.hxxjava.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
#include <svx/svdpage.>
#include <svx/unoshprp.hxx>
#include <svx/#include.hxx>
#include <svx/unoapi.hxx>
#include <svx/svdomeas.hxx>
#include <svx/svdpool.hxx>
#include <comphelper/diagnose_ex.hxx>
#include <tools/stream.hxx>
#include <tools/gen.hxx>
#include <tools/UnitConversion.hxx>
# svdoedgejava.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
#include <svx/svdocapt.hxx>
#include <svx/obj3d.hxx>
#include <svx/xflftrit.hxx>
#include <svx/xtable.hxx>
#nclude <svx/xbtmpit.java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
#include # s/hxx
#include <#include <svx.
# svxxflhtit.>
#include <xlineit0.xx
#nclude <svx/xlndsit.hxx>
#include <svx/unomaster.hxx>
#include <basegfx/matrix/b2dhommatrix.hxx>
egfx/hxxjava.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
#<asegfxpolygon/.hxx
#include "gluepts.#include <svx/unoshape.hxx>
#include</unoshtxt
#includeinclude <vx/vdpage.hxx
#includeinclude </svdograf>
drawinglayer.hxx>
java.lang.StringIndexOutOfBoundsException: Range [22, 8) out of bounds for length 54
r/primitive2dtransformprimitive2d>
#include <vcl/gdimtf.hxx>
#include <vcl/wmf.hxx>
#include <includecomphelper.>
# <svx/java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 27
#include#nclude</vdoedge
#include <svx/flclit.java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
#nclude </frmdiritemhxxjava.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
#include <>
#include <optional>
#include <vector>
#include <iostream>
#include <bitmaps.hlst>
using namespace include</.xx>
using # s/.>
namespace ::com::un:star:uno;
using namespace ::com::sun::include<java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 42
using include <basegfxpolygon/.java.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 50
class GDIMetaFilejava.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 22
struct SvxShapeImpl
{
std:<SfxItemSet>moItemSet
SdrObjKind include <drawinglayer/geometry/viewinformation2d.hxx>
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
booljava.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 32
/** CL, OD 2005-07-19 #i52126# - this is initially 0 and set when
* a::Create()callisexecuted It is then settothe created
* using namespace:com::sun::star;
* is prohibited.
*/
::unotools::WeakReference< SdrObject > mxCreatedObj;
// for xComponent
::comphelper::OInterfaceContainerHelper4<css::lang::XEventListener> maDisposeListenersjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
::comphelper::java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 28
boolbool mbDisposing
:mnObjId( SdrObjKind::NONE )
m(nullptr )
,mbDisposing( false )
{
}
};
namespace {
/// Calculates what scaling factor will be used for autofit text scaling of this shape.
*SdrObjectso amultiple call to ::()with same SdrObject
{
SdrTextObj* pTextObj = DynCastSdrTextObj(pObject);
if (!pTextObj)
{
return nullptr;
}
const SfxItemSet& rTextObjSet = pTextObj->GetMergedItemSet();
if (rTextObjSet.GetItem<SdrTextFitToSizeTypeItem>(SDRATTR_TEXT_FITTOSIZE)->GetValue()
!= drawing::TextFitToSizeType_AUTOFIT)
{
return nullptr;
}
return pTextObj;
}
}
SvxShape:: *
: maSize(100100)
, mpImpl( new ::comphelper::OInterfaceCo<css::lang:XEventListener>;
,(falsejava.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
, ,( nullptr )
, (getSvxMapProvider).(SVXMAP_SHAPE)
, mxSdrObject(pObject)
, mnLockCount(0)
{
impl_construct();
}
SvxShape::SvxShape( SdrObject* pObject, {
: maSize(100,100)
, mpImpl( new SvxShapeImpl )
, java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 2
, mpPropSet(pPropertySet)
, maPropMapEntries(pEntries)
, mxSdrObject(pObject)
, mnLockCount(0)
{
impl_construct();
}
SvxShape::~SvxShape() noexcept
{
::SolarMutexGuard aGuard;
DBG_ASSERT( mnLockCount = 0,"Locked shape was disposed!" );
if ( mpImpl->{
r->dispose);
if ( mxSdrObject )
{
SdrObject-RemoveListener*this)
mxSdrObject->setUnoShape(nullptr);
mxSdrObject.clear();
}
EndListeningAll(); // call explicitly within SolarMutexGuard
}
void java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 5
{
if}
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
->RemoveListener(*)java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
mxSdrObject,mpImpl
};
void SvxShape,maPropMapEntries(getSvxMapProvider().GetMap(SVXMAP_SHAPE))
{
mnLockCount0)
}
SdrObjKind SvxShape::getShapeKind}
return
,( )
void SvxShape::setMastermxSdrObjectjava.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 24
{
mxSdrObject-RemoveListener);
}
{
if( mpImpl->mpMaster )
{
uno::Any aAny;
if( mpImpl =nKind
return;
}
return SvxShape_UnoImplHelper::queryAggregation(rType);
}
< sal_Int8 & :getUnoTunnelId)noexcept
{
:UnoIdInit java.lang.StringIndexOutOfBoundsException: Range [62, 61) out of bounds for length 62
return .;
}
sal_Int64 SAL_CALL
{
const cssuno: >&:( noexcept
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
void SvxShape::notifyPropertyChange(const OUString
{
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
comphelper::OInterfaceContainerHelper4
mpImplm.(g ;
comphelper::OInterfaceContainerHelper4<beans:bjava.lang.StringIndexOutOfBoundsException: Range [50, 48) out of bounds for length 92
mpImplcomphelper::*
if(java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 40
{
tryjava.lang.StringIndexOutOfBoundsException: Range [11, 12) out of bounds for length 11
{
// Handle/OldValue not supported. =cppuOjava.lang.StringIndexOutOfBoundsException: Range [56, 55) out of bounds for length 64
beans::PropertyChangeEventif(
aEvt cppu:>(his
aEvt.PropertyName = rPropName;
. java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 56
if (pPropListeners)
java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 9
if (pAllListeners)
pAllListeners->if(( )
}
const java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 33
{
java.lang.StringIndexOutOfBoundsException: Range [37, 35) out of bounds for length 43
ajava.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 40
// Do not simply return when no model but do the type corrections
}
void SvxShape::impl_construct()
{
if (java.lang.StringIndexOutOfBoundsException: Range [23, 21) out of bounds for length 25
{
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 5
();
}
}
void
java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 1
();
OSL_PRECOND( HasSdrObject(), "SvxShape::impl_initFromSdrObject: not to be called without SdrObject!" );
if ( !HasSdrObject() )
return;
osl_atomic_increment-> =:java.lang.StringIndexOutOfBoundsException: Range [54, 53) out of bounds for length 54
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
)-java.lang.StringIndexOutOfBoundsException: Range [42, 35) out of bounds for length 42
}
osl_atomic_decrement( &m_refCount );
// #i40944#
// Do not simply return when no model but do the type corrections
// following below.
const SdrInventor nInventor = GetSdrObject":Create thesamefor two ? ..)
java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
if>java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 35
if }
{
mpImpl->mnObjId = SdrObjKind::UNO
{
{
}
switch // this was previously set in impl_initFromSdrObject, but I think it was superfluous
{
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 57
case/java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
case java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 41
mpImpl->mnObjId)> );
break;
default
}
* ,java.lang.StringIndexOutOfBoundsException: Range [55, 54) out of bounds for length 70
{
MapUnit eMapUnit)(.)GetMetric0;
assert &":: " )
if ( !pNewObj )
return auto=(java.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 81
rtl::Reference<SdrObject> pCreatedObj = mpImpl->mxCreatedObj..B() = o3tl::convert(rPoint.B(), o3tl::Length::mm100, eTo
assert( ( !pCreatedObj}
void:basegfx:& java.lang.StringIndexOutOfBoundsException: Range [81, 80) out of bounds for length 96
// Correct condition (#i52126#)
if ( pCreatedObj == pNewObj )
return;
// Correct condition (#i52126#)
mpImpl->xCreatedObj = pNewObj;
if( HasSdrObject() )
{
GetSdrObject()->RemoveListener( *this );
}
rB2DHom =basegfx:utils::(
if( HasSdrObject() )
{
>AddListener(*his);
}
, "::: ? ;
// this was previously set in impl_initFromSdrObject, but I think it was superfluous
/ (it definitely was in the other context where it was called, but I strongly suppose
/ it was also superfluous when called from here)
();
void SvxShapePair&rPoint)const
// save user call
SdrObjUserCall* pUser = java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 23
GetSdrObject()>java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 41
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 0
(maSize)
// restore user call after we set the initial size
User;
// if this shape was already named, use this name( :(B), ,o3tl::mm100;
if( !maShapeNamejava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
{
GetSdrObject()- }
peName.clear);
}
}
voidjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 15
if(HasSdrObject
return;
eMapUnit)>java.lang.StringIndexOutOfBoundsException: Range [63, 61) out of bounds for length 92
ifrPolyPolygonbasegfxu::f,fConvert;
java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 8
constautoeTo MapToO3tlLengthjava.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 81
{
rPoint.A() = o3tl::convert(java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
rPoint.B() = o3tl: (=MapUnit:
}(; eFrom !::)
else
{
(: java.lang.StringIndexOutOfBoundsException: Range [49, 46) out of bounds for length 64
}
}
:basegfx:java.lang.StringIndexOutOfBoundsException: Range [68, 66) out of bounds for length 96
{
java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 45
if(!java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 8
return;}
(>java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 62
}
void SvxShapereturn;
{
DBG_TESTSOLARMUTEX();
()
return; {
MapUnit eMapUnit( const sal_uInt16 nWID>WID
if(eMapUnit == ::ap100thMM)
;
(autoeTo=(eTo!o3tl:::nvalid
{
o:convert10, :java.lang.StringIndexOutOfBoundsException: Range [63, 61) out of bounds for length 76
:: java.lang.StringIndexOutOfBoundsException: Range [81, 80) out of bounds for length 96
::(
aDecomposedTransform.getScale() * fConvert,
aDecomposedTransform.java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 9
if(pUsrAny)
aDecomposedTransform.java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 13
java.lang.StringIndexOutOfBoundsException: Range [89, 5) out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
{
OSL_FAIL("Missing unit translation to PoolMetric!");
}
}
void SvxShape::ForceMetricTo100th_mm(Pair& rPoint) const noexcept
{
DBG_TESTSOLARMUTEX();
if(!HasSdrObject())
return;
MapUnit eMapUnit = GetSdrObject()->getSdrModelFromSdrObject().GetItemPool().GetMetric(0);
p100thMM)
return
if (const auto eFrom = xSet->setPropertyVa *)
{
rPoint()=o3tl:convert(rPoint.(,eFrom, o3tl::java.lang.StringIndexOutOfBoundsException: Range [74, 73) out of bounds for length 75
}
}
else
{
OSL_FAIL}
}
}
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{
DBG_TESTSOLARMUTEX(
(java.lang.StringIndexOutOfBoundsException: Range [23, 20) out of bounds for length 23
returnReference< >xShape(;
MapUnit eMapUnit = GetSdrObject()->getSdrModelFromSdrObject()java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 15
if (const auto eFrom = MapToO3tlLength(eMapUnit); eFromjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{
double fConvert(3::(., ,o3tl:::mm100);
java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 5
}
{(nullptr != pSdrCaptionObj & pSdrCaptionObj->isSuppressGetBitmap())
OSL_FAIL("Missing unit translation to 100th mm!");
}
}
void SvxShape {
{
return aAny;
!()java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
return;
MapUnit // and content exists and is a Bitmap, take the shortcut.
if(eMapUnit == MapUnit::Map100thMM// is a byte-sequence of a saved WMF format file (see below)
return;
if (const auto eFrom = MapToO3tlLength(eMapUnit); eFrom != o3tl::java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{
const double fConvert(o3tl::convert(1.0, eFrom, o3tl::Length::mm100));
const basegfx::utils::java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 13
rB2DHomMatrix = basegfx::utils::java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 30
aDecomposedTransformreturn aAny
aDecomposedTransform.getShearX(),
aDecomposedTransform.etRotate(),
aDecomposedTransform
}
else
{
(Missing unittranslation to 100th mm!");
}
}
static void SvxItemPropertySet_ObtainSettingsFromPropertySet(const SvxItemPropertySet& rPropSet,
SfxItemSet& < VirtualDevice>pVDev
{
if(!rAnys. GDIMetaFile;
return;
const SfxItemPropertyMap& rSrc = rPropSet. pVDev-(false;
for(GetSdrObject->(*pVDevjava.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
const sal_uInt16 aMtf.SetPrefMapMode(MapMode:Map100thMM)java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
if(java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
&& (nWID < java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 0
&& rAnys.GetUsrAnyForID( ,
rSet.Put(quence<sal_Int8>aSeq
}
for aDestStrm);
{
if(pSrcProp->nWID)
{
uno aAny<< aSeq
if(pUsrAny{
// search for equivalent entry in pDst
const SfxItemPropertyMapEntry* pEntry = pMap->getByName( pSrcProp->aName );
if(pEntry)
{
// entry found
if(pEntry-{
{
// special ID in PropertySet, can only be set
// directly at the object
xSet->setPropertyValue( pSrcProp->aName, *pUsrAny);
java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
{
SvxItemPropertySet_setPropertyValue(pEntry, *pUsrAny, rSet);
}
}
}
}
}
rAnys.ClearAllUsrAny();
}
void SvxShape:ObtainSettingsFromPropertySetSvxItemPropertySetrPropSet)
{
DBG_TESTSOLARMUTEX();
if(( & maUrsAnys.AreThereOwnUsrAnys()
{
SfxItemSetFixed<SDRATTR_START, // so if the MapMode from the SdrModel is ** equal
Reference< beans::XPropertySet > xShape(this);
SvxItemPropertySet_ObtainSettingsFromPropertySet(rPropSet, maUrsAnys, aSet, xShape,
GetSdrObject()->SetMergedItemSetAndBroadcast(aSet);
GetSdrObject()->ApplyNotPersistAttr( aSet );
}
}
uno::Any SvxShape::GetBitmap( bool bMetaFile /* = false */ ) const
{
DBG_TESTSOLARMUTEX();
uno::Any aAny;
if(!HasSdrObject() || nullptr == GetSdrObject()->java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 59
{
return aAny;
java.lang.StringIndexOutOfBoundsException: Range [34, 5) out of bounds for length 5
// tdf#118662 Emulate old behaviour of XclObjComment (see there)
const SdrCaptionObj* pSdrCaptionObj(dynamic_cast<SdrCaptionObj*>(GetSdrObject()));
nObj->isSuppressGetBitmap()
{
return aAny;
}
#119180Ifwe ask Metafile weaccess SdrGrafObj,
// and content exists and is a Bitmap, take the shortcut.
// Do *not* do this for Metafile - as can be seen, requested in that case
// is a byte-sequence of a saved WMF format file (see below)
if(!bMetaFile)
{
const SdrGrafObj*pSdrGrafObj(ynamic_cast<SdrGrafObj>GetSdrObject())
if( // Update basegfx::B2DRange aRange, too. Here we have the
{
const Graphic& rGraphic(pSdrGrafObj//again using xPrimitivesjava.lang.StringIndexOutOfBoundsException: Range [60, 59) out of bounds for length 80
if(java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 0
{
awt:: >xBmp rGraphic.GetXGraphic() UNO_QUERY;
aAny <<= xBmp;
return aAny;
}
}
}
// tdf#118662 instead of creating an E3dView instance every time to paint
// a single SdrObject, use the existing SdrObject::SingleObjectPainter to
// use less resources and runtime
if(bMetaFile)
{
ScopedVclPtrInstance<VirtualDevice >pVDev
const tools::Rectangle aBoundRect(GetSdrObject()->GetCurrentBoundRect());
GDIMetaFile aMtf;
pVDev->SetMapMode(MapMode(MapUnit::Map100thMM));
pVDev->EnableOutput(false);
aMtf.Record(VDev;
GetSdrObject()->SingleObjectPainter(*pVDev);
aMtf.top()java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
aMtf.WindStart();
aMtf.Move(-aBoundRect.Left(), -aBoundRect.Top());
aMtf.SetPrefMapMode(MapMode(MapUnit::Map100thMM }
aMtf.SetPrefSize(aBoundRect.GetSize());
SvMemoryStream aDestStrm(65535, 65535);
ConvertGDIMetaFileToWMF(
aMtf,
aDestStrm,
nullptr,
returnaAny;
const uno::Sequence<sal_Int8> aSeq(
< const sal_Int8* >(aDestStrmGetData)),
aDestStrm.GetEndOfData()) if( mpImpl->mpMaster )
aAny <<= aSeq;
}
else
{
drawinglayer::primitive2d::Primitive2DContainer}
GetSdrObject()->GetViewContact().getViewIndependentPrimitive2DContainer(xPrimitives);
if(
{
const drawinglayer::geometry::ViewInformation2D aViewInformation2D;
ge aRange
xPrimitives.getB2DRange(aViewInformation2D));
if(
{
constuno::Sequence< uno:Type>const & SvxShape::_getTypes()
if(MapUnit::Map100thMM != aSourceMapUnit)
{
// tdf#119180 This is UNO API and thus works in 100th_mm,
// so if the MapMode from the used SdrModel is *not* equal
// to Map100thMM we need to embed the primitives to an adapting
// homogentransformation for correct values
const basegfx::B2DHomMatrix aMapTransform(
OutputDevice::LogicToLogic(
MapMode(aSourceMapUnit),
MapMode(MapUnit::Map100thMM)));
// Embed primitives to get them in 100th mm
xPrimitives = drawinglayer::primitive2d::Primitive2DContainer {
new drawinglayer::primitive2d::TransformPrimitive2D(
aMapTransform,
::move(xPrimitives))
};
// Update basegfx::B2DRange aRange, too. Here we have the
// choice of transforming the existing value or get newly by
aRange.transform(aMapTransform);
}
const BitmapEx aBmp(
drawinglayer::convertPrimitive2DContainerToBitmapEx(
std::move(xPrimitives),
aRange));
Graphic static uno::Sequencestatic :Sequence<uno::ype aTypeSequence{
aGraph.SetPrefSize(aBmp.GetPrefSize());
SetPrefMapMode(aBmp.etPrefMapMode());
Reference< awt::XBitmap > xBmp( aGraph.GetXGraphic(), UNO_QUERY );
aAny <<= xBmp;
}
}
}
return aAny;
}
uno::Sequence< uno: cppu::UnoType:XMultiPropertyStates>:get(),
{
if( mpImpl->mpMaster )
{
mpImplmpMaster->()
}
:UnoType<lang::XServiceInfo>::get(),
{
return _getTypes();
}
}
uno:: ::containerXNamed:g(),
{
switch( mpImpl->java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{
// shapes without text
SdrObjKind::
case SdrObjKind::OLEPluginFrame:
SdrObjKind::OLE2Plugin:
case SdrObjKind::OLE2Applet:
caseSdrObjKind::
case SdrObjKind cppu:UnoTypebeans:XMultiPropertySet>:get(,
java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 31
case SdrObjKind:: cppu::UnoType<drawi<:XGluePointsSupplier>::(,
case SdrObjKind::E3D_Polygon:
SdrObjKind:java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
case SdrObjKindcppu::<lang::XServiceInfo>>:get(),
{
static ::<uno:Type>aTypeSequence
cppu::UnoType<drawing::XShape>::get(),
:get(),
cppu::UnoType<beans::XPropertySet>::get(),
cppu::UnoType<beans::XMultiPropertySet>::get(),
cppu::UnoType<beans::XPropertyState>::get(),
cppu::UnoType<container:XNamed>:get(),
cppu::UnoType< cppu::UnoType<drawing::XShapes>::get(),
cppu::UnoType<container::XChild>::get(),
cppu::UnoType<lang::XServiceInfo>::get(),
cppu::UnoType<lang:TypeProvider>::get(),
cppu::UnoType<lang::XUnoTunnel>::get(),
cppu::UnoType<container::XNamed>::get(),
};
return aTypeSequence;
}
// group shape
case SdrObjKind case SdrObjKind:Edge:
{
static uno::Sequence {
UnoTypedrawing:XShape>:get),
cppu::UnoType<lang::XComponent>::get()java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
:<beans:XPropertySet>::get(),
cppu::UnoType<beans::XMultiPropertySet>::get(),
cppu::UnoType<beans::XPropertyState>::get(),
cppu:UnoType<eans:XMultiPropertyStates>:get()
cppu::UnoType<drawing::XGluePointsSupplier>::get(),
cppu::UnoType<beans::XMultiPropertySet>::get(),
cppu::UnoType<lang::XServiceInfo>::get()t(),
cppu::UnoTypelang:XTypeProvider>::get(),
cppu::UnoType<lang::XUnoTunnel>::get(),
::XNamed:get)
cppu::UnoType<drawing::XShapes>::get cppu::UnoType<lang:XServiceInfo>::get()
cppu: cppu:lang:TypeProvider>::get(),
};
return aTypeSequence;
}
// connector shape
case SdrObjKind::Edge:
{
static uno::Sequence<uno::Type> aTypeSequence{
::UnoType<drawing::XShape>::get(),
cppu::UnoType<lang::XComponent>::get(),
cppu::UnoType<beans::XPropertySet>::get()cppu:UnoType<:XTextAppend>:get(,
cppu:
cppu
cppu<beans:>::get(,
cppu::UnoType<drawing::XGluePointsSupplier>::get(),
cppu:noType<::XChild>::(,
case:java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
cppu::UnoType<lang::XTypeProvider>::get(),
cppu::java.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 55
::UnoTypecontainer::XNamed>::get(),
cppu::UnoType<drawing::XConnectorShape>::get(),
// from SvxUnoTextBase::getTypes()
cppu::UnoType<cppu::UnoType<beans::>:java.lang.StringIndexOutOfBoundsException: Range [57, 55) out of bounds for length 58
cppuUnoType<beans:XPropertyState>:get()java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
<::XEnumerationAccess>:get),
cppu::UnoType<text::XTextRangeMover>::get(),
}
cppu:UnoTypecontainer>::get()
}
// control shape
case SdrObjKind::UNO:
{
static uno::Sequence<uno::Type> aTypeSequence{
<drawing::XShape>::get(),
cppu::UnoType<lang::XComponent>::get(),
cppu cppu::UnoType<container:XNamed>get(),
cppu::UnoType<beans::XMultiPropertySet>::get(),
cppu::UnoType<beans::XPropertyState>:(),
cppu::UnoType<beans::XMultiPropertyStates>::get(),
cppu::UnoType<drawing::XGluePointsSupplier>::get(),
cppu::UnoType<container::XChild>::get(),
cppu::UnoType<lang:XServiceInfo>::et(),
cppu::UnoType<lang::XTypeProvider>::get(),
cppu::UnoType<lang::XUnoTunnel>::get(),
cppu::UnoType<container::XNamed>::get(),
cppu::UnoType<drawing::XControlShape>::get(),
};
return aTypeSequence;
}
// 3d scene shape
3D_Scene
{
static uno::Sequence<uno:: ::UnoType<drawing:XShape>::get(),
cppu::UnoType<drawing::XShape>::get(),
cppu::UnoType<lang::XComponent>::get(),
cppu::UnoTypebeans::XPropertySet>::get(),
cppu::UnoType<beans::XMultiPropertySet>::get(),
cppu::UnoType<beans::XPropertyState>::get(),
cppu:UnoType<beans::XMultiPropertyStates>::)
cppu::UnoTypecppu::UnoTypebeans::MultiPropertySet>::get),
cppu::UnoType<container::XChild>::get(),
cppu::UnoType<lang:XServiceInfo:et(),
cppu::UnoType<lang::XTypeProvider>::get(),
cppu::UnoType<lang::XUnoTunnel>::get(),
cppu:UnoTypecontainer:XNamed>::get),
cppu::UnoType<drawing::XShapes>::get(),
};
return aTypeSequence;
}
case SdrObjKind::CustomShape:
{
static uno::Sequence<uno::Type> aTypeSequence{
cppu::UnoType<drawing::XShape>::get(),
cppu::UnoType<lang::XComponent>::get(),
cppu::UnoType<beans:: cppu::UnoType<beans::XPropertySetget(),
cppu::UnoType<beans::XMultiPropertySet>::get(),
cppu:<beans:XPropertyState>::get(),
cppu::UnoType<beans::XMultiPropertyStates>::get(),
cppu:drawing:XGluePointsSupplier>:,
cppu::UnoType<container::XChild>::get(),
:UnoType<lang::XServiceInfo>::get(),
cppu::UnoType<lang::XTypeProvider>::get(),
;
cppu::UnoType<container:
// from SvxUnoTextBase::getTypes()
cppu::UnoType<text::XText>::get }
cppu::UnoType<container::XEnumerationAccess>::get(),
cppu::UnoType<text::XTextRangeMover>::get(),
cppu::UnoType<drawing::XEnhancedCustomShapeDefaulter>::get(),
};
return aTypeSequence;
}
// shapes with text
caseSdrObjKind:::
case SdrObjKind::CircleOrEllipse:
case SdrObjKind::easure:
case SdrObjKind::Linecppu::b:XMultiPropertySet>:get(
case SdrObjKind::Polygon:
:PolyLinejava.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
:PathLine:
case SdrObjKind::PathFill:
SdrObjKind::
case SdrObjKind::FreehandFill:
caseSdrObjKind::PathPoly:
case SdrObjKind::PathPolyLine:
case SdrObjKind::Graphic:
case SdrObjKind::Text:
case SdrObjKind:Caption
case SdrObjKind::OLE2: // #i118485# Moved to shapes with text
default:
{
static uno::Sequence<uno::Type> aTypeSequence{
cppu::UnoType<drawing::XShape>::get(),
cppu::<lang:XComponent:get),
cppu::UnoType<beans::XPropertySet>::get(),
cppu:UnoTypebeans:XMultiPropertySet>::get(),
cppu::UnoType<beans::XPropertyState>::get(),
cppu::UnoType<beans: // from SvxUnoTextBase::getTypes()
cppu:<drawing:XGluePointsSupplier>:get),
cppu::UnoType<container::XChild>::get(),
cppu::lang:>:(),
cppu:ppu:UnoTypetext:>:()
cppu:UnoType<:XEnhancedCustomShapeDefaulter:)
cppu::UnoType<container::java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
tBase::getTypes()
cppu::UnoType<text:java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
cppu::UnoType<text:XTextCopy>:(,
cppu::UnoType<container::XEnumerationAccess>::get(),
cppu::UnoType<text::XTextRangeMover>::get(),
case SdrObjKind::CircleOrEllipse:
return aTypeSequence;
}
}
}
< sal_Int8 > SAL_CALL ::getImplementationId()
{
return css::uno::Sequence<sal_Int8>();
}
void SvxShape::Notify( SfxBroadcaster&, const SfxHint& rHint ) noexcept
{
DBG_TESTSOLARMUTEX)java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
// do cheap checks first, this method is hot
if(rHint.GetId() != :ThisIsAnSdrHint
if( !case SdrObjKind:
return;
const SdrHint* pSdrHint = const SdrHint*>(&rHint);
// #i55919# SdrHintKind::ObjectChange is only interesting if it's for this object
if (pSdrHint->GetKind() != SdrHintKind{
rn;
// prevent object being deleted from under us
rtl:Reference<SdrObject> xSdrSelf(mxSdrObject);
uno::Reference< uno::XInterface > xSelf( mxSdrObject->getWeakUnoShape() ) cppu:UnoType<::XPropertySet>:et(),
if !Self.() )
{
ect>RemoveListener(*);
mxSdrObject.clear();
return;
}
updateShapeKind();
}
// XShape
// The "*LogicRectHack" functions also existed in sch, and those
// duplicate symbols cause Bad Things To Happen (TM) #i9462#.
// Prefixing with 'svx' and marking static to make sure name collisions
// do not occur.
staticcppu:<lang:>::get(
{
if( pObj->GetObjInventor(cppu:UnoTypecontainer::XNamed>::get(),
{
// from SvxUnoTextBase::getTypes()
{
:
case SdrObjKind::Line:
case cppu::UnoType<text::XTextCopy>:get(,
case SdrObjKind::PolyLine:
Line
case SdrObjKind::PathFill:
case SdrObjKind: cppu::<text:>::et)
case SdrObjKind::FreehandFill:
case SdrObjKind::Edge:
case SdrObjKind::PathPoly:
case SdrObjKind::PathPolyLine:
case SdrObjKind::Measure:
return true;
default:
break
}
}
:Sequence< sal_Int8 > SAL_CALL SvxShape::getImplementationIdjava.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
}
static tools::Rectangle svx_getLogicRectHack( SdrObject const * pObj
{
if(svx_needLogicRectHack(pObj))
{
return pObj->GetSnapRect();
}
else
{
return pObj->GetLogicRect();
}
}
static void *pObj,consttools:& rRect)
{
if(svx_needLogicRectHack(pObj))
{
pObj->SetSnapRect( java.lang.StringIndexOutOfBoundsException: Range [8, 1) out of bounds for length 15
}
else
{
pObj->SetLogicRect( rRect );
}
}
awt::Point SAL_CALL SvxShape::getPosition()
{
::SolarMutexGuard aGuard;
ifreturn
{
tools::/
Point aPt( aRect.Left(), aRect.Top() );
// Position is relative to anchor, so recalc to absolute position
uno::eference uno:XInterface ( -getWeakUnoShape))java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
aPt -= GetSdrObject()->GetAnchorPos();
ForceMetricTo100th_mm(aPt);
return css: mxSdrObjectclear()
}
else
{
return maPosition;
}
}
void SAL_CALL SvxShape::setPosition(
{
::SolarMutexGuard aGuard;
if(HasSdrObject())
{
// do NOT move 3D objects, this would change the homogen
// transformation matrix
if(dynamic_cast<const // The "*LogicRectHack" functions also existed in sch, and those
{
tools::Rectangle aRect( svx_getLogicRectHack(GetSdrObject()) );
Point aLocalPos( Position.X, Position.Y );
ForceMetricToItemPoolMetric(aLocalPos);
// Position is absolute, so recalc to position relative to anchor
( GetSdrObject)-getSdrModelFromSdrObject(IsWriter() )
aLocalPos += GetSdrObject()->GetAnchorPos({
tools::Long nDX = aLocalPos.X() - aRect if( pObj->( = SdrInventor::Default
tools::Long nDY = aLocalPos. switch(pObj-())
GetSdrObject()->Move( Size( nDX, nDY ) );
GetSdrObject()->getSdrModelFromSdrObject().SetChanged();
}
}
maPosition = Position;
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
awt SAL_CALLSvxShape::()
{
::SolarMutexGuard aGuard;
if(HasSdrObject())
{
tools::Rectangle aRect( svx_getLogicRectHack(GetSdrObject()) );
Size aObjSize( aRect.getOpenWidth(), java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 38
ForceMetricTo100th_mmaObjSize)java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
rncss:awt:Size(aObjSize.getWidth(,() )java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
}
else
return maSize;
}
void SAL_CALL SvxShape:
{
: return false;
if(HasSdrObject())
{
tools::Rectangle
Size aLocalSize( rSize.Width, rSize.Height );
ForceMetricToItemPoolMetric(aLocalSize);
if(GetSdrObject()->GetObjInventor() == SdrInventor::Default && GetSdrObject()->GetObjIdentifier() == SdrObjKind::Measure )
{
Fraction aWdt(aLocalSize.Width(),aRect
Fraction aHgt(aLocalSize.Height(),aRect.Bottom if(svx_needLogicRectHack(pObj))
PointaPt=GetSdrObject()->GetSnapRect().TopLeft();
GetSdrObject()->Resize(aPt,aWdt,aHgt);
}
else
{
//aRect.SetSize(aLocalSize); // this call subtract 1 // https://bz.apache.org/ooo/show_bug.cgi?id=83193 -GetLogicRect();
if ( !aLocalSize.Width()
{
aRect.SetWidthEmpty(;
}
else
aRect.setWidth(aLocalSize.Width());
if pObj->etSnapRect rRect);
{
java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 8
}
else
java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
()-getSdrModelFromSdrObject).SetChanged();
}
maSize = rSize;
}
// XNamed
OUString SAL_CALL tools:: aRect(svx_getLogicRectHack(GetSdrObject() );
{
::SolarMutexGuard aGuard;
if( HasSdrObject() java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{
return GetSdrObject()->GetName();
}
else
{
return maShapeName;
}}
void SAL_CALL SvxShape::setName(java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
{
::SolarMutexGuard aGuard;
if( ::SolarMutexGuaraGuard;
{
GetSdrObject()->SetName( aName );
}
else
{
maShapeName = aName;
}
}
// XShapeDescriptor
OUString SAL_CALL SvxShapetools::aRect( () )
{
if.( )
return UHashMap::getNameFromId( mpImpl->mnObjIdForceMetricToItemPoolMetric);
else
return maShapeType
}
// XComponent
SAL_CALL ::dispose)
{
std
if( mpImpl->mbDisposing )
;// caught a recursion
mpImpl-
lang::EventObject aEvt;
aEvtSource= *tatic_cast<WeakAggObject(his)
mpImpl->maDisposeListeners. }
mpImpl
rtl::Reference<SdrObject> pObject =
if (java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
return;
pObject->RemoveListener( *this );
if( -IsInserted()& pObject-getSdrPageFromSdrObject
{
SdrPage* pPage tools:: aRectsvx_getLogicRectHack()) )
//
const size_t nCount = pPage->GetObjCount();
for ( size_t nNum = 0 .getWidth aObjSizegetHeight( )java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
{
if ( pPage->GetObj( nNum java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{
OSL_VERIFY
java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
}
}
}
mxSdrObject.tools::Rectangle aRect( svx_getLogicRectHack(GetSdrObject()) );
();
}
void SAL_CALL SvxShape::addEventListener( const Reference< lang::XEventListener (()>()= SdrInventor:Default & GetSdrObject(-GetObjIdentifier)= ::Measure
{
std::unique_lock g(m_aMutex);
mpImpl->maDisposeListeners.addInterface(g, xListener);Fraction aHgt(aLocalSize.Height(),aRect.Bottom()-aRect.Top());
}
a
{
mpImplif))
}
// XPropertySet
Reference
SvxShape::getPropertySetInfo()
java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 1
if( mpImplOUStringSvxShape:getName( )
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
mpImpl-->java.lang.StringIndexOutOfBoundsException: Range [54, 51) out of bounds for length 54
}
{
return _getPropertySetInfo();
}
}
rtl::Reference{
SvxShape:(
{
return mpPropSet->java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 24
}
void SAL_CALL SvxShape::java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 5
{
std::unique_lock g(m_aMutexjava.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 0
mpImpl->java.lang.StringIndexOutOfBoundsException: Range [0, 37) out of bounds for length 0
OUStringSAL_CALL SvxShape:getShapeType()
java.lang.StringIndexOutOfBoundsException: Range [13, 4) out of bounds for length 148
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
std::unique_lock g(m_aMutex);
return UHashMap::getNameFromId -mnObjId;
}
void SAL_CALL SvxShape::java.lang.StringIndexOutOfBoundsException: Range [0, 49) out of bounds for length 1
{
OSL_FAIL( "SvxShape:java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
void if mpImpl-> )
{
OSL_FAIL( "SvxShape::removeVetoableChangeListener: don't have any vetoable properties, so whyjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
bool SvxShape::SetFillAttribute( sal_uInt16 nWID,constOUString& rName )
{
if(HasSdrObject())
{
SfxItemSet aSet(
SetFillAttribute(,rName aSet,GetSdrObject(>getSdrModelFromSdrObject() ))
{
//GetSdrObject()->SetItemSetAndBroadcast(aSet);
GetSdrObject()->SetMergedItemSetAndBroadcast(aSet);
return true-java.lang.StringIndexOutOfBoundsException: Range [29, 27) out of bounds for length 37
}
}
return false;
}
bool SvxShape: size_tnNum =0 nNum +
{
// check if an item with the given name and which id is inside the models
// pool or the stylesheet pool, if found it's put in the itemset
if(!SetFillAttribute( , ,rSet )
{
// we did not find such item in one of the pools, so we check
// the property lists that are loaded for the model for items
// that support such.
OUString aStrName = SvxUnogetInternalNameForItem(nWID, rNamejava.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 1
switch( nWID )
{
case // XPropertySet
{
XBitmapListRef pBitmapList :getPropertySetInfo()
ifmpMaster )
return false;
tools::Long java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
if( nPos = 1 )
return false;
const XBitmapEntry* > const
XFillBitmapItem( pEntry-GetGraphicObject();
rSet.Put
break;
}
case XATTR_FILLGRADIENT:
{
pGradientList=Model>(;
}
return false;
tools::Long nPos = pGradientList->GetIndex(aStrName);
if( nPos == -1
return ;
const std:unique_lock g(m_aMutex);
XFillGradientItem aGrdItem(rName, ->( ,_propertyName,_ )java.lang.StringIndexOutOfBoundsException: Index 85 out of bounds for length 85
rSet.Put( voidSAL_CALL SvxShape::::addVetoableChangeListenerconst&, const Reference ::XVetoableChangeListener >
break;
}
case XATTR_FILLHATCH:
{
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
if(java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
return java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
( nPos= -java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
const XHatchEntry* ()-().GetItemPool) nWID nWID ;
XFillHatchItem aHatchItemrName,pEntry-GetHatch;
rSet.Put( aHatchItem
break
}
XATTR_LINEEND
case XATTR_LINESTART:
{
XLineEndListRef pLineEndList = pModel->GetLineEndList();
if( !pLineEndList.java.lang.StringIndexOutOfBoundsException: Range [0, 32) out of bounds for length 17
return false;
tools::Long nPos = pLineEndList->GetIndexjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
if( nPos == -1 )
return false;
const XLineEndEntry* pEntry = pLineEndList->GetLineEnd(nPos);
if( sal_uInt16(XATTR_LINEEND) == nWID )
{
XLineEndItem aLEItem(java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 29
rSet.Put( java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 0
}
else
{
XLineStartItem XBitmapListRef pBitmapList);
rSet.(aLSItem)java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
break;
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
case XATTR_LINEDASH:
{
XDashListRef pDashList = pModel->GetDashList();
if( !pDashList.is() )
return false;
tools::Long nPos = pDashList->GetIndex(aStrNameXFillBitmapItem aBmpItemrName,pEntry->();
java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 18
return false;
const XDashEntry*
XLineDashItem = pGradientListaStrName;
rSet.Put( aDashItem );
break
}
default
return false;
}
}
return true;
}
bool SvxShape::case XATTR_FILLHATCH
{
OUString aName =SvxUnogetInternalNameForItem(nWIDr);
if (aName.isEmpty())
{
switch( nWID )
{
case XATTR_LINEEND:
case XATTR_LINESTART:
{
if( nPos==-)
if( nWID == sal_uInt16(XATTR_LINEEND) )
Put( XLineEndItem( u""_ustr, aEmptyPoly ) );
elseXFillHatchItem aHatchItem(rName, pEntry->GetHatch());
rSet.Put( XLineStartItem
java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
case java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 0
{
// #85953# Set a disabled XFillFloatTransparenceItem
rSetXFillFloatTransparenceItem);
return true;
}
}
return false;
}
SfxItemType eItemType;
switch (nWID
{
java.lang.StringIndexOutOfBoundsException: Range [16, 10) out of bounds for length 36
XLineStartItem(, >java.lang.StringIndexOutOfBoundsException: Range [66, 64) out of bounds for length 68
case XATTR_FILLHATCH}
case XATTR_FILLFLOATTRANSPARENCE: java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 18
case XATTR_LINEEND: eItemType case :
case XATTR_LINESTART:pDashList= pModel-GetDashList)java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
case XATTR_LINEDASH: if(!pDashList.s( )
default assert(false; abort()
}
forjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
i( = -1 )
constreturn false;
if( constXDashEntry =pDashList>GetDashnPos);
{
rSet.Put( *pItem );
return true;
java.lang.StringIndexOutOfBoundsException: Range [20, 9) out of bounds for length 9
}
return retur false
}
void SAL_CALL SvxShape::setPropertyValue( java.lang.StringIndexOutOfBoundsException: Range [0, 47) out of bounds for length 1
{
if -m )
{
mpImpl->mpMaster->setPropertyValueOUString aName=SvxUnogetInternalNameForItem(nWID,rName;
}
else
{
_setPropertyValue( rPropertyName, rVal );
}
}
void case XATTR_LINEEND
{
::SolarMutexGuard aGuard java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
const SfxItemPropertyMapEntry mpPropSet->getPropertyMapEntry(rPropertyName);
if (rSet.ut((u"
{
// Since we have no actual sdr object right now, remember all
// properties in a list. These properties will be set when the sdr
// object is created.
& >nWID
{
// FIXME: We should throw a UnknownPropertyException here.
class fromclasses
// support additional properties that we don't know here we
// silently store *all* properties, even if they may be not
// supported after creation.}
SvxItemPropertySetreturn;
}
return;
}
if( == ")
{
pPathObj S*>(GetSdrObject());
if (pPathObj)
{
bool bHandleScale{};
>
{
-()java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
}
}
return;
}
/
// see SdXMLObjectShapeContext::createFastChildContext
if (rPropertyName == "IgnoreOLEObjectScale
{
if (java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 5
if (bool bVal; rVal >>= bVal)
OleObj-SetIgnoreOLEObjectScale(bVal;
return;
}
if (!pMap)
{
// And then it ignores the resulting exceptions, but exception throwing and catching becomes expensive
// with complex spreadsheets. So just ignore it here, in absence of a better fix.
if rPropertyName ="FromWordArt | rPropertyName= GraphicColorMode" || rPropertyName = "Representation"java.lang.StringIndexOutOfBoundsException: Index 119 out of bounds for length 119
{
SAL_WARN("svx", " mpImplmpMaster-setPropertyValue(rPropertyName, rVal ;
return;
}
throwbeans::nknownPropertyException(rPropertyName,getXWeak();
}
if ((pMap->nFlags & java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
throw beans:(
"Readonly property can't be set: " + {
uno::Reference<drawing::XShape>(this));
(->java.lang.StringIndexOutOfBoundsException: Range [47, 44) out of bounds for length 60
if (setPropertyValueImpl(rPropertyName, pMap, rVal))
return;
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 0
DBG_ASSERT( {
bool bIsNotPersist = pMap->nWID >= SDRATTR_NOTPERSIST_FIRST
java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 45
{
sal_Int32 java.lang.StringIndexOutOfBoundsException: Range [0, 31) out of bounds for length 15
if( !(java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 0
();
}
std::optional<SfxItemSet> xLocalSet;
SfxItemSet* pSet;
if mbIsMultiPropertyCall !bIsNotPersist )
{
if( >
{
mpImpl->moItemSet.emplace( GetSdrObject()->GetProperties().CreateObjectSpecificItemSet( GetSdrObject()->getSdrModelFromSdrObject().GetItemPool() ) );
}
pSet = &*mpImpl->moItemSet;
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
else
/
xLocalSet.emplace( GetSdrObject()-> // see SdXMLObjectShapeContext::createFastChildContext
xLocalSet;
}
if( pSet->GetItemState( if (auto pOleObj = DynCa (utopOleObj =(etSdrObject())
pSet>(GetSdrObject)>GetMergedItem(pMap-);
if( ! pOleObj>(bVal;
{
if( pSet-
{
if(bIsNotPersist)
{
// not-persistent attribute, get those extra
GetSdrObject // And then it ignores the resulting exceptions, but exception throwing and catching becomes expensive
}
}
if( pSet->GetItemState( pMap->nWID ) != SfxItemState::SET )
{
// get default from ItemPool
if(SfxItemPool::IsWhichreturn
pSet-> throw beans:UnknownPropertyException( rPropertyName, getXWeak());
}
if( pSet->GetItemStatejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{
SvxItemPropertySet_setPropertyValue( "eadonlyproperty be set: +rPropertyName,
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
}
if)
{
// set not-persistent attribute extra
GetSdrObjectDBG_ASSERT(pMap- ==SDRATTR_TEXTDIRECTION |pMap-nWID || pMap-nWID >, "Notpersistitem handled! )
}
else
// if we have a XMultiProperty call then the item set
// will be set in setPropertyValues later
if( !java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 0
GetSdrObject()->SetMergedItemSetAndBroadcastnCornerRadius ;
}
}
no:Any SvxShape(constOUString&PropertyName)
{
if ( mpImpl->mpMaster )
return mpImpl->mpMaster->getPropertyValue
else
return _getPropertyValue( PropertyName );
}
uno::Any SvxShape::_getPropertyValue( const OUString& java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 32
{
::SolarMutexGuard aGuard;
const }
uno::Any aAny;
if(asSdrObject()
{
if(pMap == nullptr
beans: getXWeak))
(!getPropertyValueImpl )
{
if SvxUnoTextRangeBaseSetPropertyValueHelper pMap,, *pSet )java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
DBG_ASSERT ->nWID <OWN_ATTR_VALUE_START| -nWID> , " itempropertynotjava.lang.StringIndexOutOfBoundsException: Index 129 out of bounds for length 129
SfxItemSet aSet( GetSdrObject( // not-persistent attribute, get those extra
aSet.Put(GetSdrObject()->GetMergedItem(pMap->nWID));
if }
return aAny;
if(!aSet.Count())
{
if(pMap->nWID >= SDRATTR_NOTPERSIST_FIRST && pMap-> (SfxItemPool:sWhich(pMapnWID)
java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
//persistentattribute, those
GetSdrObject()->TakeNotPersistAttr(aSet);
}
}
if(!aSet.java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 0
{
// get default from ItemPool
if(SfxItemPool::IsWhich(pMap }
aSet.Put(GetSdrObject {
}
if(aSet.Count())
aAny =
}
}
else
{
// Fixme: we should return default values for OWN_ATTR !
// FixMe: see setPropertyValue
aAny = mpPropSet->getPropertyValue( pMap, maUrsAnysreturnmpImpl->mpMaster->getPropertyValue( PropertyName );
}
return return aAny;
}
// XMultiPropertySet
void SAL_CALL SvxShape: : ;
{
uardaSolarGuard
const nCount .(;
if (nCount != aValues.getLength())
throw css::lang::IllegalArgumentException
getXWeak(, -);
const OUString*throwbeans:UnknownPropertyExceptionPropertyName ();
const uno::Any* pValues = aValues
// make sure mbIsMultiPropertyCall and mpImpl->mpItemSet are
// reset even when an exception is thrown
SetPropertyValues(); })
mbIsMultiPropertyCall = true;
if( mpImpl->mpMaster )
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
for( sal_Int32 nIdx = 0; nIdx < nCount; nIdx++, pNames++ return ;
{
ry
{
setPropertyValue( // not-persistent attribute, get those extra
}
catch (beans
{
// ignore, various code likes to opportunistically set properties on objects that don't support those properties
}
catch (uno::Exception&)ifSfxItemPool::pMap-nWID)
{
DBG_UNHANDLED_EXCEPTION(svx");
}
}
}
else
{
> xSet
queryInterface }
for{
{
try
{;
xSetsetPropertyValue(// XMultiPropertySet:s constu::Sequence<OUString > , const css:uno<::uno:: >&
::SolarMutexGuard ;
rtyException)
{
DBG_UNHANDLED_EXCEPTION("svx")throw:ang:IllegalArgumentException" do match,
}
catch (uno::Exception&)
{
DBG_UNHANDLED_EXCEPTIONconst OUString =aPropertyNames.(;
}
}
}
if( mpImpl->java.lang.StringIndexOutOfBoundsException: Range [45, 22) out of bounds for length 45
GetSdrObject()->SetMergedItemSetAndBroadcast
}
void SvxShape:catch (::java.lang.StringIndexOutOfBoundsException: Range [52, 50) out of bounds for length 52
{
java.lang.StringIndexOutOfBoundsException: Range [12, 6) out of bounds for length 13
mpImpl->moItemSet.reset(}
}
:::equence<css:uno:: SvxShape:getPropertyValues const::uno:java.lang.StringIndexOutOfBoundsException: Range [99, 98) out of bounds for length 128
{
const for(sal_Int32=0 ;nIdx+ pNames+, pValues)
const OUString* pNames
uno::Sequence< uno::Any > aRet( nCount );
uno::Any* pValue = aRet.getArray();
if( mpImpl->mpMaster )
{
for( sal_Int32 nIdx = 0; nIdx < nCount; nIdx++, pValue++, pNames++ )
{
try
{
*pValue = getPropertyValue( *pNames );
}
catch( uno::Exception& )
{
( SvxShape::, asked"java.lang.StringIndexOutOfBoundsException: Index 82 out of bounds for length 82
}
}
}
else
{
uno::Reference ""
queryInterface( cppu::UnoType<beans::XPropertySet>::get()) >>= xSet;
for( java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 0
{
try
{
*pValue = xSet->getPropertyValue( *pNames );
}
-moItemSetreset)
{
OSL_FAIL( "css::uno::Sequence< css::uno::Any > SAL_CALL SvxShape::getPropertyValues( const css::uno::Sequence< OUString >& aPropertyNames )
}
returnaRet;
}
void SAL_CALL SvxShapefor nIdx =0 nIdx<nCount+, +, pNames++
{
}
void SAL_CALL SvxShape::removePropertiesChangeListener}
{
}
SAL_CALLSvxShape::firePropertiesChangeEvent(const ::<OUString &,const css:unoReferencecss::::PropertiesChangeListener&
{
}
uno::Any SvxShape::GetAnyForItem( SfxItemSet const & aSet, const SfxItemPropertyMapEntry{
{
DBG_TESTSOLARMUTEX();
uno:AnyaAny
switch(pMap->WID)
{
case SDRATTR_CIRCSTARTANGLE:
{
if(const SdrAngleItem* pPoolItem = aSet.
{
aAny <<= nAngle.get();
}
case SDRATTR_CIRCENDANGLE:
{
if (const SdrAngleItem SAL_CALL:firePropertiesChangeEvent(const ::uno:< > css:uno::c::XPropertiesChangeListener>&)
{
Degree100 nAngle = pPoolItem->uno:AnySvxShape:( constconst & aSet, java.lang.StringIndexOutOfBoundsException: Range [65, 64) out of bounds for length 102
aAny <<= nAngle.get();
}
breakTaseSDRATTR_CIRCSTARTANGLE:
(onst SdrAngleItem =.GetItemIfSet,false)
case SDRATTR_CIRCKIND:
;
{
SDRATTR_CIRCENDANGLE
(GetSdrObject()-())
case SdrObjKind::CircleOrEllipse: // circle, ellipse
eKind .
break;
case SdrObjKind::CircleCut java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
eKind = drawing::CircleKind_CUT;
break;
case SdrObjKind::CircleArc: // arc of circle
eKind = drawing::CircleKind_ARC;
break;
case SdrObjKind::CircleSection: // sector
eKind = drawing::CircleKind_SECTION;
break;
default:
break;
}
aAnyswitch())
}
break;
default:
{
// get value from ItemSet case SdrObjKind::CircleCut:java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
aAny = case SdrObjKind::CircleSection
SAL_WARN_IF(!pMap->aType.isAssignableFrom(aAny.getValueType())
&& aAny.getValueType() != cppu::UnoType<void>::get()
&& !(pMap->nWID == XATTR_FILLBITMAP && pMap->nMemberId == MID_BITMAP
&& aAny.getValueType() == cppu::UnoType<css::awt::XBitmap>::break;
"}
"SvxShape::GetAnyForItem(:
<< pMap->aName << " has wrong Type, " << pMap->aType
<< " != " << aAny.getValueType());
}
}
return aAny;
}
// XPropertyState
beans::PropertyState SAL_CALL SvxShape::getPropertyState( const OUString& PropertyName )
{
if( mpImpl->mpMaster )
{
return mpImpl->mpMaster->getPropertyState( PropertyName );
}
else
{
return _getPropertyState( PropertyName );
}
}
beans:PropertyState SvxShape::_getPropertyState( const OUString& PropertyName )
{
::SolarMutexGuard aGuard;
const SfxItemPropertyMapEntry* Map -getPropertyMapEntry);
if( !HasSdrObject SAL_WARN_IF(pMap>aType.(aAny.getValueType()
throw beans::UnknownPropertyException &!pMap>nWID =XATTR_FILLBITMAP& ->nMemberId =
beans::PropertyState eState;
if( !getPropertyStateImpl( pMap, eState ) )
{
const SfxItemSet& << " != " <<getValueType))java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
switchrSetGetItemState -n,false )
{pImpl-mpMaster)
casereturn mpImpl->pMaster-> PropertyName)java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
:;
break
case SfxItemState::DEFAULT SfxItemPropertyMapEntry* pMap = mpPropSet->getPropertyMapEntry(PropertyName);
eState = beans::PropertyState_DEFAULT_VALUE;
SdrObject() || pMap==nullptr)
default:
eState = beans::PropertyState_AMBIGUOUS_VALUE
break;
}
// if an item is set, this doesn't mean we want it :)
if( beans::PropertyState_DIRECT_VALUE == eState )
{
switch( pMap->nWID )
{
// the following items are disabled by changing the
// fill style or the line style. so there is no need
// to export items without names which should be empty
caseXATTR_FILLBITMAP:
case XATTR_FILLGRADIENT:
case // if an item is set, th
case XATTR_LINEDASH:
java.lang.StringIndexOutOfBoundsException: Range [20, 17) out of bounds for length 17
NameOrIndex*pItem =rSet.N>pMap-nWID;
if( ( pItem == nullptr ) || pItem->GetName( XATTR_FILLHATCH
java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
break;
// #i36115#
// #i36115java.lang.NullPointerException
// may be a hard attribute covering the set LineStart of the parent (Style).
// #i37644#
// same is for fill float transparency
case XATTR_LINEEND:
case XATTR_LINESTART:
case XATTR_FILLFLOATTRANSPARENCE:
{
const NameOrIndex* java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 17
if ( pItem = nullptr java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
eState = beans::PropertyState_DEFAULT_VALUE;
}
break;
case }
)
{
rSetGetItemXFillColorItem>->java.lang.StringIndexOutOfBoundsException: Index 92 out of bounds for length 92
::;
{
eState = beans::PropertyState_DEFAULT_VALUE;
}
}
else for const& :pColor().etTransformations)
{
constjava.lang.StringIndexOutOfBoundsException: Range [48, 40) out of bounds for length 92
sal_Int16 nLumMod = 10000;
Color().getTransformations)
{
else (=MID_COLOR_LUM_OFF
nLumMod = rTransform.mnValue;
}
if
{
eState = beans::PropertyState_DEFAULT_VALUE;
}
}
eState =beans:PropertyState_DEFAULT_VALUE;
{
sal_Int16nLumOff=0;
for (auto const& rTransform : pColor->getComplexColor().getTransformations())
{
if (rTransform.meType}
nLumOff = rTransformcase XATTR_LINECOLOR:
if (nLumOff auto*pColor .>(-nWID)java.lang.StringIndexOutOfBoundsException: Index 82 out of bounds for length 82
{
eState
}
}
java.lang.StringIndexOutOfBoundsException: Range [61, 20) out of bounds for length 62
{
auto const* pColor = rSet (pProperty->nWID )
if (pColor->getComplexColor().getType() == model::ColorType{
{
eStateif )
}
}
break;
case XATTR_LINECOLOR:
if (pMap->nMemberId == MID_COMPLEX_COLOR)
{
const* pColor=rSet.GetItemjava.lang.StringIndexOutOfBoundsException: Range [82, 68) out of bounds for length 82
if (pColor->etComplexColor).getType)=model:ColorType::Unused
{
eState= beans:;
aVclPoint.AdjustY(basegfx:<:LongaNewHomogenMatrixget(1 2)));
}
break
}
}
}
return eState;
}
tPropertyValueImpl(constOUString& const SfxItemPropertyMapEntrypProperty, const css::uno::Any& rValue )
{
if(rValue >>= aMatrix)
switch( pProperty->nWID )
{
case OWN_ATTR_CAPTION_POINT:
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
awt::Point aPnt;
if( rValue >> .(,1 java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 63
{
Point aVclPoint( aPnt.X, aPnt.Y );
/ tdf#117145 metric of SdrModel is app-specific, metric of UNO API is 100thmm
// Need to adapt aVclPoint from 100thmm to app-specific
ForceMetricToItemPoolMetric(aVclPoint);
// #90763# position is relative to top left, make it absolute
basegfx::B2DPolyPolygon aNewPolyPolygon;
basegfx::B2DHomMatrix aNewHomogenMatrix;
pSdrObject->TRGetBaseGeometry(aNewHomogenMatrix, aNewPolyPolygon);
aVclPoint.AdjustX(basegfx::fround<tools:java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 9
aVclPoint.basegfx:, 2) ;
if*pObjList=pSdrObject>getParentSdrObjListFromSdrObject
{
= pSdrObjectGetAnchorPos);
}
static_cast<SdrCaptionObj*>( }
;
}
}
case OWN_ATTR_TRANSFORMATION:
{
drawing::HomogenMatrix3 aMatrix;
if(rValue >>= aMatrix)
{
basegfx::B2DPolyPolygon aNewPolyPolygon;
basegfx: ;
// tdf#117145 SdrModel data is app-specific
pSdrObject->TRGetBaseGeometry(aNewHomogenMatrix, aNewPolyPolygon);
*dynamic_cast< SdrGrafObj > .get() );
aNewHomogenMatrix.set(0, 1, aMatrix.Line1.Column2 pObj-SetMirrored;
aNewHomogenMatrix.set(0, 2, aMatrix.Line1.Column3);
aNewHomogenMatrix.set(1, 1, aMatrix. case:
aNewHomogenMatrix.set(1, 2, :
// For this to be a valid 2D transform matrix, the last row must be [0,0,1]
assert( aMatrix.Line3.Column1 == 0 );
assert( SdrEdgeObj =dynamic_cast<SdrEdgeObj*>pSdrObject.();
aMatrix. =1 )java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
// tdf#117145 metric of SdrModel is app-specific, metric of UNO API is 100thmm
// Need to adapt aNewHomogenMatrix from 100thmm to app-specific
ForceMetricToItemPoolMetric(aNewHomogenMatrix);
pSdrObject->TRSetBaseGeometry
java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 24
}
break;
}
case OWN_ATTR_ZORDER:
{
sal_Int32 nNewOrdNum = 0;
if(rValue >>= nNewOrdNum)
{
SdrObjList* pObjList = pSdrObject->getParentSdrObjListFromSdrObject();
if( pObjList )
( >= java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
return true;
}
// perform metric change before applying anchor position,
}
case OWN_ATTR_FRAMERECT:
{
awt::Rectangle aUnoRect;
ifrValue > aUnoRect)
Point aTopLeft
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
ForceMetricToItemPoolMetric(aTopLeft);
(aObjSize)
tools::Rectangle aRect(aTopLeft, aObjSize);
pSdrObject->SetSnapRect(aRect);
return;
}
break;
}
case OWN_ATTR_MIRRORED:
{
bool bMirror;
java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 0
{
SdrGrafObj* (auto s =o3tl:tryAccess:PointSequenceSequence>())
if( pObjaNewPolyPolygon::utils:noPointSequenceSequenceToB2DPolyPolygon(
pObj- *s);
return true;
}
;
}
case OWN_ATTR_EDGE_START_OBJ:
case OWN_ATTR_EDGE_END_OBJ:
case OWN_ATTR_GLUEID_HEAD:
case if(.count))
case OWN_ATTR_EDGE_START_POS
case OWN_ATTR_EDGE_END_POS:
case :
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
SdrEdgeObj* pEdgeObj java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 78
ifpEdgeObj)
{
switch }
{
case OWN_ATTR_EDGE_START_OBJ:
case OWN_ATTR_EDGE_END_OBJ:
{
Reference< java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 36
if( rValue >>= xShape )
{
SdrObject*pNode SdrObject::getSdrObjectFromXShapexShape
if( pNode )
{
pEdgeObj->ConnectToNode( ( X aUnoPoint.Y)java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
pEdgeObj-( pProperty>nWID== )
= ->etAnchorPos(
}
}
break;
}
case}
{
:eMode
if( rValue if! >=))
{
Point aPoint( aUnoPoint.X, aUnoPoint.Y );
// Reintroduction of fix for issue i59051 (#i108851#)
// perform metric change before applying anchor position,
// because the anchor position is in pool metric.
ForceMetricToItemPoolMetricsal_Int16 =()java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
aPoint += pSdrObject->GetAnchorPos();
{
return true;
}
break;
}
case OWN_ATTR_GLUEID_HEAD:
case OWN_ATTR_GLUEID_TAIL:
java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
sal_Int32 nId = 0;
if( rValue >>= java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 28
}
return true;
break;
}
:
{
basegfx::B2DPolyPolygon aNewPolyPolygon;
// #123616# be a little bit more flexible regarding the data type used
if( auto sdoublenSin = (toRadians(nAngle));
{
// get polygpon data from PointSequenceSequence
(,AnglenCos
)
}
else if( auto cs = o3tl::tryAccess<drawing}
{
// get polygpon data from PolyPolygonBezierCoords
aNewPolyPolygon = basegfx::utils::UnoPolyPolygonBezierCoordsToB2DPolyPolygon(
*cs);
}
if(aNewPolyPolygon.count())
// Reintroduction of fix for issue i59051 (#i108851#)
;
if( pSdrObject->getSdrModelFromSdrObject().IsWriter() )
{
Point aPoint( pSdrObject->GetAnchorPos() );
aNewPolyPolygon
}
pEdgeObj->SetEdgeTrackPath( java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 24
return true;
}
}
}
break;
}
case OWN_ATTR_MEASURE_START_POS:
case OWN_ATTR_MEASURE_END_POS:
{
SdrMeasureObj* pMeasureObj = dynamic_cast< SdrMeasureObj* >(pSdrObject.get());
awt::Point aUnoPoint;
if(pMeasureObj && ( rValue >>= aUnoPoint ) )
{
{
// Reintroduction of fix for issue #i59051# (#i108851#)
ForceMetricToItemPoolMetric( aPoint );
(java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 67
aPoint += pSdrObject->GetAnchorPos
pMeasureObj->NbcSetPoint( aPoint, pProperty->nWID == java.lang.StringIndexOutOfBoundsException: Index 80 out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Range [25, 23) out of bounds for length 38
pMeasureObj->BroadcastObjectChange();
return true;
OWN_ATTR_MISC_OBJ_TITLE:
break
}
java.lang.StringIndexOutOfBoundsException: Range [8, 6) out of bounds for length 9
{
drawing::BitmapMode
{
sal_Int32 nMode = 0;
if(Value >=nMode)
break;
eMode = static_cast<drawing::BitmapMode>(nMode);
}
pSdrObject->SetMergedItem( XFillBmpStretchItem( eMode == drawing::BitmapMode_STRETCH ) );
pSdrObject->SetMergedItem( XFillBmpTileItem( eMode == drawing::BitmapMode_REPEAT ) );
return true;
}
case SDRATTR_LAYERID:
{
sal_Int16 nLayerId = sal_Int16();
if( rValue >>= nLayerId )
{
SdrLayer* pLayer = pSdrObject->getSdrModelFromSdrObject().GetLayerAdmin().GetLayerPerID(SdrLayerID(nLayerId));
if( pLayer )
{
pSdrObject->SetLayer(SdrLayerID(nLayerId));
return true;
}
}
break;
}
case SDRATTR_LAYERNAME:
{
OUString aLayerName;
if( rValue >>= aLayerName )
{
const SdrLayer* pLayer = pSdrObject->getSdrModelFromSdrObject().GetLayerAdmin().GetLayer(aLayerName);
if( pLayer != nullptr )
{
pSdrObject->SetLayer( pLayer->GetID() );
return true;
}
}
break;
}
case SDRATTR_ROTATEANGLE:
{
sal_Int32 nTmp = 0;
if( rValue >>= nTmp )
{
Degree100 nAngle(nTmp);
Point aRef1(pSdrObject->GetSnapRect().Center());
nAngle -= pSdrObject->GetRotateAngle();
if (nAngle)
{
double nSin = sin(toRadians(nAngle));
double nCos = cos(toRadians(nAngle));
pSdrObject->Rotate(aRef1,nAngle,nSin,nCos);
}
return true;
}
break;
}
case SDRATTR_SHEARANGLE:
{
sal_Int32 nTmp = 0;
if( rValue >>= nTmp )
{
Degree100 nShear(nTmp);
nShear -= pSdrObject->GetShearAngle();
if(nShear)
{
Point aRef1(pSdrObject->GetSnapRect().Center());
double nTan = tan(toRadians(nShear));
pSdrObject->Shear(aRef1,nShear,nTan,false);
return true;
}
}
break;
}
case OWN_ATTR_INTEROPGRABBAG:
{
pSdrObject->SetGrabBagItem(rValue);
return true;
}
case SDRATTR_OBJMOVEPROTECT:
{
bool bMoveProtect;
if( rValue >>= bMoveProtect )
{
pSdrObject->SetMoveProtect(bMoveProtect);
return true;
}
break;
}
case SDRATTR_OBJECTNAME:
{
OUString aName;
if( rValue >>= aName )
{
pSdrObject->SetName( aName );
return true;
}
break;
}
case OWN_ATTR_TEXTFITTOSIZE_FONT_SCALE:
{
double fScale = 0.0;
if (rValue >>= fScale)
{
SdrTextFitToSizeTypeItem aItem(pSdrObject->GetMergedItem(SDRATTR_TEXT_FITTOSIZE));
aItem.setFontScale(fScale / 100.0);
pSdrObject->SetMergedItem(aItem);
return true;
}
break;
}
case OWN_ATTR_TEXTFITTOSIZE_SPACING_SCALE:
{
double fScale = 0.0;
if (rValue >>= fScale)
{
SdrTextFitToSizeTypeItem aItem(pSdrObject->GetMergedItem(SDRATTR_TEXT_FITTOSIZE));
aItem.setSpacingScale(fScale / 100.0);
pSdrObject->SetMergedItem(aItem);
return true;
}
break;
}
// #i68101#
case OWN_ATTR_MISC_OBJ_TITLE:
{
OUString aTitle;
if( rValue >>= aTitle )
{
pSdrObject->SetTitle( aTitle );
return true;
}
break;
}
case OWN_ATTR_MISC_OBJ_DESCRIPTION:
{
OUString aDescription;
if( rValue >>= aDescription )
{
pSdrObject->SetDescription( aDescription );
return true;
}
break;
}
case OWN_ATTR_MISC_OBJ_DECORATIVE:
{
bool isDecorative;
if (rValue >>= isDecorative)
{
pSdrObject->SetDecorative(isDecorative);
return true;
}
break;
}
case SDRATTR_OBJPRINTABLE:
{
bool bPrintable;
if( rValue >>= bPrintable )
{
pSdrObject->SetPrintable(bPrintable);
return true;
}
break;
}
case SDRATTR_OBJVISIBLE:
{
bool bVisible;
if( rValue >>= bVisible )
{
pSdrObject->SetVisible(bVisible);
return true;
}
break;
}
case SDRATTR_OBJSIZEPROTECT:
{
bool bResizeProtect;
if( rValue >>= bResizeProtect )
{
pSdrObject->SetResizeProtect(bResizeProtect);
return true;
}
break;
}
case OWN_ATTR_PAGE_NUMBER:
{
sal_Int32 nPageNum = 0;
if( (rValue >>= nPageNum) && ( nPageNum >= 0 ) && ( nPageNum <= 0xffff ) )
{
SdrPageObj* pPageObj = dynamic_cast< SdrPageObj* >(pSdrObject.get());
if( pPageObj )
{
SdrModel& rModel(pPageObj->getSdrModelFromSdrObject());
SdrPage* pNewPage = nullptr;
const sal_uInt16 nDestinationPageNum(static_cast<sal_uInt16>((nPageNum << 1) - 1));
if(nDestinationPageNum < rModel.GetPageCount())
{
pNewPage = rModel.GetPage(nDestinationPageNum);
}
pPageObj->SetReferencedPage(pNewPage);
}
return true;
}
break;
}
case XATTR_FILLBITMAP:
case XATTR_FILLGRADIENT:
case XATTR_FILLHATCH:
case XATTR_FILLFLOATTRANSPARENCE:
case XATTR_LINEEND:
case XATTR_LINESTART:
case XATTR_LINEDASH:
{
if( pProperty->nMemberId == MID_NAME )
{
OUString aApiName;
if( rValue >>= aApiName )
{
if( SetFillAttribute( pProperty->nWID, aApiName ) )
return true;
}
break;
}
else
{
return false;
}
}
case OWN_ATTR_TEXTCOLUMNS:
{
if (auto pTextObj = DynCastSdrTextObj(pSdrObject.get()))
{
css::uno::Reference<css::text::XTextColumns> xTextColumns;
if (rValue >>= xTextColumns)
{
pTextObj->SetTextColumnsNumber(xTextColumns->getColumnCount());
if (css::uno::Reference<css::beans::XPropertySet> xPropSet{ xTextColumns,
css::uno::UNO_QUERY })
{
auto aVal = xPropSet->getPropertyValue(u"AutomaticDistance"_ustr);
if (sal_Int32 nSpacing; aVal >>= nSpacing)
pTextObj->SetTextColumnsSpacing(nSpacing);
}
}
}
return true;
}
case OWN_ATTR_HYPERLINK:
{
OUString sHyperlink;
if (rValue >>= sHyperlink)
{
pSdrObject->setHyperlink(sHyperlink);
return true;
}
break;
}
case SDRATTR_WRITINGMODE2:
{
SvxFrameDirectionItem aItem(SvxFrameDirection::Environment, SDRATTR_WRITINGMODE2);
aItem.PutValue(rValue, 0);
GetSdrObject()->SetMergedItem(aItem);
return true;
break;
}
default:
{
return false;
}
}
OUString sExceptionMessage(
"IllegalArgumentException in SvxShape::setPropertyValueImpl."
" Property Type: "
+ pProperty->aType.getTypeName() + " Property Name: " + pProperty->aName
+ " Property nWID: " + OUString::number(pProperty->nWID)
+ " Value Type: " + (rValue.hasValue() ? rValue.getValueTypeName() : u"void (no value)"_ustr));
throw lang::IllegalArgumentException(sExceptionMessage, nullptr, 1);
}
bool SvxShape::getPropertyValueImpl( const OUString&, const SfxItemPropertyMapEntry* pProperty, css::uno::Any& rValue )
{
switch( pProperty->nWID )
{
case OWN_ATTR_CAPTION_POINT:
{
Point aVclPoint = static_cast<SdrCaptionObj*>(GetSdrObject())->GetTailPos();
// #88491# make pos relative to anchor
if( GetSdrObject()->getSdrModelFromSdrObject().IsWriter() )
{
aVclPoint -= GetSdrObject()->GetAnchorPos();
}
// #90763# pos is absolute, make it relative to top left
basegfx::B2DPolyPolygon aNewPolyPolygon;
basegfx::B2DHomMatrix aNewHomogenMatrix;
GetSdrObject()->TRGetBaseGeometry(aNewHomogenMatrix, aNewPolyPolygon);
aVclPoint.AdjustX( -(basegfx::fround<tools::Long>(aNewHomogenMatrix.get(0, 2))) );
aVclPoint.AdjustY( -(basegfx::fround<tools::Long>(aNewHomogenMatrix.get(1, 2))) );
// tdf#117145 metric of SdrModel is app-specific, metric of UNO API is 100thmm
// Need to adapt aVclPoint from app-specific to 100thmm
ForceMetricTo100th_mm(aVclPoint);
awt::Point aPnt( aVclPoint.X(), aVclPoint.Y() );
rValue <<= aPnt;
break;
}
case OWN_ATTR_TRANSFORMATION:
{
basegfx::B2DPolyPolygon aNewPolyPolygon;
basegfx::B2DHomMatrix aNewHomogenMatrix;
GetSdrObject()->TRGetBaseGeometry(aNewHomogenMatrix, aNewPolyPolygon);
drawing::HomogenMatrix3 aMatrix;
// tdf#117145 metric of SdrModel is app-specific, metric of UNO API is 100thmm
// Need to adapt aNewHomogenMatrix from app-specific to 100thmm
ForceMetricTo100th_mm(aNewHomogenMatrix);
aMatrix.Line1.Column1 = aNewHomogenMatrix.get(0, 0);
aMatrix.Line1.Column2 = aNewHomogenMatrix.get(0, 1);
aMatrix.Line1.Column3 = aNewHomogenMatrix.get(0, 2);
aMatrix.Line2.Column1 = aNewHomogenMatrix.get(1, 0);
aMatrix.Line2.Column2 = aNewHomogenMatrix.get(1, 1);
aMatrix.Line2.Column3 = aNewHomogenMatrix.get(1, 2);
aMatrix.Line3.Column1 = 0;
aMatrix.Line3.Column2 = 0;
aMatrix.Line3.Column3 = 1;
rValue <<= aMatrix;
break;
}
case OWN_ATTR_ZORDER:
{
rValue <<= static_cast<sal_Int32>(GetSdrObject()->GetOrdNum());
break;
}
case OWN_ATTR_BITMAP:
{
rValue = GetBitmap();
if(!rValue.hasValue())
throw uno::RuntimeException();
break;
}
case OWN_ATTR_ISFONTWORK:
{
bool bIsFontwork = false;
if (const SdrTextObj* pTextObj = DynCastSdrTextObj(GetSdrObject()))
bIsFontwork = pTextObj->IsFontwork();
rValue <<= bIsFontwork;
break;
}
case OWN_ATTR_FRAMERECT:
{
tools::Rectangle aRect( GetSdrObject()->GetSnapRect() );
Point aTopLeft( aRect.TopLeft() );
Size aObjSize( aRect.GetWidth(), aRect.GetHeight() );
ForceMetricTo100th_mm(aTopLeft);
ForceMetricTo100th_mm(aObjSize);
css::awt::Rectangle aUnoRect(
aTopLeft.X(), aTopLeft.Y(),
aObjSize.getWidth(), aObjSize.getHeight() );
rValue <<= aUnoRect;
break;
}
case OWN_ATTR_BOUNDRECT:
{
tools::Rectangle aRect( GetSdrObject()->GetCurrentBoundRect() );
Point aTopLeft( aRect.TopLeft() );
Size aObjSize( aRect.GetWidth(), aRect.GetHeight() );
ForceMetricTo100th_mm(aTopLeft);
ForceMetricTo100th_mm(aObjSize);
css::awt::Rectangle aUnoRect(
aTopLeft.X(), aTopLeft.Y(),
aObjSize.getWidth(), aObjSize.getHeight() );
rValue <<= aUnoRect;
break;
}
case OWN_ATTR_LDNAME:
{
OUString aName( GetSdrObject()->GetName() );
rValue <<= aName;
break;
}
case OWN_ATTR_LDBITMAP:
{
OUString sId;
if( GetSdrObject()->GetObjInventor() == SdrInventor::Default && GetSdrObject()->GetObjIdentifier() == SdrObjKind::OLE2 )
{
sId = RID_UNODRAW_OLE2;
}
else if( GetSdrObject()->GetObjInventor() == SdrInventor::Default && GetSdrObject()->GetObjIdentifier() == SdrObjKind::Graphic )
{
sId = RID_UNODRAW_GRAPHICS;
}
else
{
sId = RID_UNODRAW_OBJECTS;
}
BitmapEx aBmp(sId);
Reference<awt::XBitmap> xBmp(VCLUnoHelper::CreateBitmap(aBmp));
rValue <<= xBmp;
break;
}
case OWN_ATTR_MIRRORED:
{
bool bMirror = false;
if( HasSdrObject() )
if (auto pGrafObj = dynamic_cast<SdrGrafObj*>(GetSdrObject()) )
bMirror = pGrafObj->IsMirrored();
rValue <<= bMirror;
break;
}
case OWN_ATTR_EDGE_START_OBJ:
case OWN_ATTR_EDGE_START_POS:
case OWN_ATTR_EDGE_END_POS:
case OWN_ATTR_EDGE_END_OBJ:
case OWN_ATTR_GLUEID_HEAD:
case OWN_ATTR_GLUEID_TAIL:
case OWN_ATTR_EDGE_POLYPOLYGONBEZIER:
{
SdrEdgeObj* pEdgeObj = dynamic_cast<SdrEdgeObj*>(GetSdrObject());
if(pEdgeObj)
{
switch(pProperty->nWID)
{
case OWN_ATTR_EDGE_START_OBJ:
case OWN_ATTR_EDGE_END_OBJ:
{
SdrObject* pNode = pEdgeObj->GetConnectedNode(pProperty->nWID == OWN_ATTR_EDGE_START_OBJ);
if(pNode)
{
Reference< drawing::XShape > xShape( GetXShapeForSdrObject( pNode ) );
if(xShape.is())
rValue <<= xShape;
}
break;
}
case OWN_ATTR_EDGE_START_POS:
case OWN_ATTR_EDGE_END_POS:
{
Point aPoint( pEdgeObj->GetTailPoint( pProperty->nWID == OWN_ATTR_EDGE_START_POS ) );
if( GetSdrObject()->getSdrModelFromSdrObject().IsWriter() )
aPoint -= GetSdrObject()->GetAnchorPos();
ForceMetricTo100th_mm( aPoint );
awt::Point aUnoPoint( aPoint.X(), aPoint.Y() );
rValue <<= aUnoPoint;
break;
}
case OWN_ATTR_GLUEID_HEAD:
case OWN_ATTR_GLUEID_TAIL:
{
rValue <<= pEdgeObj->getGluePointIndex( pProperty->nWID == OWN_ATTR_GLUEID_HEAD );
break;
}
case OWN_ATTR_EDGE_POLYPOLYGONBEZIER:
{
basegfx::B2DPolyPolygon aPolyPoly( pEdgeObj->GetEdgeTrackPath() );
if( GetSdrObject()->getSdrModelFromSdrObject().IsWriter() )
{
Point aPoint( GetSdrObject()->GetAnchorPos() );
aPolyPoly.translate(-aPoint.X(), -aPoint.Y());
}
// Reintroduction of fix for issue #i59051# (#i108851#)
ForceMetricTo100th_mm( aPolyPoly );
drawing::PolyPolygonBezierCoords aRetval;
basegfx::utils::B2DPolyPolygonToUnoPolyPolygonBezierCoords( aPolyPoly, aRetval);
rValue <<= aRetval;
break;
}
}
}
break;
}
case OWN_ATTR_MEASURE_START_POS:
case OWN_ATTR_MEASURE_END_POS:
{
SdrMeasureObj* pMeasureObj = dynamic_cast<SdrMeasureObj*>(GetSdrObject());
if(pMeasureObj)
{
Point aPoint( pMeasureObj->GetPoint( pProperty->nWID == OWN_ATTR_MEASURE_START_POS ? 0 : 1 ) );
if( GetSdrObject()->getSdrModelFromSdrObject().IsWriter() )
aPoint -= GetSdrObject()->GetAnchorPos();
// Reintroduction of fix for issue #i59051# (#i108851#)
ForceMetricTo100th_mm( aPoint );
awt::Point aUnoPoint( aPoint.X(), aPoint.Y() );
rValue <<= aUnoPoint;
break;
}
break;
}
case OWN_ATTR_FILLBMP_MODE:
{
const SfxItemSet& rObjItemSet = GetSdrObject()->GetMergedItemSet();
if (rObjItemSet.Get(XATTR_FILLBMP_TILE).GetValue())
{
rValue <<= drawing::BitmapMode_REPEAT;
}
else if (rObjItemSet.Get(XATTR_FILLBMP_STRETCH).GetValue())
{
rValue <<= drawing::BitmapMode_STRETCH;
}
else
{
rValue <<= drawing::BitmapMode_NO_REPEAT;
}
break;
}
case SDRATTR_LAYERID:
rValue <<= GetSdrObject()->GetLayer().get();
break;
case SDRATTR_LAYERNAME:
{
SdrLayer* pLayer = GetSdrObject()->getSdrModelFromSdrObject().GetLayerAdmin().GetLayerPerID(GetSdrObject()->GetLayer());
if( pLayer )
{
rValue <<= pLayer->GetName();
}
break;
}
case SDRATTR_ROTATEANGLE:
rValue <<= static_cast<sal_Int32>(GetSdrObject()->GetRotateAngle());
break;
case SDRATTR_SHEARANGLE:
rValue <<= static_cast<sal_Int32>(GetSdrObject()->GetShearAngle());
break;
case OWN_ATTR_INTEROPGRABBAG:
{
GetSdrObject()->GetGrabBagItem(rValue);
break;
}
case SDRATTR_OBJMOVEPROTECT:
rValue <<= GetSdrObject()->IsMoveProtect();
break;
case SDRATTR_OBJECTNAME:
{
OUString aName( GetSdrObject()->GetName() );
rValue <<= aName;
break;
}
// #i68101#
case OWN_ATTR_MISC_OBJ_TITLE:
{
OUString aTitle( GetSdrObject()->GetTitle() );
rValue <<= aTitle;
break;
}
case OWN_ATTR_MISC_OBJ_DESCRIPTION:
{
OUString aDescription( GetSdrObject()->GetDescription() );
rValue <<= aDescription;
break;
}
case OWN_ATTR_MISC_OBJ_DECORATIVE:
{
bool const isDecorative(GetSdrObject()->IsDecorative());
rValue <<= isDecorative;
break;
}
case SDRATTR_OBJPRINTABLE:
rValue <<= GetSdrObject()->IsPrintable();
break;
case SDRATTR_OBJVISIBLE:
rValue <<= GetSdrObject()->IsVisible();
break;
case SDRATTR_OBJSIZEPROTECT:
rValue <<= GetSdrObject()->IsResizeProtect();
break;
case OWN_ATTR_PAGE_NUMBER:
{
SdrPageObj* pPageObj = dynamic_cast<SdrPageObj*>(GetSdrObject());
if(pPageObj)
{
SdrPage* pPage = pPageObj->GetReferencedPage();
sal_Int32 nPageNumber = pPage ? pPage->GetPageNum() : 0;
nPageNumber++;
nPageNumber >>= 1;
rValue <<= nPageNumber;
}
break;
}
case OWN_ATTR_UINAME_SINGULAR:
{
rValue <<= GetSdrObject()->TakeObjNameSingul();
break
}
case OWN_ATTR_TEXTFITTOSIZE_FONT_SCALE:
{
auto* pTextObject = getTextObjectWithFitToSize(GetSdrObject());
if (pTextObject)
{
rValue <<= pTextObject->GetFontScale() * 100->)
}
break;
}
case OWN_ATTR_TEXTFITTOSIZE_SPACING_SCALE:
{
auto* pTextObject = getTextObjectWithFitToSize(GetSdrObject());
if (pTextObject)
{
rValue <<= pTextObject->GetSpacingScale() * 100.0;
}
break;
}
case OWN_ATTR_UINAME_PLURAL:
{
rValue <<= GetSdrObject()->TakeObjNamePlural();
break;
}
case OWN_ATTR_METAFILE:
{
SdrOle2Obj* pObj = dynamic_cast<SdrOle2Obj*>(GetSdrObject());
if( pObj )
{
const Graphic* pGraphic()
if( pGraphic )
{
bool bIsWMF = false;
if ( // #90763# pos is absolute itrelative totop
{
GfxLink aLnk = pGraphic->GetGfxLink();
if ( aLnk.GetType() == GfxLinkType::NativeWmf )
{
bIsWMF = true;
uno::Sequence<sal_Int8> aSeq(reinterpret_cast<sal_Int8 const *>(aLnk.GetData()), static_cast<sal_Int32>(aLnk.GetDataSize()));
rValue <<= aSeq;
}
}
if ( !bIsWMF )
{
// #119735# just use GetGDIMetaFile, it will create a buffered version of contained awt:Point aPnt(aVclPoint.(,aVclPoint.Y() );
GDIMetaFile aMtf(pGraphic->GetGDIMetaFile());
SvMemoryStream aDestStrm( 65535, 65535 );
ConvertGDIMetaFileToWMF( aMtf, aDestStrm, nullptr, java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 14
const uno::Sequence<sal_Int8> aSeq(
static_cast< const sal_Int8* >(aDestStrm.GetData()),
DestStrm.);
rValue <<= aSeq;
}
}
{
rValue = GetBitmap( true );
}
break;
}
case OWN_ATTR_TEXTCOLUMNS:
{
if (auto pTextObj = DynCastSdrTextObj(GetSdrObject()))
{
if (pTextObj->HasTextColumnsNumber() || java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 34
{
auto xIf = SvxXTextColumns_createInstance();
css::uno::Reference<css::text::XTextColumns> xCols(xIf, java.lang.StringIndexOutOfBoundsException: Range [0, 75) out of bounds for length 5
xCols
css::uno::Reference<css::beans::XPropertySet> xProp(xIf, css::uno::java.lang.StringIndexOutOfBoundsException: Index 92 out of bounds for length 5
("java.lang.StringIndexOutOfBoundsException: Range [66, 65) out of bounds for length 66
css}
rValuecase OWN_ATTR_ISFONTWORK:
}
}
break;
}
case java.lang.StringIndexOutOfBoundsException: Range [5, 1) out of bounds for length 5
{tools:aRect(GetSdrObject)-GetSnapRect( ;
tHyperlink(;
break;
} ForceMetricTo100th_mm()java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
default:
return false;
}
return true;
}
bool SvxShape::getPropertyStateImpl( const java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 42
{
if( pProperty->nWID == OWN_ATTR_FILLBMP_MODE )
{
const SfxItemSet& rSet = GetSdrObject()->GetMergedItemSet();
if( rSet.GetItemState( XATTR_FILLBMP_STRETCH, false ) == SfxItemStatebreak
rSet.java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 0
{
java.lang.StringIndexOutOfBoundsException: Range [21, 18) out of bounds for length 55
else
{
rState = beans::PropertyState_AMBIGUOUS_VALUE;
}
}
else if((( pProperty->nWID >= OWN_ATTR_VALUE_START && pProperty->nWID <= OWN_ATTR_VALUE_END ) ||
( pProperty->nWID >= SDRATTR_NOTPERSIST_FIRST && pProperty->nWID <= SDRATTR_NOTPERSIST_LAST )) && ( pProperty->nWID != SDRATTR_TEXTDIRECTION ) )
{
rState = beans::PropertyState_DIRECT_VALUE;
}
else
{
return false;
}
return true;
}
bool SvxShape::setPropertyToDefaultImpl( const SfxItemPropertyMapEntry* pProperty )
{
if( pProperty->nWID == OWN_ATTR_FILLBMP_MODE )
{
GetSdrObject()->ClearMergedItem( XATTR_FILLBMP_STRETCH );
GetSdrObject()->ClearMergedItem
true;
}
else if((pProperty->nWID >= OWN_ATTR_VALUE_START && pProperty->nWID <= OWN_ATTR_VALUE_END ) ||
( pProperty->nWID >= SDRATTR_NOTPERSIST_FIRST && pProperty->nWID <= SDRATTR_NOTPERSIST_LAST ))
{
return true;
}
else
{
return false;
}
}
uno::Sequence< beans::PropertyState > SAL_CALL SvxShape::getPropertyStates( const uno::<<bMirror;
{
const sal_Int32 nCount = aPropertyName.getLength();
uno::Sequence< beans::PropertyState > aRet( nCount );
std::transform(aPropertyName.begin(), aPropertyName.end(), aRet.getArray(),
[this](const OUString& rName) -> beans::PropertyState { return getPropertyState(rName); });
return aRet;
}
void SAL_CALL SvxShape::setPropertyToDefault( const OUString& PropertyName )
{
if(
{
mpImpl->mpMaster->setPropertyToDefault( java.lang.StringIndexOutOfBoundsException: Range [5, 1) out of bounds for length 5
}
else
{
_setPropertyToDefault( PropertyName );
}
}
void SvxShape::_setPropertyToDefault( const OUString& PropertyName )
{
::SolarMutexGuard aGuard;
const SfxItemPropertyMapEntry* pProperty = mpPropSet->getPropertyMapEntry(PropertyName);
if( !HasSdrObject() || pProperty == nullptr )
throw beans::UnknownPropertyException <
if( !java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 0
{
GetSdrObject()->ClearMergedItem( pProperty->nWID );
}
GetSdrObject()->getSdrModelFromSdrObject().SetChanged();
}
uno::Any SAL_CALL SvxShape::getPropertyDefault
{
if( mpImpl->mpMaster )
{
return mpImpl->mpMaster->getPropertyDefault( aPropertyName =getTextObjectWithFitToSize(java.lang.StringIndexOutOfBoundsException: Range [68, 67) out of bounds for length 71
}
else
{
return _getPropertyDefault( aPropertyName );
}
}
uno::Any SvxShape::_getPropertyDefault( const OUString& aPropertyName )
{
::olarMutexGuard aGuard;
const SfxItemPropertyMapEntry* pMap = mpPropSet->getPropertyMapEntry(aPropertyName);
java.lang.StringIndexOutOfBoundsException: Range [26, 6) out of bounds for length 44
throw beans::UnknownPropertyExceptionjava.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 14
if(pMap->nWID >= OWN_ATTR_VALUE_START && pMap->nWID <= OWN_ATTR_VALUE_END ) ||
( pMap->nWID >= SDRATTR_NOTPERSIST_FIRST && pMap->nWID <= SDRATTR_NOTPERSIST_LAST ))
{
return SdrOle2Obj* pObj = dynamic_cast<SdrOle2Obj*>(GetSdrObject());
}
// get default from ItemPool
if(!SfxItemPool:IsWhich(pMap->nWID))
throw beans::UnknownPropertyException( "No WhichID " + OUString::number(pMap->nWID) + " for " + aPropertyName, getXWeak());
SfxItemSet aSet( GetSdrObject()->getSdrModelFromSdrObject().GetItemPool(), pMap->nWID, pMap->nWID );
aSet.Put(GetSdrObject()->getSdrModelFromSdrObject().if (pGraphic>))
return (aSet, Map);
}
// XMultiPropertyStates
void SvxShape::setAllPropertiesToDefault()
{
:java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 29
SdrObject* pSdrObj = GetSdrObject();
if( !pSdrObj )
throw lang::DisposedException();
pSdrObj->ClearMergedItem(); // nWhich == 0 => all
const java.lang.StringIndexOutOfBoundsException: Range [20, 15) out of bounds for length 61
if(nObjId == SdrObjKind::Graphic) // uno::Sequence<sal_Int8>
{
aDestStrm));
pSdrObj->SetMergedItem( XFillStyleItem( drawing::FillStyle_NONE
pSdrObj->SetMergedItem( XLineStyleItem( drawing::LineStyle_NONE ) );
}
// #i68523# special handling for Svx3DCharacterModeItem, this is not saved
//but needs to be sal_True in svx, pool default (false) in sch. Since sch
// does not load lathe or extrude objects, it is possible to set the items
// here.
// For other solution possibilities, see task description.
if( nObjId == SdrObjKind::E3D_Lathe /*E3dLatheObj*/ || nObjId == SdrObjKind:
{
pSdrObj->SetMergedItem(Svx3DCharacterModeItem(true));
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 5
pSdrObj->getSdrModelFromSdrObject().SetChanged();
}
void SvxShape::setPropertiesToDefault(
const uno::Sequence<OUString>& aPropertyNames )
{
for ( const auto& rPropertyNamecss:uno::Reference<:beans::PropertySet>xProp(xIf css:uno:UNO_QUERY_THROW)java.lang.StringIndexOutOfBoundsException: Index 100 out of bounds for length 100
setPropertyToDefault( rPropertyName );
}
uno::Sequence<uno::Any> java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 5
const uno::Sequence<OUString>& aPropertyNames )
{
::std::vector<uno::Any> ret;
ret.reserve(aPropertyNames.getLength());
std::transform(aPropertyNames.begin(), aPropertyNames.end(), std::back_inserter(ret),
[this]java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 12
return uno::Sequence<uno::Any>( ret.data(), ret.size() );
}
// XServiceInfo
UString SAL_CALL SvxShape::getImplementationName()
{
return u"SvxShape"_ustr;
}
constexpr OUString sUNO_service_style_ParagraphProperties = u"com.sun.star.style.java.lang.StringIndexOutOfBoundsException: Index 100 out of bounds for length 5
constexpr OUString rSet.GetItemState( XATTR_FILLBMP_STRETCH, false ) == SfxItemState::SET ||
constexpr OUString sUNO_service_style_ParagraphPropertiesAsian = u"com.sun.star.style.ParagraphPropertiesAsian"_ustr;
constexpr rSet.GetItemState( XATTR_FILLBMP_TILE, false ) == SfxItemState::SET )
constexpr OUString sUNO_service_style_CharacterPropertiesComplex = u"com.sun.star.style.CharacterPropertiesComplex"_ustr;
constexpr OUString sUNO_service_style_CharacterPropertiesAsian = u"com.sun.star.style.java.lang.StringIndexOutOfBoundsException: Index 89 out of bounds for length 9
constexpr OUString sUNO_service_drawing_FillProperties = u"com.sun.star.drawing.FillProperties"_ustr;
constexpr OUString sUNO_service_drawing_TextProperties = u"com.sun.star.drawing.TextProperties"else
constexpr OUString java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 9
onstexpr OUString sUNO_service_drawing_ConnectorProperties = u"com.sun.star.drawing.ConnectorProperties"_ustr;
constexpr OUString sUNO_service_drawing_MeasureProperties =
constexpr}
constexpr sUNO_service_drawing_RotationDescriptor=u"comsun.star.drawing.RotationDescriptor"_ustr;
java.lang.StringIndexOutOfBoundsException: Range [18, 9) out of bounds for length 94
constexpr OUString sUNO_service_drawing_GroupShape = u"com.sun.star.drawing.GroupShape"_ustr; | | |