1 // Copyright 2017 PDFium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 6 7 #ifndef XFA_FXFA_PARSER_CXFA_VALUE_H_ 8 #define XFA_FXFA_PARSER_CXFA_VALUE_H_ 9 10 #include "core/fxcrt/fx_string.h" 11 #include "xfa/fxfa/parser/cxfa_node.h" 12 #include "xfa/fxfa/parser/cxfa_text.h" 13 14 class CXFA_Arc; 15 class CXFA_ExData; 16 class CXFA_Image; 17 class CXFA_Line; 18 class CXFA_Rectangle; 19 20 class CXFA_Value final : public CXFA_Node { 21 public: 22 CXFA_Value(CXFA_Document* doc, XFA_PacketType packet); 23 ~CXFA_Value() override; 24 25 XFA_Element GetChildValueClassID() const; 26 WideString GetChildValueContent() const; 27 CXFA_Arc* GetArcIfExists() const; 28 CXFA_Line* GetLineIfExists() const; 29 CXFA_Rectangle* GetRectangleIfExists() const; 30 CXFA_Text* GetTextIfExists() const; 31 CXFA_ExData* GetExDataIfExists() const; 32 CXFA_Image* GetImageIfExists() const; 33 }; 34 35 #endif // XFA_FXFA_PARSER_CXFA_VALUE_H_ 36