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

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

Issue 2251453002: Only create widgets if really needed. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 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 | « fpdfsdk/fsdk_baseform.cpp ('k') | fpdfsdk/javascript/Field.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>
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 public: 256 public:
257 explicit CPDFSDK_InterForm(CPDFSDK_Document* pDocument); 257 explicit CPDFSDK_InterForm(CPDFSDK_Document* pDocument);
258 ~CPDFSDK_InterForm() override; 258 ~CPDFSDK_InterForm() override;
259 259
260 CPDF_InterForm* GetInterForm() const { return m_pInterForm.get(); } 260 CPDF_InterForm* GetInterForm() const { return m_pInterForm.get(); }
261 CPDFSDK_Document* GetDocument() const { return m_pDocument; } 261 CPDFSDK_Document* GetDocument() const { return m_pDocument; }
262 262
263 FX_BOOL HighlightWidgets(); 263 FX_BOOL HighlightWidgets();
264 264
265 CPDFSDK_Widget* GetSibling(CPDFSDK_Widget* pWidget, FX_BOOL bNext) const; 265 CPDFSDK_Widget* GetSibling(CPDFSDK_Widget* pWidget, FX_BOOL bNext) const;
266 CPDFSDK_Widget* GetWidget(CPDF_FormControl* pControl) const; 266 CPDFSDK_Widget* GetWidget(CPDF_FormControl* pControl,
267 bool createIfNeeded) const;
267 void GetWidgets(const CFX_WideString& sFieldName, 268 void GetWidgets(const CFX_WideString& sFieldName,
268 std::vector<CPDFSDK_Widget*>* widgets) const; 269 std::vector<CPDFSDK_Widget*>* widgets) const;
269 void GetWidgets(CPDF_FormField* pField, 270 void GetWidgets(CPDF_FormField* pField,
270 std::vector<CPDFSDK_Widget*>* widgets) const; 271 std::vector<CPDFSDK_Widget*>* widgets) const;
271 272
272 void AddMap(CPDF_FormControl* pControl, CPDFSDK_Widget* pWidget); 273 void AddMap(CPDF_FormControl* pControl, CPDFSDK_Widget* pWidget);
273 void RemoveMap(CPDF_FormControl* pControl); 274 void RemoveMap(CPDF_FormControl* pControl);
274 275
275 void EnableCalculate(FX_BOOL bEnabled); 276 void EnableCalculate(FX_BOOL bEnabled);
276 FX_BOOL IsCalculateEnabled() const; 277 FX_BOOL IsCalculateEnabled() const;
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 const CPDFSDK_Annot* p2); 398 const CPDFSDK_Annot* p2);
398 399
399 TabOrder m_eTabOrder; 400 TabOrder m_eTabOrder;
400 CPDFSDK_PageView* m_pPageView; 401 CPDFSDK_PageView* m_pPageView;
401 CFX_ByteString m_sType; 402 CFX_ByteString m_sType;
402 CFX_ByteString m_sSubType; 403 CFX_ByteString m_sSubType;
403 std::vector<CPDFSDK_Annot*> m_Annots; 404 std::vector<CPDFSDK_Annot*> m_Annots;
404 }; 405 };
405 406
406 #endif // FPDFSDK_INCLUDE_FSDK_BASEFORM_H_ 407 #endif // FPDFSDK_INCLUDE_FSDK_BASEFORM_H_
OLDNEW
« no previous file with comments | « fpdfsdk/fsdk_baseform.cpp ('k') | fpdfsdk/javascript/Field.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698