20#include <config_wasm_strip.h>
25#include <com/sun/star/document/XEventsSupplier.hpp>
26#include <com/sun/star/container/XNameReplace.hpp>
27#include <com/sun/star/presentation/ClickAction.hpp>
28#include <com/sun/star/drawing/FillStyle.hpp>
29#include <com/sun/star/drawing/LineStyle.hpp>
32#include <com/sun/star/drawing/XGluePointsSupplier.hpp>
33#include <com/sun/star/drawing/GluePoint2.hpp>
34#include <com/sun/star/drawing/Alignment.hpp>
35#include <com/sun/star/drawing/EscapeDirection.hpp>
36#include <com/sun/star/media/ZoomLevel.hpp>
37#include <com/sun/star/awt/Rectangle.hpp>
38#include <com/sun/star/style/XStyleFamiliesSupplier.hpp>
39#include <com/sun/star/container/XNameAccess.hpp>
44#include <com/sun/star/container/XNamed.hpp>
45#include <com/sun/star/beans/XPropertySet.hpp>
46#include <com/sun/star/awt/XControlModel.hpp>
47#include <com/sun/star/drawing/XControlShape.hpp>
48#include <com/sun/star/drawing/PointSequenceSequence.hpp>
49#include <com/sun/star/drawing/PointSequence.hpp>
50#include <com/sun/star/lang/XServiceInfo.hpp>
51#include <com/sun/star/lang/XMultiServiceFactory.hpp>
52#include <com/sun/star/util/XCloneable.hpp>
53#include <com/sun/star/beans/XMultiPropertyStates.hpp>
55#include <com/sun/star/drawing/PolyPolygonBezierCoords.hpp>
56#include <com/sun/star/beans/XPropertySetInfo.hpp>
57#include <com/sun/star/drawing/HomogenMatrix3.hpp>
58#include <com/sun/star/graphic/XGraphic.hpp>
59#include <com/sun/star/style/XStyle.hpp>
83#include <com/sun/star/drawing/XEnhancedCustomShapeDefaulter.hpp>
84#include <com/sun/star/container/XChild.hpp>
85#include <com/sun/star/text/XTextDocument.hpp>
109 {
XML_TOP, drawing::Alignment_TOP },
111 {
XML_LEFT, drawing::Alignment_LEFT },
122 {
XML_AUTO, drawing::EscapeDirection_SMART },
123 {
XML_LEFT, drawing::EscapeDirection_LEFT },
124 {
XML_RIGHT, drawing::EscapeDirection_RIGHT },
125 {
XML_UP, drawing::EscapeDirection_UP },
126 {
XML_DOWN, drawing::EscapeDirection_DOWN },
147 SvXMLImport& rImport,
148 css::uno::Reference< css::xml::sax::XFastAttributeList> xAttrList,
149 uno::Reference< drawing::XShapes > xShapes,
150 bool bTemporaryShape)
152 , mxShapes(
std::move( xShapes ))
153 , mxAttrList(
std::move(xAttrList))
154 , mbListContextPushed( false )
156 , mbIsPlaceholder(false)
157 , mbClearDefaultAttributes( true )
158 , mbIsUserTransformed(false)
177 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
212 uno::Reference< text::XText > xText(
mxShape, uno::UNO_QUERY );
218 mxCursor = xText->createTextCursor();
226 xTxtImport->PushListContext();
234 xContext =
GetImport().GetTextImport()->CreateTextChildContext(
251 uno::Reference< drawing::XGluePointsSupplier > xSupplier(
mxShape, uno::UNO_QUERY );
252 if( !xSupplier.is() )
255 mxGluePoints.set( xSupplier->getGluePoints(), UNO_QUERY );
261 drawing::GluePoint2 aGluePoint;
262 aGluePoint.IsUserDefined =
true;
263 aGluePoint.Position.X = 0;
264 aGluePoint.Position.Y = 0;
265 aGluePoint.Escape = drawing::EscapeDirection_SMART;
266 aGluePoint.PositionAlignment = drawing::Alignment_CENTER;
267 aGluePoint.IsRelative =
true;
274 switch(aIter.getToken())
278 GetImport().GetMM100UnitConverter().convertMeasureToCore(
279 aGluePoint.Position.X, aIter.toView());
283 GetImport().GetMM100UnitConverter().convertMeasureToCore(
284 aGluePoint.Position.Y, aIter.toView());
287 nId = aIter.toInt32();
291 drawing::Alignment eKind;
294 aGluePoint.PositionAlignment = eKind;
295 aGluePoint.IsRelative =
false;
316 catch(
const uno::Exception&)
324 const css::uno::Reference< css::xml::sax::XFastAttributeList >& )
346 GetImport().GetTextImport()->ResetCursor();
354 GetImport().GetTextImport()->PopListContext();
359 uno::Reference< beans::XPropertySet > xProp(
mxShape, uno::UNO_QUERY );
361 if ( xProp.is() && xProp->getPropertySetInfo()->hasPropertyByName(
"Hyperlink" ) )
363 Reference< XEventsSupplier > xEventsSupplier(
mxShape, UNO_QUERY );
365 if( xEventsSupplier.is() )
367 Reference< XNameReplace > xEvents( xEventsSupplier->getEvents(), UNO_SET_THROW );
372 uno::Any(OUString(
"Presentation" )),
373 beans::PropertyState_DIRECT_VALUE },
377 uno::Any(css::presentation::ClickAction_DOCUMENT),
378 beans::PropertyState_DIRECT_VALUE },
383 beans::PropertyState_DIRECT_VALUE }
391 Reference< beans::XPropertySet > xSet(
mxShape, UNO_QUERY_THROW );
393 xSet->setPropertyValue(
"OnClick",
Any( css::presentation::ClickAction_DOCUMENT ) );
414 uno::Reference< container::XNamed > xNamed(
mxShape, uno::UNO_QUERY );
424 uno::Reference<beans::XMultiPropertyStates> xMultiPropertyStates(xShape, uno::UNO_QUERY );
425 if (xMultiPropertyStates.is())
426 xMultiPropertyStates->setAllPropertiesToDefault();
431 uno::Reference< beans::XPropertySet > xSet( xShape, uno::UNO_QUERY_THROW );
433 xSet->setPropertyValue(
"Visible",
uno::Any(
false ) );
436 xSet->setPropertyValue(
"Printable",
uno::Any(
false ) );
438 catch(
const Exception&)
444 || !
GetImport().GetTextImport()->IsInsideDeleteContext()))
446 xImp->shapeWithZIndexAdded( xShape,
mnZOrder );
451 uno::Reference<beans::XPropertySet> xPropertySet(xShape, uno::UNO_QUERY);
452 uno::Reference<beans::XPropertySetInfo> xPropertySetInfo = xPropertySet->getPropertySetInfo();
453 if (
mnRelWidth && xPropertySetInfo->hasPropertyByName(
"RelativeWidth"))
455 if (
mnRelHeight && xPropertySetInfo->hasPropertyByName(
"RelativeHeight"))
461 uno::Reference< uno::XInterface > xRef(
static_cast<uno::XInterface *
>(xShape.get()) );
466 if(
GetImport().GetShapeImport()->IsHandleProgressBarEnabled())
469 GetImport().GetProgressBarHelper()->Increment();
482 uno::Reference< lang::XMultiServiceFactory > xServiceFact(
GetImport().GetModel(), uno::UNO_QUERY);
483 if(!xServiceFact.is())
494 uno::Reference< drawing::XShape > xShape;
495 if ( serviceName ==
"com.sun.star.drawing.OLE2Shape" &&
496 uno::Reference< text::XTextDocument >(
GetImport().GetModel(), uno::UNO_QUERY).is() )
498 xShape.set(xServiceFact->createInstance(
"com.sun.star.drawing.temporaryForXMLImportOLE2Shape"), uno::UNO_QUERY);
500 else if (serviceName ==
"com.sun.star.drawing.GraphicObjectShape"
501 || serviceName ==
"com.sun.star.drawing.MediaShape"
502 || serviceName ==
"com.sun.star.presentation.MediaShape")
504 xShape.set( xServiceFact->createInstanceWithArguments(serviceName, { css::uno::Any(GetImport().GetDocumentBase()) }),
505 css::uno::UNO_QUERY);
509 xShape.set(xServiceFact->createInstance(serviceName), uno::UNO_QUERY);
514 catch(
const uno::Exception& e)
516 uno::Sequence<OUString>
aSeq { serviceName };
518 aSeq, e.Message,
nullptr );
527 uno::Reference< beans::XPropertySet > xPropSet(
mxShape, uno::UNO_QUERY);
583 drawing::HomogenMatrix3 aUnoMatrix;
585 aUnoMatrix.Line1.Column1 = aB2DHomMatrix.
get(0, 0);
586 aUnoMatrix.Line1.Column2 = aB2DHomMatrix.
get(0, 1);
587 aUnoMatrix.Line1.Column3 = aB2DHomMatrix.
get(0, 2);
589 aUnoMatrix.Line2.Column1 = aB2DHomMatrix.
get(1, 0);
590 aUnoMatrix.Line2.Column2 = aB2DHomMatrix.
get(1, 1);
591 aUnoMatrix.Line2.Column3 = aB2DHomMatrix.
get(1, 2);
593 aUnoMatrix.Line3.Column1 = 0;
594 aUnoMatrix.Line3.Column2 = 0;
595 aUnoMatrix.Line3.Column3 = 1;
597 xPropSet->setPropertyValue(
"Transformation",
Any(aUnoMatrix));
604 uno::Reference< beans::XPropertySet > xPropSet(
mxShape, uno::UNO_QUERY);
615 bool bAutoStyle(
false);
617 if(
GetImport().GetShapeImport()->GetAutoStylesContext())
623 if(!pStyle &&
GetImport().GetShapeImport()->GetStylesContext())
627 uno::Reference< style::XStyle > xStyle;
643 if( !xStyle.is() && !aStyleName.isEmpty() )
648 uno::Reference< style::XStyleFamiliesSupplier > xFamiliesSupplier(
GetImport().GetModel(), uno::UNO_QUERY );
650 if( xFamiliesSupplier.is() )
652 uno::Reference< container::XNameAccess > xFamilies( xFamiliesSupplier->getStyleFamilies() );
656 uno::Reference< container::XNameAccess > xFamily;
660 aStyleName =
GetImport().GetStyleDisplayName(
663 sal_Int32
nPos = aStyleName.lastIndexOf(
'-' );
666 OUString aFamily( aStyleName.copy( 0,
nPos ) );
668 xFamilies->getByName( aFamily ) >>= xFamily;
669 aStyleName = aStyleName.copy(
nPos + 1 );
675 if (xFamilies->hasByName(
"graphics"))
676 xFamilies->getByName(
"graphics") >>= xFamily;
678 xFamilies->getByName(
"GraphicStyles") >>= xFamily;
680 aStyleName =
GetImport().GetStyleDisplayName(
686 xFamily->getByName( aStyleName ) >>= xStyle;
690 catch(
const uno::Exception&)
696 if( bSupportsStyle && xStyle.is() )
701 xPropSet->setPropertyValue(
"Style",
Any(xStyle));
703 catch(
const uno::Exception&)
713 uno::Reference<beans::XPropertySetInfo> xPropertySetInfo
714 = xPropSet->getPropertySetInfo();
715 static constexpr OUStringLiteral sTextBox =
u"TextBox";
716 if (xPropertySetInfo->hasPropertyByName(sTextBox))
720 if(bAutoStyle && pDocStyle)
735 if(
nullptr ==
GetImport().GetShapeImport()->GetAutoStylesContext())
740 if( pStyle ==
nullptr )
748 catch(
const uno::Exception&)
760 uno::Reference< beans::XPropertySet > xPropSet(
mxShape, uno::UNO_QUERY);
767 catch(
const uno::Exception&)
779 uno::Reference< beans::XPropertySet > xPropSet(
mxShape, uno::UNO_QUERY);
783 uno::Reference< beans::XPropertySetInfo > xPropSetInfo( xPropSet->getPropertySetInfo() );
784 if( xPropSetInfo.is() && xPropSetInfo->hasPropertyByName(
"ThumbnailGraphic" ) )
790 xPropSet->setPropertyValue(
"ThumbnailGraphic",
uno::Any(xGraphic));
793 catch(
const uno::Exception&)
854 GetImport().GetMM100UnitConverter().convertMeasureToCore(
859 GetImport().GetMM100UnitConverter().convertMeasureToCore(
864 GetImport().GetMM100UnitConverter().convertMeasureToCore(
867 maSize.Width = o3tl::saturating_add<sal_Int32>(
maSize.Width, 1);
868 else if (
maSize.Width < 0)
869 maSize.Width = o3tl::saturating_add<sal_Int32>(
maSize.Width, -1);
873 GetImport().GetMM100UnitConverter().convertMeasureToCore(
876 maSize.Height = o3tl::saturating_add<sal_Int32>(
maSize.Height, 1);
877 else if (
maSize.Height < 0)
878 maSize.Height = o3tl::saturating_add<sal_Int32>(
maSize.Height, -1);
925 SvXMLImport& rImport,
926 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
927 uno::Reference< drawing::XShapes >
const & rShapes,
928 bool bTemporaryShape)
944 GetImport().GetMM100UnitConverter().convertMeasureToCore(
954 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList)
957 AddShape(
"com.sun.star.drawing.RectangleShape");
970 uno::Reference< beans::XPropertySet > xPropSet(
mxShape, uno::UNO_QUERY);
977 catch(
const uno::Exception&)
988 SvXMLImport& rImport,
989 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
990 uno::Reference< drawing::XShapes >
const & rShapes,
991 bool bTemporaryShape)
1011 GetImport().GetMM100UnitConverter().convertMeasureToCore(
1016 GetImport().GetMM100UnitConverter().convertMeasureToCore(
1021 GetImport().GetMM100UnitConverter().convertMeasureToCore(
1026 GetImport().GetMM100UnitConverter().convertMeasureToCore(
1036 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList)
1042 AddShape(
"com.sun.star.drawing.PolyLineShape");
1053 awt::Point aBottomRight(
mnX2,
mnY2);
1058 aBottomRight.X =
mnX1;
1064 aBottomRight.Y =
mnY1;
1068 uno::Reference< beans::XPropertySet > xPropSet(
mxShape, uno::UNO_QUERY);
1071 drawing::PointSequenceSequence aPolyPoly(1);
1072 drawing::PointSequence* pOuterSequence = aPolyPoly.getArray();
1073 pOuterSequence->realloc(2);
1074 awt::Point* pInnerSequence = pOuterSequence->getArray();
1080 xPropSet->setPropertyValue(
"Geometry",
Any(aPolyPoly));
1097 SvXMLImport& rImport,
1098 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
1099 uno::Reference< drawing::XShapes >
const & rShapes,
1100 bool bTemporaryShape)
1106 meKind(
drawing::CircleKind_FULL ),
1123 GetImport().GetMM100UnitConverter().convertMeasureToCore(
1128 GetImport().GetMM100UnitConverter().convertMeasureToCore(
1133 GetImport().GetMM100UnitConverter().convertMeasureToCore(
1138 GetImport().GetMM100UnitConverter().convertMeasureToCore(
1144 GetImport().GetMM100UnitConverter().convertMeasureToCore(
1155 mnStartAngle =
static_cast<sal_Int32
>(dStartAngle * 100.0);
1162 mnEndAngle =
static_cast<sal_Int32
>(dEndAngle * 100.0);
1172 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList)
1175 AddShape(
"com.sun.star.drawing.EllipseShape");
1194 if(
meKind != drawing::CircleKind_FULL )
1196 uno::Reference< beans::XPropertySet > xPropSet(
mxShape, uno::UNO_QUERY );
1207 if (aScale.
getX() < 0 || aScale.
getY() < 0)
1220 mnEndAngle = (54000 - mnOldStartAngle) % 36000;
1223 xPropSet->setPropertyValue(
"CircleKind",
Any(
meKind) );
1225 xPropSet->setPropertyValue(
"CircleEndAngle",
Any(
mnEndAngle) );
1234 SvXMLImport& rImport,
1235 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
1236 uno::Reference< drawing::XShapes >
const & rShapes,
bool bClosed,
bool bTemporaryShape)
1265 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList)
1269 AddShape(
"com.sun.star.drawing.PolyPolygonShape");
1271 AddShape(
"com.sun.star.drawing.PolyLineShape");
1280 uno::Reference< beans::XPropertySet > xPropSet(
mxShape, uno::UNO_QUERY);
1300 if(aPolygon.
count())
1309 if(!aSourceRange.
equal(aTargetRange))
1317 css::drawing::PointSequenceSequence aPointSequenceSequence;
1319 xPropSet->setPropertyValue(
"Geometry",
Any(aPointSequenceSequence));
1337 SvXMLImport& rImport,
1338 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
1339 uno::Reference< drawing::XShapes >
const & rShapes,
1340 bool bTemporaryShape)
1369 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList)
1390 if(!aPolyPolygon.
count())
1400 if(!aSourceRange.
equal(aTargetRange))
1415 service =
"com.sun.star.drawing.ClosedBezierShape";
1419 service =
"com.sun.star.drawing.OpenBezierShape";
1426 service =
"com.sun.star.drawing.PolyPolygonShape";
1430 service =
"com.sun.star.drawing.PolyLineShape";
1447 uno::Reference< beans::XPropertySet > xPropSet(
mxShape, uno::UNO_QUERY);
1456 drawing::PolyPolygonBezierCoords aSourcePolyPolygon;
1460 aSourcePolyPolygon);
1461 aAny <<= aSourcePolyPolygon;
1465 drawing::PointSequenceSequence aSourcePolyPolygon;
1469 aSourcePolyPolygon);
1470 aAny <<= aSourcePolyPolygon;
1473 xPropSet->setPropertyValue(
"Geometry", aAny);
1488 SvXMLImport& rImport,
1489 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
1490 uno::Reference< drawing::XShapes >
const & rShapes)
1507 GetImport().GetMM100UnitConverter().convertMeasureToCore(
1520 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList)
1523 bool bIsPresShape =
false;
1524 bool bClearText =
false;
1531 if(
GetImport().GetShapeImport()->IsPresentationShapesSupported() )
1536 service =
"com.sun.star.presentation.SubtitleShape";
1541 service =
"com.sun.star.presentation.OutlinerShape";
1546 service =
"com.sun.star.presentation.NotesShape";
1551 service =
"com.sun.star.presentation.HeaderShape";
1557 service =
"com.sun.star.presentation.FooterShape";
1563 service =
"com.sun.star.presentation.SlideNumberShape";
1569 service =
"com.sun.star.presentation.DateTimeShape";
1575 service =
"com.sun.star.presentation.TitleTextShape";
1577 bIsPresShape =
true;
1581 if( service.isEmpty() )
1584 service =
"com.sun.star.drawing.TextShape";
1598 uno::Reference< beans::XPropertySet > xProps(
mxShape, uno::UNO_QUERY);
1601 uno::Reference< beans::XPropertySetInfo > xPropsInfo( xProps->getPropertySetInfo() );
1602 if( xPropsInfo.is() )
1604 if( !
mbIsPlaceholder && xPropsInfo->hasPropertyByName(
"IsEmptyPresentationObject"))
1605 xProps->setPropertyValue(
"IsEmptyPresentationObject", css::uno::Any(
false) );
1608 xProps->setPropertyValue(
"IsPlaceholderDependent", css::uno::Any(
false) );
1615 uno::Reference< text::XText > xText(
mxShape, uno::UNO_QUERY );
1616 xText->setString(
"" );
1634 uno::Reference< beans::XPropertySet > xPropSet(
mxShape, uno::UNO_QUERY);
1641 catch(
const uno::Exception&)
1650 uno::Reference< beans::XPropertySet > xPropSet(
mxShape, uno::UNO_QUERY);
1655 xPropSet->setPropertyValue(
"TextChainNextName",
1658 catch(
const uno::Exception&)
1670 SvXMLImport& rImport,
1671 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
1672 uno::Reference< drawing::XShapes >
const & rShapes,
1673 bool bTemporaryShape)
1697 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList)
1701 AddShape(
"com.sun.star.drawing.ControlShape");
1705 SAL_WARN_IF( !!
maFormId.isEmpty(),
"xmloff",
"draw:control without a form:id attribute!" );
1710 uno::Reference< awt::XControlModel > xControlModel(
GetImport().GetFormImport()->lookupControl(
maFormId ), uno::UNO_QUERY );
1711 if( xControlModel.is() )
1713 uno::Reference< drawing::XControlShape > xControl(
mxShape, uno::UNO_QUERY );
1715 xControl->setControl( xControlModel );
1732 SvXMLImport& rImport,
1733 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
1734 uno::Reference< drawing::XShapes >
const & rShapes,
1735 bool bTemporaryShape)
1752bool SvXMLImport::needFixPositionAfterZ()
const
1754 bool bWrongPositionAfterZ(
false );
1755 sal_Int32 nUPD( 0 );
1756 sal_Int32 nBuildId( 0 );
1757 if ( getBuildIds( nUPD, nBuildId ) &&
1758 ( ( ( nUPD == 641 ) || ( nUPD == 645 ) || ( nUPD == 680 ) || ( nUPD == 300 ) ||
1759 ( nUPD == 310 ) || ( nUPD == 320 ) || ( nUPD == 330 ) || ( nUPD == 340 ) ||
1760 ( nUPD == 350 && nBuildId < 202 ) )
1761 || (getGeneratorVersion() == SvXMLImport::AOO_40x)))
1764 bWrongPositionAfterZ =
true;
1766 return bWrongPositionAfterZ;
1789 OUString sValue = aIter.
toString();
1791 std::u16string_view aToken;
1794 GetImport().GetMM100UnitConverter().convertMeasureToCore(
1798 GetImport().GetMM100UnitConverter().convertMeasureToCore(
1802 GetImport().GetMM100UnitConverter().convertMeasureToCore(
1821 GetImport().GetMM100UnitConverter().convertMeasureToCore(
1826 GetImport().GetMM100UnitConverter().convertMeasureToCore(
1831 GetImport().GetMM100UnitConverter().convertMeasureToCore(
1836 GetImport().GetMM100UnitConverter().convertMeasureToCore(
1846 if(aPolyPolygon.
count())
1848 drawing::PolyPolygonBezierCoords aSourcePolyPolygon;
1852 aSourcePolyPolygon);
1853 maPath <<= aSourcePolyPolygon;
1865 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList)
1889 AddShape(
"com.sun.star.drawing.ConnectorShape");
1906 aStart = aMat * aStart;
1922 uno::Reference< beans::XPropertySet > xProps(
mxShape, uno::UNO_QUERY );
1925 xProps->setPropertyValue(
"StartPosition",
Any(
maStart));
1926 xProps->setPropertyValue(
"EndPosition",
Any(
maEnd) );
1927 xProps->setPropertyValue(
"EdgeKind",
Any(
mnType) );
1928 xProps->setPropertyValue(
"EdgeLine1Delta",
Any(
mnDelta1) );
1929 xProps->setPropertyValue(
"EdgeLine2Delta",
Any(
mnDelta2) );
1930 xProps->setPropertyValue(
"EdgeLine3Delta",
Any(
mnDelta3) );
1941 bool bApplySVGD(
true );
1942 if ( uno::Reference< text::XTextDocument >(
GetImport().GetModel(), uno::UNO_QUERY).is() )
1944 sal_Int32 nUPD( 0 );
1945 sal_Int32 nBuild( 0 );
1946 const bool bBuildIdFound =
GetImport().getBuildIds( nUPD, nBuild );
1947 if (
GetImport().IsTextDocInOOoFileFormat() ||
1949 ( ( nUPD == 641 ) || ( nUPD == 645 ) ||
1953 ( nUPD == 320 ) ) ) )
1969 const drawing::PolyPolygonBezierCoords* pSource =
static_cast< const drawing::PolyPolygonBezierCoords*
>(
maPath.getValue());
1970 const sal_uInt32 nSequenceCount(pSource->Coordinates.getLength());
1971 bool bStartEqual(
false);
1972 bool bEndEqual(
false);
1976 const drawing::PointSequence& rStartSeq = pSource->Coordinates[0];
1977 const sal_uInt32 nStartCount = rStartSeq.getLength();
1981 const awt::Point& rStartPoint = rStartSeq.getConstArray()[0];
1989 const drawing::PointSequence& rEndSeq = pSource->Coordinates[nSequenceCount - 1];
1990 const sal_uInt32 nEndCount = rEndSeq.getLength();
1994 const awt::Point& rEndPoint = rEndSeq.getConstArray()[nEndCount - 1];
1996 if(rEndPoint.X ==
maEnd.X && rEndPoint.Y ==
maEnd.Y)
2003 if(!bStartEqual || !bEndEqual)
2012 xProps->setPropertyValue(
"PolyPolygonBezier",
maPath);
2021 SvXMLImport& rImport,
2022 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
2023 uno::Reference< drawing::XShapes >
const & rShapes,
2024 bool bTemporaryShape)
2043 GetImport().GetMM100UnitConverter().convertMeasureToCore(
2050 GetImport().GetMM100UnitConverter().convertMeasureToCore(
2057 GetImport().GetMM100UnitConverter().convertMeasureToCore(
2064 GetImport().GetMM100UnitConverter().convertMeasureToCore(
2075 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList)
2079 AddShape(
"com.sun.star.drawing.MeasureShape");
2086 uno::Reference< beans::XPropertySet > xProps(
mxShape, uno::UNO_QUERY );
2089 xProps->setPropertyValue(
"StartPosition",
Any(
maStart));
2090 xProps->setPropertyValue(
"EndPosition",
Any(
maEnd) );
2094 uno::Reference< text::XText > xText(
mxShape, uno::UNO_QUERY );
2097 xText->setString(
" " );
2108 uno::Reference< text::XText > xText(
mxShape, uno::UNO_QUERY );
2112 uno::Reference< text::XTextCursor > xCursor( xText->createTextCursor() );
2116 xCursor->collapseToStart();
2117 xCursor->goRight( 1,
true );
2118 xCursor->setString(
"" );
2127 SvXMLImport& rImport,
2128 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
2129 uno::Reference< drawing::XShapes >
const & rShapes,
2130 bool bTemporaryShape)
2131:
SdXMLShapeContext( rImport, xAttrList, rShapes, bTemporaryShape ), mnPageNumber(0)
2151 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList)
2159 GetImport().GetShapeImport()->IsPresentationShapesSupported();
2161 uno::Reference< lang::XServiceInfo > xInfo(
mxShapes, uno::UNO_QUERY );
2162 const bool bIsOnHandoutPage = xInfo.is() && xInfo->supportsService(
"com.sun.star.presentation.HandoutMasterPage");
2164 if( bIsOnHandoutPage )
2166 AddShape(
"com.sun.star.presentation.HandoutShape");
2172 bIsPresentation =
false;
2177 AddShape(
"com.sun.star.presentation.PageShape");
2181 AddShape(
"com.sun.star.drawing.PageShape");
2194 uno::Reference< beans::XPropertySet > xPropSet(
mxShape, uno::UNO_QUERY);
2197 uno::Reference< beans::XPropertySetInfo > xPropSetInfo( xPropSet->getPropertySetInfo() );
2198 static constexpr OUStringLiteral aPageNumberStr(
u"PageNumber");
2199 if( xPropSetInfo.is() && xPropSetInfo->hasPropertyByName(aPageNumberStr))
2208 SvXMLImport& rImport,
2209 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
2210 uno::Reference< drawing::XShapes >
const & rShapes,
2211 bool bTemporaryShape)
2223 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList)
2227 AddShape(
"com.sun.star.drawing.CaptionShape");
2234 uno::Reference< beans::XPropertySet > xProps(
mxShape, uno::UNO_QUERY );
2241 bool bIsAutoGrowWidth =
false;
2244 uno::Any aAny( xProps->getPropertyValue(
"TextAutoGrowWidth") );
2245 aAny >>= bIsAutoGrowWidth;
2247 if ( bIsAutoGrowWidth )
2248 xProps->setPropertyValue(
"TextAutoGrowWidth",
uno::Any(
false ) );
2256 if ( bIsAutoGrowWidth )
2257 xProps->setPropertyValue(
"TextAutoGrowWidth",
uno::Any(
true ) );
2261 uno::Reference< beans::XPropertySet > xPropSet(
mxShape, uno::UNO_QUERY);
2268 catch(
const uno::Exception&)
2284 GetImport().GetMM100UnitConverter().convertMeasureToCore(
2288 GetImport().GetMM100UnitConverter().convertMeasureToCore(
2292 GetImport().GetMM100UnitConverter().convertMeasureToCore(
2303 SvXMLImport& rImport,
2304 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
2305 uno::Reference< drawing::XShapes >
const & rShapes)
2321 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList)
2328 service =
"com.sun.star.presentation.GraphicObjectShape";
2332 service =
"com.sun.star.drawing.GraphicObjectShape";
2343 uno::Reference< beans::XPropertySet > xPropset(
mxShape, uno::UNO_QUERY);
2348 sal_Int32 nUPD, nBuildId;
2349 if(
GetImport().getBuildIds( nUPD, nBuildId ) && (nUPD == 645) )
try
2351 xPropset->setPropertyValue(
"FillStyle",
Any( FillStyle_NONE ) );
2352 xPropset->setPropertyValue(
"LineStyle",
Any( LineStyle_NONE ) );
2358 uno::Reference< beans::XPropertySetInfo > xPropsInfo( xPropset->getPropertySetInfo() );
2359 if( xPropsInfo.is() && xPropsInfo->hasPropertyByName(
"IsEmptyPresentationObject"))
2360 xPropset->setPropertyValue(
"IsEmptyPresentationObject", css::uno::Any(
mbIsPlaceholder ) );
2364 if( !
maURL.isEmpty() )
2366 uno::Reference<graphic::XGraphic> xGraphic =
GetImport().loadGraphicByURL(
maURL);
2369 xPropset->setPropertyValue(
"Graphic",
uno::Any(xGraphic));
2377 uno::Reference< beans::XPropertySet > xProps(
mxShape, uno::UNO_QUERY);
2380 uno::Reference< beans::XPropertySetInfo > xPropsInfo( xProps->getPropertySetInfo() );
2381 if( xPropsInfo.is() )
2383 if( xPropsInfo->hasPropertyByName(
"IsPlaceholderDependent"))
2384 xProps->setPropertyValue(
"IsPlaceholderDependent", css::uno::Any(
false) );
2402 uno::Reference<beans::XPropertySet> xProperties(
mxShape, uno::UNO_QUERY);
2403 if (xProperties.is())
2405 xProperties->setPropertyValue(
"Graphic",
uno::Any(xGraphic));
2415 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
2417 css::uno::Reference< css::xml::sax::XFastContextHandler > xContext;
2448 SvXMLImport& rImport,
2449 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
2450 uno::Reference< drawing::XShapes >
const & rShapes,
2451 bool bTemporaryShape)
2457 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList)
2463 ? OUString(
"com.sun.star.presentation.ChartShape")
2464 : OUString(
"com.sun.star.drawing.OLE2Shape"));
2474 uno::Reference< beans::XPropertySet > xProps(
mxShape, uno::UNO_QUERY);
2477 uno::Reference< beans::XPropertySetInfo > xPropsInfo( xProps->getPropertySetInfo() );
2478 if( xPropsInfo.is() && xPropsInfo->hasPropertyByName(
"IsEmptyPresentationObject"))
2479 xProps->setPropertyValue(
"IsEmptyPresentationObject", css::uno::Any(
false) );
2483 xProps->setPropertyValue(
"CLSID",
Any(OUString(
"12DCAE26-281F-416F-a234-c3086127382e")) );
2485 aAny = xProps->getPropertyValue(
"Model");
2486 uno::Reference< frame::XModel > xChartModel;
2487 if( aAny >>= xChartModel )
2489#if !ENABLE_WASM_STRIP_CHART
2502 uno::Reference< beans::XPropertySet > xProps(
mxShape, uno::UNO_QUERY);
2505 uno::Reference< beans::XPropertySetInfo > xPropsInfo( xProps->getPropertySetInfo() );
2506 if( xPropsInfo.is() )
2508 if( xPropsInfo->hasPropertyByName(
"IsPlaceholderDependent"))
2509 xProps->setPropertyValue(
"IsPlaceholderDependent", css::uno::Any(
false) );
2539 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
2542 return mxChartContext->createFastChildContext( nElement, xAttrList );
2549 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
2550 css::uno::Reference< css::drawing::XShapes >
const & rShapes)
2560 const css::uno::Reference< css::xml::sax::XFastAttributeList >& )
2576 OUString service(
"com.sun.star.drawing.OLE2Shape");
2584 service =
"com.sun.star.presentation.ChartShape";
2588 service =
"com.sun.star.presentation.CalcShape";
2592 service =
"com.sun.star.presentation.OLE2Shape";
2605 uno::Reference< beans::XPropertySet > xProps(
mxShape, uno::UNO_QUERY);
2608 uno::Reference< beans::XPropertySetInfo > xPropsInfo( xProps->getPropertySetInfo() );
2609 if( xPropsInfo.is() )
2611 if( !
mbIsPlaceholder && xPropsInfo->hasPropertyByName(
"IsEmptyPresentationObject"))
2612 xProps->setPropertyValue(
"IsEmptyPresentationObject", css::uno::Any(
false) );
2615 xProps->setPropertyValue(
"IsPlaceholderDependent", css::uno::Any(
false) );
2622 uno::Reference< beans::XPropertySet > xProps(
mxShape, uno::UNO_QUERY );
2630 static constexpr OUStringLiteral sURL(
u"vnd.sun.star.EmbeddedObject:" );
2632 if ( aPersistName.startsWith( sURL ) )
2633 aPersistName = aPersistName.copy( sURL.getLength() );
2635 xProps->setPropertyValue(
"PersistName",
2641 xProps->setPropertyValue(
"LinkURL",
2657 if (
GetImport().isGeneratorVersionOlderThan(
2658 SvXMLImport::OOo_34x, SvXMLImport::LO_41x))
2666 uno::Reference< beans::XPropertySet > xProps(
mxShape, uno::UNO_QUERY);
2670 xProps->setPropertyValue(
"FillStyle",
uno::Any(drawing::FillStyle_NONE));
2671 xProps->setPropertyValue(
"LineStyle",
uno::Any(drawing::LineStyle_NONE));
2677 OUString aPersistName(
GetImport().ResolveEmbeddedObjectURLFromBase64() );
2678 static constexpr OUStringLiteral sURL(
u"vnd.sun.star.EmbeddedObject:" );
2680 aPersistName = aPersistName.copy( sURL.getLength() );
2682 uno::Reference< beans::XPropertySet > xProps(
mxShape, uno::UNO_QUERY);
2684 xProps->setPropertyValue(
"PersistName",
uno::Any( aPersistName ) );
2709 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
2722 maCLSID = xEContext->GetFilterCLSID();
2725 uno::Reference< beans::XPropertySet > xPropSet(
mxShape, uno::UNO_QUERY);
2730 uno::Reference< lang::XComponent > xComp;
2731 xPropSet->getPropertyValue(
"Model") >>= xComp;
2732 SAL_WARN_IF( !xComp.is(),
"xmloff",
"no xModel for own OLE format" );
2733 xEContext->SetComponent(xComp);
2744 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
2745 css::uno::Reference< css::drawing::XShapes >
const & rShapes)
2756 const css::uno::Reference< css::xml::sax::XFastAttributeList >& )
2758 AddShape(
"com.sun.star.drawing.AppletShape");
2795 uno::Reference< beans::XPropertySet > xProps(
mxShape, uno::UNO_QUERY );
2801 awt::Rectangle aRect( 0, 0,
maSize.Width,
maSize.Height );
2802 xProps->setPropertyValue(
"VisibleArea",
Any(aRect) );
2807 xProps->setPropertyValue(
"AppletCommands",
Any(
maParams) );
2812 xProps->setPropertyValue(
"AppletCodeBase",
Any(
maHref) );
2822 xProps->setPropertyValue(
"AppletIsScript",
Any(
mbIsScript) );
2831 xProps->setPropertyValue(
"AppletDocBase",
Any(
GetImport().GetDocumentBase()) );
2841 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
2845 OUString aParamName, aParamValue;
2850 aParamName = aIter.toString();
2852 aParamValue = aIter.toString();
2855 if( !aParamName.isEmpty() )
2859 auto pParams =
maParams.getArray();
2860 pParams[
nIndex].Name = aParamName;
2861 pParams[
nIndex].Handle = -1;
2862 pParams[
nIndex].Value <<= aParamValue;
2863 pParams[
nIndex].State = beans::PropertyState_DIRECT_VALUE;
2874 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
2875 css::uno::Reference< css::drawing::XShapes >
const & rShapes) :
2886 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList)
2894 if (::comphelper::IsMediaMimeType(aIter.toView()))
2903 bool bIsPresShape =
false;
2907 service =
"com.sun.star.drawing.MediaShape";
2914 service =
"com.sun.star.presentation.MediaShape";
2919 service =
"com.sun.star.drawing.PluginShape";
2936 uno::Reference< beans::XPropertySet > xProps(
mxShape, uno::UNO_QUERY );
2939 uno::Reference< beans::XPropertySetInfo > xPropsInfo( xProps->getPropertySetInfo() );
2940 if( xPropsInfo.is() )
2942 if( !
mbIsPlaceholder && xPropsInfo->hasPropertyByName(
"IsEmptyPresentationObject"))
2943 xProps->setPropertyValue(
"IsEmptyPresentationObject", css::uno::Any(
false) );
2946 xProps->setPropertyValue(
"IsPlaceholderDependent", css::uno::Any(
false) );
2959 if (rImport.IsPackageURL(rURL))
2961 return "vnd.sun.star.Package:" + rURL;
2965 return rImport.GetAbsoluteReference(rURL);
2988 uno::Reference< beans::XPropertySet > xProps(
mxShape, uno::UNO_QUERY );
2994 static constexpr OUStringLiteral sVisibleArea(
u"VisibleArea" );
2995 uno::Reference< beans::XPropertySetInfo > aXPropSetInfo( xProps->getPropertySetInfo() );
2996 if ( !aXPropSetInfo.is() || aXPropSetInfo->hasPropertyByName( sVisibleArea ) )
2999 awt::Rectangle aRect( 0, 0,
maSize.Width,
maSize.Height );
3000 xProps->setPropertyValue( sVisibleArea,
Any(aRect) );
3009 xProps->setPropertyValue(
"PluginCommands",
Any(
maParams) );
3014 xProps->setPropertyValue(
"PluginMimeType",
Any(
maMimeType) );
3019 xProps->setPropertyValue(
"PluginURL",
Any(
maHref) );
3029 for(
const auto& rParam : std::as_const(
maParams) )
3031 const OUString& rName = rParam.Name;
3033 if( rName ==
"Loop" )
3036 rParam.Value >>= aValueStr;
3037 xProps->setPropertyValue(
"Loop",
3040 else if( rName ==
"Mute" )
3043 rParam.Value >>= aValueStr;
3044 xProps->setPropertyValue(
"Mute",
3047 else if( rName ==
"VolumeDB" )
3050 rParam.Value >>= aValueStr;
3051 xProps->setPropertyValue(
"VolumeDB",
3052 uno::Any(
static_cast< sal_Int16
>( aValueStr.toInt32() ) ) );
3054 else if( rName ==
"Zoom" )
3057 media::ZoomLevel eZoomLevel;
3059 rParam.Value >>= aZoomStr;
3061 if( aZoomStr ==
"25%" )
3062 eZoomLevel = media::ZoomLevel_ZOOM_1_TO_4;
3063 else if( aZoomStr ==
"50%" )
3064 eZoomLevel = media::ZoomLevel_ZOOM_1_TO_2;
3065 else if( aZoomStr ==
"100%" )
3066 eZoomLevel = media::ZoomLevel_ORIGINAL;
3067 else if( aZoomStr ==
"200%" )
3068 eZoomLevel = media::ZoomLevel_ZOOM_2_TO_1;
3069 else if( aZoomStr ==
"400%" )
3070 eZoomLevel = media::ZoomLevel_ZOOM_4_TO_1;
3071 else if( aZoomStr ==
"fit" )
3072 eZoomLevel = media::ZoomLevel_FIT_TO_WINDOW;
3073 else if( aZoomStr ==
"fixedfit" )
3074 eZoomLevel = media::ZoomLevel_FIT_TO_WINDOW_FIXED_ASPECT;
3075 else if( aZoomStr ==
"fullscreen" )
3076 eZoomLevel = media::ZoomLevel_FULLSCREEN;
3078 eZoomLevel = media::ZoomLevel_NOT_AVAILABLE;
3080 xProps->setPropertyValue(
"Zoom",
uno::Any( eZoomLevel ) );
3093 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
3097 OUString aParamName, aParamValue;
3102 aParamName = aIter.toString();
3104 aParamValue = aIter.toString();
3107 if( !aParamName.isEmpty() )
3111 auto pParams =
maParams.getArray();
3112 pParams[
nIndex].Name = aParamName;
3113 pParams[
nIndex].Handle = -1;
3114 pParams[
nIndex].Value <<= aParamValue;
3115 pParams[
nIndex].State = beans::PropertyState_DIRECT_VALUE;
3126 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
3127 css::uno::Reference< css::drawing::XShapes >
const & rShapes)
3138 uno::Reference<lang::XMultiServiceFactory> xServiceFact(
GetImport().GetModel(), uno::UNO_QUERY);
3139 if (!xServiceFact.is())
3141 uno::Reference<drawing::XShape> xShape(
3142 xServiceFact->createInstance(
"com.sun.star.drawing.FrameShape"), uno::UNO_QUERY);
3147 const css::uno::Reference< css::xml::sax::XFastAttributeList >& )
3151 uno::Reference< beans::XPropertySet > xProps(xShape, uno::UNO_QUERY);
3162 if (xProps && !
maHref.isEmpty())
3163 xProps->setPropertyValue(
"FrameURL",
Any(
maHref));
3187 xProps->setPropertyValue(
"FrameURL",
Any(
maHref) );
3215 uno::Reference< beans::XPropertySet > xProps(
mxShape, uno::UNO_QUERY );
3222 awt::Rectangle aRect( 0, 0,
maSize.Width,
maSize.Height );
3223 xProps->setPropertyValue(
"VisibleArea",
Any(aRect) );
3233 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
3234 css::uno::Reference< css::drawing::XShapes >
const & rShapes,
3235 bool bTemporaryShape)
3237 mbSupportsReplacement( false )
3239 uno::Reference < util::XCloneable > xClone( xAttrList, uno::UNO_QUERY );
3241 mxAttrList.set( xClone->createClone(), uno::UNO_QUERY );
3254 if(!pSdXMLGraphicObjectShapeContext)
3259 uno::Reference< container::XChild > xChild(pSdXMLGraphicObjectShapeContext->
getShape(), uno::UNO_QUERY_THROW);
3261 uno::Reference< drawing::XShapes > xParent(xChild->getParent(), uno::UNO_QUERY_THROW);
3264 xParent->remove(pSdXMLGraphicObjectShapeContext->
getShape());
3267 uno::Reference< lang::XComponent > xComp(pSdXMLGraphicObjectShapeContext->
getShape(), UNO_QUERY);
3274 catch( uno::Exception& )
3282uno::Reference<beans::XPropertySet> getGraphicPropertySetFromImportContext(
const SvXMLImportContext& rContext)
3284 uno::Reference<beans::XPropertySet> aPropertySet;
3287 if (pSdXMLGraphicObjectShapeContext)
3288 aPropertySet.set(pSdXMLGraphicObjectShapeContext->
getShape(), uno::UNO_QUERY);
3290 return aPropertySet;
3297 uno::Reference<graphic::XGraphic> xGraphic;
3300 const uno::Reference<beans::XPropertySet> xPropertySet = getGraphicPropertySetFromImportContext(rContext);
3302 if (xPropertySet.is())
3304 xPropertySet->getPropertyValue(
"Graphic") >>= xGraphic;
3307 catch( uno::Exception& )
3320 if(pSdXMLGraphicObjectShapeContext)
3324 const uno::Reference< beans::XPropertySet > xPropSet(pSdXMLGraphicObjectShapeContext->
getShape(), uno::UNO_QUERY_THROW);
3326 xPropSet->getPropertyValue(
"GraphicStreamURL") >>= aRetval;
3328 catch( uno::Exception& )
3339 const uno::Reference< xml::sax::XFastAttributeList>& xAttrList )
3347 xContext = pShapeContext;
3354 bool bMedia =
false;
3359 if( pPluginContext && pPluginContext->
getMimeType() ==
"model/vnd.gltf+json" )
3364 else if (pPluginContext && ::comphelper::IsMediaMimeType(pPluginContext->
getMimeType()))
3404 uno::Reference < beans::XPropertySet > xPropSet(
3405 pSContext->
getShape(), uno::UNO_QUERY );
3409 nElement, xAttrList, xPropSet );
3441 uno::Reference < beans::XPropertySet > xPropSet( pSContext->
getShape(), uno::UNO_QUERY );
3453 uno::Reference<beans::XPropertySet> xPropSet(pSContext->
getShape(), uno::UNO_QUERY);
3466 uno::Reference<beans::XPropertySet> xPropSet(pSContext->
getShape(), uno::UNO_QUERY);
3479 const css::uno::Reference< css::xml::sax::XFastAttributeList >& )
3490 if ( pShapeContext )
3493 const uno::Reference< uno::XInterface > xShape( pShapeContext->
getShape() );
3494 GetImport().getInterfaceToIdentifierMapper().registerReservedReference(
maShapeId, xShape );
3502 switch (aIter.getToken())
3516 uno::Reference< xml::sax::XFastAttributeList> xEmpty;
3574 SvXMLImport& rImport,
3575 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
3576 uno::Reference< drawing::XShapes >
const & rShapes)
3585 OUString aStyleName = aIter.toString();
3586 if(!aStyleName.isEmpty())
3624 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList)
3627 AddShape(
"com.sun.star.drawing.CustomShape");
3640 uno::Reference< beans::XPropertySet > xPropSet(
mxShape, uno::UNO_QUERY );
3653 catch(
const uno::Exception&)
3668 double fRotate, fShearX;
3672 if (aScale.
getX() < 0.0)
3674 static constexpr OUStringLiteral
sName(
u"MirroredX");
3677 [](beans::PropertyValue& rValue) { return rValue.Name == sName; });
3680 beans::PropertyValue& rItem = *aI;
3681 bool bMirroredX = *o3tl::doAccess<bool>(rItem.Value);
3682 rItem.Value <<= !bMirroredX;
3684 rItem.State = beans::PropertyState_DIRECT_VALUE;
3688 beans::PropertyValue* pItem;
3691 pItem->Name =
sName;
3693 pItem->Value <<=
true;
3694 pItem->State = beans::PropertyState_DIRECT_VALUE;
3698 if (aScale.
getY() < 0.0)
3700 static constexpr OUStringLiteral
sName(
u"MirroredY");
3703 [](beans::PropertyValue& rValue) { return rValue.Name == sName; });
3706 beans::PropertyValue& rItem = *aI;
3707 bool bMirroredY = *o3tl::doAccess<bool>(rItem.Value);
3708 rItem.Value <<= !bMirroredY;
3710 rItem.State = beans::PropertyState_DIRECT_VALUE;
3714 beans::PropertyValue* pItem;
3717 pItem->Name =
sName;
3719 pItem->Value <<=
true;
3720 pItem->State = beans::PropertyState_DIRECT_VALUE;
3732 uno::Reference< beans::XPropertySet > xPropSet(
mxShape, uno::UNO_QUERY );
3735 xPropSet->setPropertyValue(
"CustomShapeGeometry",
Any(
aSeq) );
3738 catch(
const uno::Exception&)
3745 if (
GetImport().getBuildIds(nUPD, nBuild))
3747 if( ((nUPD >= 640 && nUPD <= 645) || (nUPD == 680)) && (nBuild <= 9221) )
3749 Reference< drawing::XEnhancedCustomShapeDefaulter > xDefaulter(
mxShape, UNO_QUERY );
3750 if( xDefaulter.is() )
3752 xDefaulter->createCustomShapeDefaults(
"" );
3768 uno::Reference< beans::XPropertySet > xPropSet(
mxShape, uno::UNO_QUERY);
3772 xPropSet->setPropertyValue(
3773 "FlushCustomShapeUnoApiObjects", css::uno::Any(
true));
3776 catch(
const uno::Exception&)
3784 const uno::Reference< xml::sax::XFastAttributeList>& xAttrList )
3786 css::uno::Reference< css::xml::sax::XFastContextHandler > xContext;
3789 uno::Reference< beans::XPropertySet > xPropSet(
mxShape,uno::UNO_QUERY );
3790 if ( xPropSet.is() )
3810 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList)
3812 OUString service(
"com.sun.star.drawing.TableShape");
3819 service =
"com.sun.star.presentation.TableShape";
3830 uno::Reference< beans::XPropertySet > xProps(
mxShape, uno::UNO_QUERY);
3832 if(bIsPresShape && xProps.is())
3834 uno::Reference< beans::XPropertySetInfo > xPropsInfo( xProps->getPropertySetInfo() );
3835 if( xPropsInfo.is() )
3837 if( !
mbIsPlaceholder && xPropsInfo->hasPropertyByName(
"IsEmptyPresentationObject"))
3838 xProps->setPropertyValue(
"IsEmptyPresentationObject", css::uno::Any(
false) );
3841 xProps->setPropertyValue(
"IsPlaceholderDependent", css::uno::Any(
false) );
3851 Reference< XStyleFamiliesSupplier > xFamiliesSupp(
GetImport().GetModel(), UNO_QUERY_THROW );
3852 Reference< XNameAccess > xFamilies( xFamiliesSupp->getStyleFamilies() );
3853 Reference< XNameAccess > xTableFamily( xFamilies->getByName(
"table" ), UNO_QUERY_THROW );
3854 Reference< XStyle > xTableStyle( xTableFamily->getByName(
msTemplateStyleName ), UNO_QUERY_THROW );
3855 xProps->setPropertyValue(
"TableTemplate",
Any( xTableStyle ) );
3863 for(
int i = 0; !pEntry->
IsEnd() && (
i < 6);
i++, pEntry++ )
3879 if( xTableImport.is() && xProps.is() )
3881 uno::Reference< table::XColumnRowRange > xColumnRowRange(
3882 xProps->getPropertyValue(
"Model"), uno::UNO_QUERY );
3884 if( xColumnRowRange.is() )
3920 while( !pEntry->
IsEnd() && (
i < 6) )
3938 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
geometry::RealPoint2D maPosition
geometry::RealSize2D maSize
PropertiesInfo aProperties
bool getSupportsMultipleContents() const
read/write access to boolean switch
SvXMLImportContextRef solveMultipleImages()
solve multiple imported images.
void setSupportsMultipleContents(bool bNew)
void addContent(const SvXMLImportContext &rSvXMLImportContext)
add a content to the remembered image import contexts
virtual ~SdXMLAppletShapeContext() override
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
css::uno::Sequence< css::beans::PropertyValue > maParams
SdXMLAppletShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
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 ...
virtual ~SdXMLCaptionShapeContext() override
SdXMLCaptionShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes, bool bTemporaryShape)
css::awt::Point maCaptionPoint
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
virtual void SAL_CALL characters(const OUString &rChars) override
This method is called for all characters that are contained in the current element.
SdXMLChartShapeContext(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
SvXMLImportContextRef mxChartContext
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) 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 ...
css::drawing::ConnectorType mnType
virtual ~SdXMLConnectorShapeContext() override
SdXMLConnectorShapeContext(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 startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
virtual ~SdXMLControlShapeContext() override
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
SdXMLControlShapeContext(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 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
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 ...
std::vector< css::beans::PropertyValue > maCustomShapeGeometry
virtual ~SdXMLCustomShapeContext() 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
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
SdXMLCustomShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
OUString maCustomShapeData
OUString maCustomShapeEngine
css::drawing::CircleKind meKind
SdXMLEllipseShapeContext(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 ~SdXMLEllipseShapeContext() override
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
virtual ~SdXMLFloatingFrameShapeContext() 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 ...
css::uno::Reference< css::drawing::XShape > CreateFloatingFrameShape() const
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
SdXMLFloatingFrameShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
SdXMLFrameShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes, bool bTemporaryShape)
bool mbSupportsReplacement
SvXMLImportContextRef mxReplImplContext
css::uno::Reference< css::graphic::XGraphic > getGraphicFromImportContext(const SvXMLImportContext &rContext) const override
void removeGraphicFromImportContext(const SvXMLImportContext &rContext) override
helper to get the created xShape instance, needs to be overridden
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) 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 ...
virtual ~SdXMLFrameShapeContext() override
OUString getGraphicPackageURLFromImportContext(const SvXMLImportContext &rContext) const 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
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
SvXMLImportContextRef mxImplContext
SdXMLGraphicObjectShapeContext(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
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
css::uno::Reference< css::io::XOutputStream > mxBase64Stream
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 ~SdXMLGraphicObjectShapeContext() override
SdXMLLineShapeContext(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 void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
virtual ~SdXMLLineShapeContext() 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 ...
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
virtual ~SdXMLMeasureShapeContext() override
SdXMLMeasureShapeContext(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 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 css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
SdXMLObjectShapeContext(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
css::uno::Reference< css::io::XOutputStream > mxBase64Stream
virtual ~SdXMLObjectShapeContext() override
virtual ~SdXMLPageShapeContext() override
SdXMLPageShapeContext(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 startFastElement(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 startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
SdXMLPathShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes, bool bTemporaryShape)
virtual ~SdXMLPathShapeContext() 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
css::uno::Sequence< css::beans::PropertyValue > maParams
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 ...
const OUString & getMimeType() const
virtual ~SdXMLPluginShapeContext() override
SdXMLPluginShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
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 ~SdXMLPolygonShapeContext() override
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 &) 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)
SdXMLRectShapeContext(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 ~SdXMLRectShapeContext() 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
basegfx::B2DHomMatrix maUsedTransformation
css::awt::Point maPosition
void addGluePoint(const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
css::uno::Reference< css::document::XActionLockable > mxLockable
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
void AddShape(css::uno::Reference< css::drawing::XShape > &xShape)
SdXMLShapeContext(SvXMLImport &rImport, css::uno::Reference< css::xml::sax::XFastAttributeList > xAttrList, css::uno::Reference< css::drawing::XShapes > xShapes, bool bTemporaryShape)
bool mbClearDefaultAttributes
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &)
css::uno::Reference< css::text::XTextCursor > mxCursor
SvXMLImport & GetImport()
XmlStyleFamily mnStyleFamily
css::uno::Reference< css::container::XIdentifierContainer > mxGluePoints
css::uno::Reference< css::xml::sax::XFastAttributeList > mxAttrList
virtual ~SdXMLShapeContext() override
bool mbListContextPushed
whether to restore list context (#91964#)
SdXMLImExTransform2D mnTransform
void SetStyle(bool bSupportsStyle=true)
if bSupportsStyle is false, auto styles will be set but not a style
bool mbTextBox
If the text of this shape is handled by a Writer TextFrame.
OUString maPresentationClass
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
bool isPresentationShape() const
css::uno::Reference< css::text::XTextCursor > mxOldCursor
SvXMLImportContextRef mxTableImportContext
bool maTemplateStylesUsed[6]
virtual ~SdXMLTableShapeContext() override
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)
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 ...
OUString msTemplateStyleName
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 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 &) override
SdXMLTextBoxShapeContext(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 ~SdXMLTextBoxShapeContext() override
This class deliberately does not support XWeak, to improve performance when loading large documents.
SvXMLImportContext(SvXMLImport &rImport)
A contexts constructor does anything that is required if an element starts.
void setHyperlink(const OUString &rHyperlink)
css::uno::Reference< css::drawing::XShape > mxShape
const css::uno::Reference< css::drawing::XShape > & getShape() const
const OUString & GetParentName() const
bool getNextToken(std::u16string_view &rToken)
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...
virtual void FillPropertySet(const css::uno::Reference< css::beans::XPropertySet > &rPropSet)
const css::uno::Reference< css::style::XStyle > & GetStyle() const
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)
bool decompose(B2DTuple &rScale, B2DTuple &rTranslate, double &rRotate, double &rShearX) const
void translate(double fX, double fY)
double get(sal_uInt16 nRow, sal_uInt16 nColumn) const
void scale(double fX, double fY)
void transform(const basegfx::B2DHomMatrix &rMatrix)
bool areControlPointsUsed() const
void transform(const basegfx::B2DHomMatrix &rMatrix)
bool equal(const Range2D &rRange) const
static void convertDouble(OUStringBuffer &rBuffer, double fNumber, bool bWriteUnits, sal_Int16 nSourceUnit, sal_Int16 nTargetUnit)
static bool convertPercent(sal_Int32 &rValue, std::u16string_view rString)
sal_Int32 getToken() const
sal_Int32 toInt32() const
OUString toString() const
std::string_view toView() const
#define DBG_UNHANDLED_EXCEPTION(...)
Sequence< sal_Int8 > aSeq
#define SAL_WARN_IF(condition, area, stream)
bool importFromSvgPoints(B2DPolygon &o_rPoly, std::u16string_view rSvgPointsAttribute)
void B2DPolyPolygonToUnoPointSequenceSequence(const B2DPolyPolygon &rPolyPolygon, css::drawing::PointSequenceSequence &rPointSequenceSequenceRetval)
bool importFromSvgD(B2DPolyPolygon &o_rPolyPoly, std::u16string_view rSvgDAttribute, bool bHandleRelativeNextPointCompatible, PointIndexSet *pHelpPointIndexSet)
void B2DPolyPolygonToUnoPolyPolygonBezierCoords(const B2DPolyPolygon &rPolyPolygon, css::drawing::PolyPolygonBezierCoords &rPolyPolygonBezierCoordsRetval)
B2DHomMatrix createScaleShearXRotateTranslateB2DHomMatrix(double fScaleX, double fScaleY, double fShearX, double fRadiant, double fTranslateX, double fTranslateY)
B2DHomMatrix createSourceRangeTargetRangeTransform(const B2DRange &rSourceRange, const B2DRange &rTargetRange)
B2IRange fround(const B2DRange &rRange)
css::uno::Sequence< DstElementType > containerToSequence(const SrcType &i_Container)
constexpr T saturating_sub(T a, T b)
FastAttributeList & castToFastAttributeList(const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
EnhancedCustomShapeTokenEnum EASGet(std::u16string_view rShapeType)
Handling of tokens in XML:
XMLTokenEnum
The enumeration of all XML tokens.
@ XML_PRESENTATION_OUTLINE
bool IsXMLToken(std::u16string_view rString, enum XMLTokenEnum eToken)
compare eToken to the string
const XMLPropertyMapEntry aXMLTableShapeAttributes[]
contains the attribute to property mapping for a drawing layer table WARNING: if attributes are added...
SvXMLEnumMapEntry< drawing::ConnectorType > const aXML_ConnectionKind_EnumMap[]
SvXMLEnumMapEntry< drawing::CircleKind > const aXML_CircleKind_EnumMap[]
Represents a property with its API-name, its XML-name and the type of its value.
enum::xmloff::token::XMLTokenEnum meXMLName
Property-Name.
const OUString & getApiName() const
SvXMLEnumMapEntry< drawing::EscapeDirection > const aXML_GlueEscapeDirection_EnumMap[]
static OUString lcl_GetMediaReference(SvXMLImport const &rImport, OUString const &rURL)
SvXMLEnumMapEntry< drawing::Alignment > const aXML_GlueAlignment_EnumMap[]
static bool ImpIsEmptyURL(std::u16string_view rURL)
#define XMLERROR_FLAG_ERROR
#define XMLOFF_WARN_UNKNOWN_ELEMENT(area, token)
#define XMLOFF_WARN_UNKNOWN(area, rIter)
#define XML_ELEMENT(prefix, name)
constexpr bool IsTokenInNamespace(sal_Int32 nToken, sal_uInt16 nNamespacePrefix)
constexpr sal_Int32 TOKEN_MASK
constexpr sal_uInt16 XML_NAMESPACE_TABLE