diff options
Diffstat (limited to 'core/fxcrt/xml/cxml_content.h')
-rw-r--r-- | core/fxcrt/xml/cxml_content.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/core/fxcrt/xml/cxml_content.h b/core/fxcrt/xml/cxml_content.h index 261c622eca..641efe6720 100644 --- a/core/fxcrt/xml/cxml_content.h +++ b/core/fxcrt/xml/cxml_content.h @@ -7,14 +7,17 @@ #ifndef CORE_FXCRT_XML_CXML_CONTENT_H_ #define CORE_FXCRT_XML_CXML_CONTENT_H_ -class CXML_Content { +#include "core/fxcrt/fx_string.h" +#include "core/fxcrt/xml/cxml_object.h" + +class CXML_Content : public CXML_Object { public: - CXML_Content() : m_bCDATA(false), m_Content() {} + CXML_Content(bool bCDATA, const CFX_WideStringC& content); + ~CXML_Content() override; - void Set(bool bCDATA, const CFX_WideStringC& content) { - m_bCDATA = bCDATA; - m_Content = content; - } + // CXML_Object: + CXML_Content* AsContent() override; + const CXML_Content* AsContent() const override; bool m_bCDATA; CFX_WideString m_Content; |