summaryrefslogtreecommitdiff
path: root/drawinglayer/source/tools/emfppath.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'drawinglayer/source/tools/emfppath.hxx')
-rw-r--r--drawinglayer/source/tools/emfppath.hxx17
1 files changed, 9 insertions, 8 deletions
diff --git a/drawinglayer/source/tools/emfppath.hxx b/drawinglayer/source/tools/emfppath.hxx
index 98996f834dd9..e6104fcb1fc7 100644
--- a/drawinglayer/source/tools/emfppath.hxx
+++ b/drawinglayer/source/tools/emfppath.hxx
@@ -17,30 +17,31 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_DRAWINGLAYER_SOURCE_TOOLS_EMFPPATH_HXX
-#define INCLUDED_DRAWINGLAYER_SOURCE_TOOLS_EMFPPATH_HXX
+#pragma once
#include "emfphelperdata.hxx"
namespace emfplushelper
{
- struct EMFPPath : public EMFPObject
+ class EMFPPath : public EMFPObject
{
::basegfx::B2DPolyPolygon aPolygon;
- sal_Int32 nPoints;
- std::unique_ptr<float[]> pPoints;
+ sal_uInt32 nPoints;
+ std::deque<float> xPoints, yPoints;
std::unique_ptr<sal_uInt8[]> pPointTypes;
- EMFPPath(sal_Int32 _nPoints, bool bLines = false);
+ public:
+ EMFPPath(sal_uInt32 _nPoints, bool bLines = false);
virtual ~EMFPPath() override;
void Read(SvStream& s, sal_uInt32 pathFlags);
::basegfx::B2DPolyPolygon& GetPolygon(EmfPlusHelperData const & rR, bool bMapIt = true, bool bAddLineToCloseShape = false);
+ ::basegfx::B2DPolyPolygon& GetCardinalSpline(EmfPlusHelperData const& rR, float fTension,
+ sal_uInt32 aOffset, sal_uInt32 aNumSegments);
+ ::basegfx::B2DPolyPolygon& GetClosedCardinalSpline(EmfPlusHelperData const& rR, float fTension);
};
}
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */