OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef XFA_FDE_CSS_FDE_CSSDATATABLE_H_ | 7 #ifndef XFA_FDE_CSS_FDE_CSSDATATABLE_H_ |
8 #define XFA_FDE_CSS_FDE_CSSDATATABLE_H_ | 8 #define XFA_FDE_CSS_FDE_CSSDATATABLE_H_ |
9 | 9 |
10 #include "core/fxcrt/fx_system.h" | 10 #include "core/fxcrt/fx_system.h" |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 | 123 |
124 const FDE_CSSPROPERTYVALUETABLE* FDE_GetCSSPropertyValueByName( | 124 const FDE_CSSPROPERTYVALUETABLE* FDE_GetCSSPropertyValueByName( |
125 const CFX_WideStringC& wsName); | 125 const CFX_WideStringC& wsName); |
126 const FDE_CSSPROPERTYVALUETABLE* FDE_GetCSSPropertyValueByEnum( | 126 const FDE_CSSPROPERTYVALUETABLE* FDE_GetCSSPropertyValueByEnum( |
127 FDE_CSSPROPERTYVALUE eName); | 127 FDE_CSSPROPERTYVALUE eName); |
128 | 128 |
129 struct FDE_CSSMEDIATYPETABLE { | 129 struct FDE_CSSMEDIATYPETABLE { |
130 uint16_t wHash; | 130 uint16_t wHash; |
131 uint16_t wValue; | 131 uint16_t wValue; |
132 }; | 132 }; |
133 typedef FDE_CSSMEDIATYPETABLE const* FDE_LPCCSSMEDIATYPETABLE; | 133 |
134 FDE_LPCCSSMEDIATYPETABLE FDE_GetCSSMediaTypeByName( | 134 const FDE_CSSMEDIATYPETABLE* FDE_GetCSSMediaTypeByName( |
135 const CFX_WideStringC& wsName); | 135 const CFX_WideStringC& wsName); |
| 136 |
136 struct FDE_CSSLENGTHUNITTABLE { | 137 struct FDE_CSSLENGTHUNITTABLE { |
137 uint16_t wHash; | 138 uint16_t wHash; |
138 uint16_t wValue; | 139 uint16_t wValue; |
139 }; | 140 }; |
140 typedef FDE_CSSLENGTHUNITTABLE const* FDE_LPCCSSLENGTHUNITTABLE; | 141 |
141 FDE_LPCCSSLENGTHUNITTABLE FDE_GetCSSLengthUnitByName( | 142 const FDE_CSSLENGTHUNITTABLE* FDE_GetCSSLengthUnitByName( |
142 const CFX_WideStringC& wsName); | 143 const CFX_WideStringC& wsName); |
| 144 |
143 struct FDE_CSSCOLORTABLE { | 145 struct FDE_CSSCOLORTABLE { |
144 uint32_t dwHash; | 146 uint32_t dwHash; |
145 FX_ARGB dwValue; | 147 FX_ARGB dwValue; |
146 }; | 148 }; |
147 typedef FDE_CSSCOLORTABLE const* FDE_LPCCSSCOLORTABLE; | |
148 FDE_LPCCSSCOLORTABLE FDE_GetCSSColorByName(const CFX_WideStringC& wsName); | |
149 | 149 |
150 struct FDE_CSSPERSUDOTABLE { | 150 const FDE_CSSCOLORTABLE* FDE_GetCSSColorByName(const CFX_WideStringC& wsName); |
151 FDE_CSSPERSUDO eName; | 151 |
| 152 struct FDE_CSSPSEUDOTABLE { |
| 153 FDE_CSSPSEUDO eName; |
152 const FX_WCHAR* pszName; | 154 const FX_WCHAR* pszName; |
153 uint32_t dwHash; | 155 uint32_t dwHash; |
154 }; | 156 }; |
155 typedef FDE_CSSPERSUDOTABLE const* FDE_LPCCSSPERSUDOTABLE; | |
156 | 157 |
157 FDE_LPCCSSPERSUDOTABLE FDE_GetCSSPersudoByEnum(FDE_CSSPERSUDO ePersudo); | 158 const FDE_CSSPSEUDOTABLE* FDE_GetCSSPseudoByEnum(FDE_CSSPSEUDO ePseudo); |
| 159 |
158 bool FDE_ParseCSSNumber(const FX_WCHAR* pszValue, | 160 bool FDE_ParseCSSNumber(const FX_WCHAR* pszValue, |
159 int32_t iValueLen, | 161 int32_t iValueLen, |
160 FX_FLOAT& fValue, | 162 FX_FLOAT& fValue, |
161 FDE_CSSPRIMITIVETYPE& eUnit); | 163 FDE_CSSPRIMITIVETYPE& eUnit); |
162 bool FDE_ParseCSSString(const FX_WCHAR* pszValue, | 164 bool FDE_ParseCSSString(const FX_WCHAR* pszValue, |
163 int32_t iValueLen, | 165 int32_t iValueLen, |
164 int32_t* iOffset, | 166 int32_t* iOffset, |
165 int32_t* iLength); | 167 int32_t* iLength); |
166 bool FDE_ParseCSSColor(const FX_WCHAR* pszValue, | 168 bool FDE_ParseCSSColor(const FX_WCHAR* pszValue, |
167 int32_t iValueLen, | 169 int32_t iValueLen, |
168 FX_ARGB& dwColor); | 170 FX_ARGB& dwColor); |
169 bool FDE_ParseCSSURI(const FX_WCHAR* pszValue, | 171 bool FDE_ParseCSSURI(const FX_WCHAR* pszValue, |
170 int32_t* iOffset, | 172 int32_t* iOffset, |
171 int32_t* iLength); | 173 int32_t* iLength); |
172 | 174 |
173 #endif // XFA_FDE_CSS_FDE_CSSDATATABLE_H_ | 175 #endif // XFA_FDE_CSS_FDE_CSSDATATABLE_H_ |
OLD | NEW |