23 #include <com/sun/star/document/XEventsSupplier.hpp>
24 #include <com/sun/star/container/XNameReplace.hpp>
25 #include <com/sun/star/presentation/ClickAction.hpp>
26 #include <com/sun/star/drawing/FillStyle.hpp>
27 #include <com/sun/star/drawing/LineStyle.hpp>
29 #include <com/sun/star/drawing/XGluePointsSupplier.hpp>
30 #include <com/sun/star/drawing/GluePoint2.hpp>
31 #include <com/sun/star/drawing/Alignment.hpp>
32 #include <com/sun/star/drawing/EscapeDirection.hpp>
33 #include <com/sun/star/media/ZoomLevel.hpp>
34 #include <com/sun/star/awt/Rectangle.hpp>
35 #include <com/sun/star/style/XStyleFamiliesSupplier.hpp>
36 #include <com/sun/star/container/XNameAccess.hpp>
41 #include <com/sun/star/container/XNamed.hpp>
42 #include <com/sun/star/beans/XPropertySet.hpp>
43 #include <com/sun/star/awt/XControlModel.hpp>
44 #include <com/sun/star/drawing/XControlShape.hpp>
45 #include <com/sun/star/drawing/PointSequenceSequence.hpp>
46 #include <com/sun/star/drawing/PointSequence.hpp>
47 #include <com/sun/star/lang/XServiceInfo.hpp>
48 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
49 #include <com/sun/star/util/XCloneable.hpp>
50 #include <com/sun/star/beans/XMultiPropertyStates.hpp>
52 #include <com/sun/star/drawing/PolyPolygonBezierCoords.hpp>
53 #include <com/sun/star/beans/XPropertySetInfo.hpp>
54 #include <com/sun/star/drawing/HomogenMatrix3.hpp>
55 #include <com/sun/star/graphic/XGraphic.hpp>
56 #include <com/sun/star/style/XStyle.hpp>
80 #include <com/sun/star/drawing/XEnhancedCustomShapeDefaulter.hpp>
81 #include <com/sun/star/container/XChild.hpp>
82 #include <com/sun/star/text/XTextDocument.hpp>
105 {
XML_TOP, drawing::Alignment_TOP },
107 {
XML_LEFT, drawing::Alignment_LEFT },
118 {
XML_AUTO, drawing::EscapeDirection_SMART },
119 {
XML_LEFT, drawing::EscapeDirection_LEFT },
120 {
XML_RIGHT, drawing::EscapeDirection_RIGHT },
121 {
XML_UP, drawing::EscapeDirection_UP },
122 {
XML_DOWN, drawing::EscapeDirection_DOWN },
144 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
145 uno::Reference< drawing::XShapes >
const & rShapes,
146 bool bTemporaryShape)
148 , mxShapes( rShapes )
149 , mxAttrList(xAttrList)
150 , mbListContextPushed( false )
152 , mbIsPlaceholder(false)
153 , mbClearDefaultAttributes( true )
154 , mbIsUserTransformed(false)
160 , maUsedTransformation()
174 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
209 uno::Reference< text::XText > xText(
mxShape, uno::UNO_QUERY );
215 mxCursor = xText->createTextCursor();
223 xTxtImport->PushListContext();
240 return xContext.get();
248 uno::Reference< drawing::XGluePointsSupplier > xSupplier(
mxShape, uno::UNO_QUERY );
249 if( !xSupplier.is() )
252 mxGluePoints.set( xSupplier->getGluePoints(), UNO_QUERY );
258 drawing::GluePoint2 aGluePoint;
259 aGluePoint.IsUserDefined =
true;
260 aGluePoint.Position.X = 0;
261 aGluePoint.Position.Y = 0;
262 aGluePoint.Escape = drawing::EscapeDirection_SMART;
263 aGluePoint.PositionAlignment = drawing::Alignment_CENTER;
264 aGluePoint.IsRelative =
true;
271 switch(aIter.getToken())
276 aGluePoint.Position.X, aIter.toString());
281 aGluePoint.Position.Y, aIter.toString());
284 nId = aIter.toInt32();
288 drawing::Alignment eKind;
291 aGluePoint.PositionAlignment = eKind;
292 aGluePoint.IsRelative =
false;
310 sal_Int32 nInternalId =
mxGluePoints->insert( uno::makeAny( aGluePoint ) );
313 catch(
const uno::Exception&)
321 const css::uno::Reference< css::xml::sax::XFastAttributeList >& )
349 uno::Reference< beans::XPropertySet > xProp(
mxShape, uno::UNO_QUERY );
351 if ( xProp.is() && xProp->getPropertySetInfo()->hasPropertyByName(
"Hyperlink" ) )
353 Reference< XEventsSupplier > xEventsSupplier(
mxShape, UNO_QUERY );
355 if( xEventsSupplier.is() )
357 Reference< XNameReplace > xEvents( xEventsSupplier->getEvents(), UNO_SET_THROW );
359 uno::Sequence< beans::PropertyValue >
aProperties( 3 );
360 aProperties[0].Name =
"EventType";
361 aProperties[0].Handle = -1;
362 aProperties[0].Value <<= OUString(
"Presentation" );
363 aProperties[0].State = beans::PropertyState_DIRECT_VALUE;
365 aProperties[1].Name =
"ClickAction";
366 aProperties[1].Handle = -1;
367 aProperties[1].Value <<= css::presentation::ClickAction_DOCUMENT;
368 aProperties[1].State = beans::PropertyState_DIRECT_VALUE;
370 aProperties[2].Name =
"Bookmark";
371 aProperties[2].Handle = -1;
373 aProperties[2].State = beans::PropertyState_DIRECT_VALUE;
375 xEvents->replaceByName(
"OnClick",
Any( aProperties ) );
382 xSet->setPropertyValue(
"OnClick",
Any( css::presentation::ClickAction_DOCUMENT ) );
403 uno::Reference< container::XNamed > xNamed(
mxShape, uno::UNO_QUERY );
413 uno::Reference<beans::XMultiPropertyStates> xMultiPropertyStates(xShape, uno::UNO_QUERY );
414 if (xMultiPropertyStates.is())
415 xMultiPropertyStates->setAllPropertiesToDefault();
420 uno::Reference< beans::XPropertySet > xSet( xShape, uno::UNO_QUERY_THROW );
422 xSet->setPropertyValue(
"Visible",
uno::Any(
false ) );
425 xSet->setPropertyValue(
"Printable",
uno::Any(
false ) );
427 catch(
const Exception&)
433 || !
GetImport().GetTextImport()->IsInsideDeleteContext()))
435 xImp->shapeWithZIndexAdded( xShape,
mnZOrder );
440 uno::Reference<beans::XPropertySet> xPropertySet(xShape, uno::UNO_QUERY);
441 uno::Reference<beans::XPropertySetInfo> xPropertySetInfo = xPropertySet->getPropertySetInfo();
442 if (
mnRelWidth && xPropertySetInfo->hasPropertyByName(
"RelativeWidth"))
443 xPropertySet->setPropertyValue(
"RelativeWidth", uno::makeAny(
mnRelWidth));
444 if (
mnRelHeight && xPropertySetInfo->hasPropertyByName(
"RelativeHeight"))
445 xPropertySet->setPropertyValue(
"RelativeHeight", uno::makeAny(
mnRelHeight));
450 uno::Reference< uno::XInterface > xRef( static_cast<uno::XInterface *>(xShape.get()) );
455 if(
GetImport().GetShapeImport()->IsHandleProgressBarEnabled())
471 uno::Reference< lang::XMultiServiceFactory > xServiceFact(
GetImport().GetModel(), uno::UNO_QUERY);
472 if(!xServiceFact.is())
483 uno::Reference< drawing::XShape > xShape;
484 if ( serviceName ==
"com.sun.star.drawing.OLE2Shape" &&
485 uno::Reference< text::XTextDocument >(
GetImport().GetModel(), uno::UNO_QUERY).is() )
487 xShape.set(xServiceFact->createInstance(
"com.sun.star.drawing.temporaryForXMLImportOLE2Shape"), uno::UNO_QUERY);
489 else if (serviceName ==
"com.sun.star.drawing.GraphicObjectShape"
490 || serviceName ==
"com.sun.star.drawing.MediaShape"
491 || serviceName ==
"com.sun.star.presentation.MediaShape")
493 css::uno::Sequence<css::uno::Any>
args(1);
495 xShape.set( xServiceFact->createInstanceWithArguments(serviceName, args),
496 css::uno::UNO_QUERY);
500 xShape.set(xServiceFact->createInstance(serviceName), uno::UNO_QUERY);
505 catch(
const uno::Exception& e)
507 uno::Sequence<OUString>
aSeq { serviceName };
509 aSeq, e.Message,
nullptr );
518 uno::Reference< beans::XPropertySet > xPropSet(
mxShape, uno::UNO_QUERY);
574 drawing::HomogenMatrix3 aUnoMatrix;
576 aUnoMatrix.Line1.Column1 = aB2DHomMatrix.
get(0, 0);
577 aUnoMatrix.Line1.Column2 = aB2DHomMatrix.
get(0, 1);
578 aUnoMatrix.Line1.Column3 = aB2DHomMatrix.
get(0, 2);
580 aUnoMatrix.Line2.Column1 = aB2DHomMatrix.
get(1, 0);
581 aUnoMatrix.Line2.Column2 = aB2DHomMatrix.
get(1, 1);
582 aUnoMatrix.Line2.Column3 = aB2DHomMatrix.
get(1, 2);
584 aUnoMatrix.Line3.Column1 = aB2DHomMatrix.
get(2, 0);
585 aUnoMatrix.Line3.Column2 = aB2DHomMatrix.
get(2, 1);
586 aUnoMatrix.Line3.Column3 = aB2DHomMatrix.
get(2, 2);
588 xPropSet->setPropertyValue(
"Transformation",
Any(aUnoMatrix));
595 uno::Reference< beans::XPropertySet > xPropSet(
mxShape, uno::UNO_QUERY);
606 bool bAutoStyle(
false);
608 if(
GetImport().GetShapeImport()->GetAutoStylesContext())
614 if(!pStyle &&
GetImport().GetShapeImport()->GetStylesContext())
618 uno::Reference< style::XStyle > xStyle;
634 if( !xStyle.is() && !aStyleName.isEmpty() )
639 uno::Reference< style::XStyleFamiliesSupplier > xFamiliesSupplier(
GetImport().GetModel(), uno::UNO_QUERY );
641 if( xFamiliesSupplier.is() )
643 uno::Reference< container::XNameAccess > xFamilies( xFamiliesSupplier->getStyleFamilies() );
647 uno::Reference< container::XNameAccess > xFamily;
654 sal_Int32
nPos = aStyleName.lastIndexOf(
'-' );
657 OUString aFamily( aStyleName.copy( 0, nPos ) );
659 xFamilies->getByName( aFamily ) >>= xFamily;
660 aStyleName = aStyleName.copy( nPos + 1 );
666 xFamilies->getByName(
"graphics") >>= xFamily;
673 xFamily->getByName( aStyleName ) >>= xStyle;
677 catch(
const uno::Exception&)
683 if( bSupportsStyle && xStyle.is() )
688 xPropSet->setPropertyValue(
"Style",
Any(xStyle));
690 catch(
const uno::Exception&)
700 uno::Reference<beans::XPropertySetInfo> xPropertySetInfo
701 = xPropSet->getPropertySetInfo();
702 if (xPropertySetInfo->hasPropertyByName(
"TextBox"))
703 xPropSet->setPropertyValue(
"TextBox", uno::makeAny(
mbTextBox));
706 if(bAutoStyle && pDocStyle)
726 if( pStyle ==
nullptr )
734 catch(
const uno::Exception&)
746 uno::Reference< beans::XPropertySet > xPropSet(
mxShape, uno::UNO_QUERY);
753 catch(
const uno::Exception&)
765 uno::Reference< beans::XPropertySet > xPropSet(
mxShape, uno::UNO_QUERY);
769 uno::Reference< beans::XPropertySetInfo > xPropSetInfo( xPropSet->getPropertySetInfo() );
770 if( xPropSetInfo.is() && xPropSetInfo->hasPropertyByName(
"ThumbnailGraphic" ) )
776 xPropSet->setPropertyValue(
"ThumbnailGraphic", uno::makeAny(xGraphic));
779 catch(
const uno::Exception&)
853 maSize.Width = o3tl::saturating_add<sal_Int32>(
maSize.Width, 1);
854 else if (
maSize.Width < 0)
855 maSize.Width = o3tl::saturating_add<sal_Int32>(
maSize.Width, -1);
862 maSize.Height = o3tl::saturating_add<sal_Int32>(
maSize.Height, 1);
863 else if (
maSize.Height < 0)
864 maSize.Height = o3tl::saturating_add<sal_Int32>(
maSize.Height, -1);
912 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
913 uno::Reference< drawing::XShapes >
const & rShapes,
914 bool bTemporaryShape)
940 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList)
943 AddShape(
"com.sun.star.drawing.RectangleShape");
956 uno::Reference< beans::XPropertySet > xPropSet(
mxShape, uno::UNO_QUERY);
961 xPropSet->setPropertyValue(
"CornerRadius", uno::makeAny(
mnRadius ) );
963 catch(
const uno::Exception&)
975 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
976 uno::Reference< drawing::XShapes >
const & rShapes,
977 bool bTemporaryShape)
1022 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList)
1028 AddShape(
"com.sun.star.drawing.PolyLineShape");
1039 awt::Point aBottomRight(
mnX2,
mnY2);
1044 aBottomRight.X =
mnX1;
1050 aBottomRight.Y =
mnY1;
1054 uno::Reference< beans::XPropertySet > xPropSet(
mxShape, uno::UNO_QUERY);
1057 drawing::PointSequenceSequence aPolyPoly(1);
1058 drawing::PointSequence* pOuterSequence = aPolyPoly.getArray();
1059 pOuterSequence->realloc(2);
1060 awt::Point* pInnerSequence = pOuterSequence->getArray();
1066 xPropSet->setPropertyValue(
"Geometry",
Any(aPolyPoly));
1084 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
1085 uno::Reference< drawing::XShapes >
const & rShapes,
1086 bool bTemporaryShape)
1092 meKind(
drawing::CircleKind_FULL ),
1141 mnStartAngle =
static_cast<sal_Int32
>(dStartAngle * 100.0);
1148 mnEndAngle =
static_cast<sal_Int32
>(dEndAngle * 100.0);
1158 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList)
1161 AddShape(
"com.sun.star.drawing.EllipseShape");
1181 if(
meKind != drawing::CircleKind_FULL )
1183 uno::Reference< beans::XPropertySet > xPropSet(
mxShape, uno::UNO_QUERY );
1186 xPropSet->setPropertyValue(
"CircleKind",
Any(
meKind) );
1188 xPropSet->setPropertyValue(
"CircleEndAngle",
Any(
mnEndAngle) );
1198 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
1199 uno::Reference< drawing::XShapes >
const & rShapes,
bool bClosed,
bool bTemporaryShape)
1228 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList)
1232 AddShape(
"com.sun.star.drawing.PolyPolygonShape");
1234 AddShape(
"com.sun.star.drawing.PolyLineShape");
1243 uno::Reference< beans::XPropertySet > xPropSet(
mxShape, uno::UNO_QUERY);
1263 if(aPolygon.
count())
1270 aViewBox.
GetX() + aSize.getX(), aViewBox.
GetY() + aSize.getY());
1272 if(!aSourceRange.equal(aTargetRange))
1280 css::drawing::PointSequenceSequence aPointSequenceSequence;
1282 xPropSet->setPropertyValue(
"Geometry",
Any(aPointSequenceSequence));
1301 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
1302 uno::Reference< drawing::XShapes >
const & rShapes,
1303 bool bTemporaryShape)
1332 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList)
1353 if(!aPolyPolygon.
count())
1361 aViewBox.
GetX() + aSize.getX(), aViewBox.
GetY() + aSize.getY());
1363 if(!aSourceRange.equal(aTargetRange))
1378 service =
"com.sun.star.drawing.ClosedBezierShape";
1382 service =
"com.sun.star.drawing.OpenBezierShape";
1389 service =
"com.sun.star.drawing.PolyPolygonShape";
1393 service =
"com.sun.star.drawing.PolyLineShape";
1410 uno::Reference< beans::XPropertySet > xPropSet(
mxShape, uno::UNO_QUERY);
1419 drawing::PolyPolygonBezierCoords aSourcePolyPolygon;
1423 aSourcePolyPolygon);
1424 aAny <<= aSourcePolyPolygon;
1428 drawing::PointSequenceSequence aSourcePolyPolygon;
1432 aSourcePolyPolygon);
1433 aAny <<= aSourcePolyPolygon;
1436 xPropSet->setPropertyValue(
"Geometry", aAny);
1452 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
1453 uno::Reference< drawing::XShapes >
const & rShapes)
1483 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList)
1486 bool bIsPresShape =
false;
1487 bool bClearText =
false;
1494 if(
GetImport().GetShapeImport()->IsPresentationShapesSupported() )
1499 service =
"com.sun.star.presentation.SubtitleShape";
1504 service =
"com.sun.star.presentation.OutlinerShape";
1509 service =
"com.sun.star.presentation.NotesShape";
1514 service =
"com.sun.star.presentation.HeaderShape";
1520 service =
"com.sun.star.presentation.FooterShape";
1526 service =
"com.sun.star.presentation.SlideNumberShape";
1532 service =
"com.sun.star.presentation.DateTimeShape";
1538 service =
"com.sun.star.presentation.TitleTextShape";
1540 bIsPresShape =
true;
1544 if( service.isEmpty() )
1547 service =
"com.sun.star.drawing.TextShape";
1561 uno::Reference< beans::XPropertySet > xProps(
mxShape, uno::UNO_QUERY);
1564 uno::Reference< beans::XPropertySetInfo > xPropsInfo( xProps->getPropertySetInfo() );
1565 if( xPropsInfo.is() )
1567 if( !
mbIsPlaceholder && xPropsInfo->hasPropertyByName(
"IsEmptyPresentationObject"))
1568 xProps->setPropertyValue(
"IsEmptyPresentationObject", css::uno::Any(
false) );
1571 xProps->setPropertyValue(
"IsPlaceholderDependent", css::uno::Any(
false) );
1578 uno::Reference< text::XText > xText(
mxShape, uno::UNO_QUERY );
1579 xText->setString(
"" );
1597 uno::Reference< beans::XPropertySet > xPropSet(
mxShape, uno::UNO_QUERY);
1602 xPropSet->setPropertyValue(
"CornerRadius", uno::makeAny(
mnRadius ) );
1604 catch(
const uno::Exception&)
1613 uno::Reference< beans::XPropertySet > xPropSet(
mxShape, uno::UNO_QUERY);
1618 xPropSet->setPropertyValue(
"TextChainNextName",
1621 catch(
const uno::Exception&)
1634 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
1635 uno::Reference< drawing::XShapes >
const & rShapes,
1636 bool bTemporaryShape)
1660 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList)
1664 AddShape(
"com.sun.star.drawing.ControlShape");
1668 SAL_WARN_IF( !!
maFormId.isEmpty(),
"xmloff",
"draw:control without a form:id attribute!" );
1673 uno::Reference< awt::XControlModel > xControlModel(
GetImport().GetFormImport()->lookupControl(
maFormId ), uno::UNO_QUERY );
1674 if( xControlModel.is() )
1676 uno::Reference< drawing::XControlShape > xControl(
mxShape, uno::UNO_QUERY );
1678 xControl->setControl( xControlModel );
1696 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
1697 uno::Reference< drawing::XShapes >
const & rShapes,
1698 bool bTemporaryShape)
1717 bool bWrongPositionAfterZ(
false );
1718 sal_Int32 nUPD( 0 );
1719 sal_Int32 nBuildId( 0 );
1721 ( ( ( nUPD == 641 ) || ( nUPD == 645 ) || ( nUPD == 680 ) || ( nUPD == 300 ) ||
1722 ( nUPD == 310 ) || ( nUPD == 320 ) || ( nUPD == 330 ) || ( nUPD == 340 ) ||
1723 ( nUPD == 350 && nBuildId < 202 ) )
1727 bWrongPositionAfterZ =
true;
1729 return bWrongPositionAfterZ;
1752 OUString sValue = aIter.
toString();
1754 std::u16string_view aToken;
1809 if(aPolyPolygon.
count())
1811 drawing::PolyPolygonBezierCoords aSourcePolyPolygon;
1815 aSourcePolyPolygon);
1816 maPath <<= aSourcePolyPolygon;
1828 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList)
1852 AddShape(
"com.sun.star.drawing.ConnectorShape");
1869 aStart = aMat * aStart;
1885 uno::Reference< beans::XPropertySet > xProps(
mxShape, uno::UNO_QUERY );
1888 xProps->setPropertyValue(
"StartPosition",
Any(
maStart));
1889 xProps->setPropertyValue(
"EndPosition",
Any(
maEnd) );
1890 xProps->setPropertyValue(
"EdgeKind",
Any(
mnType) );
1891 xProps->setPropertyValue(
"EdgeLine1Delta",
Any(
mnDelta1) );
1892 xProps->setPropertyValue(
"EdgeLine2Delta",
Any(
mnDelta2) );
1893 xProps->setPropertyValue(
"EdgeLine3Delta",
Any(
mnDelta3) );
1904 bool bApplySVGD(
true );
1905 if ( uno::Reference< text::XTextDocument >(
GetImport().GetModel(), uno::UNO_QUERY).is() )
1907 sal_Int32 nUPD( 0 );
1908 sal_Int32 nBuild( 0 );
1910 if (
GetImport().IsTextDocInOOoFileFormat() ||
1912 ( ( nUPD == 641 ) || ( nUPD == 645 ) ||
1916 ( nUPD == 320 ) ) ) )
1932 const drawing::PolyPolygonBezierCoords* pSource =
static_cast< const drawing::PolyPolygonBezierCoords*
>(
maPath.getValue());
1933 const sal_uInt32 nSequenceCount(pSource->Coordinates.getLength());
1934 bool bStartEqual(
false);
1935 bool bEndEqual(
false);
1939 const drawing::PointSequence& rStartSeq = pSource->Coordinates[0];
1940 const sal_uInt32 nStartCount = rStartSeq.getLength();
1944 const awt::Point& rStartPoint = rStartSeq.getConstArray()[0];
1952 const drawing::PointSequence& rEndSeq = pSource->Coordinates[nSequenceCount - 1];
1953 const sal_uInt32 nEndCount = rEndSeq.getLength();
1957 const awt::Point& rEndPoint = rEndSeq.getConstArray()[nEndCount - 1];
1959 if(rEndPoint.X ==
maEnd.X && rEndPoint.Y ==
maEnd.Y)
1966 if(!bStartEqual || !bEndEqual)
1975 xProps->setPropertyValue(
"PolyPolygonBezier",
maPath);
1985 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
1986 uno::Reference< drawing::XShapes >
const & rShapes,
1987 bool bTemporaryShape)
2038 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList)
2042 AddShape(
"com.sun.star.drawing.MeasureShape");
2049 uno::Reference< beans::XPropertySet > xProps(
mxShape, uno::UNO_QUERY );
2052 xProps->setPropertyValue(
"StartPosition",
Any(
maStart));
2053 xProps->setPropertyValue(
"EndPosition",
Any(
maEnd) );
2057 uno::Reference< text::XText > xText(
mxShape, uno::UNO_QUERY );
2060 xText->setString(
" " );
2071 uno::Reference< text::XText > xText(
mxShape, uno::UNO_QUERY );
2075 uno::Reference< text::XTextCursor > xCursor( xText->createTextCursor() );
2079 xCursor->collapseToStart();
2080 xCursor->goRight( 1,
true );
2081 xCursor->setString(
"" );
2091 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
2092 uno::Reference< drawing::XShapes >
const & rShapes,
2093 bool bTemporaryShape)
2094 :
SdXMLShapeContext( rImport, xAttrList, rShapes, bTemporaryShape ), mnPageNumber(0)
2114 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList)
2124 uno::Reference< lang::XServiceInfo > xInfo(
mxShapes, uno::UNO_QUERY );
2125 const bool bIsOnHandoutPage = xInfo.is() && xInfo->supportsService(
"com.sun.star.presentation.HandoutMasterPage");
2127 if( bIsOnHandoutPage )
2129 AddShape(
"com.sun.star.presentation.HandoutShape");
2135 bIsPresentation =
false;
2140 AddShape(
"com.sun.star.presentation.PageShape");
2144 AddShape(
"com.sun.star.drawing.PageShape");
2157 uno::Reference< beans::XPropertySet > xPropSet(
mxShape, uno::UNO_QUERY);
2160 uno::Reference< beans::XPropertySetInfo > xPropSetInfo( xPropSet->getPropertySetInfo() );
2161 const OUString aPageNumberStr(
"PageNumber");
2162 if( xPropSetInfo.is() && xPropSetInfo->hasPropertyByName(aPageNumberStr))
2163 xPropSet->setPropertyValue(aPageNumberStr, uno::makeAny(
mnPageNumber ));
2172 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
2173 uno::Reference< drawing::XShapes >
const & rShapes,
2174 bool bTemporaryShape)
2186 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList)
2190 AddShape(
"com.sun.star.drawing.CaptionShape");
2197 uno::Reference< beans::XPropertySet > xProps(
mxShape, uno::UNO_QUERY );
2204 bool bIsAutoGrowWidth =
false;
2207 uno::Any aAny( xProps->getPropertyValue(
"TextAutoGrowWidth") );
2208 aAny >>= bIsAutoGrowWidth;
2210 if ( bIsAutoGrowWidth )
2211 xProps->setPropertyValue(
"TextAutoGrowWidth", uno::makeAny(
false ) );
2217 xProps->setPropertyValue(
"CaptionPoint", uno::makeAny(
maCaptionPoint ) );
2219 if ( bIsAutoGrowWidth )
2220 xProps->setPropertyValue(
"TextAutoGrowWidth", uno::makeAny(
true ) );
2224 uno::Reference< beans::XPropertySet > xPropSet(
mxShape, uno::UNO_QUERY);
2229 xPropSet->setPropertyValue(
"CornerRadius", uno::makeAny(
mnRadius ) );
2231 catch(
const uno::Exception&)
2267 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
2268 uno::Reference< drawing::XShapes >
const & rShapes)
2285 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList)
2292 service =
"com.sun.star.presentation.GraphicObjectShape";
2296 service =
"com.sun.star.drawing.GraphicObjectShape";
2307 uno::Reference< beans::XPropertySet > xPropset(
mxShape, uno::UNO_QUERY);
2312 sal_Int32 nUPD, nBuildId;
2315 xPropset->setPropertyValue(
"FillStyle",
Any( FillStyle_NONE ) );
2316 xPropset->setPropertyValue(
"LineStyle",
Any( LineStyle_NONE ) );
2322 uno::Reference< beans::XPropertySetInfo > xPropsInfo( xPropset->getPropertySetInfo() );
2323 if( xPropsInfo.is() && xPropsInfo->hasPropertyByName(
"IsEmptyPresentationObject"))
2324 xPropset->setPropertyValue(
"IsEmptyPresentationObject", css::uno::makeAny(
mbIsPlaceholder ) );
2328 if( !
maURL.isEmpty() )
2333 xPropset->setPropertyValue(
"Graphic", uno::makeAny(xGraphic));
2341 uno::Reference< beans::XPropertySet > xProps(
mxShape, uno::UNO_QUERY);
2344 uno::Reference< beans::XPropertySetInfo > xPropsInfo( xProps->getPropertySetInfo() );
2345 if( xPropsInfo.is() )
2347 if( xPropsInfo->hasPropertyByName(
"IsPlaceholderDependent"))
2348 xProps->setPropertyValue(
"IsPlaceholderDependent", css::uno::Any(
false) );
2366 uno::Reference<beans::XPropertySet> xProperties(
mxShape, uno::UNO_QUERY);
2367 if (xProperties.is())
2369 xProperties->setPropertyValue(
"Graphic", uno::makeAny(xGraphic));
2379 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
2381 css::uno::Reference< css::xml::sax::XFastContextHandler > xContext;
2413 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
2414 uno::Reference< drawing::XShapes >
const & rShapes,
2415 bool bTemporaryShape)
2421 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList)
2427 ? OUString(
"com.sun.star.presentation.ChartShape")
2428 : OUString(
"com.sun.star.drawing.OLE2Shape"));
2438 uno::Reference< beans::XPropertySet > xProps(
mxShape, uno::UNO_QUERY);
2441 uno::Reference< beans::XPropertySetInfo > xPropsInfo( xProps->getPropertySetInfo() );
2442 if( xPropsInfo.is() && xPropsInfo->hasPropertyByName(
"IsEmptyPresentationObject"))
2443 xProps->setPropertyValue(
"IsEmptyPresentationObject", css::uno::Any(
false) );
2447 xProps->setPropertyValue(
"CLSID",
Any(OUString(
"12DCAE26-281F-416F-a234-c3086127382e")) );
2449 aAny = xProps->getPropertyValue(
"Model");
2450 uno::Reference< frame::XModel > xChartModel;
2451 if( aAny >>= xChartModel )
2460 uno::Reference< beans::XPropertySet > xProps(
mxShape, uno::UNO_QUERY);
2463 uno::Reference< beans::XPropertySetInfo > xPropsInfo( xProps->getPropertySetInfo() );
2464 if( xPropsInfo.is() )
2466 if( xPropsInfo->hasPropertyByName(
"IsPlaceholderDependent"))
2467 xProps->setPropertyValue(
"IsPlaceholderDependent", css::uno::Any(
false) );
2497 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
2500 return mxChartContext->createFastChildContext( nElement, xAttrList );
2507 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
2508 css::uno::Reference< css::drawing::XShapes >
const & rShapes)
2518 const css::uno::Reference< css::xml::sax::XFastAttributeList >& )
2534 OUString service(
"com.sun.star.drawing.OLE2Shape");
2542 service =
"com.sun.star.presentation.ChartShape";
2546 service =
"com.sun.star.presentation.CalcShape";
2550 service =
"com.sun.star.presentation.OLE2Shape";
2563 uno::Reference< beans::XPropertySet > xProps(
mxShape, uno::UNO_QUERY);
2566 uno::Reference< beans::XPropertySetInfo > xPropsInfo( xProps->getPropertySetInfo() );
2567 if( xPropsInfo.is() )
2569 if( !
mbIsPlaceholder && xPropsInfo->hasPropertyByName(
"IsEmptyPresentationObject"))
2570 xProps->setPropertyValue(
"IsEmptyPresentationObject", css::uno::Any(
false) );
2573 xProps->setPropertyValue(
"IsPlaceholderDependent", css::uno::Any(
false) );
2580 uno::Reference< beans::XPropertySet > xProps(
mxShape, uno::UNO_QUERY );
2588 const OUString sURL(
"vnd.sun.star.EmbeddedObject:" );
2590 if ( aPersistName.startsWith( sURL ) )
2591 aPersistName = aPersistName.copy( sURL.getLength() );
2593 xProps->setPropertyValue(
"PersistName",
2594 uno::makeAny( aPersistName ) );
2599 xProps->setPropertyValue(
"LinkURL",
2600 uno::makeAny( aPersistName ) );
2615 if (
GetImport().isGeneratorVersionOlderThan(
2624 uno::Reference< beans::XPropertySet > xProps(
mxShape, uno::UNO_QUERY);
2628 xProps->setPropertyValue(
"FillStyle", uno::makeAny(drawing::FillStyle_NONE));
2629 xProps->setPropertyValue(
"LineStyle", uno::makeAny(drawing::LineStyle_NONE));
2635 OUString aPersistName(
GetImport().ResolveEmbeddedObjectURLFromBase64() );
2636 const OUString sURL(
"vnd.sun.star.EmbeddedObject:" );
2638 aPersistName = aPersistName.copy( sURL.getLength() );
2640 uno::Reference< beans::XPropertySet > xProps(
mxShape, uno::UNO_QUERY);
2642 xProps->setPropertyValue(
"PersistName", uno::makeAny( aPersistName ) );
2667 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
2680 maCLSID = xEContext->GetFilterCLSID();
2683 uno::Reference< beans::XPropertySet > xPropSet(
mxShape, uno::UNO_QUERY);
2686 xPropSet->setPropertyValue(
"CLSID", uno::makeAny(
maCLSID ) );
2688 uno::Reference< lang::XComponent > xComp;
2689 xPropSet->getPropertyValue(
"Model") >>= xComp;
2690 SAL_WARN_IF( !xComp.is(),
"xmloff",
"no xModel for own OLE format" );
2691 xEContext->SetComponent(xComp);
2694 return xEContext.get();
2702 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
2703 css::uno::Reference< css::drawing::XShapes >
const & rShapes)
2714 const css::uno::Reference< css::xml::sax::XFastAttributeList >& )
2716 AddShape(
"com.sun.star.drawing.AppletShape");
2753 uno::Reference< beans::XPropertySet > xProps(
mxShape, uno::UNO_QUERY );
2759 awt::Rectangle aRect( 0, 0,
maSize.Width,
maSize.Height );
2760 xProps->setPropertyValue(
"VisibleArea",
Any(aRect) );
2765 xProps->setPropertyValue(
"AppletCommands",
Any(
maParams) );
2770 xProps->setPropertyValue(
"AppletCodeBase",
Any(
maHref) );
2780 xProps->setPropertyValue(
"AppletIsScript",
Any(
mbIsScript) );
2789 xProps->setPropertyValue(
"AppletDocBase",
Any(
GetImport().GetDocumentBase()) );
2799 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
2803 OUString aParamName, aParamValue;
2808 aParamName = aIter.toString();
2810 aParamValue = aIter.toString();
2813 if( !aParamName.isEmpty() )
2817 maParams[nIndex].Name = aParamName;
2819 maParams[nIndex].Value <<= aParamValue;
2820 maParams[nIndex].State = beans::PropertyState_DIRECT_VALUE;
2831 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
2832 css::uno::Reference< css::drawing::XShapes >
const & rShapes) :
2843 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList)
2851 if( aIter.toString() ==
"application/vnd.sun.star.media" )
2860 bool bIsPresShape =
false;
2864 service =
"com.sun.star.drawing.MediaShape";
2871 service =
"com.sun.star.presentation.MediaShape";
2876 service =
"com.sun.star.drawing.PluginShape";
2887 uno::Reference< beans::XPropertySet > xProps(
mxShape, uno::UNO_QUERY );
2890 uno::Reference< beans::XPropertySetInfo > xPropsInfo( xProps->getPropertySetInfo() );
2891 if( xPropsInfo.is() )
2893 if( !
mbIsPlaceholder && xPropsInfo->hasPropertyByName(
"IsEmptyPresentationObject"))
2894 xProps->setPropertyValue(
"IsEmptyPresentationObject", css::uno::Any(
false) );
2897 xProps->setPropertyValue(
"IsPlaceholderDependent", css::uno::Any(
false) );
2912 return "vnd.sun.star.Package:" + rURL;
2939 uno::Reference< beans::XPropertySet > xProps(
mxShape, uno::UNO_QUERY );
2945 const OUString sVisibleArea(
"VisibleArea" );
2946 uno::Reference< beans::XPropertySetInfo > aXPropSetInfo( xProps->getPropertySetInfo() );
2947 if ( !aXPropSetInfo.is() || aXPropSetInfo->hasPropertyByName( sVisibleArea ) )
2950 awt::Rectangle aRect( 0, 0,
maSize.Width,
maSize.Height );
2951 xProps->setPropertyValue( sVisibleArea,
Any(aRect) );
2960 xProps->setPropertyValue(
"PluginCommands",
Any(
maParams) );
2965 xProps->setPropertyValue(
"PluginMimeType",
Any(
maMimeType) );
2970 xProps->setPropertyValue(
"PluginURL",
Any(
maHref) );
2976 xProps->setPropertyValue(
"MediaURL", uno::makeAny(
maHref));
2978 xProps->setPropertyValue(
"MediaMimeType", uno::makeAny(
maMimeType) );
2980 for(
const auto& rParam : std::as_const(
maParams) )
2982 const OUString& rName = rParam.Name;
2984 if( rName ==
"Loop" )
2987 rParam.Value >>= aValueStr;
2988 xProps->setPropertyValue(
"Loop",
2989 uno::makeAny( aValueStr ==
"true" ) );
2991 else if( rName ==
"Mute" )
2994 rParam.Value >>= aValueStr;
2995 xProps->setPropertyValue(
"Mute",
2996 uno::makeAny( aValueStr ==
"true" ) );
2998 else if( rName ==
"VolumeDB" )
3001 rParam.Value >>= aValueStr;
3002 xProps->setPropertyValue(
"VolumeDB",
3003 uno::makeAny( static_cast< sal_Int16 >( aValueStr.toInt32() ) ) );
3005 else if( rName ==
"Zoom" )
3008 media::ZoomLevel eZoomLevel;
3010 rParam.Value >>= aZoomStr;
3012 if( aZoomStr ==
"25%" )
3013 eZoomLevel = media::ZoomLevel_ZOOM_1_TO_4;
3014 else if( aZoomStr ==
"50%" )
3015 eZoomLevel = media::ZoomLevel_ZOOM_1_TO_2;
3016 else if( aZoomStr ==
"100%" )
3017 eZoomLevel = media::ZoomLevel_ORIGINAL;
3018 else if( aZoomStr ==
"200%" )
3019 eZoomLevel = media::ZoomLevel_ZOOM_2_TO_1;
3020 else if( aZoomStr ==
"400%" )
3021 eZoomLevel = media::ZoomLevel_ZOOM_4_TO_1;
3022 else if( aZoomStr ==
"fit" )
3023 eZoomLevel = media::ZoomLevel_FIT_TO_WINDOW;
3024 else if( aZoomStr ==
"fixedfit" )
3025 eZoomLevel = media::ZoomLevel_FIT_TO_WINDOW_FIXED_ASPECT;
3026 else if( aZoomStr ==
"fullscreen" )
3027 eZoomLevel = media::ZoomLevel_FULLSCREEN;
3029 eZoomLevel = media::ZoomLevel_NOT_AVAILABLE;
3031 xProps->setPropertyValue(
"Zoom", uno::makeAny( eZoomLevel ) );
3044 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
3048 OUString aParamName, aParamValue;
3053 aParamName = aIter.toString();
3055 aParamValue = aIter.toString();
3058 if( !aParamName.isEmpty() )
3062 maParams[nIndex].Name = aParamName;
3064 maParams[nIndex].Value <<= aParamValue;
3065 maParams[nIndex].State = beans::PropertyState_DIRECT_VALUE;
3076 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
3077 css::uno::Reference< css::drawing::XShapes >
const & rShapes)
3087 const css::uno::Reference< css::xml::sax::XFastAttributeList >& )
3089 AddShape(
"com.sun.star.drawing.FrameShape");
3099 uno::Reference< beans::XPropertySet > xProps(
mxShape, uno::UNO_QUERY );
3109 xProps->setPropertyValue(
"FrameURL",
Any(
maHref) );
3137 uno::Reference< beans::XPropertySet > xProps(
mxShape, uno::UNO_QUERY );
3144 awt::Rectangle aRect( 0, 0,
maSize.Width,
maSize.Height );
3145 xProps->setPropertyValue(
"VisibleArea",
Any(aRect) );
3155 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
3156 css::uno::Reference< css::drawing::XShapes >
const & rShapes,
3157 bool bTemporaryShape)
3160 mbSupportsReplacement( false ),
3164 uno::Reference < util::XCloneable > xClone( xAttrList, uno::UNO_QUERY );
3166 mxAttrList.set( xClone->createClone(), uno::UNO_QUERY );
3179 if(!pSdXMLGraphicObjectShapeContext)
3184 uno::Reference< container::XChild > xChild(pSdXMLGraphicObjectShapeContext->
getShape(), uno::UNO_QUERY_THROW);
3186 uno::Reference< drawing::XShapes > xParent(xChild->getParent(), uno::UNO_QUERY_THROW);
3189 xParent->remove(pSdXMLGraphicObjectShapeContext->
getShape());
3192 uno::Reference< lang::XComponent > xComp(pSdXMLGraphicObjectShapeContext->
getShape(), UNO_QUERY);
3199 catch( uno::Exception& )
3207 uno::Reference<beans::XPropertySet> getGraphicPropertySetFromImportContext(
const SvXMLImportContext& rContext)
3209 uno::Reference<beans::XPropertySet> aPropertySet;
3212 if (pSdXMLGraphicObjectShapeContext)
3213 aPropertySet.set(pSdXMLGraphicObjectShapeContext->
getShape(), uno::UNO_QUERY);
3215 return aPropertySet;
3222 uno::Reference<graphic::XGraphic>
xGraphic;
3225 const uno::Reference<beans::XPropertySet> xPropertySet = getGraphicPropertySetFromImportContext(rContext);
3227 if (xPropertySet.is())
3229 xPropertySet->getPropertyValue(
"Graphic") >>= xGraphic;
3232 catch( uno::Exception& )
3245 if(pSdXMLGraphicObjectShapeContext)
3249 const uno::Reference< beans::XPropertySet > xPropSet(pSdXMLGraphicObjectShapeContext->
getShape(), uno::UNO_QUERY_THROW);
3251 xPropSet->getPropertyValue(
"GraphicStreamURL") >>= aRetval;
3253 catch( uno::Exception& )
3264 const uno::Reference< xml::sax::XFastAttributeList>& xAttrList )
3272 xContext = pShapeContext;
3283 if( pPluginContext && pPluginContext->
getMimeType() ==
"model/vnd.gltf+json" )
3309 if(dynamic_cast< SdXMLGraphicObjectShapeContext* >(xContext.get()))
3323 uno::Reference < beans::XPropertySet > xPropSet(
3324 pSContext->
getShape(), uno::UNO_QUERY );
3328 nElement, xAttrList, xPropSet );
3360 uno::Reference < beans::XPropertySet > xPropSet( pSContext->
getShape(), uno::UNO_QUERY );
3372 uno::Reference<beans::XPropertySet> xPropSet(pSContext->
getShape(), uno::UNO_QUERY);
3385 uno::Reference<beans::XPropertySet> xPropSet(pSContext->
getShape(), uno::UNO_QUERY);
3394 return xContext.get();
3398 const css::uno::Reference< css::xml::sax::XFastAttributeList >& )
3408 dynamic_cast<const SdXMLGraphicObjectShapeContext*>(pSelectedContext.get()));
3409 if ( pShapeContext )
3412 const uno::Reference< uno::XInterface > xShape( pShapeContext->
getShape() );
3421 switch (aIter.getToken())
3435 uno::Reference< xml::sax::XFastAttributeList> xEmpty;
3494 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
3495 uno::Reference< drawing::XShapes >
const & rShapes)
3504 OUString aStyleName = aIter.toString();
3505 if(!aStyleName.isEmpty())
3541 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList)
3544 AddShape(
"com.sun.star.drawing.CustomShape");
3557 uno::Reference< beans::XPropertySet > xPropSet(
mxShape, uno::UNO_QUERY );
3570 catch(
const uno::Exception&)
3585 double fRotate, fShearX;
3589 if (aScale.
getX() < 0.0)
3591 const OUString
sName(
"MirroredX");
3594 [&sName](beans::PropertyValue&
rValue) {
return rValue.Name == sName; });
3597 beans::PropertyValue& rItem = *aI;
3598 bool bMirroredX = *o3tl::doAccess<bool>(rItem.Value);
3599 rItem.Value <<= !bMirroredX;
3601 rItem.State = beans::PropertyState_DIRECT_VALUE;
3605 beans::PropertyValue* pItem;
3608 pItem->Name = sName;
3610 pItem->Value <<=
true;
3611 pItem->State = beans::PropertyState_DIRECT_VALUE;
3615 if (aScale.
getY() < 0.0)
3617 const OUString
sName(
"MirroredY");
3620 [&sName](beans::PropertyValue&
rValue) {
return rValue.Name == sName; });
3623 beans::PropertyValue& rItem = *aI;
3624 bool bMirroredY = *o3tl::doAccess<bool>(rItem.Value);
3625 rItem.Value <<= !bMirroredY;
3627 rItem.State = beans::PropertyState_DIRECT_VALUE;
3631 beans::PropertyValue* pItem;
3634 pItem->Name = sName;
3636 pItem->Value <<=
true;
3637 pItem->State = beans::PropertyState_DIRECT_VALUE;
3649 uno::Reference< beans::XPropertySet > xPropSet(
mxShape, uno::UNO_QUERY );
3652 xPropSet->setPropertyValue(
"CustomShapeGeometry",
Any(aSeq) );
3655 catch(
const uno::Exception&)
3662 if (
GetImport().getBuildIds(nUPD, nBuild))
3664 if( ((nUPD >= 640 && nUPD <= 645) || (nUPD == 680)) && (nBuild <= 9221) )
3666 Reference< drawing::XEnhancedCustomShapeDefaulter > xDefaulter(
mxShape, UNO_QUERY );
3667 if( xDefaulter.is() )
3669 xDefaulter->createCustomShapeDefaults(
"" );
3685 uno::Reference< beans::XPropertySet > xPropSet(
mxShape, uno::UNO_QUERY);
3689 xPropSet->setPropertyValue(
3690 "FlushCustomShapeUnoApiObjects", css::uno::Any(
true));
3693 catch(
const uno::Exception&)
3701 const uno::Reference< xml::sax::XFastAttributeList>& xAttrList )
3703 css::uno::Reference< css::xml::sax::XFastContextHandler > xContext;
3706 uno::Reference< beans::XPropertySet > xPropSet(
mxShape,uno::UNO_QUERY );
3707 if ( xPropSet.is() )
3727 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList)
3729 OUString service(
"com.sun.star.drawing.TableShape");
3736 service =
"com.sun.star.presentation.TableShape";
3747 uno::Reference< beans::XPropertySet > xProps(
mxShape, uno::UNO_QUERY);
3749 if(bIsPresShape && xProps.is())
3751 uno::Reference< beans::XPropertySetInfo > xPropsInfo( xProps->getPropertySetInfo() );
3752 if( xPropsInfo.is() )
3754 if( !
mbIsPlaceholder && xPropsInfo->hasPropertyByName(
"IsEmptyPresentationObject"))
3755 xProps->setPropertyValue(
"IsEmptyPresentationObject", css::uno::Any(
false) );
3758 xProps->setPropertyValue(
"IsPlaceholderDependent", css::uno::Any(
false) );
3768 Reference< XStyleFamiliesSupplier > xFamiliesSupp(
GetImport().GetModel(), UNO_QUERY_THROW );
3771 Reference< XStyle > xTableStyle( xTableFamily->getByName(
msTemplateStyleName ), UNO_QUERY_THROW );
3772 xProps->setPropertyValue(
"TableTemplate",
Any( xTableStyle ) );
3780 for(
int i = 0; pEntry->
msApiName && (
i < 6);
i++, pEntry++ )
3797 if( xTableImport.is() && xProps.is() )
3799 uno::Reference< table::XColumnRowRange > xColumnRowRange(
3800 xProps->getPropertyValue(
"Model"), uno::UNO_QUERY );
3802 if( xColumnRowRange.is() )
3840 if( (nElement & TOKEN_MASK) == pEntry->
meXMLName )
3856 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
SdXMLAppletShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
bool importFromSvgPoints(B2DPolygon &o_rPoly, const OUString &rSvgPointsAttribute)
virtual ~SdXMLRectShapeContext() override
sal_Int32 nApiNameLength
Property-Name.
bool reserveIdentifier(const OUString &rIdentifier)
reserves an identifier for later registration.
css::uno::Sequence< css::beans::PropertyValue > maParams
bool convertMeasureToCore(sal_Int32 &rValue, std::u16string_view rString, sal_Int32 nMin=SAL_MIN_INT32, sal_Int32 nMax=SAL_MAX_INT32) const
convert string to measure with meCoreMeasureUnit, using optional min and max values ...
SdXMLGraphicObjectShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
bool mbListContextPushed
whether to restore list context (#91964#)
virtual ~SdXMLPageShapeContext() override
SvXMLImportContextRef mxReplImplContext
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
endFastElement is called before a context will be destructed, but after an elements context has been ...
void removeGraphicFromImportContext(const SvXMLImportContext &rContext) override
helper to get the created xShape instance, needs to be overridden
SdXMLConnectorShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes, bool bTemporaryShape)
EnhancedCustomShapeTokenEnum EASGet(const OUString &rShapeType)
css::uno::Reference< css::text::XTextCursor > mxCursor
css::uno::Reference< css::io::XOutputStream > mxBase64Stream
css::uno::Reference< css::graphic::XGraphic > getGraphicFromImportContext(const SvXMLImportContext &rContext) const override
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
css::uno::Reference< css::container::XIdentifierContainer > mxGluePoints
virtual ~SdXMLPluginShapeContext() override
bool isPresentationShape() const
void B2DPolyPolygonToUnoPointSequenceSequence(const B2DPolyPolygon &rPolyPolygon, css::drawing::PointSequenceSequence &rPointSequenceSequenceRetval)
SvXMLEnumMapEntry< drawing::ConnectorType > const aXML_ConnectionKind_EnumMap[]
SdXMLCaptionShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes, bool bTemporaryShape)
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
virtual ~SdXMLGraphicObjectShapeContext() override
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
endFastElement is called before a context will be destructed, but after an elements context has been ...
bool mbTextBox
If the text of this shape is handled by a Writer TextFrame.
std::enable_if< std::is_signed< T >::value, T >::type saturating_sub(T a, T b)
bool getSupportsMultipleContents() const
read/write access to boolean switch
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
css::uno::Reference< css::text::XTextCursor > mxOldCursor
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
SvXMLImport & GetImport()
const css::uno::Reference< css::style::XStyle > & GetStyle() const
virtual ~SdXMLPathShapeContext() override
virtual ~SdXMLEllipseShapeContext() override
OUString msTemplateStyleName
SdXMLPathShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes, bool bTemporaryShape)
SdXMLControlShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes, bool bTemporaryShape)
bool mbSupportsReplacement
virtual ~SdXMLLineShapeContext() override
virtual ~SdXMLMeasureShapeContext() override
bool importFromSvgD(B2DPolyPolygon &o_rPolyPoly, const OUString &rSvgDAttribute, bool bHandleRelativeNextPointCompatible, PointIndexSet *pHelpPointIndexSet)
geometry::RealPoint2D maPosition
bool IsXMLToken(std::u16string_view rString, enum XMLTokenEnum eToken)
compare eToken to the string
css::uno::Reference< css::io::XOutputStream > GetStreamForEmbeddedObjectURLFromBase64() const
FastAttributeList & castToFastAttributeList(const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
SdXMLMeasureShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes, bool bTemporaryShape)
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
css::uno::Reference< css::graphic::XGraphic > loadGraphicByURL(OUString const &rURL)
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
static const sal_uInt16 AOO_40x
rtl::Reference< XMLTextImportHelper > const & GetTextImport()
static const sal_uInt16 LO_41x
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
OUString GetDocumentBase() const
void setHyperlink(const OUString &rHyperlink)
virtual ~SdXMLObjectShapeContext() override
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
SdXMLEllipseShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes, bool bTemporaryShape)
double get(sal_uInt16 nRow, sal_uInt16 nColumn) const
virtual ~SdXMLCustomShapeContext() override
static void convertDouble(OUStringBuffer &rBuffer, double fNumber, bool bWriteUnits, sal_Int16 nSourceUnit, sal_Int16 nTargetUnit)
void AddShape(css::uno::Reference< css::drawing::XShape > &xShape)
css::uno::Any const & rValue
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
void setSupportsMultipleContents(bool bNew)
sal_uInt16 getGeneratorVersion() const
this checks the build ID and returns
PropertiesInfo aProperties
const BorderLinePrimitive2D *pCandidateB assert(pCandidateA)
virtual ~SdXMLFrameShapeContext() override
B2DHomMatrix createScaleShearXRotateTranslateB2DHomMatrix(double fScaleX, double fScaleY, double fShearX, double fRadiant, double fTranslateX, double fTranslateY)
SdXMLLineShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes, bool bTemporaryShape)
static const sal_uInt16 OOo_34x
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
#define XMLOFF_WARN_UNKNOWN(area, rIter)
virtual ~SdXMLConnectorShapeContext() override
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
OUString ResolveEmbeddedObjectURL(const OUString &rURL, std::u16string_view rClassId)
bool mbClearDefaultAttributes
::comphelper::UnoInterfaceToUniqueIdentifierMapper & getInterfaceToIdentifierMapper()
OUString maPresentationClass
const css::uno::Reference< css::drawing::XShape > & getShape() const
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
static bool ImpIsEmptyURL(std::u16string_view rURL)
bool maTemplateStylesUsed[6]
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
SdXMLShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes, bool bTemporaryShape)
virtual void SAL_CALL characters(const OUString &rChars) override
This method is called for all characters that are contained in the current element.
css::uno::Reference< css::io::XOutputStream > GetStreamForGraphicObjectURLFromBase64() const
B2IRange fround(const B2DRange &rRange)
void addContent(const SvXMLImportContext &rSvXMLImportContext)
add a content to the remembered image import contexts
XMLTokenEnum
The enumeration of all XML tokens.
std::vector< css::beans::PropertyValue > maCustomShapeGeometry
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
css::uno::Reference< css::document::XActionLockable > mxLockable
const XMLPropertyMapEntry aXMLTableShapeAttributes[]
contains the attribute to property mapping for a drawing layer table WARNING: if attributes are added...
sal_Int32 getToken() const
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
B2DHomMatrix createSourceRangeTargetRangeTransform(const B2DRange &rSourceRange, const B2DRange &rTargetRange)
void Increment(sal_Int32 nInc=1)
#define DBG_UNHANDLED_EXCEPTION(...)
SvXMLImportContextRef mxChartContext
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
css::awt::Point maCaptionPoint
SdXMLPluginShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
virtual ~SdXMLPolygonShapeContext() override
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
void addGluePoint(const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
endFastElement is called before a context will be destructed, but after an elements context has been ...
virtual void FillPropertySet(const css::uno::Reference< css::beans::XPropertySet > &rPropSet)
bool getBuildIds(sal_Int32 &rUPD, sal_Int32 &rBuild) const
returns the upd and build id (f.e.
bool IsFormsSupported() const
bool getNextToken(std::u16string_view &rToken)
bool decompose(B2DTuple &rScale, B2DTuple &rTranslate, double &rRotate, double &rShearX) const
bool IsPackageURL(const OUString &rURL) const
virtual ~SdXMLTextBoxShapeContext() override
virtual ~SdXMLFloatingFrameShapeContext() override
sal_Int32 toInt32() const
Represents a property with its API-name, its XML-name and the type of its value.
void scale(double fX, double fY)
css::uno::Reference< css::drawing::XShape > mxShape
void transform(const basegfx::B2DHomMatrix &rMatrix)
virtual ~SdXMLCaptionShapeContext() override
ProgressBarHelper * GetProgressBarHelper()
virtual ~SdXMLAppletShapeContext() override
SvXMLImportContext(SvXMLImport &rImport)
A contexts constructor does anything that is required if an element starts.
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
css::uno::Type const & get()
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
endFastElement is called before a context will be destructed, but after an elements context has been ...
bool registerReservedReference(const OUString &rIdentifier, const css::uno::Reference< css::uno::XInterface > &rInterface)
registers the given uno object with reserved identifier.
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
endFastElement is called before a context will be destructed, but after an elements context has been ...
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
css::uno::Reference< css::xml::sax::XFastAttributeList > mxAttrList
void transform(const basegfx::B2DHomMatrix &rMatrix)
static SvXMLShapeContext * CreateFrameChildContext(SvXMLImport &rImport, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xFrameAttrList)
OUString toString() const
static bool convertPercent(sal_Int32 &rValue, std::u16string_view rString)
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
This class deliberately does not support XWeak, to improve performance when loading large documents...
SvXMLImportContextRef solveMultipleImages()
solve multiple imported images.
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
endFastElement is called before a context will be destructed, but after an elements context has been ...
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Map an XMLTokenEnum to an enum value.
css::awt::Point maPosition
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
SdXMLPolygonShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes, bool bClosed, bool bTemporaryShape)
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
endFastElement is called before a context will be destructed, but after an elements context has been ...
css::uno::Reference< css::drawing::XShapes > mxShapes
SvXMLEnumMapEntry< drawing::Alignment > const aXML_GlueAlignment_EnumMap[]
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
endFastElement is called before a context will be destructed, but after an elements context has been ...
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
endFastElement is called before a context will be destructed, but after an elements context has been ...
constexpr sal_uInt16 XML_NAMESPACE_TABLE
const OUString & GetParentName() const
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
constexpr bool IsTokenInNamespace(sal_Int32 nToken, sal_uInt16 nNamespacePrefix)
OUString GetAbsoluteReference(const OUString &rValue) const
css::drawing::CircleKind meKind
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
OUString GetStyleDisplayName(XmlStyleFamily nFamily, const OUString &rName) const
#define SAL_WARN_IF(condition, area, stream)
virtual ~SdXMLTableShapeContext() override
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
bool needFixPositionAfterZ() const
css::uno::Sequence< DstElementType > containerToSequence(const SrcType &i_Container)
Handling of tokens in XML:
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
SdXMLFrameShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes, bool bTemporaryShape)
XmlStyleFamily mnStyleFamily
void SetStyle(bool bSupportsStyle=true)
if bSupportsStyle is false, auto styles will be set but not a style
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
SdXMLRectShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes, bool bTemporaryShape)
SdXMLObjectShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
#define XMLERROR_FLAG_ERROR
SvXMLImportContextRef mxImplContext
#define XML_ELEMENT(prefix, name)
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
endFastElement is called before a context will be destructed, but after an elements context has been ...
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &)
static bool convertEnum(EnumT &rEnum, std::u16string_view rValue, const SvXMLEnumMapEntry< EnumT > *pMap)
convert string to enum using given enum map, if the enum is not found in the map, this method will re...
const SvXMLUnitConverter & GetMM100UnitConverter() const
SvXMLEnumMapEntry< drawing::EscapeDirection > const aXML_GlueEscapeDirection_EnumMap[]
OUString getGraphicPackageURLFromImportContext(const SvXMLImportContext &rContext) const override
void SetError(sal_Int32 nId, const css::uno::Sequence< OUString > &rMsgParams, const OUString &rExceptionMessage, const css::uno::Reference< css::xml::sax::XLocator > &rLocator)
Record an error condition that occurred during import.
Sequence< sal_Int8 > aSeq
std::string_view toView() const
SdXMLCustomShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
css::uno::Reference< css::io::XOutputStream > mxBase64Stream
void translate(double fX, double fY)
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
enum::xmloff::token::XMLTokenEnum meXMLName
length of property name
OUString maCustomShapeData
virtual ~SdXMLControlShapeContext() override
SdXMLPageShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes, bool bTemporaryShape)
void B2DPolyPolygonToUnoPolyPolygonBezierCoords(const B2DPolyPolygon &rPolyPolygon, css::drawing::PolyPolygonBezierCoords &rPolyPolygonBezierCoordsRetval)
constexpr sal_Int32 TOKEN_MASK
#define XMLOFF_WARN_UNKNOWN_ELEMENT(area, token)
basegfx::B2DHomMatrix maUsedTransformation
SvXMLImportContextRef mxTableImportContext
SdXMLFloatingFrameShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
const OUString & registerReference(const css::uno::Reference< css::uno::XInterface > &rInterface)
returns a unique identifier for the given uno object.
virtual ~SdXMLShapeContext() override
static OUString lcl_GetMediaReference(SvXMLImport const &rImport, OUString const &rURL)
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
SdXMLTableShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
bool areControlPointsUsed() const
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
endFastElement is called before a context will be destructed, but after an elements context has been ...
Reference< XGraphic > xGraphic
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
SvXMLEnumMapEntry< drawing::CircleKind > const aXML_CircleKind_EnumMap[]
SdXMLChartShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes, bool bTemporaryShape)
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
SdXMLImExTransform2D mnTransform
css::drawing::ConnectorType mnType
css::uno::Sequence< css::beans::PropertyValue > maParams
::basegfx::B2IVector maSize
rtl::Reference< XMLShapeImportHelper > const & GetShapeImport()
SdXMLTextBoxShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
const OUString & getMimeType() const
OUString maCustomShapeEngine