LibreOffice Module svx (master) 1
|
#include <xpolyimp.hxx>
Public Member Functions | |
ImpXPolygon (sal_uInt16 nInitSize, sal_uInt16 nResize=16) | |
ImpXPolygon (const ImpXPolygon &rImpXPoly) | |
~ImpXPolygon () | |
bool | operator== (const ImpXPolygon &rImpXPoly) const |
void | CheckPointDelete () const |
void | Resize (sal_uInt16 nNewSize, bool bDeletePoints=true) |
Change polygon size. More... | |
void | InsertSpace (sal_uInt16 nPos, sal_uInt16 nCount) |
void | Remove (sal_uInt16 nPos, sal_uInt16 nCount) |
Public Attributes | |
std::unique_ptr< Point[]> | pPointAry |
std::unique_ptr< PolyFlags[]> | pFlagAry |
Point * | pOldPointAry |
bool | bDeleteOldPoints |
sal_uInt16 | nSize |
sal_uInt16 | nResize |
sal_uInt16 | nPoints |
Definition at line 29 of file xpolyimp.hxx.
ImpXPolygon::ImpXPolygon | ( | sal_uInt16 | nInitSize, |
sal_uInt16 | nResize = 16 |
||
) |
Definition at line 36 of file _xpoly.cxx.
References Resize().
ImpXPolygon::ImpXPolygon | ( | const ImpXPolygon & | rImpXPoly | ) |
Definition at line 46 of file _xpoly.cxx.
References CheckPointDelete(), nPoints, nSize, pFlagAry, pPointAry, and Resize().
ImpXPolygon::~ImpXPolygon | ( | ) |
Definition at line 63 of file _xpoly.cxx.
References bDeleteOldPoints, pOldPointAry, and pPointAry.
void ImpXPolygon::CheckPointDelete | ( | ) | const |
Definition at line 188 of file _xpoly.cxx.
References bDeleteOldPoints, and pOldPointAry.
Referenced by ImpXPolygon(), InsertSpace(), Remove(), and Resize().
void ImpXPolygon::InsertSpace | ( | sal_uInt16 | nPos, |
sal_uInt16 | nCount | ||
) |
Definition at line 143 of file _xpoly.cxx.
References CheckPointDelete(), nCount, nPoints, nPos, nSize, pFlagAry, pPointAry, and Resize().
bool ImpXPolygon::operator== | ( | const ImpXPolygon & | rImpXPoly | ) | const |
Definition at line 73 of file _xpoly.cxx.
void ImpXPolygon::Remove | ( | sal_uInt16 | nPos, |
sal_uInt16 | nCount | ||
) |
Definition at line 168 of file _xpoly.cxx.
References CheckPointDelete(), nCount, nPoints, nPos, pFlagAry, and pPointAry.
void ImpXPolygon::Resize | ( | sal_uInt16 | nNewSize, |
bool | bDeletePoints = true |
||
) |
Change polygon size.
nNewSize | the new size of the polygon |
bDeletePoints | if FALSE, do not delete the point array directly but wait for the next call before doing so. This prevents errors with XPoly[n] = XPoly[0] where a resize might destroy the right side point array too early. |
Definition at line 89 of file _xpoly.cxx.
References bDeleteOldPoints, CheckPointDelete(), DBG_ASSERT, nPoints, nResize, nSize, pFlagAry, pOldPointAry, and pPointAry.
Referenced by ImpXPolygon(), and InsertSpace().
bool ImpXPolygon::bDeleteOldPoints |
Definition at line 36 of file xpolyimp.hxx.
Referenced by CheckPointDelete(), Resize(), and ~ImpXPolygon().
sal_uInt16 ImpXPolygon::nPoints |
Definition at line 39 of file xpolyimp.hxx.
Referenced by ImpXPolygon(), InsertSpace(), operator==(), Remove(), and Resize().
sal_uInt16 ImpXPolygon::nResize |
Definition at line 38 of file xpolyimp.hxx.
Referenced by Resize().
sal_uInt16 ImpXPolygon::nSize |
Definition at line 37 of file xpolyimp.hxx.
Referenced by ImpXPolygon(), InsertSpace(), and Resize().
std::unique_ptr<PolyFlags[]> ImpXPolygon::pFlagAry |
Definition at line 34 of file xpolyimp.hxx.
Referenced by ImpXPolygon(), InsertSpace(), operator==(), Remove(), and Resize().
Point* ImpXPolygon::pOldPointAry |
Definition at line 35 of file xpolyimp.hxx.
Referenced by CheckPointDelete(), Resize(), and ~ImpXPolygon().
std::unique_ptr<Point[]> ImpXPolygon::pPointAry |
Definition at line 32 of file xpolyimp.hxx.
Referenced by ImpXPolygon(), InsertSpace(), operator==(), Remove(), Resize(), and ~ImpXPolygon().