parent
65226e4098
commit
3075ffb506
|
@ -1,9 +1,9 @@
|
|||
use serde::Serialize;
|
||||
use serde::{Serialize, Serializer};
|
||||
|
||||
use crate::documents::BuildXML;
|
||||
use crate::xml_builder::*;
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Serialize)]
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
pub struct BasedOn {
|
||||
val: String,
|
||||
}
|
||||
|
@ -14,6 +14,15 @@ impl BasedOn {
|
|||
}
|
||||
}
|
||||
|
||||
impl Serialize for BasedOn {
|
||||
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
|
||||
where
|
||||
S: Serializer,
|
||||
{
|
||||
serializer.serialize_str(&self.val)
|
||||
}
|
||||
}
|
||||
|
||||
impl BuildXML for BasedOn {
|
||||
fn build(&self) -> Vec<u8> {
|
||||
let b = XMLBuilder::new();
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "docx-wasm",
|
||||
"version": "0.0.152",
|
||||
"version": "0.0.153",
|
||||
"main": "dist/node/index.js",
|
||||
"browser": "dist/web/index.js",
|
||||
"author": "bokuweb <bokuweb12@gmail.com>",
|
||||
|
|
|
@ -687,9 +687,7 @@ Object {
|
|||
},
|
||||
"styles": Array [
|
||||
Object {
|
||||
"basedOn": Object {
|
||||
"val": "Normal",
|
||||
},
|
||||
"basedOn": "Normal",
|
||||
"name": "Normal",
|
||||
"paragraphProperty": Object {
|
||||
"alignment": null,
|
||||
|
@ -5439,9 +5437,7 @@ Object {
|
|||
},
|
||||
},
|
||||
Object {
|
||||
"basedOn": Object {
|
||||
"val": "a",
|
||||
},
|
||||
"basedOn": "a",
|
||||
"name": "List Paragraph",
|
||||
"paragraphProperty": Object {
|
||||
"alignment": null,
|
||||
|
@ -8410,9 +8406,7 @@ Object {
|
|||
},
|
||||
},
|
||||
Object {
|
||||
"basedOn": Object {
|
||||
"val": "a",
|
||||
},
|
||||
"basedOn": "a",
|
||||
"name": "annotation text",
|
||||
"paragraphProperty": Object {
|
||||
"alignment": null,
|
||||
|
@ -8512,9 +8506,7 @@ Object {
|
|||
},
|
||||
},
|
||||
Object {
|
||||
"basedOn": Object {
|
||||
"val": "a0",
|
||||
},
|
||||
"basedOn": "a0",
|
||||
"name": "コメント文字列 (文字)",
|
||||
"paragraphProperty": Object {
|
||||
"alignment": null,
|
||||
|
@ -8614,9 +8606,7 @@ Object {
|
|||
},
|
||||
},
|
||||
Object {
|
||||
"basedOn": Object {
|
||||
"val": "a0",
|
||||
},
|
||||
"basedOn": "a0",
|
||||
"name": "annotation reference",
|
||||
"paragraphProperty": Object {
|
||||
"alignment": null,
|
||||
|
@ -8716,9 +8706,7 @@ Object {
|
|||
},
|
||||
},
|
||||
Object {
|
||||
"basedOn": Object {
|
||||
"val": "a3",
|
||||
},
|
||||
"basedOn": "a3",
|
||||
"name": "annotation subject",
|
||||
"paragraphProperty": Object {
|
||||
"alignment": null,
|
||||
|
@ -8818,9 +8806,7 @@ Object {
|
|||
},
|
||||
},
|
||||
Object {
|
||||
"basedOn": Object {
|
||||
"val": "a4",
|
||||
},
|
||||
"basedOn": "a4",
|
||||
"name": "コメント内容 (文字)",
|
||||
"paragraphProperty": Object {
|
||||
"alignment": null,
|
||||
|
@ -8920,9 +8906,7 @@ Object {
|
|||
},
|
||||
},
|
||||
Object {
|
||||
"basedOn": Object {
|
||||
"val": "a1",
|
||||
},
|
||||
"basedOn": "a1",
|
||||
"name": "Table Grid",
|
||||
"paragraphProperty": Object {
|
||||
"alignment": null,
|
||||
|
@ -10280,9 +10264,7 @@ Object {
|
|||
},
|
||||
},
|
||||
Object {
|
||||
"basedOn": Object {
|
||||
"val": "a1",
|
||||
},
|
||||
"basedOn": "a1",
|
||||
"name": "Table Grid",
|
||||
"paragraphProperty": Object {
|
||||
"alignment": null,
|
||||
|
|
Loading…
Reference in New Issue