| OLD | NEW | 
|    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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  236   CFX_ByteString GetType() const override; |  236   CFX_ByteString GetType() const override; | 
|  237   CFX_ByteString GetSubType() const override { return ""; } |  237   CFX_ByteString GetSubType() const override { return ""; } | 
|  238   CFX_FloatRect GetRect() const override; |  238   CFX_FloatRect GetRect() const override; | 
|  239  |  239  | 
|  240   CPDFSDK_InterForm* GetInterForm() { return m_pInterForm; } |  240   CPDFSDK_InterForm* GetInterForm() { return m_pInterForm; } | 
|  241  |  241  | 
|  242  private: |  242  private: | 
|  243   CPDFSDK_InterForm* m_pInterForm; |  243   CPDFSDK_InterForm* m_pInterForm; | 
|  244   CXFA_FFWidget* m_hXFAWidget; |  244   CXFA_FFWidget* m_hXFAWidget; | 
|  245 }; |  245 }; | 
|  246 #define CPDFSDK_XFAWidgetMap \ |  | 
|  247   CFX_MapPtrTemplate<CXFA_FFWidget*, CPDFSDK_XFAWidget*> |  | 
|  248 #define CPDFSDK_FieldSynchronizeMap CFX_MapPtrTemplate<CPDF_FormField*, int> |  | 
|  249 #endif  // PDF_ENABLE_XFA |  246 #endif  // PDF_ENABLE_XFA | 
|  250  |  247  | 
|  251 class CPDFSDK_InterForm : public CPDF_FormNotify { |  248 class CPDFSDK_InterForm : public CPDF_FormNotify { | 
|  252  public: |  249  public: | 
|  253   explicit CPDFSDK_InterForm(CPDFSDK_Document* pDocument); |  250   explicit CPDFSDK_InterForm(CPDFSDK_Document* pDocument); | 
|  254   ~CPDFSDK_InterForm() override; |  251   ~CPDFSDK_InterForm() override; | 
|  255  |  252  | 
|  256   CPDF_InterForm* GetInterForm() const { return m_pInterForm; } |  253   CPDF_InterForm* GetInterForm() const { return m_pInterForm; } | 
|  257   CPDFSDK_Document* GetDocument() const { return m_pDocument; } |  254   CPDFSDK_Document* GetDocument() const { return m_pDocument; } | 
|  258  |  255  | 
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  334   FX_BOOL FDFToURLEncodedData(uint8_t*& pBuf, FX_STRSIZE& nBufSize); |  331   FX_BOOL FDFToURLEncodedData(uint8_t*& pBuf, FX_STRSIZE& nBufSize); | 
|  335   int GetPageIndexByAnnotDict(CPDF_Document* pDocument, |  332   int GetPageIndexByAnnotDict(CPDF_Document* pDocument, | 
|  336                               CPDF_Dictionary* pAnnotDict) const; |  333                               CPDF_Dictionary* pAnnotDict) const; | 
|  337  |  334  | 
|  338   using CPDFSDK_WidgetMap = std::map<CPDF_FormControl*, CPDFSDK_Widget*>; |  335   using CPDFSDK_WidgetMap = std::map<CPDF_FormControl*, CPDFSDK_Widget*>; | 
|  339  |  336  | 
|  340   CPDFSDK_Document* m_pDocument; |  337   CPDFSDK_Document* m_pDocument; | 
|  341   CPDF_InterForm* m_pInterForm; |  338   CPDF_InterForm* m_pInterForm; | 
|  342   CPDFSDK_WidgetMap m_Map; |  339   CPDFSDK_WidgetMap m_Map; | 
|  343 #ifdef PDF_ENABLE_XFA |  340 #ifdef PDF_ENABLE_XFA | 
|  344   CPDFSDK_XFAWidgetMap m_XFAMap; |  341   std::map<CXFA_FFWidget*, CPDFSDK_XFAWidget*> m_XFAMap; | 
|  345   CPDFSDK_FieldSynchronizeMap m_FieldSynchronizeMap; |  | 
|  346   FX_BOOL m_bXfaCalculate; |  342   FX_BOOL m_bXfaCalculate; | 
|  347   FX_BOOL m_bXfaValidationsEnabled; |  343   FX_BOOL m_bXfaValidationsEnabled; | 
|  348 #endif  // PDF_ENABLE_XFA |  344 #endif  // PDF_ENABLE_XFA | 
|  349   FX_BOOL m_bCalculate; |  345   FX_BOOL m_bCalculate; | 
|  350   FX_BOOL m_bBusy; |  346   FX_BOOL m_bBusy; | 
|  351  |  347  | 
|  352  public: |  348  public: | 
|  353   FX_BOOL IsNeedHighLight(int nFieldType); |  349   FX_BOOL IsNeedHighLight(int nFieldType); | 
|  354   void RemoveAllHighLight(); |  350   void RemoveAllHighLight(); | 
|  355   void SetHighlightAlpha(uint8_t alpha) { m_iHighlightAlpha = alpha; } |  351   void SetHighlightAlpha(uint8_t alpha) { m_iHighlightAlpha = alpha; } | 
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  394                                      const CPDFSDK_Annot* p2); |  390                                      const CPDFSDK_Annot* p2); | 
|  395  |  391  | 
|  396   TabOrder m_eTabOrder; |  392   TabOrder m_eTabOrder; | 
|  397   CPDFSDK_PageView* m_pPageView; |  393   CPDFSDK_PageView* m_pPageView; | 
|  398   CFX_ByteString m_sType; |  394   CFX_ByteString m_sType; | 
|  399   CFX_ByteString m_sSubType; |  395   CFX_ByteString m_sSubType; | 
|  400   std::vector<CPDFSDK_Annot*> m_Annots; |  396   std::vector<CPDFSDK_Annot*> m_Annots; | 
|  401 }; |  397 }; | 
|  402  |  398  | 
|  403 #endif  // FPDFSDK_INCLUDE_FSDK_BASEFORM_H_ |  399 #endif  // FPDFSDK_INCLUDE_FSDK_BASEFORM_H_ | 
| OLD | NEW |