コード例 #1
0
ファイル: office_annotation.cpp プロジェクト: ONLYOFFICE/core
void office_annotation::create_child_element(const std::wstring & Ns, const std::wstring & Name)
{
	if (Ns==L"dc" && Name == L"date")
	{
		CP_CREATE_ELEMENT(dc_date_);
	}
	else if (Ns==L"dc" && Name == L"creator")
	{
		CP_CREATE_ELEMENT(dc_creator_);
	}
	else
	{
		CP_CREATE_ELEMENT(content_);
	}
}
コード例 #2
0
void style_tab_stops::add_child_element( xml::sax * Reader, const ::std::wstring & Ns, const ::std::wstring & Name)
{
    if (L"style" == Ns && L"tab-stop" == Name)
        CP_CREATE_ELEMENT(style_tab_stops_);
    else
    {
        CP_NOT_APPLICABLE_ELM();
    }
}
コード例 #3
0
void style_background_image::add_child_element( xml::sax * Reader, const ::std::wstring & Ns, const ::std::wstring & Name)
{
    if (L"office" == Ns && L"binary-data" == Name)
        CP_CREATE_ELEMENT(office_binary_data_);
    else
    {
        CP_NOT_APPLICABLE_ELM();
    }
}
コード例 #4
0
void loext_graphic_properties::add_child_element( xml::sax * Reader, const std::wstring & Ns, const std::wstring & Name)
{
     if (L"style" == Ns && L"background-image" == Name)
    {
        CP_CREATE_ELEMENT(content_.style_background_image_);
    }

	//if (CP_CHECK_NAME(L"text", L"list-style") 	
	//	styles_.add_child_element(Reader, Ns, Name, getContext()); он тут и не нужен по сути... описание есть и в другом сместе
}
コード例 #5
0
ファイル: draw_common.cpp プロジェクト: ShockwaveNN/core
/////////////////////////////////////////////////////////////////////////////////////////////////////////
/// draw-a-attlist
void draw_a::add_child_element( xml::sax * Reader, const std::wstring & Ns, const std::wstring & Name)
{
	CP_CREATE_ELEMENT(content_);
}
コード例 #6
0
void style_drawing_page_properties::add_child_element( xml::sax * Reader, const std::wstring & Ns, const std::wstring & Name)
{
	if CP_CHECK_NAME(L"presentation", L"sound")
        CP_CREATE_ELEMENT(drawing_page_properties_.presentation_sound_);
    else
コード例 #7
0
void calcext_conditional_formats::create_child_element(const ::std::wstring & Ns, const ::std::wstring & Name)
{
	CP_CREATE_ELEMENT(content_);
}
コード例 #8
0
void office_script::add_child_element( xml::sax * Reader, const ::std::wstring & Ns, const ::std::wstring & Name)
{
    CP_CREATE_ELEMENT(content_);
}
コード例 #9
0
void math_msub::add_child_element( xml::sax * Reader, const std::wstring & Ns, const std::wstring & Name)
{
	//<msub> base subscript </msub>

	CP_CREATE_ELEMENT(content_);
}
コード例 #10
0
void math_munderover::add_child_element( xml::sax * Reader, const std::wstring & Ns, const std::wstring & Name)
{
	CP_CREATE_ELEMENT(content_);
}