commit
This commit is contained in:
12
build/src/file/document/body/body.d.ts
vendored
Normal file
12
build/src/file/document/body/body.d.ts
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
import { IXmlableObject, XmlComponent } from "file/xml-components";
|
||||
import { SectionProperties, SectionPropertiesOptions } from "./section-properties";
|
||||
export declare class Body extends XmlComponent {
|
||||
private defaultSection;
|
||||
private sections;
|
||||
constructor(sectionPropertiesOptions?: SectionPropertiesOptions);
|
||||
addSection(section: SectionPropertiesOptions | SectionProperties): void;
|
||||
prepForXml(): IXmlableObject;
|
||||
push(component: XmlComponent): void;
|
||||
readonly DefaultSection: SectionProperties;
|
||||
private createSectionParagraph;
|
||||
}
|
2
build/src/file/document/body/index.d.ts
vendored
Normal file
2
build/src/file/document/body/index.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
export * from "./body";
|
||||
export * from "./section-properties";
|
9
build/src/file/document/body/section-properties/columns/columns-attributes.d.ts
vendored
Normal file
9
build/src/file/document/body/section-properties/columns/columns-attributes.d.ts
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
import { XmlAttributeComponent } from "file/xml-components";
|
||||
export interface IColumnsAttributes {
|
||||
space?: number;
|
||||
}
|
||||
export declare class ColumnsAttributes extends XmlAttributeComponent<IColumnsAttributes> {
|
||||
protected xmlKeys: {
|
||||
space: string;
|
||||
};
|
||||
}
|
4
build/src/file/document/body/section-properties/columns/columns.d.ts
vendored
Normal file
4
build/src/file/document/body/section-properties/columns/columns.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
import { XmlComponent } from "file/xml-components";
|
||||
export declare class Columns extends XmlComponent {
|
||||
constructor(space: number);
|
||||
}
|
9
build/src/file/document/body/section-properties/doc-grid/doc-grid-attributes.d.ts
vendored
Normal file
9
build/src/file/document/body/section-properties/doc-grid/doc-grid-attributes.d.ts
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
import { XmlAttributeComponent } from "file/xml-components";
|
||||
export interface IDocGridAttributesProperties {
|
||||
linePitch?: number;
|
||||
}
|
||||
export declare class DocGridAttributes extends XmlAttributeComponent<IDocGridAttributesProperties> {
|
||||
protected xmlKeys: {
|
||||
linePitch: string;
|
||||
};
|
||||
}
|
4
build/src/file/document/body/section-properties/doc-grid/doc-grid.d.ts
vendored
Normal file
4
build/src/file/document/body/section-properties/doc-grid/doc-grid.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
import { XmlComponent } from "file/xml-components";
|
||||
export declare class DocumentGrid extends XmlComponent {
|
||||
constructor(linePitch: number);
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
import { XmlAttributeComponent } from "file/xml-components";
|
||||
export declare enum FooterReferenceType {
|
||||
DEFAULT = "default",
|
||||
FIRST = "first",
|
||||
EVEN = "even"
|
||||
}
|
||||
export interface IFooterReferenceAttributes {
|
||||
type: string;
|
||||
id: string;
|
||||
}
|
||||
export declare class FooterReferenceAttributes extends XmlAttributeComponent<IFooterReferenceAttributes> {
|
||||
protected xmlKeys: {
|
||||
type: string;
|
||||
id: string;
|
||||
};
|
||||
}
|
9
build/src/file/document/body/section-properties/footer-reference/footer-reference.d.ts
vendored
Normal file
9
build/src/file/document/body/section-properties/footer-reference/footer-reference.d.ts
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
import { XmlComponent } from "file/xml-components";
|
||||
import { FooterReferenceType } from "./footer-reference-attributes";
|
||||
export interface IFooterOptions {
|
||||
footerType?: FooterReferenceType;
|
||||
footerId?: number;
|
||||
}
|
||||
export declare class FooterReference extends XmlComponent {
|
||||
constructor(options: IFooterOptions);
|
||||
}
|
2
build/src/file/document/body/section-properties/footer-reference/index.d.ts
vendored
Normal file
2
build/src/file/document/body/section-properties/footer-reference/index.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
export * from "./footer-reference";
|
||||
export * from "./footer-reference-attributes";
|
@ -0,0 +1,16 @@
|
||||
import { XmlAttributeComponent } from "file/xml-components";
|
||||
export declare enum HeaderReferenceType {
|
||||
DEFAULT = "default",
|
||||
FIRST = "first",
|
||||
EVEN = "even"
|
||||
}
|
||||
export interface IHeaderReferenceAttributes {
|
||||
type: string;
|
||||
id: string;
|
||||
}
|
||||
export declare class HeaderReferenceAttributes extends XmlAttributeComponent<IHeaderReferenceAttributes> {
|
||||
protected xmlKeys: {
|
||||
type: string;
|
||||
id: string;
|
||||
};
|
||||
}
|
9
build/src/file/document/body/section-properties/header-reference/header-reference.d.ts
vendored
Normal file
9
build/src/file/document/body/section-properties/header-reference/header-reference.d.ts
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
import { XmlComponent } from "file/xml-components";
|
||||
import { HeaderReferenceType } from "./header-reference-attributes";
|
||||
export interface IHeaderOptions {
|
||||
headerType?: HeaderReferenceType;
|
||||
headerId?: number;
|
||||
}
|
||||
export declare class HeaderReference extends XmlComponent {
|
||||
constructor(options: IHeaderOptions);
|
||||
}
|
2
build/src/file/document/body/section-properties/header-reference/index.d.ts
vendored
Normal file
2
build/src/file/document/body/section-properties/header-reference/index.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
export * from "./header-reference";
|
||||
export * from "./header-reference-attributes";
|
5
build/src/file/document/body/section-properties/index.d.ts
vendored
Normal file
5
build/src/file/document/body/section-properties/index.d.ts
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
export * from "./section-properties";
|
||||
export * from "./footer-reference";
|
||||
export * from "./header-reference";
|
||||
export * from "./page-size";
|
||||
export * from "./page-number";
|
21
build/src/file/document/body/section-properties/page-margin/page-margin-attributes.d.ts
vendored
Normal file
21
build/src/file/document/body/section-properties/page-margin/page-margin-attributes.d.ts
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
import { XmlAttributeComponent } from "file/xml-components";
|
||||
export interface IPageMarginAttributes {
|
||||
top?: number;
|
||||
right?: number;
|
||||
bottom?: number;
|
||||
left?: number;
|
||||
header?: number;
|
||||
footer?: number;
|
||||
gutter?: number;
|
||||
}
|
||||
export declare class PageMarginAttributes extends XmlAttributeComponent<IPageMarginAttributes> {
|
||||
protected xmlKeys: {
|
||||
top: string;
|
||||
right: string;
|
||||
bottom: string;
|
||||
left: string;
|
||||
header: string;
|
||||
footer: string;
|
||||
gutter: string;
|
||||
};
|
||||
}
|
4
build/src/file/document/body/section-properties/page-margin/page-margin.d.ts
vendored
Normal file
4
build/src/file/document/body/section-properties/page-margin/page-margin.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
import { XmlComponent } from "file/xml-components";
|
||||
export declare class PageMargin extends XmlComponent {
|
||||
constructor(top: number, right: number, bottom: number, left: number, header: number, footer: number, gutter: number);
|
||||
}
|
1
build/src/file/document/body/section-properties/page-number/index.d.ts
vendored
Normal file
1
build/src/file/document/body/section-properties/page-number/index.d.ts
vendored
Normal file
@ -0,0 +1 @@
|
||||
export * from "./page-number";
|
28
build/src/file/document/body/section-properties/page-number/page-number.d.ts
vendored
Normal file
28
build/src/file/document/body/section-properties/page-number/page-number.d.ts
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
import { XmlAttributeComponent, XmlComponent } from "file/xml-components";
|
||||
export declare enum PageNumberFormat {
|
||||
CARDINAL_TEXT = "cardinalText",
|
||||
DECIMAL = "decimal",
|
||||
DECIMAL_ENCLOSED_CIRCLE = "decimalEnclosedCircle",
|
||||
DECIMAL_ENCLOSED_FULL_STOP = "decimalEnclosedFullstop",
|
||||
DECIMAL_ENCLOSED_PAREN = "decimalEnclosedParen",
|
||||
DECIMAL_ZERO = "decimalZero",
|
||||
LOWER_LETTER = "lowerLetter",
|
||||
LOWER_ROMAN = "lowerRoman",
|
||||
NONE = "none",
|
||||
ORDINAL_TEXT = "ordinalText",
|
||||
UPPER_LETTER = "upperLetter",
|
||||
UPPER_ROMAN = "upperRoman"
|
||||
}
|
||||
export interface IPageNumberTypeAttributes {
|
||||
pageNumberStart?: number;
|
||||
pageNumberFormatType?: PageNumberFormat;
|
||||
}
|
||||
export declare class PageNumberTypeAttributes extends XmlAttributeComponent<IPageNumberTypeAttributes> {
|
||||
protected xmlKeys: {
|
||||
pageNumberStart: string;
|
||||
pageNumberFormatType: string;
|
||||
};
|
||||
}
|
||||
export declare class PageNumberType extends XmlComponent {
|
||||
constructor(start?: number, numberFormat?: PageNumberFormat);
|
||||
}
|
2
build/src/file/document/body/section-properties/page-size/index.d.ts
vendored
Normal file
2
build/src/file/document/body/section-properties/page-size/index.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
export * from "./page-size";
|
||||
export * from "./page-size-attributes";
|
17
build/src/file/document/body/section-properties/page-size/page-size-attributes.d.ts
vendored
Normal file
17
build/src/file/document/body/section-properties/page-size/page-size-attributes.d.ts
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
import { XmlAttributeComponent } from "file/xml-components";
|
||||
export declare enum PageOrientation {
|
||||
PORTRAIT = "portrait",
|
||||
LANDSCAPE = "landscape"
|
||||
}
|
||||
export interface IPageSizeAttributes {
|
||||
width?: number;
|
||||
height?: number;
|
||||
orientation?: PageOrientation;
|
||||
}
|
||||
export declare class PageSizeAttributes extends XmlAttributeComponent<IPageSizeAttributes> {
|
||||
protected xmlKeys: {
|
||||
width: string;
|
||||
height: string;
|
||||
orientation: string;
|
||||
};
|
||||
}
|
5
build/src/file/document/body/section-properties/page-size/page-size.d.ts
vendored
Normal file
5
build/src/file/document/body/section-properties/page-size/page-size.d.ts
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
import { XmlComponent } from "file/xml-components";
|
||||
import { PageOrientation } from "./page-size-attributes";
|
||||
export declare class PageSize extends XmlComponent {
|
||||
constructor(width: number, height: number, orientation: PageOrientation);
|
||||
}
|
14
build/src/file/document/body/section-properties/section-properties.d.ts
vendored
Normal file
14
build/src/file/document/body/section-properties/section-properties.d.ts
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
import { XmlComponent } from "file/xml-components";
|
||||
import { IPageNumberTypeAttributes } from "./";
|
||||
import { IColumnsAttributes } from "./columns/columns-attributes";
|
||||
import { IDocGridAttributesProperties } from "./doc-grid/doc-grid-attributes";
|
||||
import { IFooterOptions } from "./footer-reference/footer-reference";
|
||||
import { IHeaderOptions } from "./header-reference/header-reference";
|
||||
import { IPageMarginAttributes } from "./page-margin/page-margin-attributes";
|
||||
import { IPageSizeAttributes } from "./page-size/page-size-attributes";
|
||||
export declare type SectionPropertiesOptions = IPageSizeAttributes & IPageMarginAttributes & IColumnsAttributes & IDocGridAttributesProperties & IHeaderOptions & IFooterOptions & IPageNumberTypeAttributes;
|
||||
export declare class SectionProperties extends XmlComponent {
|
||||
private options;
|
||||
constructor(options?: SectionPropertiesOptions);
|
||||
readonly Options: SectionPropertiesOptions;
|
||||
}
|
Reference in New Issue
Block a user