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 23 matching lines...) Expand all Loading... |
34 | 34 |
35 #ifdef PDF_ENABLE_XFA | 35 #ifdef PDF_ENABLE_XFA |
36 typedef enum _PDFSDK_XFAAActionType { | 36 typedef enum _PDFSDK_XFAAActionType { |
37 PDFSDK_XFA_Click = 0, | 37 PDFSDK_XFA_Click = 0, |
38 PDFSDK_XFA_Full, | 38 PDFSDK_XFA_Full, |
39 PDFSDK_XFA_PreOpen, | 39 PDFSDK_XFA_PreOpen, |
40 PDFSDK_XFA_PostOpen | 40 PDFSDK_XFA_PostOpen |
41 } PDFSDK_XFAAActionType; | 41 } PDFSDK_XFAAActionType; |
42 #endif // PDF_ENABLE_XFA | 42 #endif // PDF_ENABLE_XFA |
43 | 43 |
44 typedef struct _PDFSDK_FieldAction { | 44 struct PDFSDK_FieldAction { |
45 _PDFSDK_FieldAction() { | 45 PDFSDK_FieldAction() { |
46 bModifier = FALSE; | 46 bModifier = FALSE; |
47 bShift = FALSE; | 47 bShift = FALSE; |
48 nCommitKey = 0; | 48 nCommitKey = 0; |
49 bKeyDown = FALSE; | 49 bKeyDown = FALSE; |
50 nSelEnd = nSelStart = 0; | 50 nSelEnd = nSelStart = 0; |
51 bWillCommit = FALSE; | 51 bWillCommit = FALSE; |
52 bFieldFull = FALSE; | 52 bFieldFull = FALSE; |
53 bRC = TRUE; | 53 bRC = TRUE; |
54 } | 54 } |
55 | 55 |
56 FX_BOOL bModifier; // in | 56 FX_BOOL bModifier; // in |
57 FX_BOOL bShift; // in | 57 FX_BOOL bShift; // in |
58 int nCommitKey; // in | 58 int nCommitKey; // in |
59 CFX_WideString sChange; // in[out] | 59 CFX_WideString sChange; // in[out] |
60 CFX_WideString sChangeEx; // in | 60 CFX_WideString sChangeEx; // in |
61 FX_BOOL bKeyDown; // in | 61 FX_BOOL bKeyDown; // in |
62 int nSelEnd; // in[out] | 62 int nSelEnd; // in[out] |
63 int nSelStart; // in[out] | 63 int nSelStart; // in[out] |
64 CFX_WideString sValue; // in[out] | 64 CFX_WideString sValue; // in[out] |
65 FX_BOOL bWillCommit; // in | 65 FX_BOOL bWillCommit; // in |
66 FX_BOOL bFieldFull; // in | 66 FX_BOOL bFieldFull; // in |
67 FX_BOOL bRC; // in[out] | 67 FX_BOOL bRC; // in[out] |
68 } PDFSDK_FieldAction; | 68 }; |
69 | 69 |
70 class CPDFSDK_Widget : public CPDFSDK_BAAnnot { | 70 class CPDFSDK_Widget : public CPDFSDK_BAAnnot { |
71 public: | 71 public: |
72 #ifdef PDF_ENABLE_XFA | 72 #ifdef PDF_ENABLE_XFA |
73 IXFA_Widget* GetMixXFAWidget() const; | 73 IXFA_Widget* GetMixXFAWidget() const; |
74 IXFA_Widget* GetGroupMixXFAWidget(); | 74 IXFA_Widget* GetGroupMixXFAWidget(); |
75 IXFA_WidgetHandler* GetXFAWidgetHandler() const; | 75 IXFA_WidgetHandler* GetXFAWidgetHandler() const; |
76 | 76 |
77 FX_BOOL HasXFAAAction(PDFSDK_XFAAActionType eXFAAAT); | 77 FX_BOOL HasXFAAAction(PDFSDK_XFAAActionType eXFAAAT); |
78 FX_BOOL OnXFAAAction(PDFSDK_XFAAActionType eXFAAAT, | 78 FX_BOOL OnXFAAAction(PDFSDK_XFAAActionType eXFAAAT, |
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 const CPDFSDK_Annot* p2); | 395 const CPDFSDK_Annot* p2); |
396 | 396 |
397 TabOrder m_eTabOrder; | 397 TabOrder m_eTabOrder; |
398 CPDFSDK_PageView* m_pPageView; | 398 CPDFSDK_PageView* m_pPageView; |
399 CFX_ByteString m_sType; | 399 CFX_ByteString m_sType; |
400 CFX_ByteString m_sSubType; | 400 CFX_ByteString m_sSubType; |
401 std::vector<CPDFSDK_Annot*> m_Annots; | 401 std::vector<CPDFSDK_Annot*> m_Annots; |
402 }; | 402 }; |
403 | 403 |
404 #endif // FPDFSDK_INCLUDE_FSDK_BASEFORM_H_ | 404 #endif // FPDFSDK_INCLUDE_FSDK_BASEFORM_H_ |
OLD | NEW |