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 807 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
818 int GetSelectedOptionIndex(int index); | 818 int GetSelectedOptionIndex(int index); |
819 | 819 |
820 FX_BOOL IsOptionSelected(int iOptIndex); | 820 FX_BOOL IsOptionSelected(int iOptIndex); |
821 | 821 |
822 FX_BOOL SelectOption(int iOptIndex, | 822 FX_BOOL SelectOption(int iOptIndex, |
823 FX_BOOL bSelected, | 823 FX_BOOL bSelected, |
824 FX_BOOL bNotify = FALSE); | 824 FX_BOOL bNotify = FALSE); |
825 | 825 |
826 FX_BOOL ClearSelectedOptions(FX_BOOL bNotify = FALSE); | 826 FX_BOOL ClearSelectedOptions(FX_BOOL bNotify = FALSE); |
827 | 827 |
| 828 #ifdef PDF_ENABLE_XFA |
| 829 FX_BOOL ClearOptions(FX_BOOL bNotify = FALSE); |
| 830 |
| 831 int InsertOption(CFX_WideString csOptLabel, |
| 832 int index = -1, |
| 833 FX_BOOL bNotify = FALSE); |
| 834 |
| 835 #endif |
828 FX_FLOAT GetFontSize() { return m_FontSize; } | 836 FX_FLOAT GetFontSize() { return m_FontSize; } |
829 | 837 |
830 CPDF_Font* GetFont() { return m_pFont; } | 838 CPDF_Font* GetFont() { return m_pFont; } |
831 | 839 |
832 protected: | 840 protected: |
833 CPDF_FormField(CPDF_InterForm* pForm, CPDF_Dictionary* pDict); | 841 CPDF_FormField(CPDF_InterForm* pForm, CPDF_Dictionary* pDict); |
834 | 842 |
835 ~CPDF_FormField(); | 843 ~CPDF_FormField(); |
836 | 844 |
837 CPDF_FormField::Type m_Type; | 845 CPDF_FormField::Type m_Type; |
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1157 CFX_WideString GetCaption(const CFX_ByteStringC& csEntry) const; | 1165 CFX_WideString GetCaption(const CFX_ByteStringC& csEntry) const; |
1158 | 1166 |
1159 CPDF_Stream* GetIcon(const CFX_ByteStringC& csEntry) const; | 1167 CPDF_Stream* GetIcon(const CFX_ByteStringC& csEntry) const; |
1160 | 1168 |
1161 CPDF_Dictionary* const m_pDict; | 1169 CPDF_Dictionary* const m_pDict; |
1162 }; | 1170 }; |
1163 | 1171 |
1164 CFX_WideString FILESPEC_EncodeFileName(const CFX_WideStringC& filepath); | 1172 CFX_WideString FILESPEC_EncodeFileName(const CFX_WideStringC& filepath); |
1165 | 1173 |
1166 #endif // CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_ | 1174 #endif // CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_ |
OLD | NEW |