LibreOffice Module slideshow (master) 1
|
This class imports all shapes from a given XShapes object. More...
#include <shapeimporter.hxx>
Classes | |
struct | XShapesEntry |
Public Member Functions | |
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. More... | |
ShapeSharedPtr | importBackgroundShape () |
This method imports the presentation background shape. More... | |
ShapeSharedPtr | importShape () |
This method imports presentation-visible shapes (and skips all others). More... | |
bool | isImportDone () const |
Test whether import is done. More... | |
const PolyPolygonVector & | getPolygons () const |
double | getImportedShapesCount () const |
Private Member Functions | |
bool | isSkip (css::uno::Reference< css::beans::XPropertySet > const &xPropSet, std::u16string_view shapeType, css::uno::Reference< css::drawing::XLayer > const &xLayer) |
ShapeSharedPtr | createShape (css::uno::Reference< css::drawing::XShape > const &xCurrShape, css::uno::Reference< css::beans::XPropertySet > const &xPropSet, std::u16string_view shapeType) const |
void | importPolygons (css::uno::Reference< css::beans::XPropertySet > const &xPropSet) |
Private Attributes | |
css::uno::Reference< css::drawing::XDrawPage > | mxPage |
css::uno::Reference< css::drawing::XDrawPagesSupplier > | mxPagesSupplier |
const SlideShowContext & | mrContext |
PolyPolygonVector | maPolygons |
::std::stack< XShapesEntry > | maShapesStack |
double | mnAscendingPrio |
bool | mbConvertingMasterPage |
This class imports all shapes from a given XShapes object.
Definition at line 46 of file shapeimporter.hxx.
slideshow::internal::ShapeImporter::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.
xPage | Page containing the shapes |
xActualPage | Actual page that's imported - if xPage is a master page, this argument must refer to the using, i.e the page that embeds this specific masterpage. Otherwise, this argument is probably equal to xPage. |
nOrdNumStart | Each shape receives a z order number, in order of import (which relies on the fact that the API returns the shapes in draw order - which it does, currently). Since we might mix several pages on screen (e.g. master page and foreground page), this value can be used as an offset to distinguish those pages. |
bConvertingMasterPage | When true, then the master page is imported. Otherwise, this object imports the draw page. |
Definition at line 517 of file shapeimporter.cxx.
References maShapesStack.
|
private |
Definition at line 199 of file shapeimporter.cxx.
References aPropertyValues, slideshow::internal::createAppletShape(), slideshow::internal::createMediaShape(), slideshow::internal::getPropertyValue(), mrContext, SAL_N_ELEMENTS, GraphicAttr::SetAlpha(), GraphicAttr::SetChannelB(), GraphicAttr::SetChannelG(), GraphicAttr::SetChannelR(), GraphicAttr::SetContrast(), GraphicAttr::SetCrop(), GraphicAttr::SetDrawMode(), GraphicAttr::SetGamma(), GraphicAttr::SetLuminance(), GraphicAttr::SetRotation(), and u.
|
inline |
Definition at line 97 of file shapeimporter.hxx.
References mnAscendingPrio.
const PolyPolygonVector & slideshow::internal::ShapeImporter::getPolygons | ( | ) | const |
Definition at line 512 of file shapeimporter.cxx.
References maPolygons.
ShapeSharedPtr slideshow::internal::ShapeImporter::importBackgroundShape | ( | ) |
This method imports the presentation background shape.
Definition at line 417 of file shapeimporter.cxx.
References slideshow::internal::createBackgroundShape(), mrContext, and slideshow::internal::ShapeImporter::XShapesEntry::mxShapes.
|
private |
Definition at line 383 of file shapeimporter.cxx.
References basegfx::B2DPolygon::append(), cppcanvas::BaseGfxFactory::createPolyPolygon(), slideshow::internal::getPropertyValue(), maPolygons, mrContext, basegfx::Tuple2D< typename TYPE >::setX(), basegfx::Tuple2D< typename TYPE >::setY(), and slideshow::internal::unoColor2RGBColor.
ShapeSharedPtr slideshow::internal::ShapeImporter::importShape | ( | ) |
This method imports presentation-visible shapes (and skips all others).
Definition at line 434 of file shapeimporter.cxx.
References createShape(), slideshow::internal::ShapeImporter::XShapesEntry::mnCount, slideshow::internal::ShapeImporter::XShapesEntry::mnPos, slideshow::internal::ShapeImporter::XShapesEntry::mpGroupShape, and slideshow::internal::ShapeImporter::XShapesEntry::mxShapes.
bool slideshow::internal::ShapeImporter::isImportDone | ( | ) | const |
Test whether import is done.
Definition at line 507 of file shapeimporter.cxx.
|
private |
Definition at line 337 of file shapeimporter.cxx.
References a, slideshow::internal::getPropertyValue(), and u.
|
private |
Definition at line 131 of file shapeimporter.hxx.
|
private |
Definition at line 132 of file shapeimporter.hxx.
Referenced by ShapeImporter().
|
private |
Definition at line 134 of file shapeimporter.hxx.
|
private |
Definition at line 133 of file shapeimporter.hxx.
Referenced by getImportedShapesCount().
|
private |
Definition at line 130 of file shapeimporter.hxx.
|
private |
Definition at line 128 of file shapeimporter.hxx.
|
private |
Definition at line 129 of file shapeimporter.hxx.