1*4f506f19SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*4f506f19SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*4f506f19SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*4f506f19SAndrew Rist * distributed with this work for additional information 6*4f506f19SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*4f506f19SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*4f506f19SAndrew Rist * "License"); you may not use this file except in compliance 9*4f506f19SAndrew Rist * with the License. You may obtain a copy of the License at 10*4f506f19SAndrew Rist * 11*4f506f19SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*4f506f19SAndrew Rist * 13*4f506f19SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*4f506f19SAndrew Rist * software distributed under the License is distributed on an 15*4f506f19SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*4f506f19SAndrew Rist * KIND, either express or implied. See the License for the 17*4f506f19SAndrew Rist * specific language governing permissions and limitations 18*4f506f19SAndrew Rist * under the License. 19*4f506f19SAndrew Rist * 20*4f506f19SAndrew Rist *************************************************************/ 21*4f506f19SAndrew Rist 22*4f506f19SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef INCLUDED_DRAWINGLAYER_PRIMITIVE2D_TEXTENUMSPRIMITIVE2D_HXX 25cdf0e10cSrcweir #define INCLUDED_DRAWINGLAYER_PRIMITIVE2D_TEXTENUMSPRIMITIVE2D_HXX 26cdf0e10cSrcweir 27090f0eb8SEike Rathke #include <drawinglayer/drawinglayerdllapi.h> 28cdf0e10cSrcweir #include <drawinglayer/primitive2d/baseprimitive2d.hxx> 29cdf0e10cSrcweir #include <vcl/vclenum.hxx> 30cdf0e10cSrcweir 31cdf0e10cSrcweir ////////////////////////////////////////////////////////////////////////////// 32cdf0e10cSrcweir 33cdf0e10cSrcweir namespace drawinglayer 34cdf0e10cSrcweir { 35cdf0e10cSrcweir namespace primitive2d 36cdf0e10cSrcweir { 37cdf0e10cSrcweir /** TextLine definition 38cdf0e10cSrcweir 39cdf0e10cSrcweir This is used for both underline and overline 40cdf0e10cSrcweir */ 41cdf0e10cSrcweir enum TextLine 42cdf0e10cSrcweir { 43cdf0e10cSrcweir TEXT_LINE_NONE, 44cdf0e10cSrcweir TEXT_LINE_SINGLE, 45cdf0e10cSrcweir TEXT_LINE_DOUBLE, 46cdf0e10cSrcweir TEXT_LINE_DOTTED, 47cdf0e10cSrcweir TEXT_LINE_DASH, 48cdf0e10cSrcweir TEXT_LINE_LONGDASH, 49cdf0e10cSrcweir TEXT_LINE_DASHDOT, 50cdf0e10cSrcweir TEXT_LINE_DASHDOTDOT, 51cdf0e10cSrcweir TEXT_LINE_SMALLWAVE, 52cdf0e10cSrcweir TEXT_LINE_WAVE, 53cdf0e10cSrcweir TEXT_LINE_DOUBLEWAVE, 54cdf0e10cSrcweir TEXT_LINE_BOLD, 55cdf0e10cSrcweir TEXT_LINE_BOLDDOTTED, 56cdf0e10cSrcweir TEXT_LINE_BOLDDASH, 57cdf0e10cSrcweir TEXT_LINE_BOLDLONGDASH, 58cdf0e10cSrcweir TEXT_LINE_BOLDDASHDOT, 59cdf0e10cSrcweir TEXT_LINE_BOLDDASHDOTDOT, 60cdf0e10cSrcweir TEXT_LINE_BOLDWAVE 61cdf0e10cSrcweir }; 62cdf0e10cSrcweir 63cdf0e10cSrcweir /** helper to convert LineStyle */ 64090f0eb8SEike Rathke TextLine DRAWINGLAYER_DLLPUBLIC mapFontUnderlineToTextLine(FontUnderline eLineStyle); 65090f0eb8SEike Rathke FontUnderline DRAWINGLAYER_DLLPUBLIC mapTextLineToFontUnderline(TextLine eLineStyle); 66cdf0e10cSrcweir 67cdf0e10cSrcweir /** FontStrikeout definition */ 68cdf0e10cSrcweir enum TextStrikeout 69cdf0e10cSrcweir { 70cdf0e10cSrcweir TEXT_STRIKEOUT_NONE, 71cdf0e10cSrcweir TEXT_STRIKEOUT_SINGLE, 72cdf0e10cSrcweir TEXT_STRIKEOUT_DOUBLE, 73cdf0e10cSrcweir TEXT_STRIKEOUT_BOLD, 74cdf0e10cSrcweir TEXT_STRIKEOUT_SLASH, 75cdf0e10cSrcweir TEXT_STRIKEOUT_X 76cdf0e10cSrcweir }; 77cdf0e10cSrcweir 78cdf0e10cSrcweir /** helper to convert FontStrikeout */ 79090f0eb8SEike Rathke TextStrikeout DRAWINGLAYER_DLLPUBLIC mapFontStrikeoutToTextStrikeout(::FontStrikeout eFontStrikeout); 80090f0eb8SEike Rathke ::FontStrikeout DRAWINGLAYER_DLLPUBLIC mapTextStrikeoutToFontStrikeout(TextStrikeout eFontStrikeout); 81cdf0e10cSrcweir 82cdf0e10cSrcweir /** TextEmphasisMark definition */ 83cdf0e10cSrcweir enum TextEmphasisMark 84cdf0e10cSrcweir { 85cdf0e10cSrcweir TEXT_EMPHASISMARK_NONE, 86cdf0e10cSrcweir TEXT_EMPHASISMARK_DOT, 87cdf0e10cSrcweir TEXT_EMPHASISMARK_CIRCLE, 88cdf0e10cSrcweir TEXT_EMPHASISMARK_DISC, 89cdf0e10cSrcweir TEXT_EMPHASISMARK_ACCENT 90cdf0e10cSrcweir }; 91cdf0e10cSrcweir 92cdf0e10cSrcweir /** TextRelief definition */ 93cdf0e10cSrcweir enum TextRelief 94cdf0e10cSrcweir { 95cdf0e10cSrcweir TEXT_RELIEF_NONE, 96cdf0e10cSrcweir TEXT_RELIEF_EMBOSSED, 97cdf0e10cSrcweir TEXT_RELIEF_ENGRAVED 98cdf0e10cSrcweir }; 99cdf0e10cSrcweir 100cdf0e10cSrcweir } // end of namespace primitive2d 101cdf0e10cSrcweir } // end of namespace drawinglayer 102cdf0e10cSrcweir 103cdf0e10cSrcweir ////////////////////////////////////////////////////////////////////////////// 104cdf0e10cSrcweir 105cdf0e10cSrcweir #endif //INCLUDED_DRAWINGLAYER_PRIMITIVE2D_TEXTENUMSPRIMITIVE2D_HXX 106cdf0e10cSrcweir 107cdf0e10cSrcweir ////////////////////////////////////////////////////////////////////////////// 108cdf0e10cSrcweir // eof 109