constants.h Source File documentation

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 uint8_t FONTS_PARENT = 0x01;
17 const uint8_t PAGE = 0x05;
18 const uint8_t PARA = 0x0b;
19 const uint8_t TIFF = 0x0e;
20 const uint8_t LINE_SET = 0x11;
21 const uint8_t FONTS = 0x13;
22 const uint8_t COLORS = 0x15;
23 const uint8_t GLOBAL_INFO = 0x18;
24 const uint8_t SHAPE = 0x19;
25 const uint8_t TEXT_BLOCK = 0x1a;
26 const uint8_t CHARS = 0x1c;
27 const uint8_t XFORM = 0x28;
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: */
LINE_RECORD
const uint8_t LINE_RECORD
Definition: constants.h:36
POLYGON_RECORD
const uint8_t POLYGON_RECORD
Definition: constants.h:41
FILL_SOLID
const uint8_t FILL_SOLID
Definition: constants.h:62
FILL_VERTICAL_BARS
const uint8_t FILL_VERTICAL_BARS
Definition: constants.h:63
BITMAP_RECORD
const uint8_t BITMAP_RECORD
Definition: constants.h:39
FONTS
const uint8_t FONTS
Definition: constants.h:21
FILL_TIGHT_GRID_BARS
const uint8_t FILL_TIGHT_GRID_BARS
Definition: constants.h:70
STROKE_NORMAL
const uint8_t STROKE_NORMAL
Definition: constants.h:73
LINE_SET
const uint8_t LINE_SET
Definition: constants.h:20
TIFF
const uint8_t TIFF
Definition: constants.h:19
FILL_TIGHT_TILTED_BARS
const uint8_t FILL_TIGHT_TILTED_BARS
Definition: constants.h:68
HLS
const uint8_t HLS
Definition: constants.h:31
POLYGON_CLOSED
const uint8_t POLYGON_CLOSED
Definition: constants.h:46
FONTS_PARENT
const uint8_t FONTS_PARENT
Definition: constants.h:16
FILL_TILTED_BARS
const uint8_t FILL_TILTED_BARS
Definition: constants.h:67
SHAPE_TYPE_ELLIPSE
const uint8_t SHAPE_TYPE_ELLIPSE
Definition: constants.h:55
XFORM
const uint8_t XFORM
Definition: constants.h:27
SHAPE_TYPE_TEXTBOX
const uint8_t SHAPE_TYPE_TEXTBOX
Definition: constants.h:56
STROKE_LIGHT_DARK
const uint8_t STROKE_LIGHT_DARK
Definition: constants.h:76
FILL_PAPER
const uint8_t FILL_PAPER
Definition: constants.h:61
SHAPE_TYPE_POLY
const uint8_t SHAPE_TYPE_POLY
Definition: constants.h:53
PAGE
const uint8_t PAGE
Definition: constants.h:17
RGB
const uint8_t RGB
Definition: constants.h:32
PARA
const uint8_t PARA
Definition: constants.h:18
FILL_NONE
const uint8_t FILL_NONE
Definition: constants.h:60
CHARS
const uint8_t CHARS
Definition: constants.h:26
STROKE_CIRCULAR_DOTS
const uint8_t STROKE_CIRCULAR_DOTS
Definition: constants.h:80
WARPED_ENDIANNESS_MARKER
const uint16_t WARPED_ENDIANNESS_MARKER
Definition: constants.h:50
SHAPE_TYPE_LINE
const uint8_t SHAPE_TYPE_LINE
Definition: constants.h:52
STROKE_LIGHT_DARK_LIGHT
const uint8_t STROKE_LIGHT_DARK_LIGHT
Definition: constants.h:77
ENDIANNESS_MARKER
const uint16_t ENDIANNESS_MARKER
Definition: constants.h:49
CMYK
const uint8_t CMYK
Definition: constants.h:30
SHAPE_TYPE_RECT
const uint8_t SHAPE_TYPE_RECT
Definition: constants.h:54
FILL_GRID_BARS
const uint8_t FILL_GRID_BARS
Definition: constants.h:69
POLYGON_OPEN
const uint8_t POLYGON_OPEN
Definition: constants.h:45
METAFILE_RECORD
const uint8_t METAFILE_RECORD
Definition: constants.h:40
STROKE_DARK_LIGHT
const uint8_t STROKE_DARK_LIGHT
Definition: constants.h:75
TEXT_BLOCK
const uint8_t TEXT_BLOCK
Definition: constants.h:25
RECTANGLE_RECORD
const uint8_t RECTANGLE_RECORD
Definition: constants.h:37
GLOBAL_INFO
const uint8_t GLOBAL_INFO
Definition: constants.h:23
STROKE_SQUARE_DOTS
const uint8_t STROKE_SQUARE_DOTS
Definition: constants.h:79
STROKE_DASHED
const uint8_t STROKE_DASHED
Definition: constants.h:78
STROKE_LIGHT_LIGHT
const uint8_t STROKE_LIGHT_LIGHT
Definition: constants.h:74
SHAPE
const uint8_t SHAPE
Definition: constants.h:24
TEXT_RECORD
const uint8_t TEXT_RECORD
Definition: constants.h:35
ELLIPSE_RECORD
const uint8_t ELLIPSE_RECORD
Definition: constants.h:38
FILL_TIGHT_HORIZONTAL_BARS
const uint8_t FILL_TIGHT_HORIZONTAL_BARS
Definition: constants.h:66
SHAPE_TYPE_BITMAP
const uint8_t SHAPE_TYPE_BITMAP
Definition: constants.h:57
FILL_HORIZONTAL_BARS
const uint8_t FILL_HORIZONTAL_BARS
Definition: constants.h:65
REGULAR_POLYGON
const uint8_t REGULAR_POLYGON
Definition: constants.h:44
COLORS
const uint8_t COLORS
Definition: constants.h:22
FILL_TIGHT_VERTICAL_BARS
const uint8_t FILL_TIGHT_VERTICAL_BARS
Definition: constants.h:64