summaryrefslogtreecommitdiff
path: root/core/fpdfdoc/cpdf_formfield.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/fpdfdoc/cpdf_formfield.h')
-rw-r--r--core/fpdfdoc/cpdf_formfield.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/core/fpdfdoc/cpdf_formfield.h b/core/fpdfdoc/cpdf_formfield.h
index ce12169a71..2c525cbdea 100644
--- a/core/fpdfdoc/cpdf_formfield.h
+++ b/core/fpdfdoc/cpdf_formfield.h
@@ -111,9 +111,7 @@ class CPDF_FormField {
int CountControls() const;
- CPDF_FormControl* GetControl(int index) const {
- return m_ControlList[index].Get();
- }
+ CPDF_FormControl* GetControl(int index) const;
int GetControlIndex(const CPDF_FormControl* pControl) const;
FormFieldType GetFieldType() const;
@@ -172,10 +170,6 @@ class CPDF_FormField {
WideString GetCheckValue(bool bDefault) const;
- void AddFormControl(CPDF_FormControl* pFormControl) {
- m_ControlList.emplace_back(pFormControl);
- }
-
void SetOpt(std::unique_ptr<CPDF_Object> pOpt);
private:
@@ -197,6 +191,8 @@ class CPDF_FormField {
bool NotifyListOrComboBoxBeforeChange(const WideString& value);
void NotifyListOrComboBoxAfterChange();
+ const std::vector<UnownedPtr<CPDF_FormControl>>& GetControls() const;
+
CPDF_FormField::Type m_Type = kUnknown;
uint32_t m_Flags = 0;
bool m_bReadOnly = false;
@@ -205,8 +201,6 @@ class CPDF_FormField {
UnownedPtr<CPDF_InteractiveForm> const m_pForm;
UnownedPtr<CPDF_Dictionary> const m_pDict;
- // Owned by InteractiveForm parent.
- std::vector<UnownedPtr<CPDF_FormControl>> m_ControlList;
float m_FontSize = 0;
UnownedPtr<CPDF_Font> m_pFont;
};