Home | History | Annotate | Download | only in xml
      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 CORE_FXCRT_XML_CFX_XMLTEXT_H_
      8 #define CORE_FXCRT_XML_CFX_XMLTEXT_H_
      9 
     10 #include <memory>
     11 
     12 #include "core/fxcrt/fx_string.h"
     13 #include "core/fxcrt/xml/cfx_xmlnode.h"
     14 
     15 class CFX_XMLText : public CFX_XMLNode {
     16  public:
     17   explicit CFX_XMLText(const WideString& wsText);
     18   ~CFX_XMLText() override;
     19 
     20   // CFX_XMLNode
     21   FX_XMLNODETYPE GetType() const override;
     22   std::unique_ptr<CFX_XMLNode> Clone() override;
     23 
     24   WideString GetText() const { return m_wsText; }
     25   void SetText(const WideString& wsText) { m_wsText = wsText; }
     26 
     27  private:
     28   WideString m_wsText;
     29 };
     30 
     31 #endif  // CORE_FXCRT_XML_CFX_XMLTEXT_H_
     32