LibreOffice Module svx (master)
1
include
svx
EnhancedCustomShapeGeometry.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_ENHANCEDCUSTOMSHAPEGEOMETRY_HXX
21
#define INCLUDED_SVX_ENHANCEDCUSTOMSHAPEGEOMETRY_HXX
22
23
#include <
sal/types.h
>
24
#include <
svx/msdffdef.hxx
>
25
#include <
svx/svxdllapi.h
>
26
#include <
o3tl/typed_flags_set.hxx
>
27
28
struct
SvxMSDffVertPair
29
{
30
sal_Int32
nValA
;
31
sal_Int32
nValB
;
32
};
33
struct
SvxMSDffCalculationData
34
{
35
sal_uInt16
nFlags
;
36
sal_Int32
nVal
[ 3 ];
37
};
38
struct
SvxMSDffTextRectangles
39
{
40
SvxMSDffVertPair
nPairA
;
41
SvxMSDffVertPair
nPairB
;
42
};
43
44
enum class
SvxMSDffHandleFlags
45
{
46
NONE
= 0x0000,
47
MIRRORED_X
= 0x0001,
48
MIRRORED_Y
= 0x0002,
49
SWITCHED
= 0x0004,
50
POLAR
= 0x0008,
51
MAP
= 0x0010,
52
RANGE
= 0x0020,
53
RANGE_X_MIN_IS_SPECIAL
= 0x0080,
54
RANGE_X_MAX_IS_SPECIAL
= 0x0100,
55
RANGE_Y_MIN_IS_SPECIAL
= 0x0200,
56
RANGE_Y_MAX_IS_SPECIAL
= 0x0400,
57
CENTER_X_IS_SPECIAL
= 0x0800,
58
CENTER_Y_IS_SPECIAL
= 0x1000,
59
RADIUS_RANGE
= 0x2000,
60
};
61
namespace
o3tl
62
{
63
template
<>
struct
typed_flags
<
SvxMSDffHandleFlags
> :
is_typed_flags
<SvxMSDffHandleFlags, 0x3fbf> {};
64
}
65
66
struct
SvxMSDffHandle
67
{
68
SvxMSDffHandleFlags
nFlags
;
69
sal_Int32
nPositionX
,
nPositionY
,
nCenterX
,
nCenterY
,
nRangeXMin
,
nRangeXMax
,
nRangeYMin
,
nRangeYMax
;
70
};
71
struct
mso_CustomShape
72
{
73
SvxMSDffVertPair
*
pVertices
;
74
sal_uInt32
nVertices
;
75
sal_uInt16*
pElements
;
76
sal_uInt32
nElements
;
77
SvxMSDffCalculationData
*
pCalculation
;
78
sal_uInt32
nCalculation
;
79
sal_Int32*
pDefData
;
80
SvxMSDffTextRectangles
*
pTextRect
;
81
sal_uInt32
nTextRect
;
82
sal_Int32
nCoordWidth
;
83
sal_Int32
nCoordHeight
;
84
sal_Int32
nXRef
;
85
sal_Int32
nYRef
;
86
SvxMSDffVertPair
*
pGluePoints
;
87
sal_uInt32
nGluePoints
;
88
SvxMSDffHandle
*
pHandles
;
89
sal_uInt32
nHandles
;
90
};
91
92
#define MSO_I | sal_Int32(0x80000000)
93
94
bool
SortFilledObjectsToBackByDefault
(
MSO_SPT
eSpType );
95
SVXCORE_DLLPUBLIC
bool
IsCustomShapeFilledByDefault
(
MSO_SPT
eSpType );
96
SVXCORE_DLLPUBLIC
sal_Int16
GetCustomShapeConnectionTypeDefault
(
MSO_SPT
eSpType );
97
98
// #i28269#
99
SVXCORE_DLLPUBLIC
bool
IsCustomShapeStrokedByDefault
(
MSO_SPT
eSpType );
100
101
SVXCORE_DLLPUBLIC
const
mso_CustomShape
*
GetCustomShapeContent
(
MSO_SPT
eSpType );
102
103
#endif
104
105
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
HandleFlags::SWITCHED
@ SWITCHED
HandleFlags::MIRRORED_X
@ MIRRORED_X
HandleFlags::POLAR
@ POLAR
HandleFlags::MIRRORED_Y
@ MIRRORED_Y
SvxMSDffHandleFlags
SvxMSDffHandleFlags
Definition:
EnhancedCustomShapeGeometry.hxx:45
SvxMSDffHandleFlags::RANGE
@ RANGE
SvxMSDffHandleFlags::RANGE_Y_MAX_IS_SPECIAL
@ RANGE_Y_MAX_IS_SPECIAL
SvxMSDffHandleFlags::RADIUS_RANGE
@ RADIUS_RANGE
SvxMSDffHandleFlags::CENTER_Y_IS_SPECIAL
@ CENTER_Y_IS_SPECIAL
SvxMSDffHandleFlags::RANGE_X_MAX_IS_SPECIAL
@ RANGE_X_MAX_IS_SPECIAL
SvxMSDffHandleFlags::RANGE_X_MIN_IS_SPECIAL
@ RANGE_X_MIN_IS_SPECIAL
SvxMSDffHandleFlags::RANGE_Y_MIN_IS_SPECIAL
@ RANGE_Y_MIN_IS_SPECIAL
SvxMSDffHandleFlags::CENTER_X_IS_SPECIAL
@ CENTER_X_IS_SPECIAL
SortFilledObjectsToBackByDefault
bool SortFilledObjectsToBackByDefault(MSO_SPT eSpType)
Definition:
EnhancedCustomShapeGeometry.cxx:6260
GetCustomShapeConnectionTypeDefault
SVXCORE_DLLPUBLIC sal_Int16 GetCustomShapeConnectionTypeDefault(MSO_SPT eSpType)
Definition:
EnhancedCustomShapeGeometry.cxx:6209
IsCustomShapeFilledByDefault
SVXCORE_DLLPUBLIC bool IsCustomShapeFilledByDefault(MSO_SPT eSpType)
Definition:
EnhancedCustomShapeGeometry.cxx:6201
IsCustomShapeStrokedByDefault
SVXCORE_DLLPUBLIC bool IsCustomShapeStrokedByDefault(MSO_SPT eSpType)
Definition:
EnhancedCustomShapeGeometry.cxx:6247
GetCustomShapeContent
SVXCORE_DLLPUBLIC const mso_CustomShape * GetCustomShapeContent(MSO_SPT eSpType)
Definition:
EnhancedCustomShapeGeometry.cxx:8350
msdffdef.hxx
MSO_SPT
MSO_SPT
Definition:
msdffdef.hxx:274
NONE
NONE
o3tl
SvxMSDffCalculationData
Definition:
EnhancedCustomShapeGeometry.hxx:34
SvxMSDffCalculationData::nVal
sal_Int32 nVal[3]
Definition:
EnhancedCustomShapeGeometry.hxx:36
SvxMSDffCalculationData::nFlags
sal_uInt16 nFlags
Definition:
EnhancedCustomShapeGeometry.hxx:35
SvxMSDffHandle
Definition:
EnhancedCustomShapeGeometry.hxx:67
SvxMSDffHandle::nFlags
SvxMSDffHandleFlags nFlags
Definition:
EnhancedCustomShapeGeometry.hxx:68
SvxMSDffHandle::nPositionX
sal_Int32 nPositionX
Definition:
EnhancedCustomShapeGeometry.hxx:69
SvxMSDffHandle::nRangeXMin
sal_Int32 nRangeXMin
Definition:
EnhancedCustomShapeGeometry.hxx:69
SvxMSDffHandle::nRangeYMin
sal_Int32 nRangeYMin
Definition:
EnhancedCustomShapeGeometry.hxx:69
SvxMSDffHandle::nCenterY
sal_Int32 nCenterY
Definition:
EnhancedCustomShapeGeometry.hxx:69
SvxMSDffHandle::nRangeYMax
sal_Int32 nRangeYMax
Definition:
EnhancedCustomShapeGeometry.hxx:69
SvxMSDffHandle::nPositionY
sal_Int32 nPositionY
Definition:
EnhancedCustomShapeGeometry.hxx:69
SvxMSDffHandle::nCenterX
sal_Int32 nCenterX
Definition:
EnhancedCustomShapeGeometry.hxx:69
SvxMSDffHandle::nRangeXMax
sal_Int32 nRangeXMax
Definition:
EnhancedCustomShapeGeometry.hxx:69
SvxMSDffTextRectangles
Definition:
EnhancedCustomShapeGeometry.hxx:39
SvxMSDffTextRectangles::nPairA
SvxMSDffVertPair nPairA
Definition:
EnhancedCustomShapeGeometry.hxx:40
SvxMSDffTextRectangles::nPairB
SvxMSDffVertPair nPairB
Definition:
EnhancedCustomShapeGeometry.hxx:41
SvxMSDffVertPair
Definition:
EnhancedCustomShapeGeometry.hxx:29
SvxMSDffVertPair::nValA
sal_Int32 nValA
Definition:
EnhancedCustomShapeGeometry.hxx:30
SvxMSDffVertPair::nValB
sal_Int32 nValB
Definition:
EnhancedCustomShapeGeometry.hxx:31
mso_CustomShape
Definition:
EnhancedCustomShapeGeometry.hxx:72
mso_CustomShape::pDefData
sal_Int32 * pDefData
Definition:
EnhancedCustomShapeGeometry.hxx:79
mso_CustomShape::pVertices
SvxMSDffVertPair * pVertices
Definition:
EnhancedCustomShapeGeometry.hxx:73
mso_CustomShape::pTextRect
SvxMSDffTextRectangles * pTextRect
Definition:
EnhancedCustomShapeGeometry.hxx:80
mso_CustomShape::pElements
sal_uInt16 * pElements
Definition:
EnhancedCustomShapeGeometry.hxx:75
mso_CustomShape::nTextRect
sal_uInt32 nTextRect
Definition:
EnhancedCustomShapeGeometry.hxx:81
mso_CustomShape::pCalculation
SvxMSDffCalculationData * pCalculation
Definition:
EnhancedCustomShapeGeometry.hxx:77
mso_CustomShape::nGluePoints
sal_uInt32 nGluePoints
Definition:
EnhancedCustomShapeGeometry.hxx:87
mso_CustomShape::nHandles
sal_uInt32 nHandles
Definition:
EnhancedCustomShapeGeometry.hxx:89
mso_CustomShape::nElements
sal_uInt32 nElements
Definition:
EnhancedCustomShapeGeometry.hxx:76
mso_CustomShape::nCoordHeight
sal_Int32 nCoordHeight
Definition:
EnhancedCustomShapeGeometry.hxx:83
mso_CustomShape::pHandles
SvxMSDffHandle * pHandles
Definition:
EnhancedCustomShapeGeometry.hxx:88
mso_CustomShape::nCalculation
sal_uInt32 nCalculation
Definition:
EnhancedCustomShapeGeometry.hxx:78
mso_CustomShape::nXRef
sal_Int32 nXRef
Definition:
EnhancedCustomShapeGeometry.hxx:84
mso_CustomShape::nVertices
sal_uInt32 nVertices
Definition:
EnhancedCustomShapeGeometry.hxx:74
mso_CustomShape::nYRef
sal_Int32 nYRef
Definition:
EnhancedCustomShapeGeometry.hxx:85
mso_CustomShape::nCoordWidth
sal_Int32 nCoordWidth
Definition:
EnhancedCustomShapeGeometry.hxx:82
mso_CustomShape::pGluePoints
SvxMSDffVertPair * pGluePoints
Definition:
EnhancedCustomShapeGeometry.hxx:86
o3tl::is_typed_flags
o3tl::typed_flags
svxdllapi.h
SVXCORE_DLLPUBLIC
#define SVXCORE_DLLPUBLIC
Definition:
svxdllapi.h:35
typed_flags_set.hxx
types.h
MAP
#define MAP(name, prefix, token, type, context)
Generated on Sun Jul 30 2023 04:27:32 for LibreOffice Module svx (master) by
1.9.3