From aee28693976cc246eea8230a999906802e52cab7 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Tue, 14 Nov 2017 21:19:44 +0000 Subject: Cleanup XFA default value code This CL adds helper methods to CXFA_Node to retrieve the default values for attributes with the correct data types. Change-Id: I644435b4b430819f1060a95fa4fffe4ba2826cfe Reviewed-on: https://pdfium-review.googlesource.com/18450 Reviewed-by: Tom Sepez Commit-Queue: dsinclair --- xfa/fxfa/parser/cxfa_widgetdata.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'xfa/fxfa/parser/cxfa_widgetdata.h') diff --git a/xfa/fxfa/parser/cxfa_widgetdata.h b/xfa/fxfa/parser/cxfa_widgetdata.h index 3f1b4dc399..12e811361b 100644 --- a/xfa/fxfa/parser/cxfa_widgetdata.h +++ b/xfa/fxfa/parser/cxfa_widgetdata.h @@ -70,11 +70,11 @@ class CXFA_WidgetData : public CXFA_DataData { CXFA_BorderData GetUIBorderData(); CFX_RectF GetUIMargin(); - int32_t GetButtonHighlight(); + XFA_ATTRIBUTEENUM GetButtonHighlight(); bool GetButtonRollover(WideString& wsRollover, bool& bRichText); bool GetButtonDown(WideString& wsDown, bool& bRichText); - int32_t GetCheckButtonShape(); - int32_t GetCheckButtonMark(); + XFA_ATTRIBUTEENUM GetCheckButtonShape(); + XFA_ATTRIBUTEENUM GetCheckButtonMark(); float GetCheckButtonSize(); bool IsAllowNeutral(); bool IsRadioButton(); @@ -89,9 +89,9 @@ class CXFA_WidgetData : public CXFA_DataData { bool bSyncData); CXFA_Node* GetExclGroupFirstMember(); CXFA_Node* GetExclGroupNextMember(CXFA_Node* pNode); - int32_t GetChoiceListCommitOn(); + XFA_ATTRIBUTEENUM GetChoiceListCommitOn(); bool IsChoiceListAllowTextEntry(); - int32_t GetChoiceListOpen(); + XFA_ATTRIBUTEENUM GetChoiceListOpen(); bool IsListBox(); int32_t CountChoiceListItems(bool bSaveValue); bool GetChoiceListItem(WideString& wsText, int32_t nIndex, bool bSaveValue); @@ -145,7 +145,7 @@ class CXFA_WidgetData : public CXFA_DataData { void GetPasswordChar(WideString& wsPassWord); bool IsMultiLine(); - int32_t GetVerticalScrollPolicy(); + XFA_ATTRIBUTEENUM GetVerticalScrollPolicy(); int32_t GetMaxChars(XFA_Element& eType); bool GetFracDigits(int32_t& iFracDigits); bool GetLeadDigits(int32_t& iLeadDigits); -- cgit v1.2.3