OLD | NEW |
1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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_CPDFSDK_WIDGET_H_ | 7 #ifndef FPDFSDK_INCLUDE_CPDFSDK_WIDGET_H_ |
8 #define FPDFSDK_INCLUDE_CPDFSDK_WIDGET_H_ | 8 #define FPDFSDK_INCLUDE_CPDFSDK_WIDGET_H_ |
9 | 9 |
10 #include <set> | 10 #include <set> |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 #endif // PDF_ENABLE_XFA | 71 #endif // PDF_ENABLE_XFA |
72 | 72 |
73 CPDFSDK_Widget(CPDF_Annot* pAnnot, | 73 CPDFSDK_Widget(CPDF_Annot* pAnnot, |
74 CPDFSDK_PageView* pPageView, | 74 CPDFSDK_PageView* pPageView, |
75 CPDFSDK_InterForm* pInterForm); | 75 CPDFSDK_InterForm* pInterForm); |
76 ~CPDFSDK_Widget() override; | 76 ~CPDFSDK_Widget() override; |
77 | 77 |
78 void AddObserver(Observer* observer); | 78 void AddObserver(Observer* observer); |
79 void RemoveObserver(Observer* observer); | 79 void RemoveObserver(Observer* observer); |
80 | 80 |
81 CFX_ByteString GetSubType() const override; | 81 bool IsSignatureWidget() const override; |
82 CPDF_Action GetAAction(CPDF_AAction::AActionType eAAT) override; | 82 CPDF_Action GetAAction(CPDF_AAction::AActionType eAAT) override; |
83 FX_BOOL IsAppearanceValid() override; | 83 FX_BOOL IsAppearanceValid() override; |
84 | 84 |
85 int GetLayoutOrder() const override; | 85 int GetLayoutOrder() const override; |
86 | 86 |
87 int GetFieldType() const; | 87 int GetFieldType() const; |
88 int GetFieldFlags() const; | 88 int GetFieldFlags() const; |
89 int GetRotate() const; | 89 int GetRotate() const; |
90 | 90 |
91 FX_BOOL GetFillColor(FX_COLORREF& color) const; | 91 FX_BOOL GetFillColor(FX_COLORREF& color) const; |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 int32_t m_nValueAge; | 182 int32_t m_nValueAge; |
183 std::set<Observer*> m_Observers; | 183 std::set<Observer*> m_Observers; |
184 | 184 |
185 #ifdef PDF_ENABLE_XFA | 185 #ifdef PDF_ENABLE_XFA |
186 mutable CXFA_FFWidget* m_hMixXFAWidget; | 186 mutable CXFA_FFWidget* m_hMixXFAWidget; |
187 mutable CXFA_FFWidgetHandler* m_pWidgetHandler; | 187 mutable CXFA_FFWidgetHandler* m_pWidgetHandler; |
188 #endif // PDF_ENABLE_XFA | 188 #endif // PDF_ENABLE_XFA |
189 }; | 189 }; |
190 | 190 |
191 #endif // FPDFSDK_INCLUDE_CPDFSDK_WIDGET_H_ | 191 #endif // FPDFSDK_INCLUDE_CPDFSDK_WIDGET_H_ |
OLD | NEW |