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 
27 class Point;
28 
30 {
31 public:
32  std::unique_ptr<Point[]> pPointAry;
33  std::unique_ptr<PolyFlags[]>
37  sal_uInt16 nSize;
38  sal_uInt16 const nResize;
39  sal_uInt16 nPoints;
40 
41  ImpXPolygon( sal_uInt16 nInitSize, sal_uInt16 nResize=16 );
42  ImpXPolygon( const ImpXPolygon& rImpXPoly );
43  ~ImpXPolygon();
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 {
56 public:
57  ::std::vector< XPolygon > aXPolyList;
58 };
59 
60 
61 #endif // INCLUDED_SVX_INC_XPOLYIMP_HXX
62 
63 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sal_uInt16 const nResize
Definition: xpolyimp.hxx:38
~ImpXPolygon()
Definition: _xpoly.cxx:68
void CheckPointDelete() const
Definition: _xpoly.cxx:193
bool bDeleteOldPoints
Definition: xpolyimp.hxx:36
::std::vector< XPolygon > aXPolyList
Definition: xpolyimp.hxx:57
bool operator==(const ImpXPolygon &rImpXPoly) const
Definition: _xpoly.cxx:78
sal_uInt16 nSize
Definition: xpolyimp.hxx:37
Point * pOldPointAry
Definition: xpolyimp.hxx:35
std::unique_ptr< PolyFlags[]> pFlagAry
Definition: xpolyimp.hxx:34
void Resize(sal_uInt16 nNewSize, bool bDeletePoints=true)
Change polygon size.
Definition: _xpoly.cxx:94
std::unique_ptr< Point[]> pPointAry
Definition: xpolyimp.hxx:32
sal_uInt16 nPoints
Definition: xpolyimp.hxx:39
ImpXPolygon(sal_uInt16 nInitSize, sal_uInt16 nResize=16)
Definition: _xpoly.cxx:41
void InsertSpace(sal_uInt16 nPos, sal_uInt16 nCount)
Definition: _xpoly.cxx:148
void Remove(sal_uInt16 nPos, sal_uInt16 nCount)
Definition: _xpoly.cxx:173