diff options
Diffstat (limited to 'chromium/third_party/pdfium/xfa/fxfa/parser/cxfa_widgetdata.h')
-rw-r--r-- | chromium/third_party/pdfium/xfa/fxfa/parser/cxfa_widgetdata.h | 44 |
1 files changed, 21 insertions, 23 deletions
diff --git a/chromium/third_party/pdfium/xfa/fxfa/parser/cxfa_widgetdata.h b/chromium/third_party/pdfium/xfa/fxfa/parser/cxfa_widgetdata.h index 4f5db3bad6d..fb44745ad9f 100644 --- a/chromium/third_party/pdfium/xfa/fxfa/parser/cxfa_widgetdata.h +++ b/chromium/third_party/pdfium/xfa/fxfa/parser/cxfa_widgetdata.h @@ -9,6 +9,7 @@ #include <vector> +#include "core/fxcrt/fx_coordinates.h" #include "core/fxcrt/fx_string.h" #include "core/fxcrt/fx_system.h" #include "xfa/fxfa/parser/cxfa_assist.h" @@ -21,7 +22,6 @@ #include "xfa/fxfa/parser/cxfa_margin.h" #include "xfa/fxfa/parser/cxfa_para.h" #include "xfa/fxfa/parser/cxfa_validate.h" -#include "xfa/fxfa/parser/xfa_object.h" enum XFA_CHECKSTATE { XFA_CHECKSTATE_On = 0, @@ -53,22 +53,21 @@ class CXFA_WidgetData : public CXFA_Data { CXFA_Font GetFont(bool bModified = false); CXFA_Margin GetMargin(bool bModified = false); CXFA_Para GetPara(bool bModified = false); - void GetEventList(CXFA_NodeArray& events); - int32_t GetEventByActivity(int32_t iActivity, - CXFA_NodeArray& events, - bool bIsFormReady = false); + std::vector<CXFA_Node*> GetEventList(); + std::vector<CXFA_Node*> GetEventByActivity(int32_t iActivity, + bool bIsFormReady = false); CXFA_Value GetDefaultValue(bool bModified = false); CXFA_Value GetFormValue(bool bModified = false); CXFA_Calculate GetCalculate(bool bModified = false); CXFA_Validate GetValidate(bool bModified = false); CXFA_Bind GetBind(bool bModified = false); CXFA_Assist GetAssist(bool bModified = false); - bool GetWidth(FX_FLOAT& fWidth); - bool GetHeight(FX_FLOAT& fHeight); - bool GetMinWidth(FX_FLOAT& fMinWidth); - bool GetMinHeight(FX_FLOAT& fMinHeight); - bool GetMaxWidth(FX_FLOAT& fMaxWidth); - bool GetMaxHeight(FX_FLOAT& fMaxHeight); + bool GetWidth(float& fWidth); + bool GetHeight(float& fHeight); + bool GetMinWidth(float& fMinWidth); + bool GetMinHeight(float& fMinHeight); + bool GetMaxWidth(float& fMaxWidth); + bool GetMaxHeight(float& fMaxHeight); CXFA_Border GetUIBorder(); CFX_RectF GetUIMargin(); int32_t GetButtonHighlight(); @@ -76,7 +75,7 @@ class CXFA_WidgetData : public CXFA_Data { bool GetButtonDown(CFX_WideString& wsDown, bool& bRichText); int32_t GetCheckButtonShape(); int32_t GetCheckButtonMark(); - FX_FLOAT GetCheckButtonSize(); + float GetCheckButtonSize(); bool IsAllowNeutral(); bool IsRadioButton(); XFA_CHECKSTATE GetCheckState(); @@ -94,23 +93,22 @@ class CXFA_WidgetData : public CXFA_Data { bool IsChoiceListAllowTextEntry(); int32_t GetChoiceListOpen(); bool IsListBox(); - int32_t CountChoiceListItems(bool bSaveValue = false); + int32_t CountChoiceListItems(bool bSaveValue); bool GetChoiceListItem(CFX_WideString& wsText, int32_t nIndex, - bool bSaveValue = false); - void GetChoiceListItems(std::vector<CFX_WideString>& wsTextArray, - bool bSaveValue = false); + bool bSaveValue); + std::vector<CFX_WideString> GetChoiceListItems(bool bSaveValue); int32_t CountSelectedItems(); int32_t GetSelectedItem(int32_t nIndex = 0); - void GetSelectedItems(CFX_ArrayTemplate<int32_t>& iSelArray); - void GetSelectedItemsValue(std::vector<CFX_WideString>& wsSelTextArray); + std::vector<int32_t> GetSelectedItems(); + std::vector<CFX_WideString> GetSelectedItemsValue(); bool GetItemState(int32_t nIndex); void SetItemState(int32_t nIndex, bool bSelected, bool bNotify, bool bScriptModify, bool bSyncData); - void SetSelectedItems(CFX_ArrayTemplate<int32_t>& iSelArray, + void SetSelectedItems(const std::vector<int32_t>& iSelArray, bool bNotify, bool bScriptModify, bool bSyncData); @@ -140,15 +138,15 @@ class CXFA_WidgetData : public CXFA_Data { bool GetBarcodeAttribute_CharEncoding(int32_t& val); bool GetBarcodeAttribute_Checksum(bool& val); bool GetBarcodeAttribute_DataLength(int32_t& val); - bool GetBarcodeAttribute_StartChar(FX_CHAR& val); - bool GetBarcodeAttribute_EndChar(FX_CHAR& val); + bool GetBarcodeAttribute_StartChar(char& val); + bool GetBarcodeAttribute_EndChar(char& val); bool GetBarcodeAttribute_ECLevel(int32_t& val); bool GetBarcodeAttribute_ModuleWidth(int32_t& val); bool GetBarcodeAttribute_ModuleHeight(int32_t& val); bool GetBarcodeAttribute_PrintChecksum(bool& val); bool GetBarcodeAttribute_TextLocation(int32_t& val); bool GetBarcodeAttribute_Truncate(bool& val); - bool GetBarcodeAttribute_WideNarrowRatio(FX_FLOAT& val); + bool GetBarcodeAttribute_WideNarrowRatio(float& val); void GetPasswordChar(CFX_WideString& wsPassWord); bool IsMultiLine(); int32_t GetVerticalScrollPolicy(); @@ -163,7 +161,7 @@ class CXFA_WidgetData : public CXFA_Data { bool m_bIsNull; bool m_bPreNull; - protected: + private: void SyncValue(const CFX_WideString& wsValue, bool bNotify); void InsertListTextItem(CXFA_Node* pItems, const CFX_WideString& wsText, |