source: trunk/src/gui/text/qcssparser_p.h@ 463

Last change on this file since 463 was 2, checked in by Dmitry A. Kuminov, 17 years ago

Initially imported qt-all-opensource-src-4.5.1 from Trolltech.

File size: 23.8 KB
Line 
1/****************************************************************************
2**
3** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
4** Contact: Qt Software Information ([email protected])
5**
6** This file is part of the QtGui module of the Qt Toolkit.
7**
8** $QT_BEGIN_LICENSE:LGPL$
9** Commercial Usage
10** Licensees holding valid Qt Commercial licenses may use this file in
11** accordance with the Qt Commercial License Agreement provided with the
12** Software or, alternatively, in accordance with the terms contained in
13** a written agreement between you and Nokia.
14**
15** GNU Lesser General Public License Usage
16** Alternatively, this file may be used under the terms of the GNU Lesser
17** General Public License version 2.1 as published by the Free Software
18** Foundation and appearing in the file LICENSE.LGPL included in the
19** packaging of this file. Please review the following information to
20** ensure the GNU Lesser General Public License version 2.1 requirements
21** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
22**
23** In addition, as a special exception, Nokia gives you certain
24** additional rights. These rights are described in the Nokia Qt LGPL
25** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
26** package.
27**
28** GNU General Public License Usage
29** Alternatively, this file may be used under the terms of the GNU
30** General Public License version 3.0 as published by the Free Software
31** Foundation and appearing in the file LICENSE.GPL included in the
32** packaging of this file. Please review the following information to
33** ensure the GNU General Public License version 3.0 requirements will be
34** met: http://www.gnu.org/copyleft/gpl.html.
35**
36** If you are unsure which license is appropriate for your use, please
37** contact the sales department at [email protected].
38** $QT_END_LICENSE$
39**
40****************************************************************************/
41
42#ifndef QCSSPARSER_P_H
43#define QCSSPARSER_P_H
44
45//
46// W A R N I N G
47// -------------
48//
49// This file is not part of the Qt API. It exists for the convenience
50// of the QLibrary class. This header file may change from
51// version to version without notice, or even be removed.
52//
53// We mean it.
54//
55
56#include <QtCore/QStringList>
57#include <QtCore/QVector>
58#include <QtCore/QVariant>
59#include <QtCore/QPair>
60#include <QtCore/QSize>
61#include <QtCore/QMultiHash>
62#include <QtGui/QFont>
63#include <QtGui/QPalette>
64#include <QtGui/QIcon>
65#include <QtCore/QSharedData>
66
67
68#ifndef QT_NO_CSSPARSER
69
70QT_BEGIN_NAMESPACE
71
72namespace QCss
73{
74
75enum Property {
76 UnknownProperty,
77 BackgroundColor,
78 Color,
79 Float,
80 Font,
81 FontFamily,
82 FontSize,
83 FontStyle,
84 FontWeight,
85 Margin,
86 MarginBottom,
87 MarginLeft,
88 MarginRight,
89 MarginTop,
90 QtBlockIndent,
91 QtListIndent,
92 QtParagraphType,
93 QtTableType,
94 QtUserState,
95 TextDecoration,
96 TextIndent,
97 TextUnderlineStyle,
98 VerticalAlignment,
99 Whitespace,
100 QtSelectionForeground,
101 QtSelectionBackground,
102 Border,
103 BorderLeft,
104 BorderRight,
105 BorderTop,
106 BorderBottom,
107 Padding,
108 PaddingLeft,
109 PaddingRight,
110 PaddingTop,
111 PaddingBottom,
112 PageBreakBefore,
113 PageBreakAfter,
114 QtAlternateBackground,
115 BorderLeftStyle,
116 BorderRightStyle,
117 BorderTopStyle,
118 BorderBottomStyle,
119 BorderStyles,
120 BorderLeftColor,
121 BorderRightColor,
122 BorderTopColor,
123 BorderBottomColor,
124 BorderColor,
125 BorderLeftWidth,
126 BorderRightWidth,
127 BorderTopWidth,
128 BorderBottomWidth,
129 BorderWidth,
130 BorderTopLeftRadius,
131 BorderTopRightRadius,
132 BorderBottomLeftRadius,
133 BorderBottomRightRadius,
134 BorderRadius,
135 Background,
136 BackgroundOrigin,
137 BackgroundClip,
138 BackgroundRepeat,
139 BackgroundPosition,
140 BackgroundAttachment,
141 BackgroundImage,
142 BorderImage,
143 QtSpacing,
144 Width,
145 Height,
146 MinimumWidth,
147 MinimumHeight,
148 MaximumWidth,
149 MaximumHeight,
150 QtImage,
151 Left,
152 Right,
153 Top,
154 Bottom,
155 QtOrigin,
156 QtPosition,
157 Position,
158 QtStyleFeatures,
159 QtBackgroundRole,
160 ListStyleType,
161 ListStyle,
162 QtImageAlignment,
163 TextAlignment,
164 Outline,
165 OutlineOffset,
166 OutlineWidth,
167 OutlineColor,
168 OutlineStyle,
169 OutlineRadius,
170 OutlineTopLeftRadius,
171 OutlineTopRightRadius,
172 OutlineBottomLeftRadius,
173 OutlineBottomRightRadius,
174 FontVariant,
175 TextTransform,
176 NumProperties
177};
178
179enum KnownValue {
180 UnknownValue,
181 Value_Normal,
182 Value_Pre,
183 Value_NoWrap,
184 Value_PreWrap,
185 Value_Small,
186 Value_Medium,
187 Value_Large,
188 Value_XLarge,
189 Value_XXLarge,
190 Value_Italic,
191 Value_Oblique,
192 Value_Bold,
193 Value_Underline,
194 Value_Overline,
195 Value_LineThrough,
196 Value_Sub,
197 Value_Super,
198 Value_Left,
199 Value_Right,
200 Value_Top,
201 Value_Bottom,
202 Value_Center,
203 Value_Native,
204 Value_Solid,
205 Value_Dotted,
206 Value_Dashed,
207 Value_DotDash,
208 Value_DotDotDash,
209 Value_Double,
210 Value_Groove,
211 Value_Ridge,