| 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 CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_ | 7 #ifndef CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_ |
| 8 #define CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_ | 8 #define CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_ |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 861 int GetSelectedOptionIndex(int index); | 861 int GetSelectedOptionIndex(int index); |
| 862 | 862 |
| 863 FX_BOOL IsOptionSelected(int iOptIndex); | 863 FX_BOOL IsOptionSelected(int iOptIndex); |
| 864 | 864 |
| 865 FX_BOOL SelectOption(int iOptIndex, | 865 FX_BOOL SelectOption(int iOptIndex, |
| 866 FX_BOOL bSelected, | 866 FX_BOOL bSelected, |
| 867 FX_BOOL bNotify = FALSE); | 867 FX_BOOL bNotify = FALSE); |
| 868 | 868 |
| 869 FX_BOOL ClearSelectedOptions(FX_BOOL bNotify = FALSE); | 869 FX_BOOL ClearSelectedOptions(FX_BOOL bNotify = FALSE); |
| 870 | 870 |
| 871 #ifdef PDF_ENABLE_XFA |
| 872 FX_BOOL ClearOptions(FX_BOOL bNotify = FALSE); |
| 873 |
| 874 int InsertOption(CFX_WideString csOptLabel, |
| 875 int index = -1, |
| 876 FX_BOOL bNotify = FALSE); |
| 877 |
| 878 #endif |
| 871 FX_FLOAT GetFontSize() { return m_FontSize; } | 879 FX_FLOAT GetFontSize() { return m_FontSize; } |
| 872 | 880 |
| 873 CPDF_Font* GetFont() { return m_pFont; } | 881 CPDF_Font* GetFont() { return m_pFont; } |
| 874 | 882 |
| 875 protected: | 883 protected: |
| 876 CPDF_FormField(CPDF_InterForm* pForm, CPDF_Dictionary* pDict); | 884 CPDF_FormField(CPDF_InterForm* pForm, CPDF_Dictionary* pDict); |
| 877 | 885 |
| 878 ~CPDF_FormField(); | 886 ~CPDF_FormField(); |
| 879 | 887 |
| 880 CPDF_FormField::Type m_Type; | 888 CPDF_FormField::Type m_Type; |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1200 FX_FLOAT fc[4], | 1208 FX_FLOAT fc[4], |
| 1201 const CFX_ByteStringC& csEntry); | 1209 const CFX_ByteStringC& csEntry); |
| 1202 | 1210 |
| 1203 CFX_WideString GetCaption(const CFX_ByteStringC& csEntry); | 1211 CFX_WideString GetCaption(const CFX_ByteStringC& csEntry); |
| 1204 | 1212 |
| 1205 CPDF_Stream* GetIcon(const CFX_ByteStringC& csEntry); | 1213 CPDF_Stream* GetIcon(const CFX_ByteStringC& csEntry); |
| 1206 friend class CPDF_FormControl; | 1214 friend class CPDF_FormControl; |
| 1207 }; | 1215 }; |
| 1208 | 1216 |
| 1209 #endif // CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_ | 1217 #endif // CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_ |
| OLD | NEW |