LibreOffice Module filter (master) 1
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
25{
26 double X;
27 double Y;
28 FloatPoint():X(0), Y(0){};
29};
30
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
57{
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
86
88
89enum VDCType { VDC_INTEGER = 0, VDC_REAL = 1 };
94
95enum ClipIndicator { CI_OFF = 0, CI_ON = 1 };
96
98enum ColorModel { CM_RGB = 0, CM_CMYK = 1 };
99
102enum TextPath { TPR_RIGHT = 0, TPR_LEFT = 1, TPR_UP = 2, TPR_DOWN = 3 };
104enum TextAlignmentV { TAV_NORMAL = 0, TAV_TOP = 1, TAV_CAP = 2, TAV_HALF = 3, TAV_BASE = 4, TAV_BOTTOM = 5, TAV_CONT = 6 };
107
108enum 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
112enum LineJoinType { LJT_MITER = 0, LJT_ROUND = 1, LJT_BEVEL = 2, LJT_NONE = -1 };
113
114
115enum 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
117enum EdgeVisibility { EV_OFF = 0, EV_ON = 1 };
118
119enum MarkerType { MT_POINT = 1, MT_PLUS = 2, MT_STAR = 3, MT_CIRCLE = 4, MT_CROSS = 5 };
120
121enum Transparency { T_OFF = 0, T_ON = 1 };
122
125
126
127/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SpecMode
Definition: cgmtypes.hxx:110
@ SM_SCALED
Definition: cgmtypes.hxx:110
@ SM_ABSOLUTE
Definition: cgmtypes.hxx:110
Transparency
Definition: cgmtypes.hxx:121
@ T_OFF
Definition: cgmtypes.hxx:121
@ T_ON
Definition: cgmtypes.hxx:121
@ LCT_NONE
Definition: cgmtypes.hxx:111
@ LCT_TRIANGLE
Definition: cgmtypes.hxx:111
@ LCT_ROUND
Definition: cgmtypes.hxx:111
@ LCT_SQUARE
Definition: cgmtypes.hxx:111
@ LCT_BUTT
Definition: cgmtypes.hxx:111
@ LCT_ARROW
Definition: cgmtypes.hxx:111
DeviceViewPortMode
Definition: cgmtypes.hxx:90
@ DVPM_DEVICE
Definition: cgmtypes.hxx:90
@ DVPM_FRACTION
Definition: cgmtypes.hxx:90
@ DVPM_METRIC
Definition: cgmtypes.hxx:90
TextPrecision
Definition: cgmtypes.hxx:101
@ TPR_STRING
Definition: cgmtypes.hxx:101
@ TPR_STROKE
Definition: cgmtypes.hxx:101
@ TPR_UNDEFINED
Definition: cgmtypes.hxx:101
@ TPR_CHARACTER
Definition: cgmtypes.hxx:101
FinalFlag
Definition: cgmtypes.hxx:106
@ FF_NOT_FINAL
Definition: cgmtypes.hxx:106
@ FF_FINAL
Definition: cgmtypes.hxx:106
EdgeType
Definition: cgmtypes.hxx:115
@ ET_SOLID
Definition: cgmtypes.hxx:115
@ ET_NONE
Definition: cgmtypes.hxx:116
@ ET_DASHDOT
Definition: cgmtypes.hxx:115
@ ET_LONGDASH
Definition: cgmtypes.hxx:116
@ ET_DOT
Definition: cgmtypes.hxx:115
@ ET_DASHDOTDOT
Definition: cgmtypes.hxx:115
@ ET_DOTDOTSPACE
Definition: cgmtypes.hxx:116
@ ET_DASHDASHDOT
Definition: cgmtypes.hxx:116
@ ET_DASH
Definition: cgmtypes.hxx:115
EdgeVisibility
Definition: cgmtypes.hxx:117
@ EV_OFF
Definition: cgmtypes.hxx:117
@ EV_ON
Definition: cgmtypes.hxx:117
DeviceViewPortMap
Definition: cgmtypes.hxx:91
@ DVPM_NOT_FORCED
Definition: cgmtypes.hxx:91
@ DVPM_FORCED
Definition: cgmtypes.hxx:91
@ LJT_BEVEL
Definition: cgmtypes.hxx:112
@ LJT_MITER
Definition: cgmtypes.hxx:112
@ LJT_ROUND
Definition: cgmtypes.hxx:112
@ LJT_NONE
Definition: cgmtypes.hxx:112
CharacterCodingA
Definition: cgmtypes.hxx:100
@ CCA_BASIC_8
Definition: cgmtypes.hxx:100
@ CCA_EXT_7
Definition: cgmtypes.hxx:100
@ CCA_EXT_8
Definition: cgmtypes.hxx:100
@ CCA_BASIC_7
Definition: cgmtypes.hxx:100
TextPath
Definition: cgmtypes.hxx:102
@ TPR_LEFT
Definition: cgmtypes.hxx:102
@ TPR_DOWN
Definition: cgmtypes.hxx:102
@ TPR_RIGHT
Definition: cgmtypes.hxx:102
@ TPR_UP
Definition: cgmtypes.hxx:102
ScalingMode
Definition: cgmtypes.hxx:87
@ SM_ABSTRACT
Definition: cgmtypes.hxx:87
@ SM_METRIC
Definition: cgmtypes.hxx:87
TextAlignmentH
Definition: cgmtypes.hxx:103
@ TAH_NORMAL
Definition: cgmtypes.hxx:103
@ TAH_RIGHT
Definition: cgmtypes.hxx:103
@ TAH_CENTER
Definition: cgmtypes.hxx:103
@ TAH_CONT
Definition: cgmtypes.hxx:103
@ TAH_LEFT
Definition: cgmtypes.hxx:103
TextAlignmentV
Definition: cgmtypes.hxx:104
@ TAV_BASE
Definition: cgmtypes.hxx:104
@ TAV_CAP
Definition: cgmtypes.hxx:104
@ TAV_BOTTOM
Definition: cgmtypes.hxx:104
@ TAV_NORMAL
Definition: cgmtypes.hxx:104
@ TAV_TOP
Definition: cgmtypes.hxx:104
@ TAV_CONT
Definition: cgmtypes.hxx:104
@ TAV_HALF
Definition: cgmtypes.hxx:104
FillInteriorStyle
Definition: cgmtypes.hxx:123
@ FIS_SOLID
Definition: cgmtypes.hxx:123
@ FIS_EMPTY
Definition: cgmtypes.hxx:123
@ FIS_GRADIENT
Definition: cgmtypes.hxx:124
@ FIS_INTERPOLATED
Definition: cgmtypes.hxx:124
@ FIS_HOLLOW
Definition: cgmtypes.hxx:123
@ FIS_PATTERN
Definition: cgmtypes.hxx:123
@ FIS_GEOPATTERN
Definition: cgmtypes.hxx:123
@ FIS_HATCH
Definition: cgmtypes.hxx:123
@ CM_RGB
Definition: cgmtypes.hxx:98
@ CM_CMYK
Definition: cgmtypes.hxx:98
DeviceViewPortMapH
Definition: cgmtypes.hxx:92
@ DVPMH_LEFT
Definition: cgmtypes.hxx:92
@ CVPMH_RIGHT
Definition: cgmtypes.hxx:92
@ DVPMH_CENTER
Definition: cgmtypes.hxx:92
UnderlineMode
Definition: cgmtypes.hxx:105
@ UM_OVERSCORE
Definition: cgmtypes.hxx:105
@ UM_HIGH
Definition: cgmtypes.hxx:105
@ UM_LOW
Definition: cgmtypes.hxx:105
@ UM_OFF
Definition: cgmtypes.hxx:105
@ UM_STRIKEOUT
Definition: cgmtypes.hxx:105
MarkerType
Definition: cgmtypes.hxx:119
@ MT_PLUS
Definition: cgmtypes.hxx:119
@ MT_STAR
Definition: cgmtypes.hxx:119
@ MT_CROSS
Definition: cgmtypes.hxx:119
@ MT_CIRCLE
Definition: cgmtypes.hxx:119
@ MT_POINT
Definition: cgmtypes.hxx:119
ColorSelectionMode
Definition: cgmtypes.hxx:97
@ CSM_INDEXED
Definition: cgmtypes.hxx:97
@ CSM_DIRECT
Definition: cgmtypes.hxx:97
DeviceViewPortMapV
Definition: cgmtypes.hxx:93
@ DVPMV_TOP
Definition: cgmtypes.hxx:93
@ DVPMV_BOTTOM
Definition: cgmtypes.hxx:93
@ DVPMV_CENTER
Definition: cgmtypes.hxx:93
VDCType
Definition: cgmtypes.hxx:89
@ VDC_INTEGER
Definition: cgmtypes.hxx:89
@ VDC_REAL
Definition: cgmtypes.hxx:89
ClipIndicator
Definition: cgmtypes.hxx:95
@ CI_ON
Definition: cgmtypes.hxx:95
@ CI_OFF
Definition: cgmtypes.hxx:95
@ LT_DASH
Definition: cgmtypes.hxx:108
@ LT_LONGDASH
Definition: cgmtypes.hxx:109
@ LT_DOTDOTSPACE
Definition: cgmtypes.hxx:109
@ LT_DASHDOT
Definition: cgmtypes.hxx:108
@ LT_DASHDASHDOT
Definition: cgmtypes.hxx:109
@ LT_DASHDOTDOT
Definition: cgmtypes.hxx:108
@ LT_SOLID
Definition: cgmtypes.hxx:108
@ LT_NONE
Definition: cgmtypes.hxx:109
@ LT_DOT
Definition: cgmtypes.hxx:108
RealPrecision
Definition: cgmtypes.hxx:85
@ RP_FIXED
Definition: cgmtypes.hxx:85
@ RP_FLOAT
Definition: cgmtypes.hxx:85
ColorModel
LineCapType
LineJoinType
long Long
LineType
double Y
Definition: cgmtypes.hxx:27
double X
Definition: cgmtypes.hxx:26
double Left
Definition: cgmtypes.hxx:33
double Right
Definition: cgmtypes.hxx:35
void Justify()
Definition: cgmtypes.hxx:38
double Bottom
Definition: cgmtypes.hxx:36
double Top
Definition: cgmtypes.hxx:34
tools::Long HatchAngle
Definition: cgmtypes.hxx:60
int HatchStyle
Definition: cgmtypes.hxx:58
tools::Long HatchDistance
Definition: cgmtypes.hxx:59