Skip to main content

umya_spreadsheet/structs/drawing/
extension_list.rs

1// a:extLst
2use std::io::Cursor;
3
4use quick_xml::{
5    Reader,
6    Writer,
7    events::{
8        BytesStart,
9        Event,
10    },
11};
12
13use crate::reader::driver::xml_read_loop;
14
15#[derive(Clone, Default, Debug)]
16pub struct ExtensionList {}
17impl ExtensionList {
18    #[inline]
19    pub(crate) fn set_attributes<R: std::io::BufRead>(reader: &mut Reader<R>, _e: &BytesStart) {
20        xml_read_loop!(
21            reader,
22            Event::End(ref e) => {
23                if e.name().into_inner() == b"a:extLst" {
24                    return
25                }
26            },
27            Event::Eof => panic!("Error: Could not find {} end element", "a:extLst")
28        );
29    }
30
31    #[allow(dead_code)]
32    #[inline]
33    pub(crate) fn write_to(_writer: &mut Writer<Cursor<Vec<u8>>>) {
34        unimplemented!()
35    }
36}