1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_SVX_ENHANCEDCUSTOMSHAPEGEOMETRY_HXX
21 #define INCLUDED_SVX_ENHANCEDCUSTOMSHAPEGEOMETRY_HXX
23 #include <sal/types.h>
24 #include <svx/msdffdef.hxx>
25 #include <o3tl/typed_flags_set.hxx>
27 struct SvxMSDffVertPair
32 struct SvxMSDffCalculationData
37 struct SvxMSDffTextRectangles
39 SvxMSDffVertPair nPairA
;
40 SvxMSDffVertPair nPairB
;
43 enum class SvxMSDffHandleFlags
52 RANGE_X_MIN_IS_SPECIAL
= 0x0080,
53 RANGE_X_MAX_IS_SPECIAL
= 0x0100,
54 RANGE_Y_MIN_IS_SPECIAL
= 0x0200,
55 RANGE_Y_MAX_IS_SPECIAL
= 0x0400,
56 CENTER_X_IS_SPECIAL
= 0x0800,
57 CENTER_Y_IS_SPECIAL
= 0x1000,
58 RADIUS_RANGE
= 0x2000,
62 template<> struct typed_flags
<SvxMSDffHandleFlags
> : is_typed_flags
<SvxMSDffHandleFlags
, 0x3fff> {};
67 SvxMSDffHandleFlags nFlags
;
68 sal_Int32 nPositionX
, nPositionY
, nCenterX
, nCenterY
, nRangeXMin
, nRangeXMax
, nRangeYMin
, nRangeYMax
;
70 struct mso_CustomShape
72 SvxMSDffVertPair
* pVertices
;
74 sal_uInt16
* pElements
;
76 SvxMSDffCalculationData
* pCalculation
;
77 sal_uInt32 nCalculation
;
79 SvxMSDffTextRectangles
* pTextRect
;
81 sal_Int32 nCoordWidth
;
82 sal_Int32 nCoordHeight
;
85 SvxMSDffVertPair
* pGluePoints
;
86 sal_uInt32 nGluePoints
;
87 SvxMSDffHandle
* pHandles
;
91 #define MSO_I | (sal_Int32)0x80000000
93 bool SortFilledObjectsToBackByDefault( MSO_SPT eSpType
);
94 SVX_DLLPUBLIC
bool IsCustomShapeFilledByDefault( MSO_SPT eSpType
);
95 SVX_DLLPUBLIC sal_Int16
GetCustomShapeConnectionTypeDefault( MSO_SPT eSpType
);
98 SVX_DLLPUBLIC
bool IsCustomShapeStrokedByDefault( MSO_SPT eSpType
);
100 SVX_DLLPUBLIC
const mso_CustomShape
* GetCustomShapeContent( MSO_SPT eSpType
);
104 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */