Version 5.4.3.2, tag libreoffice-5.4.3.2
[LibreOffice.git] / include / vcl / vclenum.hxx
blob10e97df02f3cbf30adcd01aa127222c9f56c8f4e
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_VCL_VCLENUM_HXX
21 #define INCLUDED_VCL_VCLENUM_HXX
23 #include <rsc/rsc-vcl-shared-types.hxx>
24 #include <sal/types.h>
25 #include <tools/fontenum.hxx>
27 enum class ExtTimeFieldFormat
29 Short24H, Long24H
32 enum class ExtDateFieldFormat
34 SystemShort, SystemShortYY, SystemShortYYYY,
35 SystemLong,
36 ShortDDMMYY, ShortMMDDYY, ShortYYMMDD,
37 ShortDDMMYYYY, ShortMMDDYYYY, ShortYYYYMMDD,
38 ShortYYMMDD_DIN5008, ShortYYYYMMDD_DIN5008,
39 FORCE_EQUAL_SIZE=SAL_MAX_ENUM
42 // this appears to be a direct copy of css::awt::GradientStyle
43 enum class GradientStyle
45 Linear = 0,
46 Axial = 1,
47 Radial = 2,
48 Elliptical = 3,
49 Square = 4,
50 Rect = 5,
51 FORCE_EQUAL_SIZE = SAL_MAX_ENUM
54 enum class HatchStyle
56 Single = 0,
57 Double = 1,
58 Triple = 2,
59 FORCE_EQUAL_SIZE = SAL_MAX_ENUM
62 enum class LineStyle
64 NONE = 0,
65 Solid = 1,
66 Dash = 2,
67 FORCE_EQUAL_SIZE = SAL_MAX_ENUM
70 enum class RasterOp { OverPaint, Xor, N0, N1, Invert };
72 enum class FontAutoHint { DontKnow, No, Yes };
74 enum class FontHinting { DontKnow, No, Yes };
76 enum class FontHintStyle { NONE, Slight, Medium, Full };
78 typedef sal_uInt32 sal_UCS4; // TODO: this should be moved to rtl
80 enum class OutDevSupportType { TransparentRect, B2DDraw };
82 struct ItalicMatrix
84 double xx, xy, yx, yy;
85 ItalicMatrix() : xx(1), xy(0), yx(0), yy(1) {}
88 inline bool operator ==(const ItalicMatrix& a, const ItalicMatrix& b)
90 return a.xx == b.xx && a.xy == b.xy && a.yx == b.yx && a.yy == b.yy;
93 inline bool operator !=(const ItalicMatrix& a, const ItalicMatrix& b)
95 return !(a == b);
98 enum class VclAlign
100 Fill,
101 Start,
102 End,
103 Center
106 enum class VclPackType
108 Start = 0,
109 End = 1,
110 LAST = End
113 // Return Values from Dialog::Execute
114 //!!! in case of changes adjust /basic/source/runtime/methods.cxx msgbox
116 enum VclResponseType
118 RET_CANCEL = 0,
119 RET_OK = 1,
120 RET_YES = 2,
121 RET_NO = 3,
122 RET_RETRY = 4,
123 RET_IGNORE = 5,
124 RET_CLOSE = 7,
125 RET_HELP = 10
128 #endif // INCLUDED_VCL_VCLENUM_HXX
130 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */