removed getStyles and clearPageBreak that became useless
This commit is contained in:
@ -236,18 +236,8 @@ export class Paragraph extends XmlComponent {
|
||||
return this;
|
||||
}
|
||||
|
||||
public getStyles(): Style[] {
|
||||
return this.properties.getStyles();
|
||||
}
|
||||
|
||||
public addTabStop(run: Run): Paragraph {
|
||||
this.root.splice(1, 0, run);
|
||||
return this;
|
||||
}
|
||||
|
||||
public clearPageBreaks(): Paragraph {
|
||||
this.root = this.root.filter((child) => !(child instanceof PageBreak));
|
||||
this.properties.clearPageBreaks();
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
@ -1,8 +1,6 @@
|
||||
// http://officeopenxml.com/WPparagraphProperties.php
|
||||
import { XmlComponent } from "file/xml-components";
|
||||
import { Border } from "./formatting/border";
|
||||
import { PageBreakBefore } from "./formatting/page-break";
|
||||
import { Style } from "./formatting/style";
|
||||
|
||||
export class ParagraphProperties extends XmlComponent {
|
||||
public paragraphBorder: Border;
|
||||
@ -19,13 +17,4 @@ export class ParagraphProperties extends XmlComponent {
|
||||
public push(item: XmlComponent): void {
|
||||
this.root.push(item);
|
||||
}
|
||||
|
||||
public getStyles(): Style[] {
|
||||
return this.root.filter((child) => child instanceof Style) as Style[];
|
||||
}
|
||||
|
||||
public clearPageBreaks(): ParagraphProperties {
|
||||
this.root = this.root.filter((child) => !(child instanceof PageBreakBefore));
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user