mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@62950 954022d7-b5bf-4e40-9824-e11837661b57
54 lines
1.1 KiB
C++
54 lines
1.1 KiB
C++
|
|
#include "draw_base.h"
|
|
|
|
#include <ostream>
|
|
#include <sstream>
|
|
#include <string>
|
|
|
|
#include <boost/foreach.hpp>
|
|
#include <boost/algorithm/string.hpp>
|
|
|
|
#include <cpdoccore/xml/xmlchar.h>
|
|
|
|
#include <cpdoccore/xml/attributes.h>
|
|
|
|
|
|
#include "odf_conversion_context.h"
|
|
|
|
namespace cpdoccore {
|
|
|
|
using namespace odf_types;
|
|
|
|
namespace odf_writer {
|
|
|
|
using xml::xml_char_wc;
|
|
|
|
|
|
const wchar_t * draw_base::ns = L"draw";
|
|
const wchar_t * draw_base::name = L"base";
|
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
void draw_base::create_child_element( const ::std::wstring & Ns, const ::std::wstring & Name)
|
|
{
|
|
CP_CREATE_ELEMENT(content_);
|
|
}
|
|
|
|
void draw_base::add_child_element( const office_element_ptr & child_element)
|
|
{
|
|
content_.push_back(child_element);
|
|
}
|
|
void draw_base::serialize(std::wostream & _Wostream)
|
|
{
|
|
BOOST_FOREACH(const office_element_ptr & elm, content_)
|
|
{
|
|
elm->serialize(_Wostream);
|
|
}
|
|
}
|
|
void draw_base::serialize_attlist(CP_ATTR_NODE)
|
|
{
|
|
common_draw_attlists_.serialize(CP_GET_XML_NODE());
|
|
common_presentation_attlist_.serialize(CP_GET_XML_NODE());
|
|
}
|
|
|
|
}
|
|
} |