#include "precompiled_cpodf.h" #include "office_spreadsheet.h" #include #include #include #include "office_elements.h" #include "office_elements_create.h" #include namespace cpdoccore { namespace odf { // office:spreadsheet ////////////////////////////////////////////////////////////////////////////////////////////////// const wchar_t * office_spreadsheet::ns = L"office"; const wchar_t * office_spreadsheet::name = L"spreadsheet"; void office_spreadsheet::create_child_element(const ::std::wstring & Ns, const ::std::wstring & Name) { CP_CREATE_ELEMENT(content_); } void office_spreadsheet::add_child_element(office_element_ptr & child_element) { content_.push_back(child_element); } void office_spreadsheet::serialize(std::wostream & _Wostream) { CP_XML_WRITER(_Wostream) { CP_XML_NODE_SIMPLE() { BOOST_FOREACH(office_element_ptr & elm, content_) { elm->serialize(CP_XML_STREAM()); } } } } } }