constants.h Source File documentation

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

constants.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /*
3 * This file is part of the libpagemaker 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
10 #ifndef __LIBPAGEMAKER_CONSTANTS_H__
11 #define __LIBPAGEMAKER_CONSTANTS_H__
12
13 #include <stdint.h>
14
15 /* PMD record types */
16 const uint16_t FONTS_PARENT = 0x0100;
17 const uint16_t PAGE = 0x0500;
18 const uint16_t PARA = 0x0b00;
19 const uint16_t TIFF = 0x0e00;
20 const uint16_t LINE_SET = 0x1100;
21 const uint16_t FONTS = 0x1300;
22 const uint16_t COLORS = 0x1500;
23 const uint16_t GLOBAL_INFO = 0x1800;
24 const uint16_t SHAPE = 0x1900;
25 const uint16_t TEXT_BLOCK = 0x1a00;
26 const uint16_t CHARS = 0x1c00;
27 const uint16_t XFORM = 0x2800;
28
29 /* Color record types */
30 const uint8_t CMYK = 0x08;
31 const uint8_t HLS = 0x10;
32 const uint8_t RGB = 0x18;
33
34 /* Shape record types */
35 const uint8_t TEXT_RECORD = 0x01;
36 const uint8_t LINE_RECORD = 0x03;
37 const uint8_t RECTANGLE_RECORD = 0x04;
38 const uint8_t ELLIPSE_RECORD = 0x05;
39 const uint8_t BITMAP_RECORD = 0x06;
40 const uint8_t METAFILE_RECORD = 0x0a;
41 const uint8_t POLYGON_RECORD = 0x0c;
42
43 /* Polygon flags */
44 const uint8_t REGULAR_POLYGON = 0x00;
45 const uint8_t POLYGON_OPEN = 0x01;
46 const uint8_t POLYGON_CLOSED = 0x03;
47
48 /* Various constants */
49 const uint16_t ENDIANNESS_MARKER = 0x99FF;
50 const uint16_t WARPED_ENDIANNESS_MARKER = 0xFF99;
51
52 const uint8_t SHAPE_TYPE_LINE = 1;
53 const uint8_t SHAPE_TYPE_POLY = 2;
54 const uint8_t SHAPE_TYPE_RECT = 3;
55 const uint8_t SHAPE_TYPE_ELLIPSE = 4;
56 const uint8_t SHAPE_TYPE_TEXTBOX = 5;
57 const uint8_t SHAPE_TYPE_BITMAP = 6;
58
59 /* Fill Constants */
60 const uint8_t FILL_NONE = 0;
61 const uint8_t FILL_PAPER = 1;
62 const uint8_t FILL_SOLID = 2;
63 const uint8_t FILL_VERTICAL_BARS = 3;
64 const uint8_t FILL_TIGHT_VERTICAL_BARS = 4;
65 const uint8_t FILL_HORIZONTAL_BARS = 5;
66 const uint8_t FILL_TIGHT_HORIZONTAL_BARS = 6;
67 const uint8_t FILL_TILTED_BARS = 7;
68 const uint8_t FILL_TIGHT_TILTED_BARS = 8;
69 const uint8_t FILL_GRID_BARS = 9;
70 const uint8_t FILL_TIGHT_GRID_BARS = 0x0A;
71
72 /* Stroke Constants */
73 const uint8_t STROKE_NORMAL = 0;
74 const uint8_t STROKE_LIGHT_LIGHT = 1;
75 const uint8_t STROKE_DARK_LIGHT = 2;
76 const uint8_t STROKE_LIGHT_DARK = 3;
77 const uint8_t STROKE_LIGHT_DARK_LIGHT = 4;
78 const uint8_t STROKE_DASHED = 5;
79 const uint8_t STROKE_SQUARE_DOTS = 6;
80 const uint8_t STROKE_CIRCULAR_DOTS = 7;
81
82 #endif /* __LIBPAGEMAKER_CONSTANTS_H__ */
83
84 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
XFORM
const uint16_t XFORM
Definition: constants.h:27
FILL_TIGHT_GRID_BARS
const uint8_t FILL_TIGHT_GRID_BARS
Definition: constants.h:70
SHAPE_TYPE_ELLIPSE
const uint8_t SHAPE_TYPE_ELLIPSE
Definition: constants.h:55
BITMAP_RECORD
const uint8_t BITMAP_RECORD
Definition: constants.h:39
COLORS
const uint16_t COLORS
Definition: constants.h:22
SHAPE_TYPE_TEXTBOX
const uint8_t SHAPE_TYPE_TEXTBOX
Definition: constants.h:56
FILL_TIGHT_HORIZONTAL_BARS
const uint8_t FILL_TIGHT_HORIZONTAL_BARS
Definition: constants.h:66
POLYGON_RECORD
const uint8_t POLYGON_RECORD
Definition: constants.h:41
POLYGON_CLOSED
const uint8_t POLYGON_CLOSED
Definition: constants.h:46
CMYK
const uint8_t CMYK
Definition: constants.h:30
FILL_VERTICAL_BARS
const uint8_t FILL_VERTICAL_BARS
Definition: constants.h:63
STROKE_LIGHT_LIGHT
const uint8_t STROKE_LIGHT_LIGHT
Definition: constants.h:74
FONTS
const uint16_t FONTS
Definition: constants.h:21
SHAPE
const uint16_t SHAPE
Definition: constants.h:24
REGULAR_POLYGON
const uint8_t REGULAR_POLYGON
Definition: constants.h:44
TEXT_BLOCK
const uint16_t TEXT_BLOCK
Definition: constants.h:25
STROKE_NORMAL
const uint8_t STROKE_NORMAL
Definition: constants.h:73
HLS
const uint8_t HLS
Definition: constants.h:31
METAFILE_RECORD
const uint8_t METAFILE_RECORD
Definition: constants.h:40
STROKE_CIRCULAR_DOTS
const uint8_t STROKE_CIRCULAR_DOTS
Definition: constants.h:80
FILL_TIGHT_TILTED_BARS
const uint8_t FILL_TIGHT_TILTED_BARS
Definition: constants.h:68
PAGE
const uint16_t PAGE
Definition: constants.h:17
FILL_GRID_BARS
const uint8_t FILL_GRID_BARS
Definition: constants.h:69
FILL_PAPER
const uint8_t FILL_PAPER
Definition: constants.h:61
STROKE_LIGHT_DARK_LIGHT
const uint8_t STROKE_LIGHT_DARK_LIGHT
Definition: constants.h:77
FILL_TIGHT_VERTICAL_BARS
const uint8_t FILL_TIGHT_VERTICAL_BARS
Definition: constants.h:64
FONTS_PARENT
const uint16_t FONTS_PARENT
Definition: constants.h:16
SHAPE_TYPE_POLY
const uint8_t SHAPE_TYPE_POLY
Definition: constants.h:53
STROKE_SQUARE_DOTS
const uint8_t STROKE_SQUARE_DOTS
Definition: constants.h:79
FILL_HORIZONTAL_BARS
const uint8_t FILL_HORIZONTAL_BARS
Definition: constants.h:65
STROKE_LIGHT_DARK
const uint8_t STROKE_LIGHT_DARK
Definition: constants.h:76
PARA
const uint16_t PARA
Definition: constants.h:18
TIFF
const uint16_t TIFF
Definition: constants.h:19
ENDIANNESS_MARKER
const uint16_t ENDIANNESS_MARKER
Definition: constants.h:49
LINE_RECORD
const uint8_t LINE_RECORD
Definition: constants.h:36
FILL_SOLID
const uint8_t FILL_SOLID
Definition: constants.h:62
RECTANGLE_RECORD
const uint8_t RECTANGLE_RECORD
Definition: constants.h:37
CHARS
const uint16_t CHARS
Definition: constants.h:26
WARPED_ENDIANNESS_MARKER
const uint16_t WARPED_ENDIANNESS_MARKER
Definition: constants.h:50
SHAPE_TYPE_RECT
const uint8_t SHAPE_TYPE_RECT
Definition: constants.h:54
GLOBAL_INFO
const uint16_t GLOBAL_INFO
Definition: constants.h:23
SHAPE_TYPE_LINE
const uint8_t SHAPE_TYPE_LINE
Definition: constants.h:52
STROKE_DASHED
const uint8_t STROKE_DASHED
Definition: constants.h:78
RGB
const uint8_t RGB
Definition: constants.h:32
FILL_NONE
const uint8_t FILL_NONE
Definition: constants.h:60
STROKE_DARK_LIGHT
const uint8_t STROKE_DARK_LIGHT
Definition: constants.h:75
POLYGON_OPEN
const uint8_t POLYGON_OPEN
Definition: constants.h:45
LINE_SET
const uint16_t LINE_SET
Definition: constants.h:20
FILL_TILTED_BARS
const uint8_t FILL_TILTED_BARS
Definition: constants.h:67
TEXT_RECORD
const uint8_t TEXT_RECORD
Definition: constants.h:35
SHAPE_TYPE_BITMAP
const uint8_t SHAPE_TYPE_BITMAP
Definition: constants.h:57
ELLIPSE_RECORD
const uint8_t ELLIPSE_RECORD
Definition: constants.h:38