added numbering
This commit is contained in:
29
ts/numbering/run-fonts.ts
Normal file
29
ts/numbering/run-fonts.ts
Normal file
@ -0,0 +1,29 @@
|
||||
import {XmlComponent, XmlAttributeComponent} from "../docx/xml-components";
|
||||
|
||||
interface RunFontAttributesProperties {
|
||||
ascii: string;
|
||||
hAnsi: string;
|
||||
hint: string;
|
||||
}
|
||||
|
||||
class RunFontAttributes extends XmlAttributeComponent {
|
||||
|
||||
constructor(properties: RunFontAttributesProperties) {
|
||||
super({
|
||||
left: "w:left",
|
||||
hanging: "w:hanging"
|
||||
}, properties);
|
||||
}
|
||||
}
|
||||
|
||||
export class RunFonts extends XmlComponent {
|
||||
|
||||
constructor(ascii: string, hint: string) {
|
||||
super("w:ind");
|
||||
this.root.push(new RunFontAttributes({
|
||||
ascii: ascii,
|
||||
hAnsi: ascii,
|
||||
hint: hint
|
||||
}));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user