LibreOffice Module svx (master) 1
xpolyimp.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#ifndef INCLUDED_SVX_INC_XPOLYIMP_HXX
21#define INCLUDED_SVX_INC_XPOLYIMP_HXX
22
23#include <svx/xpoly.hxx>
24#include <memory>
25#include <vector>
26
27class Point;
28
30{
31public:
32 std::unique_ptr<Point[]> pPointAry;
33 std::unique_ptr<PolyFlags[]>
37 sal_uInt16 nSize;
38 sal_uInt16 nResize;
39 sal_uInt16 nPoints;
40
41 ImpXPolygon( sal_uInt16 nInitSize, sal_uInt16 nResize=16 );
42 ImpXPolygon( const ImpXPolygon& rImpXPoly );
44
45 bool operator==(const ImpXPolygon& rImpXPoly) const;
46
47 void CheckPointDelete() const;
48
49 void Resize( sal_uInt16 nNewSize, bool bDeletePoints = true );
50 void InsertSpace( sal_uInt16 nPos, sal_uInt16 nCount );
51 void Remove( sal_uInt16 nPos, sal_uInt16 nCount );
52};
53
55{
56public:
57 ::std::vector< XPolygon > aXPolyList;
58};
59
60
61#endif // INCLUDED_SVX_INC_XPOLYIMP_HXX
62
63/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
::std::vector< XPolygon > aXPolyList
Definition: xpolyimp.hxx:57
bool operator==(const ImpXPolygon &rImpXPoly) const
Definition: _xpoly.cxx:73
void Resize(sal_uInt16 nNewSize, bool bDeletePoints=true)
Change polygon size.
Definition: _xpoly.cxx:89
ImpXPolygon(sal_uInt16 nInitSize, sal_uInt16 nResize=16)
Definition: _xpoly.cxx:36
void Remove(sal_uInt16 nPos, sal_uInt16 nCount)
Definition: _xpoly.cxx:168
void InsertSpace(sal_uInt16 nPos, sal_uInt16 nCount)
Definition: _xpoly.cxx:143
std::unique_ptr< PolyFlags[]> pFlagAry
Definition: xpolyimp.hxx:34
Point * pOldPointAry
Definition: xpolyimp.hxx:35
sal_uInt16 nSize
Definition: xpolyimp.hxx:37
std::unique_ptr< Point[]> pPointAry
Definition: xpolyimp.hxx:32
sal_uInt16 nPoints
Definition: xpolyimp.hxx:39
~ImpXPolygon()
Definition: _xpoly.cxx:63
void CheckPointDelete() const
Definition: _xpoly.cxx:188
sal_uInt16 nResize
Definition: xpolyimp.hxx:38
bool bDeleteOldPoints
Definition: xpolyimp.hxx:36