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); } }
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); }
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 { } }