| 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 120 #ifndef PDF_ENABLE_XFA | 120 #ifndef PDF_ENABLE_XFA | 
| 121   CFX_WideString GetValue() const; | 121   CFX_WideString GetValue() const; | 
| 122 #else | 122 #else | 
| 123   CFX_WideString GetValue(FX_BOOL bDisplay = TRUE) const; | 123   CFX_WideString GetValue(FX_BOOL bDisplay = TRUE) const; | 
| 124 #endif  // PDF_ENABLE_XFA | 124 #endif  // PDF_ENABLE_XFA | 
| 125   CFX_WideString GetDefaultValue() const; | 125   CFX_WideString GetDefaultValue() const; | 
| 126   CFX_WideString GetOptionLabel(int nIndex) const; | 126   CFX_WideString GetOptionLabel(int nIndex) const; | 
| 127   int CountOptions() const; | 127   int CountOptions() const; | 
| 128   FX_BOOL IsOptionSelected(int nIndex) const; | 128   FX_BOOL IsOptionSelected(int nIndex) const; | 
| 129   int GetTopVisibleIndex() const; | 129   int GetTopVisibleIndex() const; | 
| 130   FX_BOOL IsChecked() const; | 130   bool IsChecked() const; | 
| 131   /* | 131   /* | 
| 132   BF_ALIGN_LEFT | 132   BF_ALIGN_LEFT | 
| 133   BF_ALIGN_MIDDL | 133   BF_ALIGN_MIDDL | 
| 134   BF_ALIGN_RIGHT | 134   BF_ALIGN_RIGHT | 
| 135   */ | 135   */ | 
| 136   int GetAlignment() const; | 136   int GetAlignment() const; | 
| 137   int GetMaxLen() const; | 137   int GetMaxLen() const; | 
| 138 #ifdef PDF_ENABLE_XFA | 138 #ifdef PDF_ENABLE_XFA | 
| 139   CFX_WideString GetName() const; | 139   CFX_WideString GetName() const; | 
| 140 #endif  // PDF_ENABLE_XFA | 140 #endif  // PDF_ENABLE_XFA | 
| 141   CFX_WideString GetAlternateName() const; | 141   CFX_WideString GetAlternateName() const; | 
| 142 | 142 | 
| 143   // Set Properties. | 143   // Set Properties. | 
| 144   void SetCheck(FX_BOOL bChecked, FX_BOOL bNotify); | 144   void SetCheck(bool bChecked, bool bNotify); | 
| 145   void SetValue(const CFX_WideString& sValue, FX_BOOL bNotify); | 145   void SetValue(const CFX_WideString& sValue, FX_BOOL bNotify); | 
| 146   void SetDefaultValue(const CFX_WideString& sValue); | 146   void SetDefaultValue(const CFX_WideString& sValue); | 
| 147   void SetOptionSelection(int index, FX_BOOL bSelected, FX_BOOL bNotify); | 147   void SetOptionSelection(int index, FX_BOOL bSelected, FX_BOOL bNotify); | 
| 148   void ClearSelection(FX_BOOL bNotify); | 148   void ClearSelection(FX_BOOL bNotify); | 
| 149   void SetTopVisibleIndex(int index); | 149   void SetTopVisibleIndex(int index); | 
| 150 | 150 | 
| 151 #ifdef PDF_ENABLE_XFA | 151 #ifdef PDF_ENABLE_XFA | 
| 152   void ResetAppearance(FX_BOOL bValueChanged); | 152   void ResetAppearance(FX_BOOL bValueChanged); | 
| 153 #endif  // PDF_ENABLE_XFA | 153 #endif  // PDF_ENABLE_XFA | 
| 154   void ResetAppearance(const FX_WCHAR* sValue, FX_BOOL bValueChanged); | 154   void ResetAppearance(const FX_WCHAR* sValue, FX_BOOL bValueChanged); | 
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 291   FX_BOOL DoAction_Hide(const CPDF_Action& action); | 291   FX_BOOL DoAction_Hide(const CPDF_Action& action); | 
| 292   FX_BOOL DoAction_SubmitForm(const CPDF_Action& action); | 292   FX_BOOL DoAction_SubmitForm(const CPDF_Action& action); | 
| 293   FX_BOOL DoAction_ResetForm(const CPDF_Action& action); | 293   FX_BOOL DoAction_ResetForm(const CPDF_Action& action); | 
| 294   FX_BOOL DoAction_ImportData(const CPDF_Action& action); | 294   FX_BOOL DoAction_ImportData(const CPDF_Action& action); | 
| 295 | 295 | 
| 296   std::vector<CPDF_FormField*> GetFieldFromObjects( | 296   std::vector<CPDF_FormField*> GetFieldFromObjects( | 
| 297       const std::vector<CPDF_Object*>& objects) const; | 297       const std::vector<CPDF_Object*>& objects) const; | 
| 298   FX_BOOL IsValidField(CPDF_Dictionary* pFieldDict); | 298   FX_BOOL IsValidField(CPDF_Dictionary* pFieldDict); | 
| 299   FX_BOOL SubmitFields(const CFX_WideString& csDestination, | 299   FX_BOOL SubmitFields(const CFX_WideString& csDestination, | 
| 300                        const std::vector<CPDF_FormField*>& fields, | 300                        const std::vector<CPDF_FormField*>& fields, | 
| 301                        FX_BOOL bIncludeOrExclude, | 301                        bool bIncludeOrExclude, | 
| 302                        FX_BOOL bUrlEncoded); | 302                        bool bUrlEncoded); | 
| 303   FX_BOOL SubmitForm(const CFX_WideString& sDestination, FX_BOOL bUrlEncoded); | 303   FX_BOOL SubmitForm(const CFX_WideString& sDestination, FX_BOOL bUrlEncoded); | 
| 304   FX_BOOL ExportFormToFDFTextBuf(CFX_ByteTextBuf& textBuf); | 304   FX_BOOL ExportFormToFDFTextBuf(CFX_ByteTextBuf& textBuf); | 
| 305   FX_BOOL ExportFieldsToFDFTextBuf(const std::vector<CPDF_FormField*>& fields, | 305   FX_BOOL ExportFieldsToFDFTextBuf(const std::vector<CPDF_FormField*>& fields, | 
| 306                                    FX_BOOL bIncludeOrExclude, | 306                                    bool bIncludeOrExclude, | 
| 307                                    CFX_ByteTextBuf& textBuf); | 307                                    CFX_ByteTextBuf& textBuf); | 
| 308   CFX_WideString GetTemporaryFileName(const CFX_WideString& sFileExt); | 308   CFX_WideString GetTemporaryFileName(const CFX_WideString& sFileExt); | 
| 309 | 309 | 
| 310 #ifdef PDF_ENABLE_XFA | 310 #ifdef PDF_ENABLE_XFA | 
| 311   void SynchronizeField(CPDF_FormField* pFormField, FX_BOOL bSynchronizeElse); | 311   void SynchronizeField(CPDF_FormField* pFormField, FX_BOOL bSynchronizeElse); | 
| 312 #endif  // PDF_ENABLE_XFA | 312 #endif  // PDF_ENABLE_XFA | 
| 313 | 313 | 
| 314  private: | 314  private: | 
| 315   // CPDF_FormNotify: | 315   // CPDF_FormNotify: | 
| 316   int BeforeValueChange(CPDF_FormField* pField, | 316   int BeforeValueChange(CPDF_FormField* pField, | 
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 390                                      const CPDFSDK_Annot* p2); | 390                                      const CPDFSDK_Annot* p2); | 
| 391 | 391 | 
| 392   TabOrder m_eTabOrder; | 392   TabOrder m_eTabOrder; | 
| 393   CPDFSDK_PageView* m_pPageView; | 393   CPDFSDK_PageView* m_pPageView; | 
| 394   CFX_ByteString m_sType; | 394   CFX_ByteString m_sType; | 
| 395   CFX_ByteString m_sSubType; | 395   CFX_ByteString m_sSubType; | 
| 396   std::vector<CPDFSDK_Annot*> m_Annots; | 396   std::vector<CPDFSDK_Annot*> m_Annots; | 
| 397 }; | 397 }; | 
| 398 | 398 | 
| 399 #endif  // FPDFSDK_INCLUDE_FSDK_BASEFORM_H_ | 399 #endif  // FPDFSDK_INCLUDE_FSDK_BASEFORM_H_ | 
| OLD | NEW | 
|---|