1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: EnhancedCustomShapeGeometry.hxx,v $
10 * $Revision: 1.8.216.1 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _ENHANCEDCUSTOMSHAPEGEOMETRY_HXX
32 #define _ENHANCEDCUSTOMSHAPEGEOMETRY_HXX
34 #include <sal/types.h>
35 #include <svx/msdffdef.hxx>
37 struct SvxMSDffVertPair
42 struct SvxMSDffCalculationData
47 struct SvxMSDffTextRectangles
49 SvxMSDffVertPair nPairA
;
50 SvxMSDffVertPair nPairB
;
53 #define MSDFF_HANDLE_FLAGS_MIRRORED_X 0x0001
54 #define MSDFF_HANDLE_FLAGS_MIRRORED_Y 0x0002
55 #define MSDFF_HANDLE_FLAGS_SWITCHED 0x0004
56 #define MSDFF_HANDLE_FLAGS_POLAR 0x0008
57 #define MSDFF_HANDLE_FLAGS_MAP 0x0010
58 #define MSDFF_HANDLE_FLAGS_RANGE 0x0020
59 #define MSDFF_HANDLE_FLAGS_RANGE_X_MIN_IS_SPECIAL 0x0080
60 #define MSDFF_HANDLE_FLAGS_RANGE_X_MAX_IS_SPECIAL 0x0100
61 #define MSDFF_HANDLE_FLAGS_RANGE_Y_MIN_IS_SPECIAL 0x0200
62 #define MSDFF_HANDLE_FLAGS_RANGE_Y_MAX_IS_SPECIAL 0x0400
63 #define MSDFF_HANDLE_FLAGS_CENTER_X_IS_SPECIAL 0x0800
64 #define MSDFF_HANDLE_FLAGS_CENTER_Y_IS_SPECIAL 0x1000
65 #define MSDFF_HANDLE_FLAGS_RADIUS_RANGE 0x2000
70 sal_Int32 nPositionX
, nPositionY
, nCenterX
, nCenterY
, nRangeXMin
, nRangeXMax
, nRangeYMin
, nRangeYMax
;
72 struct mso_CustomShape
74 SvxMSDffVertPair
* pVertices
;
76 sal_uInt16
* pElements
;
78 SvxMSDffCalculationData
* pCalculation
;
79 sal_uInt32 nCalculation
;
81 SvxMSDffTextRectangles
* pTextRect
;
83 sal_Int32 nCoordWidth
;
84 sal_Int32 nCoordHeight
;
87 SvxMSDffVertPair
* pGluePoints
;
88 sal_uInt32 nGluePoints
;
89 SvxMSDffHandle
* pHandles
;
93 #define MSO_I | (sal_Int32)0x80000000
95 sal_Bool
SortFilledObjectsToBackByDefault( MSO_SPT eSpType
);
96 SVX_DLLPUBLIC sal_Bool
IsCustomShapeFilledByDefault( MSO_SPT eSpType
);
97 SVX_DLLPUBLIC sal_Int16
GetCustomShapeConnectionTypeDefault( MSO_SPT eSpType
);
100 SVX_DLLPUBLIC sal_Bool
IsCustomShapeStrokedByDefault( MSO_SPT eSpType
);
102 SVX_DLLPUBLIC
const mso_CustomShape
* GetCustomShapeContent( MSO_SPT eSpType
);