constants.h
Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
00002 /*
00003  * This file is part of the libpagemaker project.
00004  *
00005  * This Source Code Form is subject to the terms of the Mozilla Public
00006  * License, v. 2.0. If a copy of the MPL was not distributed with this
00007  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
00008  */
00009 
00010 #ifndef __LIBPAGEMAKER_CONSTANTS_H__
00011 #define __LIBPAGEMAKER_CONSTANTS_H__
00012 
00013 #include <stdint.h>
00014 
00015 /* PMD record types */
00016 const uint16_t FONTS_PARENT = 0x0100;
00017 const uint16_t PAGE = 0x0500;
00018 const uint16_t PARA = 0x0b00;
00019 const uint16_t TIFF = 0x0e00;
00020 const uint16_t LINE_SET = 0x1100;
00021 const uint16_t FONTS = 0x1300;
00022 const uint16_t COLORS = 0x1500;
00023 const uint16_t GLOBAL_INFO = 0x1800;
00024 const uint16_t SHAPE = 0x1900;
00025 const uint16_t TEXT_BLOCK = 0x1a00;
00026 const uint16_t CHARS = 0x1c00;
00027 const uint16_t XFORM = 0x2800;
00028 
00029 /* Color record types */
00030 const uint8_t CMYK = 0x08;
00031 const uint8_t HLS = 0x10;
00032 const uint8_t RGB = 0x18;
00033 
00034 /* Shape record types */
00035 const uint8_t TEXT_RECORD = 0x01;
00036 const uint8_t LINE_RECORD = 0x03;
00037 const uint8_t RECTANGLE_RECORD = 0x04;
00038 const uint8_t ELLIPSE_RECORD = 0x05;
00039 const uint8_t BITMAP_RECORD = 0x06;
00040 const uint8_t METAFILE_RECORD = 0x0a;
00041 const uint8_t POLYGON_RECORD = 0x0c;
00042 
00043 /* Polygon flags */
00044 const uint8_t REGULAR_POLYGON = 0x00;
00045 const uint8_t POLYGON_OPEN = 0x01;
00046 const uint8_t POLYGON_CLOSED = 0x03;
00047 
00048 /* Various constants */
00049 const uint16_t ENDIANNESS_MARKER = 0x99FF;
00050 const uint16_t WARPED_ENDIANNESS_MARKER = 0xFF99;
00051 
00052 const uint8_t SHAPE_TYPE_LINE = 1;
00053 const uint8_t SHAPE_TYPE_POLY = 2;
00054 const uint8_t SHAPE_TYPE_RECT = 3;
00055 const uint8_t SHAPE_TYPE_ELLIPSE = 4;
00056 const uint8_t SHAPE_TYPE_TEXTBOX = 5;
00057 const uint8_t SHAPE_TYPE_BITMAP = 6;
00058 
00059 /* Fill Constants */
00060 const uint8_t FILL_NONE = 0;
00061 const uint8_t FILL_PAPER = 1;
00062 const uint8_t FILL_SOLID = 2;
00063 const uint8_t FILL_VERTICAL_BARS = 3;
00064 const uint8_t FILL_TIGHT_VERTICAL_BARS = 4;
00065 const uint8_t FILL_HORIZONTAL_BARS = 5;
00066 const uint8_t FILL_TIGHT_HORIZONTAL_BARS = 6;
00067 const uint8_t FILL_TILTED_BARS = 7;
00068 const uint8_t FILL_TIGHT_TILTED_BARS = 8;
00069 const uint8_t FILL_GRID_BARS = 9;
00070 const uint8_t FILL_TIGHT_GRID_BARS = 0x0A;
00071 
00072 /* Stroke Constants */
00073 const uint8_t STROKE_NORMAL = 0;
00074 const uint8_t STROKE_LIGHT_LIGHT = 1;
00075 const uint8_t STROKE_DARK_LIGHT = 2;
00076 const uint8_t STROKE_LIGHT_DARK = 3;
00077 const uint8_t STROKE_LIGHT_DARK_LIGHT = 4;
00078 const uint8_t STROKE_DASHED = 5;
00079 const uint8_t STROKE_SQUARE_DOTS = 6;
00080 const uint8_t STROKE_CIRCULAR_DOTS = 7;
00081 
00082 #endif /* __LIBPAGEMAKER_CONSTANTS_H__ */
00083 
00084 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */