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>
82#include <com/sun/star/drawing/XEnhancedCustomShapeDefaulter.hpp>
83#include <com/sun/star/container/XChild.hpp>
84#include <com/sun/star/text/XTextDocument.hpp>
108 {
XML_TOP, drawing::Alignment_TOP },
110 {
XML_LEFT, drawing::Alignment_LEFT },
121 {
XML_AUTO, drawing::EscapeDirection_SMART },
122 {
XML_LEFT, drawing::EscapeDirection_LEFT },
123 {
XML_RIGHT, drawing::EscapeDirection_RIGHT },
124 {
XML_UP, drawing::EscapeDirection_UP },
125 {
XML_DOWN, drawing::EscapeDirection_DOWN },
146 SvXMLImport& rImport,
147 css::uno::Reference< css::xml::sax::XFastAttributeList> xAttrList,
148 uno::Reference< drawing::XShapes > xShapes,
149 bool bTemporaryShape)
151 , mxShapes(
std::move( xShapes ))
152 , mxAttrList(
std::move(xAttrList))
153 , mbListContextPushed( false )
155 , mbIsPlaceholder(false)
156 , mbClearDefaultAttributes( true )
157 , mbIsUserTransformed(false)
176 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
211 uno::Reference< text::XText > xText(
mxShape, uno::UNO_QUERY );
217 mxCursor = xText->createTextCursor();
225 xTxtImport->PushListContext();
233 xContext =
GetImport().GetTextImport()->CreateTextChildContext(
250 uno::Reference< drawing::XGluePointsSupplier > xSupplier(
mxShape, uno::UNO_QUERY );
251 if( !xSupplier.is() )
254 mxGluePoints.set( xSupplier->getGluePoints(), UNO_QUERY );
260 drawing::GluePoint2 aGluePoint;
261 aGluePoint.IsUserDefined =
true;
262 aGluePoint.Position.X = 0;
263 aGluePoint.Position.Y = 0;
264 aGluePoint.Escape = drawing::EscapeDirection_SMART;
265 aGluePoint.PositionAlignment = drawing::Alignment_CENTER;
266 aGluePoint.IsRelative =
true;
273 switch(aIter.getToken())
277 GetImport().GetMM100UnitConverter().convertMeasureToCore(
278 aGluePoint.Position.X, aIter.toView());
282 GetImport().GetMM100UnitConverter().convertMeasureToCore(
283 aGluePoint.Position.Y, aIter.toView());
286 nId = aIter.toInt32();
290 drawing::Alignment eKind;
293 aGluePoint.PositionAlignment = eKind;
294 aGluePoint.IsRelative =
false;
315 catch(
const uno::Exception&)
323 const css::uno::Reference< css::xml::sax::XFastAttributeList >& )
345 GetImport().GetTextImport()->ResetCursor();
353 GetImport().GetTextImport()->PopListContext();
358 uno::Reference< beans::XPropertySet > xProp(
mxShape, uno::UNO_QUERY );
360 if ( xProp.is() && xProp->getPropertySetInfo()->hasPropertyByName(
"Hyperlink" ) )
362 Reference< XEventsSupplier > xEventsSupplier(
mxShape, UNO_QUERY );
364 if( xEventsSupplier.is() )
366 Reference< XNameReplace > xEvents( xEventsSupplier->getEvents(), UNO_SET_THROW );
371 uno::Any(OUString(
"Presentation" )),
372 beans::PropertyState_DIRECT_VALUE },
376 uno::Any(css::presentation::ClickAction_DOCUMENT),
377 beans::PropertyState_DIRECT_VALUE },
382 beans::PropertyState_DIRECT_VALUE }
390 Reference< beans::XPropertySet > xSet(
mxShape, UNO_QUERY_THROW );
392 xSet->setPropertyValue(
"OnClick",
Any( css::presentation::ClickAction_DOCUMENT ) );
413 uno::Reference< container::XNamed > xNamed(
mxShape, uno::UNO_QUERY );
423 uno::Reference<beans::XMultiPropertyStates> xMultiPropertyStates(xShape, uno::UNO_QUERY );
424 if (xMultiPropertyStates.is())
425 xMultiPropertyStates->setAllPropertiesToDefault();
430 uno::Reference< beans::XPropertySet > xSet( xShape, uno::UNO_QUERY_THROW );
432 xSet->setPropertyValue(
"Visible",
uno::Any(
false ) );
435 xSet->setPropertyValue(
"Printable",
uno::Any(
false ) );
437 catch(
const Exception&)
443 || !
GetImport().GetTextImport()->IsInsideDeleteContext()))
445 xImp->shapeWithZIndexAdded( xShape,
mnZOrder );
450 uno::Reference<beans::XPropertySet> xPropertySet(xShape, uno::UNO_QUERY);
451 uno::Reference<beans::XPropertySetInfo> xPropertySetInfo = xPropertySet->getPropertySetInfo();
452 if (
mnRelWidth && xPropertySetInfo->hasPropertyByName(
"RelativeWidth"))
454 if (
mnRelHeight && xPropertySetInfo->hasPropertyByName(
"RelativeHeight"))
460 uno::Reference< uno::XInterface > xRef(
static_cast<uno::XInterface *
>(xShape.get()) );
465 if(
GetImport().GetShapeImport()->IsHandleProgressBarEnabled())
468 GetImport().GetProgressBarHelper()->Increment();
481 uno::Reference< lang::XMultiServiceFactory > xServiceFact(
GetImport().GetModel(), uno::UNO_QUERY);
482 if(!xServiceFact.is())
493 uno::Reference< drawing::XShape > xShape;
494 if ( serviceName ==
"com.sun.star.drawing.OLE2Shape" &&
495 uno::Reference< text::XTextDocument >(
GetImport().GetModel(), uno::UNO_QUERY).is() )
497 xShape.set(xServiceFact->createInstance(
"com.sun.star.drawing.temporaryForXMLImportOLE2Shape"), uno::UNO_QUERY);
499 else if (serviceName ==
"com.sun.star.drawing.GraphicObjectShape"
500 || serviceName ==
"com.sun.star.drawing.MediaShape"
501 || serviceName ==
"com.sun.star.presentation.MediaShape")
503 xShape.set( xServiceFact->createInstanceWithArguments(serviceName, { css::uno::Any(GetImport().GetDocumentBase()) }),
504 css::uno::UNO_QUERY);
508 xShape.set(xServiceFact->createInstance(serviceName), uno::UNO_QUERY);
513 catch(
const uno::Exception& e)
515 uno::Sequence<OUString>
aSeq { serviceName };
517 aSeq, e.Message,
nullptr );
526 uno::Reference< beans::XPropertySet > xPropSet(
mxShape, uno::UNO_QUERY);
582 drawing::HomogenMatrix3 aUnoMatrix;
584 aUnoMatrix.Line1.Column1 = aB2DHomMatrix.
get(0, 0);
585 aUnoMatrix.Line1.Column2 = aB2DHomMatrix.
get(0, 1);
586 aUnoMatrix.Line1.Column3 = aB2DHomMatrix.
get(0, 2);
588 aUnoMatrix.Line2.Column1 = aB2DHomMatrix.
get(1, 0);
589 aUnoMatrix.Line2.Column2 = aB2DHomMatrix.
get(1, 1);
590 aUnoMatrix.Line2.Column3 = aB2DHomMatrix.
get(1, 2);
592 aUnoMatrix.Line3.Column1 = aB2DHomMatrix.
get(2, 0);
593 aUnoMatrix.Line3.Column2 = aB2DHomMatrix.
get(2, 1);
594 aUnoMatrix.Line3.Column3 = aB2DHomMatrix.
get(2, 2);
596 xPropSet->setPropertyValue(
"Transformation",
Any(aUnoMatrix));
603 uno::Reference< beans::XPropertySet > xPropSet(
mxShape, uno::UNO_QUERY);
614 bool bAutoStyle(
false);
616 if(
GetImport().GetShapeImport()->GetAutoStylesContext())
622 if(!pStyle &&
GetImport().GetShapeImport()->GetStylesContext())
626 uno::Reference< style::XStyle > xStyle;
642 if( !xStyle.is() && !aStyleName.isEmpty() )
647 uno::Reference< style::XStyleFamiliesSupplier > xFamiliesSupplier(
GetImport().GetModel(), uno::UNO_QUERY );
649 if( xFamiliesSupplier.is() )
651 uno::Reference< container::XNameAccess > xFamilies( xFamiliesSupplier->getStyleFamilies() );
655 uno::Reference< container::XNameAccess > xFamily;
659 aStyleName =
GetImport().GetStyleDisplayName(
662 sal_Int32
nPos = aStyleName.lastIndexOf(
'-' );
665 OUString aFamily( aStyleName.copy( 0,
nPos ) );
667 xFamilies->getByName( aFamily ) >>= xFamily;
668 aStyleName = aStyleName.copy(
nPos + 1 );
674 if (xFamilies->hasByName(
"graphics"))
675 xFamilies->getByName(
"graphics") >>= xFamily;
677 xFamilies->getByName(
"GraphicStyles") >>= xFamily;
679 aStyleName =
GetImport().GetStyleDisplayName(
685 xFamily->getByName( aStyleName ) >>= xStyle;
689 catch(
const uno::Exception&)
695 if( bSupportsStyle && xStyle.is() )
700 xPropSet->setPropertyValue(
"Style",
Any(xStyle));
702 catch(
const uno::Exception&)
712 uno::Reference<beans::XPropertySetInfo> xPropertySetInfo
713 = xPropSet->getPropertySetInfo();
714 static constexpr OUStringLiteral sTextBox =
u"TextBox";
715 if (xPropertySetInfo->hasPropertyByName(sTextBox))
719 if(bAutoStyle && pDocStyle)
734 if(
nullptr ==
GetImport().GetShapeImport()->GetAutoStylesContext())
739 if( pStyle ==
nullptr )
747 catch(
const uno::Exception&)
759 uno::Reference< beans::XPropertySet > xPropSet(
mxShape, uno::UNO_QUERY);
766 catch(
const uno::Exception&)
778 uno::Reference< beans::XPropertySet > xPropSet(
mxShape, uno::UNO_QUERY);
782 uno::Reference< beans::XPropertySetInfo > xPropSetInfo( xPropSet->getPropertySetInfo() );
783 if( xPropSetInfo.is() && xPropSetInfo->hasPropertyByName(
"ThumbnailGraphic" ) )
789 xPropSet->setPropertyValue(
"ThumbnailGraphic",
uno::Any(xGraphic));
792 catch(
const uno::Exception&)
853 GetImport().GetMM100UnitConverter().convertMeasureToCore(
858 GetImport().GetMM100UnitConverter().convertMeasureToCore(
863 GetImport().GetMM100UnitConverter().convertMeasureToCore(
866 maSize.Width = o3tl::saturating_add<sal_Int32>(
maSize.Width, 1);
867 else if (
maSize.Width < 0)
868 maSize.Width = o3tl::saturating_add<sal_Int32>(
maSize.Width, -1);
872 GetImport().GetMM100UnitConverter().convertMeasureToCore(
875 maSize.Height = o3tl::saturating_add<sal_Int32>(
maSize.Height, 1);
876 else if (
maSize.Height < 0)
877 maSize.Height = o3tl::saturating_add<sal_Int32>(
maSize.Height, -1);
924 SvXMLImport& rImport,
925 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
926 uno::Reference< drawing::XShapes >
const & rShapes,
927 bool bTemporaryShape)
943 GetImport().GetMM100UnitConverter().convertMeasureToCore(
953 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList)
956 AddShape(
"com.sun.star.drawing.RectangleShape");
969 uno::Reference< beans::XPropertySet > xPropSet(
mxShape, uno::UNO_QUERY);
976 catch(
const uno::Exception&)
987 SvXMLImport& rImport,
988 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
989 uno::Reference< drawing::XShapes >
const & rShapes,
990 bool bTemporaryShape)
1010 GetImport().GetMM100UnitConverter().convertMeasureToCore(
1015 GetImport().GetMM100UnitConverter().convertMeasureToCore(
1020 GetImport().GetMM100UnitConverter().convertMeasureToCore(
1025 GetImport().GetMM100UnitConverter().convertMeasureToCore(
1035 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList)
1041 AddShape(
"com.sun.star.drawing.PolyLineShape");
1052 awt::Point aBottomRight(
mnX2,
mnY2);
1057 aBottomRight.X =
mnX1;
1063 aBottomRight.Y =
mnY1;
1067 uno::Reference< beans::XPropertySet > xPropSet(
mxShape, uno::UNO_QUERY);
1070 drawing::PointSequenceSequence aPolyPoly(1);
1071 drawing::PointSequence* pOuterSequence = aPolyPoly.getArray();
1072 pOuterSequence->realloc(2);
1073 awt::Point* pInnerSequence = pOuterSequence->getArray();
1079 xPropSet->setPropertyValue(
"Geometry",
Any(aPolyPoly));
1096 SvXMLImport& rImport,
1097 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
1098 uno::Reference< drawing::XShapes >
const & rShapes,
1099 bool bTemporaryShape)
1105 meKind(
drawing::CircleKind_FULL ),
1122 GetImport().GetMM100UnitConverter().convertMeasureToCore(
1127 GetImport().GetMM100UnitConverter().convertMeasureToCore(
1132 GetImport().GetMM100UnitConverter().convertMeasureToCore(
1137 GetImport().GetMM100UnitConverter().convertMeasureToCore(
1143 GetImport().GetMM100UnitConverter().convertMeasureToCore(
1154 mnStartAngle =
static_cast<sal_Int32
>(dStartAngle * 100.0);
1161 mnEndAngle =
static_cast<sal_Int32
>(dEndAngle * 100.0);
1171 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList)
1174 AddShape(
"com.sun.star.drawing.EllipseShape");
1193 if(
meKind != drawing::CircleKind_FULL )
1195 uno::Reference< beans::XPropertySet > xPropSet(
mxShape, uno::UNO_QUERY );
1206 if (aScale.
getX() < 0 || aScale.
getY() < 0)
1219 mnEndAngle = (54000 - mnOldStartAngle) % 36000;
1222 xPropSet->setPropertyValue(
"CircleKind",
Any(
meKind) );
1224 xPropSet->setPropertyValue(
"CircleEndAngle",
Any(
mnEndAngle) );
1233 SvXMLImport& rImport,
1234 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
1235 uno::Reference< drawing::XShapes >
const & rShapes,
bool bClosed,
bool bTemporaryShape)
1264 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList)
1268 AddShape(
"com.sun.star.drawing.PolyPolygonShape");
1270 AddShape(
"com.sun.star.drawing.PolyLineShape");
1279 uno::Reference< beans::XPropertySet > xPropSet(
mxShape, uno::UNO_QUERY);
1299 if(aPolygon.
count())
1308 if(!aSourceRange.
equal(aTargetRange))
1316 css::drawing::PointSequenceSequence aPointSequenceSequence;
1318 xPropSet->setPropertyValue(
"Geometry",
Any(aPointSequenceSequence));
1336 SvXMLImport& rImport,
1337 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
1338 uno::Reference< drawing::XShapes >
const & rShapes,
1339 bool bTemporaryShape)
1368 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList)
1389 if(!aPolyPolygon.
count())
1399 if(!aSourceRange.
equal(aTargetRange))
1414 service =
"com.sun.star.drawing.ClosedBezierShape";
1418 service =
"com.sun.star.drawing.OpenBezierShape";
1425 service =
"com.sun.star.drawing.PolyPolygonShape";
1429 service =
"com.sun.star.drawing.PolyLineShape";
1446 uno::Reference< beans::XPropertySet > xPropSet(
mxShape, uno::UNO_QUERY);
1455 drawing::PolyPolygonBezierCoords aSourcePolyPolygon;
1459 aSourcePolyPolygon);
1460 aAny <<= aSourcePolyPolygon;
1464 drawing::PointSequenceSequence aSourcePolyPolygon;
1468 aSourcePolyPolygon);
1469 aAny <<= aSourcePolyPolygon;
1472 xPropSet->setPropertyValue(
"Geometry", aAny);
1487 SvXMLImport& rImport,
1488 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
1489 uno::Reference< drawing::XShapes >
const & rShapes)
1506 GetImport().GetMM100UnitConverter().convertMeasureToCore(
1519 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList)
1522 bool bIsPresShape =
false;
1523 bool bClearText =
false;
1530 if(
GetImport().GetShapeImport()->IsPresentationShapesSupported() )
1535 service =
"com.sun.star.presentation.SubtitleShape";
1540 service =
"com.sun.star.presentation.OutlinerShape";
1545 service =
"com.sun.star.presentation.NotesShape";
1550 service =
"com.sun.star.presentation.HeaderShape";
1556 service =
"com.sun.star.presentation.FooterShape";
1562 service =
"com.sun.star.presentation.SlideNumberShape";
1568 service =
"com.sun.star.presentation.DateTimeShape";
1574 service =
"com.sun.star.presentation.TitleTextShape";
1576 bIsPresShape =
true;
1580 if( service.isEmpty() )
1583 service =
"com.sun.star.drawing.TextShape";
1597 uno::Reference< beans::XPropertySet > xProps(
mxShape, uno::UNO_QUERY);
1600 uno::Reference< beans::XPropertySetInfo > xPropsInfo( xProps->getPropertySetInfo() );
1601 if( xPropsInfo.is() )
1603 if( !
mbIsPlaceholder && xPropsInfo->hasPropertyByName(
"IsEmptyPresentationObject"))
1604 xProps->setPropertyValue(
"IsEmptyPresentationObject", css::uno::Any(
false) );
1607 xProps->setPropertyValue(
"IsPlaceholderDependent", css::uno::Any(
false) );
1614 uno::Reference< text::XText > xText(
mxShape, uno::UNO_QUERY );
1615 xText->setString(
"" );
1633 uno::Reference< beans::XPropertySet > xPropSet(
mxShape, uno::UNO_QUERY);
1640 catch(
const uno::Exception&)
1649 uno::Reference< beans::XPropertySet > xPropSet(
mxShape, uno::UNO_QUERY);
1654 xPropSet->setPropertyValue(
"TextChainNextName",
1657 catch(
const uno::Exception&)
1669 SvXMLImport& rImport,
1670 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
1671 uno::Reference< drawing::XShapes >
const & rShapes,
1672 bool bTemporaryShape)
1696 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList)
1700 AddShape(
"com.sun.star.drawing.ControlShape");
1704 SAL_WARN_IF( !!
maFormId.isEmpty(),
"xmloff",
"draw:control without a form:id attribute!" );
1709 uno::Reference< awt::XControlModel > xControlModel(
GetImport().GetFormImport()->lookupControl(
maFormId ), uno::UNO_QUERY );
1710 if( xControlModel.is() )
1712 uno::Reference< drawing::XControlShape > xControl(
mxShape, uno::UNO_QUERY );
1714 xControl->setControl( xControlModel );
1731 SvXMLImport& rImport,
1732 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
1733 uno::Reference< drawing::XShapes >
const & rShapes,
1734 bool bTemporaryShape)
1751bool SvXMLImport::needFixPositionAfterZ()
const
1753 bool bWrongPositionAfterZ(
false );
1754 sal_Int32 nUPD( 0 );
1755 sal_Int32 nBuildId( 0 );
1756 if ( getBuildIds( nUPD, nBuildId ) &&
1757 ( ( ( nUPD == 641 ) || ( nUPD == 645 ) || ( nUPD == 680 ) || ( nUPD == 300 ) ||
1758 ( nUPD == 310 ) || ( nUPD == 320 ) || ( nUPD == 330 ) || ( nUPD == 340 ) ||
1759 ( nUPD == 350 && nBuildId < 202 ) )
1760 || (getGeneratorVersion() == SvXMLImport::AOO_40x)))
1763 bWrongPositionAfterZ =
true;
1765 return bWrongPositionAfterZ;
1788 OUString sValue = aIter.
toString();
1790 std::u16string_view aToken;
1793 GetImport().GetMM100UnitConverter().convertMeasureToCore(
1797 GetImport().GetMM100UnitConverter().convertMeasureToCore(
1801 GetImport().GetMM100UnitConverter().convertMeasureToCore(
1820 GetImport().GetMM100UnitConverter().convertMeasureToCore(
1825 GetImport().GetMM100UnitConverter().convertMeasureToCore(
1830 GetImport().GetMM100UnitConverter().convertMeasureToCore(
1835 GetImport().GetMM100UnitConverter().convertMeasureToCore(
1845 if(aPolyPolygon.
count())
1847 drawing::PolyPolygonBezierCoords aSourcePolyPolygon;
1851 aSourcePolyPolygon);
1852 maPath <<= aSourcePolyPolygon;
1864 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList)
1888 AddShape(
"com.sun.star.drawing.ConnectorShape");
1905 aStart = aMat * aStart;
1921 uno::Reference< beans::XPropertySet > xProps(
mxShape, uno::UNO_QUERY );
1924 xProps->setPropertyValue(
"StartPosition",
Any(
maStart));
1925 xProps->setPropertyValue(
"EndPosition",
Any(
maEnd) );
1926 xProps->setPropertyValue(
"EdgeKind",
Any(
mnType) );
1927 xProps->setPropertyValue(
"EdgeLine1Delta",
Any(
mnDelta1) );
1928 xProps->setPropertyValue(
"EdgeLine2Delta",
Any(
mnDelta2) );
1929 xProps->setPropertyValue(
"EdgeLine3Delta",
Any(
mnDelta3) );
1940 bool bApplySVGD(
true );
1941 if ( uno::Reference< text::XTextDocument >(
GetImport().GetModel(), uno::UNO_QUERY).is() )
1943 sal_Int32 nUPD( 0 );
1944 sal_Int32 nBuild( 0 );
1945 const bool bBuildIdFound =
GetImport().getBuildIds( nUPD, nBuild );
1946 if (
GetImport().IsTextDocInOOoFileFormat() ||
1948 ( ( nUPD == 641 ) || ( nUPD == 645 ) ||
1952 ( nUPD == 320 ) ) ) )
1968 const drawing::PolyPolygonBezierCoords* pSource =
static_cast< const drawing::PolyPolygonBezierCoords*
>(
maPath.getValue());
1969 const sal_uInt32 nSequenceCount(pSource->Coordinates.getLength());
1970 bool bStartEqual(
false);
1971 bool bEndEqual(
false);
1975 const drawing::PointSequence& rStartSeq = pSource->Coordinates[0];
1976 const sal_uInt32 nStartCount = rStartSeq.getLength();
1980 const awt::Point& rStartPoint = rStartSeq.getConstArray()[0];
1988 const drawing::PointSequence& rEndSeq = pSource->Coordinates[nSequenceCount - 1];
1989 const sal_uInt32 nEndCount = rEndSeq.getLength();
1993 const awt::Point& rEndPoint = rEndSeq.getConstArray()[nEndCount - 1];
1995 if(rEndPoint.X ==
maEnd.X && rEndPoint.Y ==
maEnd.Y)
2002 if(!bStartEqual || !bEndEqual)
2011 xProps->setPropertyValue(
"PolyPolygonBezier",
maPath);
2020 SvXMLImport& rImport,
2021 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
2022 uno::Reference< drawing::XShapes >
const & rShapes,
2023 bool bTemporaryShape)
2042 GetImport().GetMM100UnitConverter().convertMeasureToCore(
2049 GetImport().GetMM100UnitConverter().convertMeasureToCore(
2056 GetImport().GetMM100UnitConverter().convertMeasureToCore(
2063 GetImport().GetMM100UnitConverter().convertMeasureToCore(
2074 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList)
2078 AddShape(
"com.sun.star.drawing.MeasureShape");
2085 uno::Reference< beans::XPropertySet > xProps(
mxShape, uno::UNO_QUERY );
2088 xProps->setPropertyValue(
"StartPosition",
Any(
maStart));
2089 xProps->setPropertyValue(
"EndPosition",
Any(
maEnd) );
2093 uno::Reference< text::XText > xText(
mxShape, uno::UNO_QUERY );
2096 xText->setString(
" " );
2107 uno::Reference< text::XText > xText(
mxShape, uno::UNO_QUERY );
2111 uno::Reference< text::XTextCursor > xCursor( xText->createTextCursor() );
2115 xCursor->collapseToStart();
2116 xCursor->goRight( 1,
true );
2117 xCursor->setString(
"" );
2126 SvXMLImport& rImport,
2127 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
2128 uno::Reference< drawing::XShapes >
const & rShapes,
2129 bool bTemporaryShape)
2130:
SdXMLShapeContext( rImport, xAttrList, rShapes, bTemporaryShape ), mnPageNumber(0)
2150 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList)
2158 GetImport().GetShapeImport()->IsPresentationShapesSupported();
2160 uno::Reference< lang::XServiceInfo > xInfo(
mxShapes, uno::UNO_QUERY );
2161 const bool bIsOnHandoutPage = xInfo.is() && xInfo->supportsService(
"com.sun.star.presentation.HandoutMasterPage");
2163 if( bIsOnHandoutPage )
2165 AddShape(
"com.sun.star.presentation.HandoutShape");
2171 bIsPresentation =
false;
2176 AddShape(
"com.sun.star.presentation.PageShape");
2180 AddShape(
"com.sun.star.drawing.PageShape");
2193 uno::Reference< beans::XPropertySet > xPropSet(
mxShape, uno::UNO_QUERY);
2196 uno::Reference< beans::XPropertySetInfo > xPropSetInfo( xPropSet->getPropertySetInfo() );
2197 static const OUStringLiteral aPageNumberStr(
u"PageNumber");
2198 if( xPropSetInfo.is() && xPropSetInfo->hasPropertyByName(aPageNumberStr))
2207 SvXMLImport& rImport,
2208 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
2209 uno::Reference< drawing::XShapes >
const & rShapes,
2210 bool bTemporaryShape)
2222 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList)
2226 AddShape(
"com.sun.star.drawing.CaptionShape");
2233 uno::Reference< beans::XPropertySet > xProps(
mxShape, uno::UNO_QUERY );
2240 bool bIsAutoGrowWidth =
false;
2243 uno::Any aAny( xProps->getPropertyValue(
"TextAutoGrowWidth") );
2244 aAny >>= bIsAutoGrowWidth;
2246 if ( bIsAutoGrowWidth )
2247 xProps->setPropertyValue(
"TextAutoGrowWidth",
uno::Any(
false ) );
2255 if ( bIsAutoGrowWidth )
2256 xProps->setPropertyValue(
"TextAutoGrowWidth",
uno::Any(
true ) );
2260 uno::Reference< beans::XPropertySet > xPropSet(
mxShape, uno::UNO_QUERY);
2267 catch(
const uno::Exception&)
2283 GetImport().GetMM100UnitConverter().convertMeasureToCore(
2287 GetImport().GetMM100UnitConverter().convertMeasureToCore(
2291 GetImport().GetMM100UnitConverter().convertMeasureToCore(
2302 SvXMLImport& rImport,
2303 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
2304 uno::Reference< drawing::XShapes >
const & rShapes)
2320 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList)
2327 service =
"com.sun.star.presentation.GraphicObjectShape";
2331 service =
"com.sun.star.drawing.GraphicObjectShape";
2342 uno::Reference< beans::XPropertySet > xPropset(
mxShape, uno::UNO_QUERY);
2347 sal_Int32 nUPD, nBuildId;
2348 if(
GetImport().getBuildIds( nUPD, nBuildId ) && (nUPD == 645) )
try
2350 xPropset->setPropertyValue(
"FillStyle",
Any( FillStyle_NONE ) );
2351 xPropset->setPropertyValue(
"LineStyle",
Any( LineStyle_NONE ) );
2357 uno::Reference< beans::XPropertySetInfo > xPropsInfo( xPropset->getPropertySetInfo() );
2358 if( xPropsInfo.is() && xPropsInfo->hasPropertyByName(
"IsEmptyPresentationObject"))
2359 xPropset->setPropertyValue(
"IsEmptyPresentationObject", css::uno::Any(
mbIsPlaceholder ) );
2363 if( !
maURL.isEmpty() )
2365 uno::Reference<graphic::XGraphic> xGraphic =
GetImport().loadGraphicByURL(
maURL);
2368 xPropset->setPropertyValue(
"Graphic",
uno::Any(xGraphic));
2376 uno::Reference< beans::XPropertySet > xProps(
mxShape, uno::UNO_QUERY);
2379 uno::Reference< beans::XPropertySetInfo > xPropsInfo( xProps->getPropertySetInfo() );
2380 if( xPropsInfo.is() )
2382 if( xPropsInfo->hasPropertyByName(
"IsPlaceholderDependent"))
2383 xProps->setPropertyValue(
"IsPlaceholderDependent", css::uno::Any(
false) );
2401 uno::Reference<beans::XPropertySet> xProperties(
mxShape, uno::UNO_QUERY);
2402 if (xProperties.is())
2404 xProperties->setPropertyValue(
"Graphic",
uno::Any(xGraphic));
2414 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
2416 css::uno::Reference< css::xml::sax::XFastContextHandler > xContext;
2447 SvXMLImport& rImport,
2448 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
2449 uno::Reference< drawing::XShapes >
const & rShapes,
2450 bool bTemporaryShape)
2456 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList)
2462 ? OUString(
"com.sun.star.presentation.ChartShape")
2463 : OUString(
"com.sun.star.drawing.OLE2Shape"));
2473 uno::Reference< beans::XPropertySet > xProps(
mxShape, uno::UNO_QUERY);
2476 uno::Reference< beans::XPropertySetInfo > xPropsInfo( xProps->getPropertySetInfo() );
2477 if( xPropsInfo.is() && xPropsInfo->hasPropertyByName(
"IsEmptyPresentationObject"))
2478 xProps->setPropertyValue(
"IsEmptyPresentationObject", css::uno::Any(
false) );
2482 xProps->setPropertyValue(
"CLSID",
Any(OUString(
"12DCAE26-281F-416F-a234-c3086127382e")) );
2484 aAny = xProps->getPropertyValue(
"Model");
2485 uno::Reference< frame::XModel > xChartModel;
2486 if( aAny >>= xChartModel )
2488#if !ENABLE_WASM_STRIP_CHART
2501 uno::Reference< beans::XPropertySet > xProps(
mxShape, uno::UNO_QUERY);
2504 uno::Reference< beans::XPropertySetInfo > xPropsInfo( xProps->getPropertySetInfo() );
2505 if( xPropsInfo.is() )
2507 if( xPropsInfo->hasPropertyByName(
"IsPlaceholderDependent"))
2508 xProps->setPropertyValue(
"IsPlaceholderDependent", css::uno::Any(
false) );
2538 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
2541 return mxChartContext->createFastChildContext( nElement, xAttrList );
2548 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
2549 css::uno::Reference< css::drawing::XShapes >
const & rShapes)
2559 const css::uno::Reference< css::xml::sax::XFastAttributeList >& )
2575 OUString service(
"com.sun.star.drawing.OLE2Shape");
2583 service =
"com.sun.star.presentation.ChartShape";
2587 service =
"com.sun.star.presentation.CalcShape";
2591 service =
"com.sun.star.presentation.OLE2Shape";
2604 uno::Reference< beans::XPropertySet > xProps(
mxShape, uno::UNO_QUERY);
2607 uno::Reference< beans::XPropertySetInfo > xPropsInfo( xProps->getPropertySetInfo() );
2608 if( xPropsInfo.is() )
2610 if( !
mbIsPlaceholder && xPropsInfo->hasPropertyByName(
"IsEmptyPresentationObject"))
2611 xProps->setPropertyValue(
"IsEmptyPresentationObject", css::uno::Any(
false) );
2614 xProps->setPropertyValue(
"IsPlaceholderDependent", css::uno::Any(
false) );
2621 uno::Reference< beans::XPropertySet > xProps(
mxShape, uno::UNO_QUERY );
2629 static const OUStringLiteral sURL(
u"vnd.sun.star.EmbeddedObject:" );
2631 if ( aPersistName.startsWith( sURL ) )
2632 aPersistName = aPersistName.copy( sURL.getLength() );
2634 xProps->setPropertyValue(
"PersistName",
2640 xProps->setPropertyValue(
"LinkURL",
2656 if (
GetImport().isGeneratorVersionOlderThan(
2657 SvXMLImport::OOo_34x, SvXMLImport::LO_41x))
2665 uno::Reference< beans::XPropertySet > xProps(
mxShape, uno::UNO_QUERY);
2669 xProps->setPropertyValue(
"FillStyle",
uno::Any(drawing::FillStyle_NONE));
2670 xProps->setPropertyValue(
"LineStyle",
uno::Any(drawing::LineStyle_NONE));
2676 OUString aPersistName(
GetImport().ResolveEmbeddedObjectURLFromBase64() );
2677 static const OUStringLiteral sURL(
u"vnd.sun.star.EmbeddedObject:" );
2679 aPersistName = aPersistName.copy( sURL.getLength() );
2681 uno::Reference< beans::XPropertySet > xProps(
mxShape, uno::UNO_QUERY);
2683 xProps->setPropertyValue(
"PersistName",
uno::Any( aPersistName ) );
2708 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
2721 maCLSID = xEContext->GetFilterCLSID();
2724 uno::Reference< beans::XPropertySet > xPropSet(
mxShape, uno::UNO_QUERY);
2729 uno::Reference< lang::XComponent > xComp;
2730 xPropSet->getPropertyValue(
"Model") >>= xComp;
2731 SAL_WARN_IF( !xComp.is(),
"xmloff",
"no xModel for own OLE format" );
2732 xEContext->SetComponent(xComp);
2743 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
2744 css::uno::Reference< css::drawing::XShapes >
const & rShapes)
2755 const css::uno::Reference< css::xml::sax::XFastAttributeList >& )
2757 AddShape(
"com.sun.star.drawing.AppletShape");
2794 uno::Reference< beans::XPropertySet > xProps(
mxShape, uno::UNO_QUERY );
2800 awt::Rectangle aRect( 0, 0,
maSize.Width,
maSize.Height );
2801 xProps->setPropertyValue(
"VisibleArea",
Any(aRect) );
2806 xProps->setPropertyValue(
"AppletCommands",
Any(
maParams) );
2811 xProps->setPropertyValue(
"AppletCodeBase",
Any(
maHref) );
2821 xProps->setPropertyValue(
"AppletIsScript",
Any(
mbIsScript) );
2830 xProps->setPropertyValue(
"AppletDocBase",
Any(
GetImport().GetDocumentBase()) );
2840 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
2844 OUString aParamName, aParamValue;
2849 aParamName = aIter.toString();
2851 aParamValue = aIter.toString();
2854 if( !aParamName.isEmpty() )
2858 auto pParams =
maParams.getArray();
2859 pParams[
nIndex].Name = aParamName;
2860 pParams[
nIndex].Handle = -1;
2861 pParams[
nIndex].Value <<= aParamValue;
2862 pParams[
nIndex].State = beans::PropertyState_DIRECT_VALUE;
2873 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
2874 css::uno::Reference< css::drawing::XShapes >
const & rShapes) :
2885 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList)
2893 if( aIter.toView() ==
"application/vnd.sun.star.media" )
2902 bool bIsPresShape =
false;
2906 service =
"com.sun.star.drawing.MediaShape";
2913 service =
"com.sun.star.presentation.MediaShape";
2918 service =
"com.sun.star.drawing.PluginShape";
2935 uno::Reference< beans::XPropertySet > xProps(
mxShape, uno::UNO_QUERY );
2938 uno::Reference< beans::XPropertySetInfo > xPropsInfo( xProps->getPropertySetInfo() );
2939 if( xPropsInfo.is() )
2941 if( !
mbIsPlaceholder && xPropsInfo->hasPropertyByName(
"IsEmptyPresentationObject"))
2942 xProps->setPropertyValue(
"IsEmptyPresentationObject", css::uno::Any(
false) );
2945 xProps->setPropertyValue(
"IsPlaceholderDependent", css::uno::Any(
false) );
2958 if (rImport.IsPackageURL(rURL))
2960 return "vnd.sun.star.Package:" + rURL;
2964 return rImport.GetAbsoluteReference(rURL);
2987 uno::Reference< beans::XPropertySet > xProps(
mxShape, uno::UNO_QUERY );
2993 static const OUStringLiteral sVisibleArea(
u"VisibleArea" );
2994 uno::Reference< beans::XPropertySetInfo > aXPropSetInfo( xProps->getPropertySetInfo() );
2995 if ( !aXPropSetInfo.is() || aXPropSetInfo->hasPropertyByName( sVisibleArea ) )
2998 awt::Rectangle aRect( 0, 0,
maSize.Width,
maSize.Height );
2999 xProps->setPropertyValue( sVisibleArea,
Any(aRect) );
3008 xProps->setPropertyValue(
"PluginCommands",
Any(
maParams) );
3013 xProps->setPropertyValue(
"PluginMimeType",
Any(
maMimeType) );
3018 xProps->setPropertyValue(
"PluginURL",
Any(
maHref) );
3028 for(
const auto& rParam : std::as_const(
maParams) )
3030 const OUString& rName = rParam.Name;
3032 if( rName ==
"Loop" )
3035 rParam.Value >>= aValueStr;
3036 xProps->setPropertyValue(
"Loop",
3039 else if( rName ==
"Mute" )
3042 rParam.Value >>= aValueStr;
3043 xProps->setPropertyValue(
"Mute",
3046 else if( rName ==
"VolumeDB" )
3049 rParam.Value >>= aValueStr;
3050 xProps->setPropertyValue(
"VolumeDB",
3051 uno::Any(
static_cast< sal_Int16
>( aValueStr.toInt32() ) ) );
3053 else if( rName ==
"Zoom" )
3056 media::ZoomLevel eZoomLevel;
3058 rParam.Value >>= aZoomStr;
3060 if( aZoomStr ==
"25%" )
3061 eZoomLevel = media::ZoomLevel_ZOOM_1_TO_4;
3062 else if( aZoomStr ==
"50%" )
3063 eZoomLevel = media::ZoomLevel_ZOOM_1_TO_2;
3064 else if( aZoomStr ==
"100%" )
3065 eZoomLevel = media::ZoomLevel_ORIGINAL;
3066 else if( aZoomStr ==
"200%" )
3067 eZoomLevel = media::ZoomLevel_ZOOM_2_TO_1;
3068 else if( aZoomStr ==
"400%" )
3069 eZoomLevel = media::ZoomLevel_ZOOM_4_TO_1;
3070 else if( aZoomStr ==
"fit" )
3071 eZoomLevel = media::ZoomLevel_FIT_TO_WINDOW;
3072 else if( aZoomStr ==
"fixedfit" )
3073 eZoomLevel = media::ZoomLevel_FIT_TO_WINDOW_FIXED_ASPECT;
3074 else if( aZoomStr ==
"fullscreen" )
3075 eZoomLevel = media::ZoomLevel_FULLSCREEN;
3077 eZoomLevel = media::ZoomLevel_NOT_AVAILABLE;
3079 xProps->setPropertyValue(
"Zoom",
uno::Any( eZoomLevel ) );
3092 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
3096 OUString aParamName, aParamValue;
3101 aParamName = aIter.toString();
3103 aParamValue = aIter.toString();
3106 if( !aParamName.isEmpty() )
3110 auto pParams =
maParams.getArray();
3111 pParams[
nIndex].Name = aParamName;
3112 pParams[
nIndex].Handle = -1;
3113 pParams[
nIndex].Value <<= aParamValue;
3114 pParams[
nIndex].State = beans::PropertyState_DIRECT_VALUE;
3125 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
3126 css::uno::Reference< css::drawing::XShapes >
const & rShapes)
3136 const css::uno::Reference< css::xml::sax::XFastAttributeList >& )
3138 AddShape(
"com.sun.star.drawing.FrameShape");
3148 uno::Reference< beans::XPropertySet > xProps(
mxShape, uno::UNO_QUERY );
3161 xProps->setPropertyValue(
"FrameURL",
Any(
maHref) );
3189 uno::Reference< beans::XPropertySet > xProps(
mxShape, uno::UNO_QUERY );
3196 awt::Rectangle aRect( 0, 0,
maSize.Width,
maSize.Height );
3197 xProps->setPropertyValue(
"VisibleArea",
Any(aRect) );
3207 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
3208 css::uno::Reference< css::drawing::XShapes >
const & rShapes,
3209 bool bTemporaryShape)
3211 mbSupportsReplacement( false )
3213 uno::Reference < util::XCloneable > xClone( xAttrList, uno::UNO_QUERY );
3215 mxAttrList.set( xClone->createClone(), uno::UNO_QUERY );
3228 if(!pSdXMLGraphicObjectShapeContext)
3233 uno::Reference< container::XChild > xChild(pSdXMLGraphicObjectShapeContext->
getShape(), uno::UNO_QUERY_THROW);
3235 uno::Reference< drawing::XShapes > xParent(xChild->getParent(), uno::UNO_QUERY_THROW);
3238 xParent->remove(pSdXMLGraphicObjectShapeContext->
getShape());
3241 uno::Reference< lang::XComponent > xComp(pSdXMLGraphicObjectShapeContext->
getShape(), UNO_QUERY);
3248 catch( uno::Exception& )
3256uno::Reference<beans::XPropertySet> getGraphicPropertySetFromImportContext(
const SvXMLImportContext& rContext)
3258 uno::Reference<beans::XPropertySet> aPropertySet;
3261 if (pSdXMLGraphicObjectShapeContext)
3262 aPropertySet.set(pSdXMLGraphicObjectShapeContext->
getShape(), uno::UNO_QUERY);
3264 return aPropertySet;
3271 uno::Reference<graphic::XGraphic> xGraphic;
3274 const uno::Reference<beans::XPropertySet> xPropertySet = getGraphicPropertySetFromImportContext(rContext);
3276 if (xPropertySet.is())
3278 xPropertySet->getPropertyValue(
"Graphic") >>= xGraphic;
3281 catch( uno::Exception& )
3294 if(pSdXMLGraphicObjectShapeContext)
3298 const uno::Reference< beans::XPropertySet > xPropSet(pSdXMLGraphicObjectShapeContext->
getShape(), uno::UNO_QUERY_THROW);
3300 xPropSet->getPropertyValue(
"GraphicStreamURL") >>= aRetval;
3302 catch( uno::Exception& )
3313 const uno::Reference< xml::sax::XFastAttributeList>& xAttrList )
3321 xContext = pShapeContext;
3328 bool bMedia =
false;
3333 if( pPluginContext && pPluginContext->
getMimeType() ==
"model/vnd.gltf+json" )
3338 else if (pPluginContext && pPluginContext->
getMimeType() ==
"application/vnd.sun.star.media")
3378 uno::Reference < beans::XPropertySet > xPropSet(
3379 pSContext->
getShape(), uno::UNO_QUERY );
3383 nElement, xAttrList, xPropSet );
3415 uno::Reference < beans::XPropertySet > xPropSet( pSContext->
getShape(), uno::UNO_QUERY );
3427 uno::Reference<beans::XPropertySet> xPropSet(pSContext->
getShape(), uno::UNO_QUERY);
3440 uno::Reference<beans::XPropertySet> xPropSet(pSContext->
getShape(), uno::UNO_QUERY);
3453 const css::uno::Reference< css::xml::sax::XFastAttributeList >& )
3464 if ( pShapeContext )
3467 const uno::Reference< uno::XInterface > xShape( pShapeContext->
getShape() );
3468 GetImport().getInterfaceToIdentifierMapper().registerReservedReference(
maShapeId, xShape );
3476 switch (aIter.getToken())
3490 uno::Reference< xml::sax::XFastAttributeList> xEmpty;
3548 SvXMLImport& rImport,
3549 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
3550 uno::Reference< drawing::XShapes >
const & rShapes)
3559 OUString aStyleName = aIter.toString();
3560 if(!aStyleName.isEmpty())
3598 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList)
3601 AddShape(
"com.sun.star.drawing.CustomShape");
3614 uno::Reference< beans::XPropertySet > xPropSet(
mxShape, uno::UNO_QUERY );
3627 catch(
const uno::Exception&)
3642 double fRotate, fShearX;
3646 if (aScale.
getX() < 0.0)
3648 static const OUStringLiteral
sName(
u"MirroredX");
3651 [](beans::PropertyValue& rValue) { return rValue.Name == sName; });
3654 beans::PropertyValue& rItem = *aI;
3655 bool bMirroredX = *o3tl::doAccess<bool>(rItem.Value);
3656 rItem.Value <<= !bMirroredX;
3658 rItem.State = beans::PropertyState_DIRECT_VALUE;
3662 beans::PropertyValue* pItem;
3665 pItem->Name =
sName;
3667 pItem->Value <<=
true;
3668 pItem->State = beans::PropertyState_DIRECT_VALUE;
3672 if (aScale.
getY() < 0.0)
3674 static const OUStringLiteral
sName(
u"MirroredY");
3677 [](beans::PropertyValue& rValue) { return rValue.Name == sName; });
3680 beans::PropertyValue& rItem = *aI;
3681 bool bMirroredY = *o3tl::doAccess<bool>(rItem.Value);
3682 rItem.Value <<= !bMirroredY;
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;
3706 uno::Reference< beans::XPropertySet > xPropSet(
mxShape, uno::UNO_QUERY );
3709 xPropSet->setPropertyValue(
"CustomShapeGeometry",
Any(
aSeq) );
3712 catch(
const uno::Exception&)
3719 if (
GetImport().getBuildIds(nUPD, nBuild))
3721 if( ((nUPD >= 640 && nUPD <= 645) || (nUPD == 680)) && (nBuild <= 9221) )
3723 Reference< drawing::XEnhancedCustomShapeDefaulter > xDefaulter(
mxShape, UNO_QUERY );
3724 if( xDefaulter.is() )
3726 xDefaulter->createCustomShapeDefaults(
"" );
3742 uno::Reference< beans::XPropertySet > xPropSet(
mxShape, uno::UNO_QUERY);
3746 xPropSet->setPropertyValue(
3747 "FlushCustomShapeUnoApiObjects", css::uno::Any(
true));
3750 catch(
const uno::Exception&)
3758 const uno::Reference< xml::sax::XFastAttributeList>& xAttrList )
3760 css::uno::Reference< css::xml::sax::XFastContextHandler > xContext;
3763 uno::Reference< beans::XPropertySet > xPropSet(
mxShape,uno::UNO_QUERY );
3764 if ( xPropSet.is() )
3784 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList)
3786 OUString service(
"com.sun.star.drawing.TableShape");
3793 service =
"com.sun.star.presentation.TableShape";
3804 uno::Reference< beans::XPropertySet > xProps(
mxShape, uno::UNO_QUERY);
3806 if(bIsPresShape && xProps.is())
3808 uno::Reference< beans::XPropertySetInfo > xPropsInfo( xProps->getPropertySetInfo() );
3809 if( xPropsInfo.is() )
3811 if( !
mbIsPlaceholder && xPropsInfo->hasPropertyByName(
"IsEmptyPresentationObject"))
3812 xProps->setPropertyValue(
"IsEmptyPresentationObject", css::uno::Any(
false) );
3815 xProps->setPropertyValue(
"IsPlaceholderDependent", css::uno::Any(
false) );
3825 Reference< XStyleFamiliesSupplier > xFamiliesSupp(
GetImport().GetModel(), UNO_QUERY_THROW );
3826 Reference< XNameAccess > xFamilies( xFamiliesSupp->getStyleFamilies() );
3827 Reference< XNameAccess > xTableFamily( xFamilies->getByName(
"table" ), UNO_QUERY_THROW );
3828 Reference< XStyle > xTableStyle( xTableFamily->getByName(
msTemplateStyleName ), UNO_QUERY_THROW );
3829 xProps->setPropertyValue(
"TableTemplate",
Any( xTableStyle ) );
3837 for(
int i = 0; !pEntry->
IsEnd() && (
i < 6);
i++, pEntry++ )
3853 if( xTableImport.is() && xProps.is() )
3855 uno::Reference< table::XColumnRowRange > xColumnRowRange(
3856 xProps->getPropertyValue(
"Model"), uno::UNO_QUERY );
3858 if( xColumnRowRange.is() )
3894 while( !pEntry->
IsEnd() && (
i < 6) )
3912 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 ...
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