OLD | NEW |
1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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_FPDFDOC_INCLUDE_CPDF_ACTIONFIELDS_H_ | 7 #ifndef CORE_FPDFDOC_INCLUDE_CPDF_ACTIONFIELDS_H_ |
8 #define CORE_FPDFDOC_INCLUDE_CPDF_ACTIONFIELDS_H_ | 8 #define CORE_FPDFDOC_INCLUDE_CPDF_ACTIONFIELDS_H_ |
9 | 9 |
| 10 #include <stddef.h> |
| 11 |
10 #include <vector> | 12 #include <vector> |
11 | 13 |
12 class CPDF_Action; | 14 class CPDF_Action; |
13 class CPDF_Object; | 15 class CPDF_Object; |
14 | 16 |
15 class CPDF_ActionFields { | 17 class CPDF_ActionFields { |
16 public: | 18 public: |
17 explicit CPDF_ActionFields(const CPDF_Action* pAction) : m_pAction(pAction) {} | 19 explicit CPDF_ActionFields(const CPDF_Action* pAction) : m_pAction(pAction) {} |
18 | 20 |
19 size_t GetFieldsCount() const; | 21 size_t GetFieldsCount() const; |
20 std::vector<CPDF_Object*> GetAllFields() const; | 22 std::vector<CPDF_Object*> GetAllFields() const; |
21 CPDF_Object* GetField(size_t iIndex) const; | 23 CPDF_Object* GetField(size_t iIndex) const; |
22 | 24 |
23 private: | 25 private: |
24 const CPDF_Action* const m_pAction; | 26 const CPDF_Action* const m_pAction; |
25 }; | 27 }; |
26 | 28 |
27 #endif // CORE_FPDFDOC_INCLUDE_CPDF_ACTIONFIELDS_H_ | 29 #endif // CORE_FPDFDOC_INCLUDE_CPDF_ACTIONFIELDS_H_ |
OLD | NEW |