コード例 #1
0
ファイル: draw_shapes.cpp プロジェクト: ShockwaveNN/core
void draw_custom_shape::add_child_element( const office_element_ptr & child_element)
{
	switch(child_element->get_type())
	{
		case typeDrawEnhancedGeometry:
			draw_enhanced_geometry_ = child_element;
			break;
		default:
			draw_base::add_child_element(child_element);
	}
}
コード例 #2
0
ファイル: office_annotation.cpp プロジェクト: ONLYOFFICE/core
void office_annotation::add_child_element( const office_element_ptr & child_element)
{
	if (!child_element) return;

	ElementType type = child_element->get_type();

    if (type == typeDcCreator)
		dc_creator_ = child_element;
	else if (type == typeDcDate)
		dc_date_ = child_element;
	else
		content_.push_back(child_element);
}
コード例 #3
0
void table_named_expressions::add_child_element( const office_element_ptr & child_element)
{
 	if (!child_element) return;

	ElementType type = child_element->get_type();

    if (type == typeTableNamedRange)
	{
       named_range_.push_back(child_element);
    }
    else if (type == typeTableNamedExpression)
    {
        named_expression_.push_back(child_element);   
    }
    else
    {
    }
}