LibreOffice Module writerfilter (master) 1
|
Handles <wp:wrapPolygon> from DOCX and the pWrapPolygonVertices shape property from RTF. More...
#include <WrapPolygonHandler.hxx>
Public Types | |
typedef std::vector< css::awt::Point > | Points_t |
typedef ::tools::SvRef< WrapPolygon > | Pointer_t |
Public Member Functions | |
WrapPolygon () | |
~WrapPolygon () override | |
void | addPoint (const css::awt::Point &rPoint) |
Points_t::const_iterator | begin () const |
Points_t::const_iterator | end () const |
WrapPolygon::Pointer_t | move (const css::awt::Point &rMove) const |
WrapPolygon::Pointer_t | scale (const Fraction &rFractionX, const Fraction &rFractionY) const |
WrapPolygon::Pointer_t | correctWordWrapPolygon (const css::awt::Size &rSrcSize) const |
WrapPolygon::Pointer_t | correctWordWrapPolygonPixel (const css::awt::Size &rSrcSize) const |
WrapPolygon::Pointer_t | correctCrop (const css::awt::Size &rGraphicSize, const css::text::GraphicCrop &rGraphicCrop) const |
css::drawing::PointSequenceSequence | getPointSequenceSequence () const |
![]() | |
SvRefBase () | |
SvRefBase (const SvRefBase &) | |
SvRefBase & | operator= (const SvRefBase &) |
void | RestoreNoDelete () |
void | AddNextRef () |
void | AddFirstRef () |
void | ReleaseRef () |
unsigned int | GetRefCount () const |
Private Attributes | |
Points_t | mPoints |
Additional Inherited Members | |
![]() | |
virtual | ~SvRefBase () COVERITY_NOEXCEPT_FALSE |
Handles <wp:wrapPolygon> from DOCX and the pWrapPolygonVertices shape property from RTF.
Definition at line 35 of file WrapPolygonHandler.hxx.
Definition at line 39 of file WrapPolygonHandler.hxx.
typedef std::vector<css::awt::Point> writerfilter::dmapper::WrapPolygon::Points_t |
Definition at line 38 of file WrapPolygonHandler.hxx.
writerfilter::dmapper::WrapPolygon::WrapPolygon | ( | ) |
Definition at line 38 of file WrapPolygonHandler.cxx.
|
override |
Definition at line 42 of file WrapPolygonHandler.cxx.
void writerfilter::dmapper::WrapPolygon::addPoint | ( | const css::awt::Point & | rPoint | ) |
Definition at line 46 of file WrapPolygonHandler.cxx.
References mPoints.
WrapPolygon::Points_t::const_iterator writerfilter::dmapper::WrapPolygon::begin | ( | ) | const |
Definition at line 51 of file WrapPolygonHandler.cxx.
References mPoints.
WrapPolygon::Pointer_t writerfilter::dmapper::WrapPolygon::correctCrop | ( | const css::awt::Size & | rGraphicSize, |
const css::text::GraphicCrop & | rGraphicCrop | ||
) | const |
Definition at line 140 of file WrapPolygonHandler.cxx.
References scale().
WrapPolygon::Pointer_t writerfilter::dmapper::WrapPolygon::correctWordWrapPolygon | ( | const css::awt::Size & | rSrcSize | ) | const |
Definition at line 95 of file WrapPolygonHandler.cxx.
References convertTwipToMm100(), move(), and nWrap100Percent.
WrapPolygon::Pointer_t writerfilter::dmapper::WrapPolygon::correctWordWrapPolygonPixel | ( | const css::awt::Size & | rSrcSize | ) | const |
Definition at line 117 of file WrapPolygonHandler.cxx.
References nWrap100Percent, and scale().
WrapPolygon::Points_t::const_iterator writerfilter::dmapper::WrapPolygon::end | ( | ) | const |
Definition at line 56 of file WrapPolygonHandler.cxx.
References mPoints.
drawing::PointSequenceSequence writerfilter::dmapper::WrapPolygon::getPointSequenceSequence | ( | ) | const |
Definition at line 157 of file WrapPolygonHandler.cxx.
References comphelper::containerToSequence(), and mPoints.
WrapPolygon::Pointer_t writerfilter::dmapper::WrapPolygon::move | ( | const css::awt::Point & | rMove | ) | const |
Definition at line 61 of file WrapPolygonHandler.cxx.
References begin(), and end().
Referenced by correctWordWrapPolygon().
WrapPolygon::Pointer_t writerfilter::dmapper::WrapPolygon::scale | ( | const Fraction & | rFractionX, |
const Fraction & | rFractionY | ||
) | const |
Definition at line 78 of file WrapPolygonHandler.cxx.
References begin(), and end().
Referenced by correctCrop(), and correctWordWrapPolygonPixel().
|
private |
Definition at line 42 of file WrapPolygonHandler.hxx.
Referenced by addPoint(), begin(), end(), and getPointSequenceSequence().