1 /********************************************************************** 2 * File: labls.c (Formerly labels.c) 3 * Description: Attribute definition tables 4 * Author: Sheelagh Lloyd? 5 * Created: 6 * 7 * (C) Copyright 1993, Hewlett-Packard Ltd. 8 ** Licensed under the Apache License, Version 2.0 (the "License"); 9 ** you may not use this file except in compliance with the License. 10 ** You may obtain a copy of the License at 11 ** http://www.apache.org/licenses/LICENSE-2.0 12 ** Unless required by applicable law or agreed to in writing, software 13 ** distributed under the License is distributed on an "AS IS" BASIS, 14 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 ** See the License for the specific language governing permissions and 16 ** limitations under the License. 17 * 18 **********************************************************************/ 19 20 #include "mfcpch.h" 21 #include "hpdsizes.h" 22 #include "labls.h" 23 24 /****************************************************************************** 25 * TEXT REGIONS 26 *****************************************************************************/ 27 DLLSYM inT32 tn[NUM_TEXT_ATTR] = { 28 3, //T_HORIZONTAL 29 4, //T_TEXT 30 2, //T_SERIF 31 2, //T_PROPORTIONAL 32 2, //T_NORMAL 33 2, //T_UPRIGHT 34 2, //T_SOLID 35 3, //T_BLACK 36 2, //T_NOTUNDER 37 2, //T_NOTDROP 38 }; 39 40 DLLSYM char tlabel[NUM_TEXT_ATTR][4][MAXLENGTH] = { { 41 //T_HORIZONTAL 42 "Horizontal", 43 "Vertical", 44 "Skew", 45 "" 46 }, 47 { //T_TEXT 48 "Text", 49 "Table", 50 "Form", 51 "Mixed" 52 }, 53 { //T_SERIF 54 "Serif", 55 "Sans-serif", 56 "", 57 "" 58 }, 59 { //T_PROPORTIONAL 60 "Proportional", 61 "Fixed pitch", 62 "", 63 "" 64 }, 65 { //T_NORMAL 66 "Normal", 67 "Bold", 68 "", 69 "" 70 }, 71 { //T_UPRIGHT 72 "Upright", 73 "Italic", 74 "", 75 "" 76 }, 77 { //T_SOLID 78 "Solid", 79 "Outline", 80 "", 81 "" 82 }, 83 { //T_BLACK 84 "Black", 85 "White", 86 "Coloured", 87 "" 88 }, 89 { //T_NOTUNDER 90 "Not underlined", 91 "Underlined", 92 "", 93 "" 94 }, 95 { //T_NOTDROP 96 "Not drop caps", 97 "Drop Caps", 98 "", 99 "" 100 } 101 }; 102 103 DLLSYM inT32 bn[NUM_BLOCK_ATTR] = { 104 4, //G_MONOCHROME 105 2, //I_MONOCHROME 106 2, //I_SMOOTH 107 3, //R_SINGLE 108 3, //R_BLACK 109 3, //S_BLACK 110 2 //W_TEXT 111 }; 112 113 DLLSYM inT32 tvar[NUM_TEXT_ATTR]; 114 DLLSYM inT32 bvar[NUM_BLOCK_ATTR]; 115 DLLSYM char blabel[NUM_BLOCK_ATTR][4][MAXLENGTH] = { { 116 //G_MONOCHROME 117 118 /**************************************************************************** 119 * GRAPHICS 120 ***************************************************************************/ 121 "Monochrome ", 122 "Two colour ", 123 "Spot colour", 124 "Multicolour" 125 }, 126 127 /**************************************************************************** 128 * IMAGE 129 ***************************************************************************/ 130 { //I_MONOCHROME 131 "Monochrome ", 132 "Colour ", 133 "", 134 "" 135 }, 136 { //I_SMOOTH 137 "Smooth ", 138 "Grainy ", 139 "", 140 "" 141 }, 142 143 /**************************************************************************** 144 * RULES 145 ***************************************************************************/ 146 { //R_SINGLE 147 "Single ", 148 "Double ", 149 "Multiple", 150 "" 151 }, 152 { //R_BLACK 153 "Black ", 154 "White ", 155 "Coloured", 156 "" 157 }, 158 159 /**************************************************************************** 160 * SCRIBBLE 161 ***************************************************************************/ 162 { //S_BLACK 163 "Black ", 164 "White ", 165 "Coloured", 166 "" 167 }, 168 /**************************************************************************** 169 * WEIRD 170 ***************************************************************************/ 171 { //W_TEXT 172 "No text ", 173 "Contains text", 174 "", 175 "" 176 } 177 }; 178 179 DLLSYM char backlabel[NUM_BACKGROUNDS][MAXLENGTH] = { 180 "White", //B_WHITE 181 "Black", //B_BLACK 182 "Coloured", //B_COLOURED 183 "Textured", //B_TEXTURED 184 "Patterned", //B_PATTERNED 185 "Gradient fill", //B_GRADIENTFILL 186 "Image", //B_IMAGE 187 "Text" //B_TEXT 188 }; 189