1*8b851043SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*8b851043SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*8b851043SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*8b851043SAndrew Rist * distributed with this work for additional information 6*8b851043SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*8b851043SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*8b851043SAndrew Rist * "License"); you may not use this file except in compliance 9*8b851043SAndrew Rist * with the License. You may obtain a copy of the License at 10cdf0e10cSrcweir * 11*8b851043SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12cdf0e10cSrcweir * 13*8b851043SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*8b851043SAndrew Rist * software distributed under the License is distributed on an 15*8b851043SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*8b851043SAndrew Rist * KIND, either express or implied. See the License for the 17*8b851043SAndrew Rist * specific language governing permissions and limitations 18*8b851043SAndrew Rist * under the License. 19cdf0e10cSrcweir * 20*8b851043SAndrew Rist *************************************************************/ 21*8b851043SAndrew Rist 22*8b851043SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef _TOOLS_FONTENUM_HXX 25cdf0e10cSrcweir #define _TOOLS_FONTENUM_HXX 26cdf0e10cSrcweir 27cdf0e10cSrcweir #include <sal/types.h> 28cdf0e10cSrcweir #include <tools/solar.h> 29cdf0e10cSrcweir 30cdf0e10cSrcweir #ifndef ENUM_FONTFAMILY_DECLARED 31cdf0e10cSrcweir #define ENUM_FONTFAMILY_DECLARED 32cdf0e10cSrcweir 33cdf0e10cSrcweir enum FontFamily { FAMILY_DONTKNOW, FAMILY_DECORATIVE, FAMILY_MODERN, 34cdf0e10cSrcweir FAMILY_ROMAN, FAMILY_SCRIPT, FAMILY_SWISS, FAMILY_SYSTEM, FontFamily_FORCE_EQUAL_SIZE=SAL_MAX_ENUM }; 35cdf0e10cSrcweir 36cdf0e10cSrcweir #endif 37cdf0e10cSrcweir 38cdf0e10cSrcweir // ------------------------------------------------------------ 39cdf0e10cSrcweir 40cdf0e10cSrcweir #ifndef ENUM_FONTPITCH_DECLARED 41cdf0e10cSrcweir #define ENUM_FONTPITCH_DECLARED 42cdf0e10cSrcweir 43cdf0e10cSrcweir enum FontPitch { PITCH_DONTKNOW, PITCH_FIXED, PITCH_VARIABLE, FontPitch_FORCE_EQUAL_SIZE=SAL_MAX_ENUM }; 44cdf0e10cSrcweir 45cdf0e10cSrcweir #endif 46cdf0e10cSrcweir 47cdf0e10cSrcweir // ------------------------------------------------------------ 48cdf0e10cSrcweir 49cdf0e10cSrcweir #ifndef ENUM_TEXTALIGN_DECLARED 50cdf0e10cSrcweir #define ENUM_TEXTALIGN_DECLARED 51cdf0e10cSrcweir 52cdf0e10cSrcweir enum TextAlign { ALIGN_TOP, ALIGN_BASELINE, ALIGN_BOTTOM, TextAlign_FORCE_EQUAL_SIZE=SAL_MAX_ENUM }; 53cdf0e10cSrcweir 54cdf0e10cSrcweir #endif 55cdf0e10cSrcweir 56cdf0e10cSrcweir // ------------------------------------------------------------ 57cdf0e10cSrcweir 58cdf0e10cSrcweir #ifndef ENUM_FONTWEIGHT_DECLARED 59cdf0e10cSrcweir #define ENUM_FONTWEIGHT_DECLARED 60cdf0e10cSrcweir 61cdf0e10cSrcweir enum FontWeight { WEIGHT_DONTKNOW, WEIGHT_THIN, WEIGHT_ULTRALIGHT, 62cdf0e10cSrcweir WEIGHT_LIGHT, WEIGHT_SEMILIGHT, WEIGHT_NORMAL, 63cdf0e10cSrcweir WEIGHT_MEDIUM, WEIGHT_SEMIBOLD, WEIGHT_BOLD, 64cdf0e10cSrcweir WEIGHT_ULTRABOLD, WEIGHT_BLACK, FontWeight_FORCE_EQUAL_SIZE=SAL_MAX_ENUM }; 65cdf0e10cSrcweir 66cdf0e10cSrcweir #endif 67cdf0e10cSrcweir 68cdf0e10cSrcweir // ------------------------------------------------------------ 69cdf0e10cSrcweir 70cdf0e10cSrcweir #ifndef ENUM_FONTWIDTH_DECLARED 71cdf0e10cSrcweir #define ENUM_FONTWIDTH_DECLARED 72cdf0e10cSrcweir 73cdf0e10cSrcweir enum FontWidth { WIDTH_DONTKNOW, WIDTH_ULTRA_CONDENSED, WIDTH_EXTRA_CONDENSED, 74cdf0e10cSrcweir WIDTH_CONDENSED, WIDTH_SEMI_CONDENSED, WIDTH_NORMAL, 75cdf0e10cSrcweir WIDTH_SEMI_EXPANDED, WIDTH_EXPANDED, WIDTH_EXTRA_EXPANDED, 76cdf0e10cSrcweir WIDTH_ULTRA_EXPANDED, 77cdf0e10cSrcweir FontWidth_FORCE_EQUAL_SIZE=SAL_MAX_ENUM }; 78cdf0e10cSrcweir 79cdf0e10cSrcweir #endif 80cdf0e10cSrcweir 81cdf0e10cSrcweir // ------------------------------------------------------------ 82cdf0e10cSrcweir 83cdf0e10cSrcweir #ifndef ENUM_FONTITALIC_DECLARED 84cdf0e10cSrcweir #define ENUM_FONTITALIC_DECLARED 85cdf0e10cSrcweir 86cdf0e10cSrcweir enum FontItalic { ITALIC_NONE, ITALIC_OBLIQUE, ITALIC_NORMAL, ITALIC_DONTKNOW, FontItalic_FORCE_EQUAL_SIZE=SAL_MAX_ENUM }; 87cdf0e10cSrcweir 88cdf0e10cSrcweir #endif 89cdf0e10cSrcweir 90cdf0e10cSrcweir // ------------------------------------------------------------ 91cdf0e10cSrcweir 92cdf0e10cSrcweir #ifndef ENUM_FONTUNDERLINE_DECLARED 93cdf0e10cSrcweir #define ENUM_FONTUNDERLINE_DECLARED 94cdf0e10cSrcweir 95cdf0e10cSrcweir enum FontUnderline { UNDERLINE_NONE, UNDERLINE_SINGLE, UNDERLINE_DOUBLE, 96cdf0e10cSrcweir UNDERLINE_DOTTED, UNDERLINE_DONTKNOW, 97cdf0e10cSrcweir UNDERLINE_DASH, UNDERLINE_LONGDASH, 98cdf0e10cSrcweir UNDERLINE_DASHDOT, UNDERLINE_DASHDOTDOT, 99cdf0e10cSrcweir UNDERLINE_SMALLWAVE, 100cdf0e10cSrcweir UNDERLINE_WAVE, UNDERLINE_DOUBLEWAVE, 101cdf0e10cSrcweir UNDERLINE_BOLD, UNDERLINE_BOLDDOTTED, 102cdf0e10cSrcweir UNDERLINE_BOLDDASH, UNDERLINE_BOLDLONGDASH, 103cdf0e10cSrcweir UNDERLINE_BOLDDASHDOT, UNDERLINE_BOLDDASHDOTDOT, 104cdf0e10cSrcweir UNDERLINE_BOLDWAVE, 105cdf0e10cSrcweir FontUnderline_FORCE_EQUAL_SIZE=SAL_MAX_ENUM }; 106cdf0e10cSrcweir 107cdf0e10cSrcweir #endif 108cdf0e10cSrcweir 109cdf0e10cSrcweir // ------------------------------------------------------------ 110cdf0e10cSrcweir 111cdf0e10cSrcweir #ifndef ENUM_FONTSTRIKEOUT_DECLARED 112cdf0e10cSrcweir #define ENUM_FONTSTRIKEOUT_DECLARED 113cdf0e10cSrcweir 114cdf0e10cSrcweir enum FontStrikeout { STRIKEOUT_NONE, STRIKEOUT_SINGLE, STRIKEOUT_DOUBLE, 115cdf0e10cSrcweir STRIKEOUT_DONTKNOW, STRIKEOUT_BOLD, 116cdf0e10cSrcweir STRIKEOUT_SLASH, STRIKEOUT_X, 117cdf0e10cSrcweir FontStrikeout_FORCE_EQUAL_SIZE=SAL_MAX_ENUM }; 118cdf0e10cSrcweir 119cdf0e10cSrcweir #endif 120cdf0e10cSrcweir 121cdf0e10cSrcweir // ------------------------------------------------------------ 122cdf0e10cSrcweir 123cdf0e10cSrcweir #ifndef ENUM_FONTEMPHASISMARK_DECLARED 124cdf0e10cSrcweir #define ENUM_FONTEMPHASISMARK_DECLARED 125cdf0e10cSrcweir 126cdf0e10cSrcweir typedef sal_uInt16 FontEmphasisMark; 127cdf0e10cSrcweir #define EMPHASISMARK_NONE ((FontEmphasisMark)0x0000) 128cdf0e10cSrcweir #define EMPHASISMARK_DOT ((FontEmphasisMark)0x0001) 129cdf0e10cSrcweir #define EMPHASISMARK_CIRCLE ((FontEmphasisMark)0x0002) 130cdf0e10cSrcweir #define EMPHASISMARK_DISC ((FontEmphasisMark)0x0003) 131cdf0e10cSrcweir #define EMPHASISMARK_ACCENT ((FontEmphasisMark)0x0004) 132cdf0e10cSrcweir #define EMPHASISMARK_STYLE ((FontEmphasisMark)0x00FF) 133cdf0e10cSrcweir #define EMPHASISMARK_POS_ABOVE ((FontEmphasisMark)0x1000) 134cdf0e10cSrcweir #define EMPHASISMARK_POS_BELOW ((FontEmphasisMark)0x2000) 135cdf0e10cSrcweir 136cdf0e10cSrcweir // Only for kompability 137cdf0e10cSrcweir #define EMPHASISMARK_DOTS_ABOVE (EMPHASISMARK_DOT | EMPHASISMARK_POS_ABOVE) 138cdf0e10cSrcweir #define EMPHASISMARK_DOTS_BELOW (EMPHASISMARK_DOT | EMPHASISMARK_POS_BELOW) 139cdf0e10cSrcweir #define EMPHASISMARK_SIDE_DOTS (EMPHASISMARK_ACCENT | EMPHASISMARK_POS_ABOVE) 140cdf0e10cSrcweir #define EMPHASISMARK_CIRCLE_ABOVE (EMPHASISMARK_CIRCLE | EMPHASISMARK_POS_ABOVE) 141cdf0e10cSrcweir 142cdf0e10cSrcweir #endif 143cdf0e10cSrcweir 144cdf0e10cSrcweir // ------------------------------------------------------------ 145cdf0e10cSrcweir 146cdf0e10cSrcweir #ifndef ENUM_FONTTYPE_DECLARED 147cdf0e10cSrcweir #define ENUM_FONTTYPE_DECLARED 148cdf0e10cSrcweir 149cdf0e10cSrcweir enum FontType { TYPE_DONTKNOW, TYPE_RASTER, TYPE_VECTOR, TYPE_SCALABLE, 150cdf0e10cSrcweir FontType_FORCE_EQUAL_SIZE=SAL_MAX_ENUM }; 151cdf0e10cSrcweir 152cdf0e10cSrcweir #endif 153cdf0e10cSrcweir 154cdf0e10cSrcweir #ifndef ENUM_FONTEMBEDDEDBITMAP_DECLARED 155cdf0e10cSrcweir #define ENUM_FONTEMBEDDEDBITMAP_DECLARED 156cdf0e10cSrcweir 157cdf0e10cSrcweir enum FontEmbeddedBitmap { EMBEDDEDBITMAP_DONTKNOW, EMBEDDEDBITMAP_FALSE, EMBEDDEDBITMAP_TRUE }; 158cdf0e10cSrcweir 159cdf0e10cSrcweir #endif 160cdf0e10cSrcweir 161cdf0e10cSrcweir #ifndef ENUM_FONTANTIALIAS_DECLARED 162cdf0e10cSrcweir #define ENUM_FONTANTIALIAS_DECLARED 163cdf0e10cSrcweir 164cdf0e10cSrcweir enum FontAntiAlias { ANTIALIAS_DONTKNOW, ANTIALIAS_FALSE, ANTIALIAS_TRUE }; 165cdf0e10cSrcweir 166cdf0e10cSrcweir #endif 167cdf0e10cSrcweir 168cdf0e10cSrcweir #endif // _TOOLS_FONTENUM_HXX 169