20#ifndef INCLUDED_SLIDESHOW_SOURCE_ENGINE_SHAPES_GDIMTFTOOLS_HXX
21#define INCLUDED_SLIDESHOW_SOURCE_ENGINE_SHAPES_GDIMTFTOOLS_HXX
23#include <com/sun/star/uno/Reference.hxx>
24#include <com/sun/star/uno/XComponentContext.hpp>
25#include <com/sun/star/lang/XComponent.hpp>
26#include <com/sun/star/drawing/XDrawPage.hpp>
94 const css::uno::Reference< css::drawing::XDrawPage >& xContainingPage,
96 const css::uno::Reference< css::uno::XComponentContext >& rxContext );
115 sal_uInt32& o_rLoopCount,
mtf_load_flags
meta file loading specialities:
@ MTF_LOAD_FOREIGN_SOURCE
the source of the metafile might be a foreign application.
@ MTF_LOAD_BACKGROUND_ONLY
retrieve a meta file for the page background only
@ MTF_LOAD_SCROLL_TEXT_MTF
retrieve the drawing layer scroll text metafile
std::shared_ptr< GDIMetaFile > GDIMetaFileSharedPtr
bool getRectanglesFromScrollMtf(::basegfx::B2DRectangle &o_rScrollRect, ::basegfx::B2DRectangle &o_rPaintRect, const GDIMetaFileSharedPtr &rMtf)
Retrieve scroll text animation rectangles from given metafile.
bool getAnimationFromGraphic(VectorOfMtfAnimationFrames &o_rFrames, sal_uInt32 &o_rLoopCount, const Graphic &rGraphic)
Extract a vector of animation frames from given Graphic.
::std::vector< MtfAnimationFrame > VectorOfMtfAnimationFrames
GDIMetaFileSharedPtr getMetaFile(const uno::Reference< lang::XComponent > &xSource, const uno::Reference< drawing::XDrawPage > &xContainingPage, int mtfLoadFlags, const uno::Reference< uno::XComponentContext > &rxContext)
sal_Int32 getNextActionOffset(MetaAction *pCurrAct)
Gets the next action offset for iterating meta actions which is most often returns 1.
double getDuration() const
Enables STL algos to be used for duration extraction.
GDIMetaFileSharedPtr mpMtf
MtfAnimationFrame(GDIMetaFileSharedPtr xMtf, double nDuration)