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

Side by Side Diff: fpdfsdk/include/fpdfxfa/fpdfxfa_doc.h

Issue 1301793002: Merge to XFA: CFX_MapByteStringToPtr considered harmful (combo patch). (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 4 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 | « core/src/fxge/ge/fx_ge_text.cpp ('k') | fpdfsdk/include/fsdk_annothandler.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 FPDFXFA_DOC_H_ 7 #ifndef FPDFXFA_DOC_H_
8 #define FPDFXFA_DOC_H_ 8 #define FPDFXFA_DOC_H_
9 9
10 #include "../../../xfa/include/fxfa/fxfa.h" 10 #include "../../../xfa/include/fxfa/fxfa.h"
(...skipping 22 matching lines...) Expand all
33 CPDFXFA_Page* GetPage(int page_index); 33 CPDFXFA_Page* GetPage(int page_index);
34 CPDFXFA_Page* GetPage(IXFA_PageView* pPage); 34 CPDFXFA_Page* GetPage(IXFA_PageView* pPage);
35 void RemovePage(CPDFXFA_Page* page); 35 void RemovePage(CPDFXFA_Page* page);
36 int GetDocType() { return m_iDocType; } 36 int GetDocType() { return m_iDocType; }
37 37
38 CPDFSDK_Document* GetSDKDocument(CPDFDoc_Environment* pFormFillEnv); 38 CPDFSDK_Document* GetSDKDocument(CPDFDoc_Environment* pFormFillEnv);
39 void ReleaseSDKDoc(); 39 void ReleaseSDKDoc();
40 40
41 void FXRect2PDFRect(const CFX_RectF& fxRectF, CPDF_Rect& pdfRect); 41 void FXRect2PDFRect(const CFX_RectF& fxRectF, CPDF_Rect& pdfRect);
42 42
43 public:
44 virtual void SetChangeMark(IXFA_Doc* hDoc); 43 virtual void SetChangeMark(IXFA_Doc* hDoc);
45 virtual FX_BOOL GetChangeMark(IXFA_Doc* hDoc); 44 virtual FX_BOOL GetChangeMark(IXFA_Doc* hDoc);
46 // used in dynamic xfa, dwFlags refer to XFA_INVALIDATE_XXX macros. 45 // used in dynamic xfa, dwFlags refer to XFA_INVALIDATE_XXX macros.
47 virtual void InvalidateRect(IXFA_PageView* pPageView, 46 virtual void InvalidateRect(IXFA_PageView* pPageView,
48 const CFX_RectF& rt, 47 const CFX_RectF& rt,
49 FX_DWORD dwFlags = 0); 48 FX_DWORD dwFlags = 0);
50 // used in static xfa, dwFlags refer to XFA_INVALIDATE_XXX macros. 49 // used in static xfa, dwFlags refer to XFA_INVALIDATE_XXX macros.
51 virtual void InvalidateRect(IXFA_Widget* hWidget, FX_DWORD dwFlags = 0); 50 virtual void InvalidateRect(IXFA_Widget* hWidget, FX_DWORD dwFlags = 0);
52 // show or hide caret 51 // show or hide caret
53 virtual void DisplayCaret(IXFA_Widget* hWidget, 52 virtual void DisplayCaret(IXFA_Widget* hWidget,
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 pDoc->ReleaseDoc(m_pXFADoc); 212 pDoc->ReleaseDoc(m_pXFADoc);
214 m_pXFADoc = NULL; 213 m_pXFADoc = NULL;
215 m_pXFADocView = NULL; 214 m_pXFADocView = NULL;
216 } 215 }
217 } 216 }
218 217
219 CPDF_Document* m_pPDFDoc; 218 CPDF_Document* m_pPDFDoc;
220 IXFA_Doc* m_pXFADoc; 219 IXFA_Doc* m_pXFADoc;
221 IXFA_DocView* m_pXFADocView; 220 IXFA_DocView* m_pXFADocView;
222 CFX_ArrayTemplate<CPDFXFA_Page*> m_XFAPageList; 221 CFX_ArrayTemplate<CPDFXFA_Page*> m_XFAPageList;
223
224 CPDFSDK_Document* m_pSDKDoc; 222 CPDFSDK_Document* m_pSDKDoc;
225 CPDFXFA_App* m_pApp; 223 CPDFXFA_App* m_pApp;
226
227 CFX_MapByteStringToPtr m_XfaGlobalProperty;
228
229 CFX_MapByteStringToPtr m_ValueMap;
230
231 IFXJS_Context* m_pJSContext; 224 IFXJS_Context* m_pJSContext;
232
233 int m_iDocType; 225 int m_iDocType;
234 }; 226 };
235 227
236 #endif // FPDFXFA_DOC_H_ 228 #endif // FPDFXFA_DOC_H_
OLDNEW
« no previous file with comments | « core/src/fxge/ge/fx_ge_text.cpp ('k') | fpdfsdk/include/fsdk_annothandler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698