LCOV - code coverage report
Current view: top level - drawinglayer/source/primitive2d - textenumsprimitive2d.cxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 56 0.0 %
Date: 2014-04-14 Functions: 0 4 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice 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             :  * This file incorporates work covered by the following license notice:
      10             :  *
      11             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12             :  *   contributor license agreements. See the NOTICE file distributed
      13             :  *   with this work for additional information regarding copyright
      14             :  *   ownership. The ASF licenses this file to you under the Apache
      15             :  *   License, Version 2.0 (the "License"); you may not use this file
      16             :  *   except in compliance with the License. You may obtain a copy of
      17             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18             :  */
      19             : 
      20             : #include <drawinglayer/primitive2d/textenumsprimitive2d.hxx>
      21             : 
      22             : 
      23             : 
      24             : namespace drawinglayer
      25             : {
      26             :     namespace primitive2d
      27             :     {
      28           0 :         TextLine mapFontUnderlineToTextLine(FontUnderline eLineStyle)
      29             :         {
      30           0 :             switch(eLineStyle)
      31             :             {
      32           0 :                 case UNDERLINE_SINGLE:          return TEXT_LINE_SINGLE;
      33           0 :                 case UNDERLINE_DOUBLE:          return TEXT_LINE_DOUBLE;
      34           0 :                 case UNDERLINE_DOTTED:          return TEXT_LINE_DOTTED;
      35           0 :                 case UNDERLINE_DASH:            return TEXT_LINE_DASH;
      36           0 :                 case UNDERLINE_LONGDASH:        return TEXT_LINE_LONGDASH;
      37           0 :                 case UNDERLINE_DASHDOT:         return TEXT_LINE_DASHDOT;
      38           0 :                 case UNDERLINE_DASHDOTDOT:      return TEXT_LINE_DASHDOTDOT;
      39           0 :                 case UNDERLINE_SMALLWAVE:       return TEXT_LINE_SMALLWAVE;
      40           0 :                 case UNDERLINE_WAVE:            return TEXT_LINE_WAVE;
      41           0 :                 case UNDERLINE_DOUBLEWAVE:      return TEXT_LINE_DOUBLEWAVE;
      42           0 :                 case UNDERLINE_BOLD:            return TEXT_LINE_BOLD;
      43           0 :                 case UNDERLINE_BOLDDOTTED:      return TEXT_LINE_BOLDDOTTED;
      44           0 :                 case UNDERLINE_BOLDDASH:        return TEXT_LINE_BOLDDASH;
      45           0 :                 case UNDERLINE_BOLDLONGDASH:    return TEXT_LINE_BOLDLONGDASH;
      46           0 :                 case UNDERLINE_BOLDDASHDOT:     return TEXT_LINE_BOLDDASHDOT;
      47           0 :                 case UNDERLINE_BOLDDASHDOTDOT:  return TEXT_LINE_BOLDDASHDOTDOT;
      48           0 :                 case UNDERLINE_BOLDWAVE:        return TEXT_LINE_BOLDWAVE;
      49             :                 // FontUnderline_FORCE_EQUAL_SIZE, UNDERLINE_DONTKNOW, UNDERLINE_NONE
      50           0 :                 default:                        return TEXT_LINE_NONE;
      51             :             }
      52             :         }
      53             : 
      54           0 :         FontUnderline mapTextLineToFontUnderline(TextLine eLineStyle)
      55             :         {
      56           0 :             switch(eLineStyle)
      57             :             {
      58           0 :                 default: /*TEXT_LINE_NONE*/   return UNDERLINE_NONE;
      59           0 :                 case TEXT_LINE_SINGLE:        return UNDERLINE_SINGLE;
      60           0 :                 case TEXT_LINE_DOUBLE:        return UNDERLINE_DOUBLE;
      61           0 :                 case TEXT_LINE_DOTTED:        return UNDERLINE_DOTTED;
      62           0 :                 case TEXT_LINE_DASH:          return UNDERLINE_DASH;
      63           0 :                 case TEXT_LINE_LONGDASH:      return UNDERLINE_LONGDASH;
      64           0 :                 case TEXT_LINE_DASHDOT:       return UNDERLINE_DASHDOT;
      65           0 :                 case TEXT_LINE_DASHDOTDOT:    return UNDERLINE_DASHDOTDOT;
      66           0 :                 case TEXT_LINE_SMALLWAVE:     return UNDERLINE_SMALLWAVE;
      67           0 :                 case TEXT_LINE_WAVE:          return UNDERLINE_WAVE;
      68           0 :                 case TEXT_LINE_DOUBLEWAVE:    return UNDERLINE_DOUBLEWAVE;
      69           0 :                 case TEXT_LINE_BOLD:          return UNDERLINE_BOLD;
      70           0 :                 case TEXT_LINE_BOLDDOTTED:    return UNDERLINE_BOLDDOTTED;
      71           0 :                 case TEXT_LINE_BOLDDASH:      return UNDERLINE_BOLDDASH;
      72           0 :                 case TEXT_LINE_BOLDLONGDASH:  return UNDERLINE_LONGDASH;
      73           0 :                 case TEXT_LINE_BOLDDASHDOT:   return UNDERLINE_BOLDDASHDOT;
      74           0 :                 case TEXT_LINE_BOLDDASHDOTDOT:return UNDERLINE_BOLDDASHDOT;
      75           0 :                 case TEXT_LINE_BOLDWAVE:      return UNDERLINE_BOLDWAVE;
      76             :             }
      77             :         }
      78             : 
      79           0 :         TextStrikeout mapFontStrikeoutToTextStrikeout(FontStrikeout eFontStrikeout)
      80             :         {
      81           0 :             switch(eFontStrikeout)
      82             :             {
      83           0 :                 case STRIKEOUT_SINGLE:  return TEXT_STRIKEOUT_SINGLE;
      84           0 :                 case STRIKEOUT_DOUBLE:  return TEXT_STRIKEOUT_DOUBLE;
      85           0 :                 case STRIKEOUT_BOLD:    return TEXT_STRIKEOUT_BOLD;
      86           0 :                 case STRIKEOUT_SLASH:   return TEXT_STRIKEOUT_SLASH;
      87           0 :                 case STRIKEOUT_X:       return TEXT_STRIKEOUT_X;
      88             :                 // FontStrikeout_FORCE_EQUAL_SIZE, STRIKEOUT_NONE, STRIKEOUT_DONTKNOW
      89           0 :                 default:                return TEXT_STRIKEOUT_NONE;
      90             :             }
      91             :         }
      92             : 
      93           0 :         FontStrikeout mapTextStrikeoutToFontStrikeout(TextStrikeout eTextStrikeout)
      94             :         {
      95           0 :             switch(eTextStrikeout)
      96             :             {
      97           0 :                 default: /*case primitive2d::TEXT_STRIKEOUT_NONE*/  return STRIKEOUT_NONE;
      98           0 :                 case TEXT_STRIKEOUT_SINGLE:     return STRIKEOUT_SINGLE;
      99           0 :                 case TEXT_STRIKEOUT_DOUBLE:     return STRIKEOUT_DOUBLE;
     100           0 :                 case TEXT_STRIKEOUT_BOLD:       return STRIKEOUT_BOLD;
     101           0 :                 case TEXT_STRIKEOUT_SLASH:      return STRIKEOUT_SLASH;
     102           0 :                 case TEXT_STRIKEOUT_X:          return STRIKEOUT_X;
     103             :             }
     104             :         }
     105             : 
     106             :     } // end of namespace primitive2d
     107             : } // end of namespace drawinglayer
     108             : 
     109             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10