mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-14 02:37:46 +08:00
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@62885 954022d7-b5bf-4e40-9824-e11837661b57
46 lines
952 B
C++
46 lines
952 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
|
|
#include "../CPSharedPtr.h"
|
|
|
|
namespace cpdoccore {
|
|
|
|
namespace xml {
|
|
|
|
class sax;
|
|
|
|
class attributes;
|
|
|
|
typedef attributes attributes_wc;
|
|
|
|
typedef shared_ptr< attributes_wc >::Type attributes_wc_ptr;
|
|
|
|
}
|
|
|
|
namespace common {
|
|
|
|
// Áàçîâûé êëàññ äëÿ ýëåìåíòà, êîòîðûé ìîæåò áûòü ïðî÷èòàí sax-reader -îì
|
|
// Äëÿ êàæäîãî ýëåìåíòà áóäóò âûçâàíû ìåòîäû
|
|
// add_attributes, add_child_element, add_text êàê êîëáåêè äëÿ ÷òåíèÿ ñîîòâåòñòâóþùèõ äàííûõ
|
|
|
|
class read_doc_element
|
|
{
|
|
public:
|
|
bool read_sax( xml::sax * Reader);
|
|
virtual ~read_doc_element() = 0;
|
|
|
|
virtual void add_child_element( xml::sax * Reader, const ::std::wstring & Ns, const ::std::wstring & Name) = 0;
|
|
private:
|
|
virtual void add_attributes( const xml::attributes_wc_ptr & Attributes ) = 0;
|
|
virtual void add_text(const std::wstring & Text) = 0;
|
|
|
|
};
|
|
|
|
inline read_doc_element::~read_doc_element()
|
|
{
|
|
}
|
|
|
|
}
|
|
}
|