Files
core/ASCOfficeOdfFileW/source/OdfFormat/header_footer.cpp

38 lines
1.0 KiB
C++

#include "precompiled_cpodf.h"
#include "header_footer.h"
#include <cpdoccore/xml/attributes.h>
#include <cpdoccore/xml/serialize.h>
namespace cpdoccore {
namespace odf {
/// style-header-footer-properties
const wchar_t * style_header_footer_properties::ns = L"style";
const wchar_t * style_header_footer_properties::name = L"header-footer-properties";
void style_header_footer_properties::create_child_element( const ::std::wstring & Ns, const ::std::wstring & Name)
{
if (L"style" == Ns && L"background-image" == Name)
{
CP_CREATE_ELEMENT(style_background_image_);
}
else
{
not_applicable_element(L"style-header-footer-properties", Ns, Name);
}
}
void header_footer_content::create_child_element(const ::std::wstring & Ns, const ::std::wstring & Name, odf_conversion_context * Context)
{
CP_CREATE_ELEMENT_SIMPLE(content_);
}
void header_footer_content::add_child_element(office_element_ptr & child)
{
content_.push_back(child);
}
}
}