added style components

This commit is contained in:
Dolan Miu
2016-05-03 04:31:08 +01:00
parent c345ab716b
commit b86d292c64
2 changed files with 62 additions and 32 deletions

View File

@ -1,44 +1,73 @@
import {XmlComponent} from "../../docx/xml-components";
import {StyleAttributes} from "./attributes";
export class Name extends XmlComponent {
constructor() {
constructor(value: string) {
super("w:name");
this.root.push(new StyleAttributes({
val: value
}));
}
}
export class BasedOn {
export class BasedOn extends XmlComponent {
constructor(value: string) {
super("w:basedOn");
this.root.push(new StyleAttributes({
val: value
}));
}
}
export class Next {
export class Next extends XmlComponent {
constructor(value: string) {
super("w:next");
this.root.push(new StyleAttributes({
styleId: "1",
val: value
}));
}
}
export class Link {
export class Link extends XmlComponent {
constructor(value: string) {
super("w:link");
this.root.push(new StyleAttributes({
val: value
}));
}
}
export class UiPriority {
export class UiPriority extends XmlComponent {
constructor(value: string) {
super("w:uiPriority");
this.root.push(new StyleAttributes({
val: value
}));
}
}
export class UnhideWhenUsed {
export class UnhideWhenUsed extends XmlComponent {
}
export class QFormat {
export class QFormat extends XmlComponent {
}
export class TableProperties {
export class TableProperties extends XmlComponent {
}
export class RsId {
export class RsId extends XmlComponent {
}
export class SemiHidden {
export class SemiHidden extends XmlComponent {
}