19#ifndef INCLUDED_SLIDESHOW_SOURCE_INC_SHAPEIMPORTER_HXX
20#define INCLUDED_SLIDESHOW_SOURCE_INC_SHAPEIMPORTER_HXX
22#include <com/sun/star/drawing/XDrawPage.hpp>
23#include <com/sun/star/drawing/XDrawPagesSupplier.hpp>
24#include <com/sun/star/drawing/XShapes.hpp>
25#include <com/sun/star/beans/XPropertySet.hpp>
26#include <com/sun/star/drawing/XLayer.hpp>
38struct SlideShowContext;
72 ShapeImporter(
const css::uno::Reference< css::drawing::XDrawPage >& xPage,
73 css::uno::Reference< css::drawing::XDrawPage > xActualPage,
74 css::uno::Reference< css::drawing::XDrawPagesSupplier> xPagesSupplier,
76 sal_Int32 nOrdNumStart,
77 bool bConvertingMasterPage );
99 bool isSkip( css::uno::Reference<css::beans::XPropertySet>
const& xPropSet,
100 std::u16string_view shapeType,
101 css::uno::Reference<css::drawing::XLayer>
const& xLayer);
104 css::uno::Reference<css::drawing::XShape>
const& xCurrShape,
105 css::uno::Reference<css::beans::XPropertySet>
const& xPropSet,
106 std::u16string_view shapeType )
const;
108 void importPolygons(css::uno::Reference< css::beans::XPropertySet >
const& xPropSet) ;
113 css::uno::Reference<css::drawing::XShapes>
const mxShapes;
120 css::
uno::UNO_QUERY_THROW ),
123 css::drawing::XShapes>
const& xShapes )
128 css::uno::Reference<css::drawing::XDrawPage>
mxPage;
This class imports all shapes from a given XShapes object.
const PolyPolygonVector & getPolygons() const
PolyPolygonVector maPolygons
bool isSkip(css::uno::Reference< css::beans::XPropertySet > const &xPropSet, std::u16string_view shapeType, css::uno::Reference< css::drawing::XLayer > const &xLayer)
ShapeSharedPtr importShape()
This method imports presentation-visible shapes (and skips all others).
double getImportedShapesCount() const
ShapeImporter(const css::uno::Reference< css::drawing::XDrawPage > &xPage, css::uno::Reference< css::drawing::XDrawPage > xActualPage, css::uno::Reference< css::drawing::XDrawPagesSupplier > xPagesSupplier, const SlideShowContext &rContext, sal_Int32 nOrdNumStart, bool bConvertingMasterPage)
Create shape importer.
const SlideShowContext & mrContext
bool isImportDone() const
Test whether import is done.
css::uno::Reference< css::drawing::XDrawPagesSupplier > mxPagesSupplier
bool mbConvertingMasterPage
::std::stack< XShapesEntry > maShapesStack
ShapeSharedPtr importBackgroundShape()
This method imports the presentation background shape.
css::uno::Reference< css::drawing::XDrawPage > mxPage
void importPolygons(css::uno::Reference< css::beans::XPropertySet > const &xPropSet)
ShapeSharedPtr createShape(css::uno::Reference< css::drawing::XShape > const &xCurrShape, css::uno::Reference< css::beans::XPropertySet > const &xPropSet, std::u16string_view shapeType) const
::std::vector< ::cppcanvas::PolyPolygonSharedPtr > PolyPolygonVector
std::vector< UnoViewSharedPtr > UnoViewVector
::std::shared_ptr< Shape > ShapeSharedPtr
std::shared_ptr< UnoView > UnoViewSharedPtr
ShapeSharedPtr const mpGroupShape
css::uno::Reference< css::drawing::XShapes > const mxShapes
XShapesEntry(ShapeSharedPtr const &pGroupShape)
XShapesEntry(css::uno::Reference< css::drawing::XShapes > const &xShapes)
Common arguments for slideshow objects.