1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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
32 enum class ExtDateFieldFormat
34 SystemShort
, SystemShortYY
, SystemShortYYYY
,
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
51 FORCE_EQUAL_SIZE
= SAL_MAX_ENUM
59 FORCE_EQUAL_SIZE
= SAL_MAX_ENUM
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
};
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
)
106 enum class VclPackType
113 // Return Values from Dialog::Execute
114 //!!! in case of changes adjust /basic/source/runtime/methods.cxx msgbox
128 #endif // INCLUDED_VCL_VCLENUM_HXX
130 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */