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

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

Issue 1473503002: Introduce "underlying types" to abstract XFA differences. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: rebase past Jun's CL. Created 5 years 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 | « no previous file | fpdfsdk/include/fsdk_define.h » ('j') | fpdfsdk/src/fsdk_baseform.cpp » ('J')
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_BASEANNOT_H_ 7 #ifndef FPDFSDK_INCLUDE_FSDK_BASEANNOT_H_
8 #define FPDFSDK_INCLUDE_FSDK_BASEANNOT_H_ 8 #define FPDFSDK_INCLUDE_FSDK_BASEANNOT_H_
9 9
10 #if _FX_OS_ == _FX_ANDROID_ 10 #if _FX_OS_ == _FX_ANDROID_
11 #include "time.h" 11 #include "time.h"
12 #else 12 #else
13 #include <ctime> 13 #include <ctime>
14 #endif 14 #endif
15 15
16 #include "core/include/fpdfdoc/fpdf_doc.h" 16 #include "core/include/fpdfdoc/fpdf_doc.h"
17 #include "core/include/fxcrt/fx_basic.h" 17 #include "core/include/fxcrt/fx_basic.h"
18 #include "fx_systemhandler.h" 18 #include "fpdfsdk/include/fsdk_define.h"
19 #include "fpdfsdk/include/fx_systemhandler.h"
19 20
20 class CPDFSDK_PageView; 21 class CPDFSDK_PageView;
21 class CPDF_Annot; 22 class CPDF_Annot;
22 class CPDF_Page; 23 class CPDF_Page;
23 class CPDF_Rect; 24 class CPDF_Rect;
24 class CPDF_Matrix; 25 class CPDF_Matrix;
25 class CPDF_RenderOptions; 26 class CPDF_RenderOptions;
26 class CFX_RenderDevice; 27 class CFX_RenderDevice;
27 28
28 #define CFX_IntArray CFX_ArrayTemplate<int> 29 #define CFX_IntArray CFX_ArrayTemplate<int>
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 virtual CFX_ByteString GetType() const { return ""; } 85 virtual CFX_ByteString GetType() const { return ""; }
85 virtual CFX_ByteString GetSubType() const { return ""; } 86 virtual CFX_ByteString GetSubType() const { return ""; }
86 87
87 virtual void SetRect(const CPDF_Rect& rect) {} 88 virtual void SetRect(const CPDF_Rect& rect) {}
88 virtual CPDF_Rect GetRect() const { return CPDF_Rect(); } 89 virtual CPDF_Rect GetRect() const { return CPDF_Rect(); }
89 90
90 virtual void Annot_OnDraw(CFX_RenderDevice* pDevice, 91 virtual void Annot_OnDraw(CFX_RenderDevice* pDevice,
91 CPDF_Matrix* pUser2Device, 92 CPDF_Matrix* pUser2Device,
92 CPDF_RenderOptions* pOptions) {} 93 CPDF_RenderOptions* pOptions) {}
93 94
95 UnderlyingPageType* GetUnderlyingPage();
94 CPDF_Page* GetPDFPage(); 96 CPDF_Page* GetPDFPage();
95 CPDFXFA_Page* GetPDFXFAPage(); 97 CPDFXFA_Page* GetPDFXFAPage();
96 98
97 void SetPage(CPDFSDK_PageView* pPageView) { m_pPageView = pPageView; } 99 void SetPage(CPDFSDK_PageView* pPageView) { m_pPageView = pPageView; }
98 CPDFSDK_PageView* GetPageView() const { return m_pPageView; } 100 CPDFSDK_PageView* GetPageView() const { return m_pPageView; }
99 101
100 // Tab Order 102 // Tab Order
101 int GetTabOrder(); 103 int GetTabOrder();
102 void SetTabOrder(int iTabOrder); 104 void SetTabOrder(int iTabOrder);
103 105
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 const CFX_ByteString& sAPState = ""); 204 const CFX_ByteString& sAPState = "");
203 205
204 protected: 206 protected:
205 CPDF_Annot* m_pAnnot; 207 CPDF_Annot* m_pAnnot;
206 208
207 private: 209 private:
208 FX_BOOL CreateFormFiller(); 210 FX_BOOL CreateFormFiller();
209 }; 211 };
210 212
211 #endif // FPDFSDK_INCLUDE_FSDK_BASEANNOT_H_ 213 #endif // FPDFSDK_INCLUDE_FSDK_BASEANNOT_H_
OLDNEW
« no previous file with comments | « no previous file | fpdfsdk/include/fsdk_define.h » ('j') | fpdfsdk/src/fsdk_baseform.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698