LCOV - code coverage report
Current view: top level - include/vcl - vclenum.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 3 0.0 %
Date: 2014-04-14 Functions: 0 2 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             : #ifndef INCLUDED_VCL_VCLENUM_HXX
      21             : #define INCLUDED_VCL_VCLENUM_HXX
      22             : 
      23             : #include <rsc/rsc-vcl-shared-types.hxx>
      24             : #include <sal/types.h>
      25             : #include <tools/fontenum.hxx>
      26             : 
      27             : enum ExtTimeFieldFormat { EXTTIMEF_24H_SHORT, EXTTIMEF_24H_LONG,
      28             :                           EXTTIMEF_12H_SHORT, EXTTIMEF_12H_LONG,
      29             :                           EXTTIMEF_DURATION_SHORT, EXTTIMEF_DURATION_LONG };
      30             : 
      31             : enum ExtDateFieldFormat { XTDATEF_SYSTEM_SHORT, XTDATEF_SYSTEM_SHORT_YY, XTDATEF_SYSTEM_SHORT_YYYY,
      32             :                           XTDATEF_SYSTEM_LONG,
      33             :                           XTDATEF_SHORT_DDMMYY, XTDATEF_SHORT_MMDDYY, XTDATEF_SHORT_YYMMDD,
      34             :                           XTDATEF_SHORT_DDMMYYYY, XTDATEF_SHORT_MMDDYYYY, XTDATEF_SHORT_YYYYMMDD,
      35             :                           XTDATEF_SHORT_YYMMDD_DIN5008, XTDATEF_SHORT_YYYYMMDD_DIN5008, ExtDateFieldFormat_FORCE_EQUAL_SIZE=SAL_MAX_ENUM };
      36             : 
      37             : enum GradientStyle
      38             : {
      39             :     GradientStyle_LINEAR = 0,
      40             :     GradientStyle_AXIAL = 1,
      41             :     GradientStyle_RADIAL = 2,
      42             :     GradientStyle_ELLIPTICAL = 3,
      43             :     GradientStyle_SQUARE = 4,
      44             :     GradientStyle_RECT = 5,
      45             :     GradientStyle_FORCE_EQUAL_SIZE = SAL_MAX_ENUM
      46             : };
      47             : 
      48             : // to avoid conflicts with enum's declared otherwise
      49             : #define HATCH_SINGLE            HatchStyle_SINGLE
      50             : #define HATCH_DOUBLE            HatchStyle_DOUBLE
      51             : #define HATCH_TRIPLE            HatchStyle_TRIPLE
      52             : #define HATCH_FORCE_EQUAL_SIZE  HatchStyle_FORCE_EQUAL_SIZE
      53             : 
      54             : enum HatchStyle
      55             : {
      56             :     HATCH_SINGLE = 0,
      57             :     HATCH_DOUBLE = 1,
      58             :     HATCH_TRIPLE = 2,
      59             :     HatchStyle_FORCE_EQUAL_SIZE = SAL_MAX_ENUM
      60             : };
      61             : 
      62             : // to avoid conflicts with enum's declared otherwise
      63             : #define LINE_NONE               LineStyle_NONE
      64             : #define LINE_SOLID              LineStyle_SOLID
      65             : #define LINE_DASH               LineStyle_DASH
      66             : #define LINE_FORCE_EQUAL_SIZE   LineStyle_FORCE_EQUAL_SIZE
      67             : 
      68             : enum LineStyle
      69             : {
      70             :     LINE_NONE = 0,
      71             :     LINE_SOLID = 1,
      72             :     LINE_DASH = 2,
      73             :     LineStyle_FORCE_EQUAL_SIZE = SAL_MAX_ENUM
      74             : };
      75             : 
      76             : enum RasterOp { ROP_OVERPAINT, ROP_XOR, ROP_0, ROP_1, ROP_INVERT };
      77             : 
      78             : enum FontAutoHint { AUTOHINT_DONTKNOW, AUTOHINT_FALSE, AUTOHINT_TRUE };
      79             : 
      80             : enum FontHinting { HINTING_DONTKNOW, HINTING_FALSE, HINTING_TRUE };
      81             : 
      82             : enum FontHintStyle { HINT_NONE, HINT_SLIGHT, HINT_MEDIUM, HINT_FULL };
      83             : 
      84             : typedef sal_uInt32 sal_UCS4;    // TODO: this should be moved to rtl
      85             : 
      86             : enum OutDevSupportType { OutDevSupport_TransparentRect, OutDevSupport_B2DClip, OutDevSupport_B2DDraw };
      87             : 
      88             : struct ItalicMatrix
      89             : {
      90             :     double xx, xy, yx, yy;
      91           0 :     ItalicMatrix() : xx(1), xy(0), yx(0), yy(1) {}
      92             : };
      93             : 
      94             : inline bool operator ==(const ItalicMatrix& a, const ItalicMatrix& b)
      95             : {
      96             :     return a.xx == b.xx && a.xy == b.xy && a.yx == b.yx && a.yy == b.yy;
      97             : }
      98             : 
      99           0 : inline bool operator !=(const ItalicMatrix& a, const ItalicMatrix& b)
     100             : {
     101           0 :     return a.xx != b.xx || a.xy != b.xy || a.yx != b.yx || a.yy != b.yy;
     102             : }
     103             : 
     104             : enum VclAlign
     105             : {
     106             :     VCL_ALIGN_FILL,
     107             :     VCL_ALIGN_START,
     108             :     VCL_ALIGN_END,
     109             :     VCL_ALIGN_CENTER
     110             : };
     111             : 
     112             : enum VclPackType
     113             : {
     114             :     VCL_PACK_START = 0,
     115             :     VCL_PACK_END = 1
     116             : };
     117             : 
     118             : // Return Values from Dialog::Execute
     119             : //!!! bei Aenderungen /basic/source/runtime/methods.cxx msgbox anpassen
     120             : 
     121             : enum VclResponseType
     122             : {
     123             :     RET_CANCEL  = 0,
     124             :     RET_OK      = 1,
     125             :     RET_YES     = 2,
     126             :     RET_NO      = 3,
     127             :     RET_RETRY   = 4,
     128             :     RET_IGNORE  = 5,
     129             :     RET_ACCEPT  = 6,
     130             :     RET_CLOSE   = 7,
     131             :     RET_APPLY   = 8,
     132             :     RET_NONE    = 9,
     133             :     RET_HELP    = 10
     134             : };
     135             : 
     136             : #endif // INCLUDED_VCL_VCLENUM_HXX
     137             : 
     138             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10