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