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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
49 CFX_WideString sChange; // in[out] | 49 CFX_WideString sChange; // in[out] |
50 CFX_WideString sChangeEx; // in | 50 CFX_WideString sChangeEx; // in |
51 FX_BOOL bKeyDown; // in | 51 FX_BOOL bKeyDown; // in |
52 int nSelEnd; // in[out] | 52 int nSelEnd; // in[out] |
53 int nSelStart; // in[out] | 53 int nSelStart; // in[out] |
54 CFX_WideString sValue; // in[out] | 54 CFX_WideString sValue; // in[out] |
55 FX_BOOL bWillCommit; // in | 55 FX_BOOL bWillCommit; // in |
56 FX_BOOL bFieldFull; // in | 56 FX_BOOL bFieldFull; // in |
57 FX_BOOL bRC; // in[out] | 57 FX_BOOL bRC; // in[out] |
58 } PDFSDK_FieldAction; | 58 } PDFSDK_FieldAction; |
59 | |
59 class CPDFSDK_Widget : public CPDFSDK_Annot { | 60 class CPDFSDK_Widget : public CPDFSDK_Annot { |
60 public: | 61 public: |
61 CPDFSDK_Widget(CPDF_Annot* pAnnot, | 62 CPDFSDK_Widget(CPDF_Annot* pAnnot, |
62 CPDFSDK_PageView* pPageView, | 63 CPDFSDK_PageView* pPageView, |
63 CPDFSDK_InterForm* pInterForm); | 64 CPDFSDK_InterForm* pInterForm); |
64 virtual ~CPDFSDK_Widget(); | 65 ~CPDFSDK_Widget() override; |
65 | 66 |
66 virtual CFX_ByteString GetSubType() const; | 67 // CPDFSDK_Annot |
67 | 68 CFX_ByteString GetSubType() const override; |
68 virtual CPDF_Action GetAAction(CPDF_AAction::AActionType eAAT); | 69 CPDF_Action GetAAction(CPDF_AAction::AActionType eAAT) override; |
70 // define layout order to 2. | |
Tom Sepez
2015/08/14 19:59:18
This comment, on the other hand, in useless. WTF
| |
71 int GetLayoutOrder() const override { return 2; } | |
69 | 72 |
70 int GetFieldType() const; | 73 int GetFieldType() const; |
71 // define layout order to 2. | |
72 virtual int GetLayoutOrder() const { return 2; } | |
73 /* | |
74 FIELDFLAG_READONLY | |
Tom Sepez
2015/08/14 19:59:18
I like this comment; it explains what kinds of #de
Lei Zhang
2015/08/14 21:23:49
I added more documentation here.
| |
75 FIELDFLAG_REQUIRED | |
76 FIELDFLAG_NOEXPORT | |
77 */ | |
78 | 74 |
79 int GetFieldFlags() const; | 75 int GetFieldFlags() const; |
80 int GetRotate() const; | 76 int GetRotate() const; |
81 | 77 |
82 FX_BOOL GetFillColor(FX_COLORREF& color) const; | 78 FX_BOOL GetFillColor(FX_COLORREF& color) const; |
83 FX_BOOL GetBorderColor(FX_COLORREF& color) const; | 79 FX_BOOL GetBorderColor(FX_COLORREF& color) const; |
84 FX_BOOL GetTextColor(FX_COLORREF& color) const; | 80 FX_BOOL GetTextColor(FX_COLORREF& color) const; |
85 FX_FLOAT GetFontSize() const; | 81 FX_FLOAT GetFontSize() const; |
86 | 82 |
87 int GetSelectedIndex(int nIndex) const; | 83 int GetSelectedIndex(int nIndex) const; |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
299 static CPDF_Rect GetAnnotRect(CPDFSDK_Annot* pAnnot); | 295 static CPDF_Rect GetAnnotRect(CPDFSDK_Annot* pAnnot); |
300 | 296 |
301 CPDFSDK_PageView* m_pPageView; | 297 CPDFSDK_PageView* m_pPageView; |
302 CFX_ByteString m_sType; | 298 CFX_ByteString m_sType; |
303 CFX_ByteString m_sSubType; | 299 CFX_ByteString m_sSubType; |
304 int m_nTabs; | 300 int m_nTabs; |
305 CPDFSDK_Annots m_Annots; | 301 CPDFSDK_Annots m_Annots; |
306 }; | 302 }; |
307 | 303 |
308 #endif // FPDFSDK_INCLUDE_FSDK_BASEFORM_H_ | 304 #endif // FPDFSDK_INCLUDE_FSDK_BASEFORM_H_ |
OLD | NEW |