LibreOffice Module filter (master)
1
filter
source
graphicfilter
icgm
cgmtypes.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
#pragma once
21
22
#include <
tools/long.hxx
>
23
24
struct
FloatPoint
25
{
26
double
X
;
27
double
Y
;
28
FloatPoint
():
X
(0),
Y
(0){};
29
};
30
31
struct
FloatRect
32
{
33
double
Left
;
34
double
Top
;
35
double
Right
;
36
double
Bottom
;
37
FloatRect
():
Left
(0),
Top
(0),
Right
(0),
Bottom
(0){};
38
void
Justify
()
39
{
40
double
fTemp;
41
if
(
Left
>
Right
)
42
{
43
fTemp =
Left
;
44
Left
=
Right
;
45
Right
= fTemp;
46
}
47
if
(
Top
>
Bottom
)
48
{
49
fTemp =
Top
;
50
Top
=
Bottom
;
51
Bottom
= fTemp;
52
}
53
}
54
};
55
56
struct
HatchEntry
57
{
58
int
HatchStyle
;
59
tools::Long
HatchDistance
;
60
tools::Long
HatchAngle
;
61
};
62
63
#define ASF_LINETYPE 0x00000001UL
64
#define ASF_LINEWIDTH 0x00000002UL
65
#define ASF_LINECOLOR 0x00000004UL
66
#define ASF_MARKERTYPE 0x00000008UL
67
#define ASF_MARKERSIZE 0x00000010UL
68
#define ASF_MARKERCOLOR 0x00000020UL
// NS
69
#define ASF_FILLINTERIORSTYLE 0x00000040UL
70
#define ASF_HATCHINDEX 0x00000080UL
71
#define ASF_PATTERNINDEX 0x00000100UL
72
#define ASF_BITMAPINDEX 0x00000200UL
// NS
73
#define ASF_FILLCOLOR 0x00000400UL
74
#define ASF_EDGETYPE 0x00000800UL
75
#define ASF_EDGEWIDTH 0x00001000UL
76
#define ASF_EDGECOLOR 0x00002000UL
77
#define ASF_TEXTFONTINDEX 0x00004000UL
78
#define ASF_TEXTPRECISION 0x00008000UL
79
#define ASF_CHARACTEREXPANSION 0x00010000UL
80
#define ASF_CHARACTERSPACING 0x00020000UL
81
#define ASF_TEXTCOLOR 0x00040000UL
82
83
#define ACT4_GRADIENT_ACTION 0x00000001UL
84
85
enum
RealPrecision
{
RP_FLOAT
= 0,
RP_FIXED
= 1 };
86
87
enum
ScalingMode
{
SM_ABSTRACT
= 0,
SM_METRIC
= 1 };
88
89
enum
VDCType
{
VDC_INTEGER
= 0,
VDC_REAL
= 1 };
90
enum
DeviceViewPortMode
{
DVPM_FRACTION
= 0,
DVPM_METRIC
= 1,
DVPM_DEVICE
= 2 };
91
enum
DeviceViewPortMap
{
DVPM_NOT_FORCED
= 0,
DVPM_FORCED
= 1 };
92
enum
DeviceViewPortMapH
{
DVPMH_LEFT
= 0,
DVPMH_CENTER
= 1,
CVPMH_RIGHT
= 2 };
93
enum
DeviceViewPortMapV
{
DVPMV_BOTTOM
= 0,
DVPMV_CENTER
= 1,
DVPMV_TOP
= 2 };
94
95
enum
ClipIndicator
{
CI_OFF
= 0,
CI_ON
= 1 };
96
97
enum
ColorSelectionMode
{
CSM_INDEXED
= 0,
CSM_DIRECT
= 1 };
98
enum
ColorModel
{
CM_RGB
= 0,
CM_CMYK
= 1 };
99
100
enum
CharacterCodingA
{
CCA_BASIC_7
= 0,
CCA_BASIC_8
= 1,
CCA_EXT_7
= 2,
CCA_EXT_8
= 3 };
101
enum
TextPrecision
{
TPR_STRING
= 0,
TPR_CHARACTER
= 1,
TPR_STROKE
= 2,
TPR_UNDEFINED
= 0xffff };
102
enum
TextPath
{
TPR_RIGHT
= 0,
TPR_LEFT
= 1,
TPR_UP
= 2,
TPR_DOWN
= 3 };
103
enum
TextAlignmentH
{
TAH_NORMAL
= 0,
TAH_LEFT
= 1,
TAH_CENTER
= 2,
TAH_RIGHT
= 3,
TAH_CONT
= 4 };
104
enum
TextAlignmentV
{
TAV_NORMAL
= 0,
TAV_TOP
= 1,
TAV_CAP
= 2,
TAV_HALF
= 3,
TAV_BASE
= 4,
TAV_BOTTOM
= 5,
TAV_CONT
= 6 };
105
enum
UnderlineMode
{
UM_OFF
= 0,
UM_LOW
= 1,
UM_HIGH
= 2,
UM_STRIKEOUT
= 4,
UM_OVERSCORE
= 8 };
106
enum
FinalFlag
{
FF_NOT_FINAL
= 0,
FF_FINAL
= 1 };
107
108
enum
LineType
{
LT_SOLID
= 1,
LT_DASH
= 2,
LT_DOT
= 3,
LT_DASHDOT
= 4,
LT_DASHDOTDOT
= 5,
// Standard
109
LT_NONE
= -4,
LT_DOTDOTSPACE
= -3,
LT_LONGDASH
= -2,
LT_DASHDASHDOT
= -1 };
// GDSF Styles
110
enum
SpecMode
{
SM_ABSOLUTE
= 0,
SM_SCALED
= 1 };
111
enum
LineCapType
{
LCT_BUTT
= 0,
LCT_ROUND
= 1,
LCT_SQUARE
= 2,
LCT_TRIANGLE
= 3,
LCT_ARROW
= 4,
LCT_NONE
= -1 };
112
enum
LineJoinType
{
LJT_MITER
= 0,
LJT_ROUND
= 1,
LJT_BEVEL
= 2,
LJT_NONE
= -1 };
113
114
115
enum
EdgeType
{
ET_SOLID
= 1,
ET_DASH
= 2,
ET_DOT
= 3,
ET_DASHDOT
= 4,
ET_DASHDOTDOT
= 5,
// Standard
116
ET_NONE
= -4,
ET_DOTDOTSPACE
= -3,
ET_LONGDASH
= -2,
ET_DASHDASHDOT
= -1 };
// GDSF Styles
117
enum
EdgeVisibility
{
EV_OFF
= 0,
EV_ON
= 1 };
118
119
enum
MarkerType
{
MT_POINT
= 1,
MT_PLUS
= 2,
MT_STAR
= 3,
MT_CIRCLE
= 4,
MT_CROSS
= 5 };
120
121
enum
Transparency
{
T_OFF
= 0,
T_ON
= 1 };
122
123
enum
FillInteriorStyle
{
FIS_HOLLOW
= 0,
FIS_SOLID
= 1,
FIS_PATTERN
= 2,
FIS_HATCH
= 3,
FIS_EMPTY
= 4,
FIS_GEOPATTERN
= 5,
124
FIS_INTERPOLATED
= 6,
FIS_GRADIENT
= 7 };
125
126
127
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SpecMode
SpecMode
Definition:
cgmtypes.hxx:110
SM_SCALED
@ SM_SCALED
Definition:
cgmtypes.hxx:110
SM_ABSOLUTE
@ SM_ABSOLUTE
Definition:
cgmtypes.hxx:110
Transparency
Transparency
Definition:
cgmtypes.hxx:121
T_OFF
@ T_OFF
Definition:
cgmtypes.hxx:121
T_ON
@ T_ON
Definition:
cgmtypes.hxx:121
LCT_NONE
@ LCT_NONE
Definition:
cgmtypes.hxx:111
LCT_TRIANGLE
@ LCT_TRIANGLE
Definition:
cgmtypes.hxx:111
LCT_ROUND
@ LCT_ROUND
Definition:
cgmtypes.hxx:111
LCT_SQUARE
@ LCT_SQUARE
Definition:
cgmtypes.hxx:111
LCT_BUTT
@ LCT_BUTT
Definition:
cgmtypes.hxx:111
LCT_ARROW
@ LCT_ARROW
Definition:
cgmtypes.hxx:111
DeviceViewPortMode
DeviceViewPortMode
Definition:
cgmtypes.hxx:90
DVPM_DEVICE
@ DVPM_DEVICE
Definition:
cgmtypes.hxx:90
DVPM_FRACTION
@ DVPM_FRACTION
Definition:
cgmtypes.hxx:90
DVPM_METRIC
@ DVPM_METRIC
Definition:
cgmtypes.hxx:90
TextPrecision
TextPrecision
Definition:
cgmtypes.hxx:101
TPR_STRING
@ TPR_STRING
Definition:
cgmtypes.hxx:101
TPR_STROKE
@ TPR_STROKE
Definition:
cgmtypes.hxx:101
TPR_UNDEFINED
@ TPR_UNDEFINED
Definition:
cgmtypes.hxx:101
TPR_CHARACTER
@ TPR_CHARACTER
Definition:
cgmtypes.hxx:101
FinalFlag
FinalFlag
Definition:
cgmtypes.hxx:106
FF_NOT_FINAL
@ FF_NOT_FINAL
Definition:
cgmtypes.hxx:106
FF_FINAL
@ FF_FINAL
Definition:
cgmtypes.hxx:106
EdgeType
EdgeType
Definition:
cgmtypes.hxx:115
ET_SOLID
@ ET_SOLID
Definition:
cgmtypes.hxx:115
ET_NONE
@ ET_NONE
Definition:
cgmtypes.hxx:116
ET_DASHDOT
@ ET_DASHDOT
Definition:
cgmtypes.hxx:115
ET_LONGDASH
@ ET_LONGDASH
Definition:
cgmtypes.hxx:116
ET_DOT
@ ET_DOT
Definition:
cgmtypes.hxx:115
ET_DASHDOTDOT
@ ET_DASHDOTDOT
Definition:
cgmtypes.hxx:115
ET_DOTDOTSPACE
@ ET_DOTDOTSPACE
Definition:
cgmtypes.hxx:116
ET_DASHDASHDOT
@ ET_DASHDASHDOT
Definition:
cgmtypes.hxx:116
ET_DASH
@ ET_DASH
Definition:
cgmtypes.hxx:115
EdgeVisibility
EdgeVisibility
Definition:
cgmtypes.hxx:117
EV_OFF
@ EV_OFF
Definition:
cgmtypes.hxx:117
EV_ON
@ EV_ON
Definition:
cgmtypes.hxx:117
DeviceViewPortMap
DeviceViewPortMap
Definition:
cgmtypes.hxx:91
DVPM_NOT_FORCED
@ DVPM_NOT_FORCED
Definition:
cgmtypes.hxx:91
DVPM_FORCED
@ DVPM_FORCED
Definition:
cgmtypes.hxx:91
LJT_BEVEL
@ LJT_BEVEL
Definition:
cgmtypes.hxx:112
LJT_MITER
@ LJT_MITER
Definition:
cgmtypes.hxx:112
LJT_ROUND
@ LJT_ROUND
Definition:
cgmtypes.hxx:112
LJT_NONE
@ LJT_NONE
Definition:
cgmtypes.hxx:112
CharacterCodingA
CharacterCodingA
Definition:
cgmtypes.hxx:100
CCA_BASIC_8
@ CCA_BASIC_8
Definition:
cgmtypes.hxx:100
CCA_EXT_7
@ CCA_EXT_7
Definition:
cgmtypes.hxx:100
CCA_EXT_8
@ CCA_EXT_8
Definition:
cgmtypes.hxx:100
CCA_BASIC_7
@ CCA_BASIC_7
Definition:
cgmtypes.hxx:100
TextPath
TextPath
Definition:
cgmtypes.hxx:102
TPR_LEFT
@ TPR_LEFT
Definition:
cgmtypes.hxx:102
TPR_DOWN
@ TPR_DOWN
Definition:
cgmtypes.hxx:102
TPR_RIGHT
@ TPR_RIGHT
Definition:
cgmtypes.hxx:102
TPR_UP
@ TPR_UP
Definition:
cgmtypes.hxx:102
ScalingMode
ScalingMode
Definition:
cgmtypes.hxx:87
SM_ABSTRACT
@ SM_ABSTRACT
Definition:
cgmtypes.hxx:87
SM_METRIC
@ SM_METRIC
Definition:
cgmtypes.hxx:87
TextAlignmentH
TextAlignmentH
Definition:
cgmtypes.hxx:103
TAH_NORMAL
@ TAH_NORMAL
Definition:
cgmtypes.hxx:103
TAH_RIGHT
@ TAH_RIGHT
Definition:
cgmtypes.hxx:103
TAH_CENTER
@ TAH_CENTER
Definition:
cgmtypes.hxx:103
TAH_CONT
@ TAH_CONT
Definition:
cgmtypes.hxx:103
TAH_LEFT
@ TAH_LEFT
Definition:
cgmtypes.hxx:103
TextAlignmentV
TextAlignmentV
Definition:
cgmtypes.hxx:104
TAV_BASE
@ TAV_BASE
Definition:
cgmtypes.hxx:104
TAV_CAP
@ TAV_CAP
Definition:
cgmtypes.hxx:104
TAV_BOTTOM
@ TAV_BOTTOM
Definition:
cgmtypes.hxx:104
TAV_NORMAL
@ TAV_NORMAL
Definition:
cgmtypes.hxx:104
TAV_TOP
@ TAV_TOP
Definition:
cgmtypes.hxx:104
TAV_CONT
@ TAV_CONT
Definition:
cgmtypes.hxx:104
TAV_HALF
@ TAV_HALF
Definition:
cgmtypes.hxx:104
FillInteriorStyle
FillInteriorStyle
Definition:
cgmtypes.hxx:123
FIS_SOLID
@ FIS_SOLID
Definition:
cgmtypes.hxx:123
FIS_EMPTY
@ FIS_EMPTY
Definition:
cgmtypes.hxx:123
FIS_GRADIENT
@ FIS_GRADIENT
Definition:
cgmtypes.hxx:124
FIS_INTERPOLATED
@ FIS_INTERPOLATED
Definition:
cgmtypes.hxx:124
FIS_HOLLOW
@ FIS_HOLLOW
Definition:
cgmtypes.hxx:123
FIS_PATTERN
@ FIS_PATTERN
Definition:
cgmtypes.hxx:123
FIS_GEOPATTERN
@ FIS_GEOPATTERN
Definition:
cgmtypes.hxx:123
FIS_HATCH
@ FIS_HATCH
Definition:
cgmtypes.hxx:123
CM_RGB
@ CM_RGB
Definition:
cgmtypes.hxx:98
CM_CMYK
@ CM_CMYK
Definition:
cgmtypes.hxx:98
DeviceViewPortMapH
DeviceViewPortMapH
Definition:
cgmtypes.hxx:92
DVPMH_LEFT
@ DVPMH_LEFT
Definition:
cgmtypes.hxx:92
CVPMH_RIGHT
@ CVPMH_RIGHT
Definition:
cgmtypes.hxx:92
DVPMH_CENTER
@ DVPMH_CENTER
Definition:
cgmtypes.hxx:92
UnderlineMode
UnderlineMode
Definition:
cgmtypes.hxx:105
UM_OVERSCORE
@ UM_OVERSCORE
Definition:
cgmtypes.hxx:105
UM_HIGH
@ UM_HIGH
Definition:
cgmtypes.hxx:105
UM_LOW
@ UM_LOW
Definition:
cgmtypes.hxx:105
UM_OFF
@ UM_OFF
Definition:
cgmtypes.hxx:105
UM_STRIKEOUT
@ UM_STRIKEOUT
Definition:
cgmtypes.hxx:105
MarkerType
MarkerType
Definition:
cgmtypes.hxx:119
MT_PLUS
@ MT_PLUS
Definition:
cgmtypes.hxx:119
MT_STAR
@ MT_STAR
Definition:
cgmtypes.hxx:119
MT_CROSS
@ MT_CROSS
Definition:
cgmtypes.hxx:119
MT_CIRCLE
@ MT_CIRCLE
Definition:
cgmtypes.hxx:119
MT_POINT
@ MT_POINT
Definition:
cgmtypes.hxx:119
ColorSelectionMode
ColorSelectionMode
Definition:
cgmtypes.hxx:97
CSM_INDEXED
@ CSM_INDEXED
Definition:
cgmtypes.hxx:97
CSM_DIRECT
@ CSM_DIRECT
Definition:
cgmtypes.hxx:97
DeviceViewPortMapV
DeviceViewPortMapV
Definition:
cgmtypes.hxx:93
DVPMV_TOP
@ DVPMV_TOP
Definition:
cgmtypes.hxx:93
DVPMV_BOTTOM
@ DVPMV_BOTTOM
Definition:
cgmtypes.hxx:93
DVPMV_CENTER
@ DVPMV_CENTER
Definition:
cgmtypes.hxx:93
VDCType
VDCType
Definition:
cgmtypes.hxx:89
VDC_INTEGER
@ VDC_INTEGER
Definition:
cgmtypes.hxx:89
VDC_REAL
@ VDC_REAL
Definition:
cgmtypes.hxx:89
ClipIndicator
ClipIndicator
Definition:
cgmtypes.hxx:95
CI_ON
@ CI_ON
Definition:
cgmtypes.hxx:95
CI_OFF
@ CI_OFF
Definition:
cgmtypes.hxx:95
LT_DASH
@ LT_DASH
Definition:
cgmtypes.hxx:108
LT_LONGDASH
@ LT_LONGDASH
Definition:
cgmtypes.hxx:109
LT_DOTDOTSPACE
@ LT_DOTDOTSPACE
Definition:
cgmtypes.hxx:109
LT_DASHDOT
@ LT_DASHDOT
Definition:
cgmtypes.hxx:108
LT_DASHDASHDOT
@ LT_DASHDASHDOT
Definition:
cgmtypes.hxx:109
LT_DASHDOTDOT
@ LT_DASHDOTDOT
Definition:
cgmtypes.hxx:108
LT_SOLID
@ LT_SOLID
Definition:
cgmtypes.hxx:108
LT_NONE
@ LT_NONE
Definition:
cgmtypes.hxx:109
LT_DOT
@ LT_DOT
Definition:
cgmtypes.hxx:108
RealPrecision
RealPrecision
Definition:
cgmtypes.hxx:85
RP_FIXED
@ RP_FIXED
Definition:
cgmtypes.hxx:85
RP_FLOAT
@ RP_FLOAT
Definition:
cgmtypes.hxx:85
ColorModel
ColorModel
long.hxx
LineCapType
LineCapType
LineJoinType
LineJoinType
tools::Long
long Long
LineType
LineType
FloatPoint
Definition:
cgmtypes.hxx:25
FloatPoint::Y
double Y
Definition:
cgmtypes.hxx:27
FloatPoint::X
double X
Definition:
cgmtypes.hxx:26
FloatPoint::FloatPoint
FloatPoint()
Definition:
cgmtypes.hxx:28
FloatRect
Definition:
cgmtypes.hxx:32
FloatRect::Left
double Left
Definition:
cgmtypes.hxx:33
FloatRect::Right
double Right
Definition:
cgmtypes.hxx:35
FloatRect::FloatRect
FloatRect()
Definition:
cgmtypes.hxx:37
FloatRect::Justify
void Justify()
Definition:
cgmtypes.hxx:38
FloatRect::Bottom
double Bottom
Definition:
cgmtypes.hxx:36
FloatRect::Top
double Top
Definition:
cgmtypes.hxx:34
HatchEntry
Definition:
cgmtypes.hxx:57
HatchEntry::HatchAngle
tools::Long HatchAngle
Definition:
cgmtypes.hxx:60
HatchEntry::HatchStyle
int HatchStyle
Definition:
cgmtypes.hxx:58
HatchEntry::HatchDistance
tools::Long HatchDistance
Definition:
cgmtypes.hxx:59
Generated on Sun Jul 30 2023 04:26:36 for LibreOffice Module filter (master) by
1.9.3