Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(152)

Side by Side Diff: fpdfsdk/include/fsdk_baseform.h

Issue 2062313002: Make code compile with clang_use_chrome_plugin (part IV) (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: remove unused file Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fpdfsdk/include/fsdk_baseannot.h ('k') | fpdfsdk/include/fsdk_define.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include <map> 10 #include <map>
11 #include <vector> 11 #include <vector>
12 12
13 #include "core/fpdfdoc/include/fpdf_doc.h" 13 #include "core/fpdfdoc/include/fpdf_doc.h"
14 #include "core/fxcrt/include/fx_basic.h" 14 #include "core/fxcrt/include/fx_basic.h"
15 #include "core/fxge/include/fx_dib.h" 15 #include "core/fxge/include/fx_dib.h"
16 #include "fpdfsdk/include/fsdk_baseannot.h" 16 #include "fpdfsdk/include/fsdk_baseannot.h"
17 17
18 #ifdef PDF_ENABLE_XFA
19 #include "xfa/fxfa/include/xfa_ffwidgethandler.h"
20 #endif // PDF_ENABLE_XFA
21
22 #if _FX_OS_ == _FX_ANDROID_ 18 #if _FX_OS_ == _FX_ANDROID_
23 #include "time.h" 19 #include "time.h"
24 #else 20 #else
25 #include <ctime> 21 #include <ctime>
26 #endif 22 #endif
27 23
28 class CPDFSDK_Annot; 24 class CPDFSDK_Annot;
29 class CPDFSDK_Document; 25 class CPDFSDK_Document;
30 class CPDFSDK_InterForm; 26 class CPDFSDK_InterForm;
31 class CPDFSDK_PageView; 27 class CPDFSDK_PageView;
32 class CPDF_Action; 28 class CPDF_Action;
33 class CPDF_FormField; 29 class CPDF_FormField;
34 struct CPWL_Color; 30 struct CPWL_Color;
35 31
36 #ifdef PDF_ENABLE_XFA 32 #ifdef PDF_ENABLE_XFA
33 class CXFA_FFWidgetHandler;
34
37 typedef enum _PDFSDK_XFAAActionType { 35 typedef enum _PDFSDK_XFAAActionType {
38 PDFSDK_XFA_Click = 0, 36 PDFSDK_XFA_Click = 0,
39 PDFSDK_XFA_Full, 37 PDFSDK_XFA_Full,
40 PDFSDK_XFA_PreOpen, 38 PDFSDK_XFA_PreOpen,
41 PDFSDK_XFA_PostOpen 39 PDFSDK_XFA_PostOpen
42 } PDFSDK_XFAAActionType; 40 } PDFSDK_XFAAActionType;
43 #endif // PDF_ENABLE_XFA 41 #endif // PDF_ENABLE_XFA
44 42
45 struct PDFSDK_FieldAction { 43 struct PDFSDK_FieldAction {
46 PDFSDK_FieldAction() { 44 PDFSDK_FieldAction();
47 bModifier = FALSE; 45 PDFSDK_FieldAction(const PDFSDK_FieldAction& other) = delete;
48 bShift = FALSE;
49 nCommitKey = 0;
50 bKeyDown = FALSE;
51 nSelEnd = nSelStart = 0;
52 bWillCommit = FALSE;
53 bFieldFull = FALSE;
54 bRC = TRUE;
55 }
56 46
57 FX_BOOL bModifier; // in 47 FX_BOOL bModifier; // in
58 FX_BOOL bShift; // in 48 FX_BOOL bShift; // in
59 int nCommitKey; // in 49 int nCommitKey; // in
60 CFX_WideString sChange; // in[out] 50 CFX_WideString sChange; // in[out]
61 CFX_WideString sChangeEx; // in 51 CFX_WideString sChangeEx; // in
62 FX_BOOL bKeyDown; // in 52 FX_BOOL bKeyDown; // in
63 int nSelEnd; // in[out] 53 int nSelEnd; // in[out]
64 int nSelStart; // in[out] 54 int nSelStart; // in[out]
65 CFX_WideString sValue; // in[out] 55 CFX_WideString sValue; // in[out]
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 CPDFSDK_Widget(CPDF_Annot* pAnnot, 87 CPDFSDK_Widget(CPDF_Annot* pAnnot,
98 CPDFSDK_PageView* pPageView, 88 CPDFSDK_PageView* pPageView,
99 CPDFSDK_InterForm* pInterForm); 89 CPDFSDK_InterForm* pInterForm);
100 ~CPDFSDK_Widget() override; 90 ~CPDFSDK_Widget() override;
101 91
102 // CPDFSDK_Annot 92 // CPDFSDK_Annot
103 CFX_ByteString GetSubType() const override; 93 CFX_ByteString GetSubType() const override;
104 CPDF_Action GetAAction(CPDF_AAction::AActionType eAAT) override; 94 CPDF_Action GetAAction(CPDF_AAction::AActionType eAAT) override;
105 FX_BOOL IsAppearanceValid() override; 95 FX_BOOL IsAppearanceValid() override;
106 96
107 int GetLayoutOrder() const override { return 2; } 97 int GetLayoutOrder() const override;
108 98
109 int GetFieldType() const; 99 int GetFieldType() const;
110 100
111 // Possible values from PDF 32000-1:2008, table 221. 101 // Possible values from PDF 32000-1:2008, table 221.
112 // FIELDFLAG_READONLY 102 // FIELDFLAG_READONLY
113 // FIELDFLAG_REQUIRED 103 // FIELDFLAG_REQUIRED
114 // FIELDFLAG_NOEXPORT 104 // FIELDFLAG_NOEXPORT
115 int GetFieldFlags() const; 105 int GetFieldFlags() const;
116 int GetRotate() const; 106 int GetRotate() const;
117 107
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 215
226 #ifdef PDF_ENABLE_XFA 216 #ifdef PDF_ENABLE_XFA
227 class CPDFSDK_XFAWidget : public CPDFSDK_Annot { 217 class CPDFSDK_XFAWidget : public CPDFSDK_Annot {
228 public: 218 public:
229 CPDFSDK_XFAWidget(CXFA_FFWidget* pAnnot, 219 CPDFSDK_XFAWidget(CXFA_FFWidget* pAnnot,
230 CPDFSDK_PageView* pPageView, 220 CPDFSDK_PageView* pPageView,
231 CPDFSDK_InterForm* pInterForm); 221 CPDFSDK_InterForm* pInterForm);
232 ~CPDFSDK_XFAWidget() override {} 222 ~CPDFSDK_XFAWidget() override {}
233 223
234 FX_BOOL IsXFAField() override; 224 FX_BOOL IsXFAField() override;
235 CXFA_FFWidget* GetXFAWidget() const override { return m_hXFAWidget; } 225 CXFA_FFWidget* GetXFAWidget() const override;
236 CFX_ByteString GetType() const override; 226 CFX_ByteString GetType() const override;
237 CFX_ByteString GetSubType() const override { return ""; } 227 CFX_ByteString GetSubType() const override;
238 CFX_FloatRect GetRect() const override; 228 CFX_FloatRect GetRect() const override;
239 229
240 CPDFSDK_InterForm* GetInterForm() { return m_pInterForm; } 230 CPDFSDK_InterForm* GetInterForm() { return m_pInterForm; }
241 231
242 private: 232 private:
243 CPDFSDK_InterForm* m_pInterForm; 233 CPDFSDK_InterForm* m_pInterForm;
244 CXFA_FFWidget* m_hXFAWidget; 234 CXFA_FFWidget* m_hXFAWidget;
245 }; 235 };
246 #endif // PDF_ENABLE_XFA 236 #endif // PDF_ENABLE_XFA
247 237
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 const CPDFSDK_Annot* p2); 380 const CPDFSDK_Annot* p2);
391 381
392 TabOrder m_eTabOrder; 382 TabOrder m_eTabOrder;
393 CPDFSDK_PageView* m_pPageView; 383 CPDFSDK_PageView* m_pPageView;
394 CFX_ByteString m_sType; 384 CFX_ByteString m_sType;
395 CFX_ByteString m_sSubType; 385 CFX_ByteString m_sSubType;
396 std::vector<CPDFSDK_Annot*> m_Annots; 386 std::vector<CPDFSDK_Annot*> m_Annots;
397 }; 387 };
398 388
399 #endif // FPDFSDK_INCLUDE_FSDK_BASEFORM_H_ 389 #endif // FPDFSDK_INCLUDE_FSDK_BASEFORM_H_
OLDNEW
« no previous file with comments | « fpdfsdk/include/fsdk_baseannot.h ('k') | fpdfsdk/include/fsdk_define.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698