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

Generated by: LCOV version 1.10