void chart_build::pptx_convert(oox::pptx_conversion_context & Context) { if (object_type_ == 1) { Context.start_chart(L""); oox::oox_chart_context & chart_context = Context.current_chart(); oox_convert(chart_context); chart_context.set_cache_only(true); Context.end_chart(); } else if (object_type_ == 2 && office_text_) { office_text_->pptx_convert(Context); } else if (object_type_ == 3 && office_math_) { office_math_->pptx_convert(Context); } }