This commit is contained in:
Elena.Subbotina
2023-03-04 20:03:14 +03:00
parent f2533bc6a0
commit fd865782a8
17 changed files with 129 additions and 27 deletions

View File

@ -345,6 +345,30 @@ void number_currency_style::serialize(std::wostream & strm)
}
}
}
// number:boolean-style
//////////////////////////////////////////////////////////////////////////////////////////////////
const wchar_t * number_boolean_style::ns = L"number";
const wchar_t * number_boolean_style::name = L"boolean-style";
void number_boolean_style::create_child_element(const std::wstring & Ns, const std::wstring & Name)
{
number_style_base::create_child_element(Ns, Name, getContext());
}
void number_boolean_style::add_child_element(const office_element_ptr & child)
{
number_style_base::add_child_element(child);
}
void number_boolean_style::serialize(std::wostream & strm)
{
CP_XML_WRITER(strm)
{
CP_XML_NODE_SIMPLE()
{
number_style_base::serialize(CP_GET_XML_NODE()); //attr
number_style_base::serialize(CP_XML_STREAM()); //nodes
}
}
}
// number:text-content
//////////////////////////////////////////////////////////////////////////////////////////////////
const wchar_t * number_text_content::ns = L"number";

View File

@ -94,6 +94,21 @@ public:
virtual void serialize(std::wostream & strm);
};
CP_REGISTER_OFFICE_ELEMENT2(number_currency_style)
//------------------------------------------------------------------------------------------------------
class number_boolean_style : public office_element_impl<number_boolean_style>, number_style_base
{
public:
virtual void create_child_element(const std::wstring & Ns, const std::wstring & Name);
virtual void add_child_element(const office_element_ptr & child);
static const wchar_t * ns;
static const wchar_t * name;
static const ElementType type = typeNumberBooleanStyle;
virtual void serialize(std::wostream & strm);
};
CP_REGISTER_OFFICE_ELEMENT2(number_boolean_style)
//------------------------------------------------------------------------------------------------------
class number_text_style : public office_element_impl<number_text_style>, public number_style_base