diff options
author | dsinclair <dsinclair@chromium.org> | 2016-07-21 12:01:39 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-07-21 12:01:39 -0700 |
commit | 9eb0db1d7f6273de7eb28b0e1490eaf893e3bfb5 (patch) | |
tree | 545c467efb1d21ce95e0bba7ad40a5e27eed7ef9 /xfa/fxfa/parser/xfa_utils.h | |
parent | e283e47aa3e6786dad94392db292e08ce18ccd5e (diff) | |
download | pdfium-9eb0db1d7f6273de7eb28b0e1490eaf893e3bfb5.tar.xz |
Move xfa_basic_imp to cxfa_widetextread.
This Cl splits out the CXFA_WideTextRead class into it's own file. The helper
methods have been moved into xfa_utils.cpp and their pre-declarations into
xfa_utils.h.
Review-Url: https://codereview.chromium.org/2165993002
Diffstat (limited to 'xfa/fxfa/parser/xfa_utils.h')
-rw-r--r-- | xfa/fxfa/parser/xfa_utils.h | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/xfa/fxfa/parser/xfa_utils.h b/xfa/fxfa/parser/xfa_utils.h index 794624a8de..a5bdc905d0 100644 --- a/xfa/fxfa/parser/xfa_utils.h +++ b/xfa/fxfa/parser/xfa_utils.h @@ -170,7 +170,6 @@ FX_BOOL XFA_RecognizeRichText(CFDE_XMLElement* pRichTextXMLNode); void XFA_GetPlainTextFromRichText(CFDE_XMLNode* pXMLNode, CFX_WideString& wsPlainText); FX_BOOL XFA_FieldIsMultiListBox(CXFA_Node* pFieldNode); -IFX_Stream* XFA_CreateWideTextRead(const CFX_WideString& wsBuffer); void XFA_DataExporter_DealWithDataGroupNode(CXFA_Node* pDataNode); void XFA_DataExporter_RegenerateFormFile(CXFA_Node* pNode, @@ -178,4 +177,36 @@ void XFA_DataExporter_RegenerateFormFile(CXFA_Node* pNode, const FX_CHAR* pChecksum = nullptr, FX_BOOL bSaveXML = FALSE); +const XFA_NOTSUREATTRIBUTE* XFA_GetNotsureAttribute( + XFA_Element eElement, + XFA_ATTRIBUTE eAttribute, + XFA_ATTRIBUTETYPE eType = XFA_ATTRIBUTETYPE_NOTSURE); + +const XFA_SCRIPTATTRIBUTEINFO* XFA_GetScriptAttributeByName( + XFA_Element eElement, + const CFX_WideStringC& wsAttributeName); + +const XFA_PROPERTY* XFA_GetPropertyOfElement(XFA_Element eElement, + XFA_Element eProperty, + uint32_t dwPacket); +const XFA_PROPERTY* XFA_GetElementProperties(XFA_Element eElement, + int32_t& iCount); +const uint8_t* XFA_GetElementAttributes(XFA_Element eElement, int32_t& iCount); +const XFA_ELEMENTINFO* XFA_GetElementByID(XFA_Element eName); +XFA_Element XFA_GetElementTypeForName(const CFX_WideStringC& wsName); +CXFA_Measurement XFA_GetAttributeDefaultValue_Measure(XFA_Element eElement, + XFA_ATTRIBUTE eAttribute, + uint32_t dwPacket); +FX_BOOL XFA_GetAttributeDefaultValue(void*& pValue, + XFA_Element eElement, + XFA_ATTRIBUTE eAttribute, + XFA_ATTRIBUTETYPE eType, + uint32_t dwPacket); +const XFA_ATTRIBUTEINFO* XFA_GetAttributeByName(const CFX_WideStringC& wsName); +const XFA_ATTRIBUTEINFO* XFA_GetAttributeByID(XFA_ATTRIBUTE eName); +const XFA_ATTRIBUTEENUMINFO* XFA_GetAttributeEnumByName( + const CFX_WideStringC& wsName); +const XFA_PACKETINFO* XFA_GetPacketByIndex(XFA_PACKET ePacket); +const XFA_PACKETINFO* XFA_GetPacketByID(uint32_t dwPacket); + #endif // XFA_FXFA_PARSER_XFA_UTILS_H_ |