Version 4.3.0.0.beta1, tag libreoffice-4.3.0.0.beta1
[LibreOffice.git] / include / vcl / outdevstate.hxx
blob39aedcbab390963188f8ab3fcb20827c21ef0d30
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_OUTDEVSTATE_HXX
21 #define INCLUDED_VCL_OUTDEVSTATE_HXX
23 #include <sal/types.h>
25 #include <vcl/mapmod.hxx>
26 #include <vcl/region.hxx>
27 #include <vcl/font.hxx>
28 #include <vcl/vclenum.hxx>
30 #include <tools/gen.hxx>
31 #include <tools/color.hxx>
32 #include <tools/fontenum.hxx>
34 // Flags for OutputDevice::Push() and OutDevState
35 #define PUSH_LINECOLOR ((sal_uInt16)0x0001)
36 #define PUSH_FILLCOLOR ((sal_uInt16)0x0002)
37 #define PUSH_FONT ((sal_uInt16)0x0004)
38 #define PUSH_TEXTCOLOR ((sal_uInt16)0x0008)
39 #define PUSH_MAPMODE ((sal_uInt16)0x0010)
40 #define PUSH_CLIPREGION ((sal_uInt16)0x0020)
41 #define PUSH_RASTEROP ((sal_uInt16)0x0040)
42 #define PUSH_TEXTFILLCOLOR ((sal_uInt16)0x0080)
43 #define PUSH_TEXTALIGN ((sal_uInt16)0x0100)
44 #define PUSH_REFPOINT ((sal_uInt16)0x0200)
45 #define PUSH_TEXTLINECOLOR ((sal_uInt16)0x0400)
46 #define PUSH_TEXTLAYOUTMODE ((sal_uInt16)0x0800)
47 #define PUSH_TEXTLANGUAGE ((sal_uInt16)0x1000)
48 #define PUSH_OVERLINECOLOR ((sal_uInt16)0x2000)
49 #define PUSH_ALLTEXT (PUSH_TEXTCOLOR | PUSH_TEXTFILLCOLOR | PUSH_TEXTLINECOLOR | PUSH_OVERLINECOLOR | PUSH_TEXTALIGN | PUSH_TEXTLAYOUTMODE | PUSH_TEXTLANGUAGE)
50 #define PUSH_ALLFONT (PUSH_ALLTEXT | PUSH_FONT)
51 #define PUSH_ALL ((sal_uInt16)0xFFFF)
53 class OutDevState
55 public:
56 ~OutDevState();
58 MapMode* mpMapMode;
59 bool mbMapActive;
60 Region* mpClipRegion;
61 Color* mpLineColor;
62 Color* mpFillColor;
63 Font* mpFont;
64 Color* mpTextColor;
65 Color* mpTextFillColor;
66 Color* mpTextLineColor;
67 Color* mpOverlineColor;
68 Point* mpRefPoint;
69 TextAlign meTextAlign;
70 RasterOp meRasterOp;
71 sal_uLong mnTextLayoutMode;
72 LanguageType meTextLanguage;
73 sal_uInt16 mnFlags;
76 #endif // INCLUDED_VCL_OUTDEVSTATE_HXX
78 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */