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 FPDFSDK_INCLUDE_FSDK_BASEFORM_H_ | 7 #ifndef FPDFSDK_INCLUDE_FSDK_BASEFORM_H_ |
8 #define FPDFSDK_INCLUDE_FSDK_BASEFORM_H_ | 8 #define FPDFSDK_INCLUDE_FSDK_BASEFORM_H_ |
9 | 9 |
10 #if _FX_OS_ == _FX_ANDROID_ | 10 #if _FX_OS_ == _FX_ANDROID_ |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 | 264 |
265 public: | 265 public: |
266 FX_BOOL IsNeedHighLight(int nFieldType); | 266 FX_BOOL IsNeedHighLight(int nFieldType); |
267 void RemoveAllHighLight(); | 267 void RemoveAllHighLight(); |
268 void SetHighlightAlpha(uint8_t alpha) { m_iHighlightAlpha = alpha; } | 268 void SetHighlightAlpha(uint8_t alpha) { m_iHighlightAlpha = alpha; } |
269 uint8_t GetHighlightAlpha() { return m_iHighlightAlpha; } | 269 uint8_t GetHighlightAlpha() { return m_iHighlightAlpha; } |
270 void SetHighlightColor(FX_COLORREF clr, int nFieldType); | 270 void SetHighlightColor(FX_COLORREF clr, int nFieldType); |
271 FX_COLORREF GetHighlightColor(int nFieldType); | 271 FX_COLORREF GetHighlightColor(int nFieldType); |
272 | 272 |
273 private: | 273 private: |
274 FX_COLORREF m_aHighlightColor[6]; | 274 static const int kNumFieldTypes = 6; |
| 275 FX_COLORREF m_aHighlightColor[kNumFieldTypes]; |
275 uint8_t m_iHighlightAlpha; | 276 uint8_t m_iHighlightAlpha; |
276 FX_BOOL m_bNeedHightlight[6]; | 277 FX_BOOL m_bNeedHightlight[kNumFieldTypes]; |
277 }; | 278 }; |
278 | 279 |
279 #define BAI_STRUCTURE 0 | 280 #define BAI_STRUCTURE 0 |
280 #define BAI_ROW 1 | 281 #define BAI_ROW 1 |
281 #define BAI_COLUMN 2 | 282 #define BAI_COLUMN 2 |
282 | 283 |
283 #define CPDFSDK_Annots CFX_ArrayTemplate<CPDFSDK_Annot*> | 284 #define CPDFSDK_Annots CFX_ArrayTemplate<CPDFSDK_Annot*> |
284 #define CPDFSDK_SortAnnots CGW_ArrayTemplate<CPDFSDK_Annot*> | 285 #define CPDFSDK_SortAnnots CGW_ArrayTemplate<CPDFSDK_Annot*> |
285 class CBA_AnnotIterator { | 286 class CBA_AnnotIterator { |
286 public: | 287 public: |
(...skipping 14 matching lines...) Expand all Loading... |
301 static CPDF_Rect GetAnnotRect(CPDFSDK_Annot* pAnnot); | 302 static CPDF_Rect GetAnnotRect(CPDFSDK_Annot* pAnnot); |
302 | 303 |
303 CPDFSDK_PageView* m_pPageView; | 304 CPDFSDK_PageView* m_pPageView; |
304 CFX_ByteString m_sType; | 305 CFX_ByteString m_sType; |
305 CFX_ByteString m_sSubType; | 306 CFX_ByteString m_sSubType; |
306 int m_nTabs; | 307 int m_nTabs; |
307 CPDFSDK_Annots m_Annots; | 308 CPDFSDK_Annots m_Annots; |
308 }; | 309 }; |
309 | 310 |
310 #endif // FPDFSDK_INCLUDE_FSDK_BASEFORM_H_ | 311 #endif // FPDFSDK_INCLUDE_FSDK_BASEFORM_H_ |
OLD | NEW |