This commit is contained in:
amitm02
2018-07-23 10:31:48 +03:00
parent 4a320d3031
commit d979ef3b40
194 changed files with 84007 additions and 3 deletions

12
build/src/file/document/body/body.d.ts vendored Normal file
View 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;
}

View File

@ -0,0 +1,2 @@
export * from "./body";
export * from "./section-properties";

View 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;
};
}

View File

@ -0,0 +1,4 @@
import { XmlComponent } from "file/xml-components";
export declare class Columns extends XmlComponent {
constructor(space: number);
}

View 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;
};
}

View File

@ -0,0 +1,4 @@
import { XmlComponent } from "file/xml-components";
export declare class DocumentGrid extends XmlComponent {
constructor(linePitch: number);
}

View File

@ -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;
};
}

View 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);
}

View File

@ -0,0 +1,2 @@
export * from "./footer-reference";
export * from "./footer-reference-attributes";

View File

@ -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;
};
}

View 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);
}

View File

@ -0,0 +1,2 @@
export * from "./header-reference";
export * from "./header-reference-attributes";

View 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";

View 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;
};
}

View 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);
}

View File

@ -0,0 +1 @@
export * from "./page-number";

View 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);
}

View File

@ -0,0 +1,2 @@
export * from "./page-size";
export * from "./page-size-attributes";

View 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;
};
}

View 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);
}

View 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;
}