rtl
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@ -33,7 +33,7 @@ node_modules
|
|||||||
.node_repl_history
|
.node_repl_history
|
||||||
|
|
||||||
# build
|
# build
|
||||||
# build
|
build
|
||||||
build-tests
|
build-tests
|
||||||
|
|
||||||
# VSCode
|
# VSCode
|
||||||
|
81885
build/index.js
81885
build/index.js
File diff suppressed because one or more lines are too long
4
build/src/export/formatter.d.ts
vendored
4
build/src/export/formatter.d.ts
vendored
@ -1,4 +0,0 @@
|
|||||||
import { BaseXmlComponent, IXmlableObject } from "file/xml-components";
|
|
||||||
export declare class Formatter {
|
|
||||||
format(input: BaseXmlComponent): IXmlableObject;
|
|
||||||
}
|
|
5
build/src/export/index.d.ts
vendored
5
build/src/export/index.d.ts
vendored
@ -1,5 +0,0 @@
|
|||||||
export * from "./packer/local";
|
|
||||||
export * from "./packer/express";
|
|
||||||
export * from "./packer/packer";
|
|
||||||
export * from "./packer/stream";
|
|
||||||
export * from "./packer/buffer";
|
|
9
build/src/export/packer/buffer-stream.d.ts
vendored
9
build/src/export/packer/buffer-stream.d.ts
vendored
@ -1,9 +0,0 @@
|
|||||||
/// <reference types="node" />
|
|
||||||
import { Writable } from "stream";
|
|
||||||
export declare class BufferStream extends Writable {
|
|
||||||
private data;
|
|
||||||
constructor();
|
|
||||||
_write(chunk: any, encoding: string, next: (err?: Error) => void): void;
|
|
||||||
end(cb?: Function): void;
|
|
||||||
readonly Buffer: Buffer;
|
|
||||||
}
|
|
7
build/src/export/packer/buffer.d.ts
vendored
7
build/src/export/packer/buffer.d.ts
vendored
@ -1,7 +0,0 @@
|
|||||||
/// <reference types="node" />
|
|
||||||
import { File } from "../../file";
|
|
||||||
export declare class BufferPacker {
|
|
||||||
private readonly packer;
|
|
||||||
constructor(file: File);
|
|
||||||
pack(): Promise<Buffer>;
|
|
||||||
}
|
|
12
build/src/export/packer/compiler.d.ts
vendored
12
build/src/export/packer/compiler.d.ts
vendored
@ -1,12 +0,0 @@
|
|||||||
/// <reference types="node" />
|
|
||||||
import * as archiver from "archiver";
|
|
||||||
import * as express from "express";
|
|
||||||
import { Writable } from "stream";
|
|
||||||
import { File } from "file";
|
|
||||||
export declare class Compiler {
|
|
||||||
private file;
|
|
||||||
protected archive: archiver.Archiver;
|
|
||||||
private formatter;
|
|
||||||
constructor(file: File);
|
|
||||||
compile(output: Writable | express.Response): Promise<void>;
|
|
||||||
}
|
|
9
build/src/export/packer/express.d.ts
vendored
9
build/src/export/packer/express.d.ts
vendored
@ -1,9 +0,0 @@
|
|||||||
import * as express from "express";
|
|
||||||
import { File } from "file";
|
|
||||||
import { IPacker } from "./packer";
|
|
||||||
export declare class ExpressPacker implements IPacker {
|
|
||||||
private readonly res;
|
|
||||||
private readonly packer;
|
|
||||||
constructor(file: File, res: express.Response);
|
|
||||||
pack(name: string): Promise<void>;
|
|
||||||
}
|
|
10
build/src/export/packer/local.d.ts
vendored
10
build/src/export/packer/local.d.ts
vendored
@ -1,10 +0,0 @@
|
|||||||
import { File } from "../../file";
|
|
||||||
import { IPacker } from "./packer";
|
|
||||||
export declare class LocalPacker implements IPacker {
|
|
||||||
private stream;
|
|
||||||
private readonly pdfConverter;
|
|
||||||
private readonly packer;
|
|
||||||
constructor(file: File);
|
|
||||||
pack(filePath: string): Promise<void>;
|
|
||||||
packPdf(filePath: string): Promise<void>;
|
|
||||||
}
|
|
4
build/src/export/packer/packer.d.ts
vendored
4
build/src/export/packer/packer.d.ts
vendored
@ -1,4 +0,0 @@
|
|||||||
export interface IPacker {
|
|
||||||
pack(path: string): void;
|
|
||||||
}
|
|
||||||
export declare const WORKAROUND = "";
|
|
@ -1,7 +0,0 @@
|
|||||||
import * as request from "request-promise";
|
|
||||||
export interface IConvertOutput {
|
|
||||||
data: string;
|
|
||||||
}
|
|
||||||
export declare class PdfConvertWrapper {
|
|
||||||
convert(filePath: string): request.RequestPromise;
|
|
||||||
}
|
|
9
build/src/export/packer/stream.d.ts
vendored
9
build/src/export/packer/stream.d.ts
vendored
@ -1,9 +0,0 @@
|
|||||||
/// <reference types="node" />
|
|
||||||
import { Readable } from "stream";
|
|
||||||
import { File } from "../../file";
|
|
||||||
import { IPacker } from "./packer";
|
|
||||||
export declare class StreamPacker implements IPacker {
|
|
||||||
private readonly compiler;
|
|
||||||
constructor(file: File);
|
|
||||||
pack(): Readable;
|
|
||||||
}
|
|
@ -1,11 +0,0 @@
|
|||||||
import { XmlAttributeComponent } from "file/xml-components";
|
|
||||||
export interface IAppPropertiesAttributes {
|
|
||||||
xmlns: string;
|
|
||||||
vt: string;
|
|
||||||
}
|
|
||||||
export declare class AppPropertiesAttributes extends XmlAttributeComponent<IAppPropertiesAttributes> {
|
|
||||||
protected xmlKeys: {
|
|
||||||
xmlns: string;
|
|
||||||
vt: string;
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,4 +0,0 @@
|
|||||||
import { XmlComponent } from "file/xml-components";
|
|
||||||
export declare class AppProperties extends XmlComponent {
|
|
||||||
constructor();
|
|
||||||
}
|
|
@ -1,9 +0,0 @@
|
|||||||
import { XmlAttributeComponent } from "file/xml-components";
|
|
||||||
export interface IContentTypeAttributes {
|
|
||||||
xmlns?: string;
|
|
||||||
}
|
|
||||||
export declare class ContentTypeAttributes extends XmlAttributeComponent<IContentTypeAttributes> {
|
|
||||||
protected xmlKeys: {
|
|
||||||
xmlns: string;
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,6 +0,0 @@
|
|||||||
import { XmlComponent } from "file/xml-components";
|
|
||||||
export declare class ContentTypes extends XmlComponent {
|
|
||||||
constructor();
|
|
||||||
addFooter(index: number): void;
|
|
||||||
addHeader(index: number): void;
|
|
||||||
}
|
|
@ -1,11 +0,0 @@
|
|||||||
import { XmlAttributeComponent } from "file/xml-components";
|
|
||||||
export interface IDefaultAttributes {
|
|
||||||
contentType: string;
|
|
||||||
extension?: string;
|
|
||||||
}
|
|
||||||
export declare class DefaultAttributes extends XmlAttributeComponent<IDefaultAttributes> {
|
|
||||||
protected xmlKeys: {
|
|
||||||
contentType: string;
|
|
||||||
extension: string;
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,4 +0,0 @@
|
|||||||
import { XmlComponent } from "file/xml-components";
|
|
||||||
export declare class Default extends XmlComponent {
|
|
||||||
constructor(contentType: string, extension?: string);
|
|
||||||
}
|
|
@ -1,11 +0,0 @@
|
|||||||
import { XmlAttributeComponent } from "file/xml-components";
|
|
||||||
export interface IOverrideAttributes {
|
|
||||||
contentType: string;
|
|
||||||
partName?: string;
|
|
||||||
}
|
|
||||||
export declare class OverrideAttributes extends XmlAttributeComponent<IOverrideAttributes> {
|
|
||||||
protected xmlKeys: {
|
|
||||||
contentType: string;
|
|
||||||
partName: string;
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,4 +0,0 @@
|
|||||||
import { XmlComponent } from "file/xml-components";
|
|
||||||
export declare class Override extends XmlComponent {
|
|
||||||
constructor(contentType: string, partName?: string);
|
|
||||||
}
|
|
31
build/src/file/core-properties/components.d.ts
vendored
31
build/src/file/core-properties/components.d.ts
vendored
@ -1,31 +0,0 @@
|
|||||||
import { XmlComponent } from "file/xml-components";
|
|
||||||
export declare class Title extends XmlComponent {
|
|
||||||
constructor(value: string);
|
|
||||||
}
|
|
||||||
export declare class Subject extends XmlComponent {
|
|
||||||
constructor(value: string);
|
|
||||||
}
|
|
||||||
export declare class Creator extends XmlComponent {
|
|
||||||
constructor(value: string);
|
|
||||||
}
|
|
||||||
export declare class Keywords extends XmlComponent {
|
|
||||||
constructor(value: string);
|
|
||||||
}
|
|
||||||
export declare class Description extends XmlComponent {
|
|
||||||
constructor(value: string);
|
|
||||||
}
|
|
||||||
export declare class LastModifiedBy extends XmlComponent {
|
|
||||||
constructor(value: string);
|
|
||||||
}
|
|
||||||
export declare class Revision extends XmlComponent {
|
|
||||||
constructor(value: string);
|
|
||||||
}
|
|
||||||
export declare abstract class DateComponent extends XmlComponent {
|
|
||||||
protected getCurrentDate(): string;
|
|
||||||
}
|
|
||||||
export declare class Created extends DateComponent {
|
|
||||||
constructor();
|
|
||||||
}
|
|
||||||
export declare class Modified extends DateComponent {
|
|
||||||
constructor();
|
|
||||||
}
|
|
1
build/src/file/core-properties/index.d.ts
vendored
1
build/src/file/core-properties/index.d.ts
vendored
@ -1 +0,0 @@
|
|||||||
export * from "./properties";
|
|
14
build/src/file/core-properties/properties.d.ts
vendored
14
build/src/file/core-properties/properties.d.ts
vendored
@ -1,14 +0,0 @@
|
|||||||
import { XmlComponent } from "file/xml-components";
|
|
||||||
export interface IPropertiesOptions {
|
|
||||||
title?: string;
|
|
||||||
subject?: string;
|
|
||||||
creator?: string;
|
|
||||||
keywords?: string;
|
|
||||||
description?: string;
|
|
||||||
lastModifiedBy?: string;
|
|
||||||
revision?: string;
|
|
||||||
externalStyles?: string;
|
|
||||||
}
|
|
||||||
export declare class CoreProperties extends XmlComponent {
|
|
||||||
constructor(options: IPropertiesOptions);
|
|
||||||
}
|
|
12
build/src/file/document/body/body.d.ts
vendored
12
build/src/file/document/body/body.d.ts
vendored
@ -1,12 +0,0 @@
|
|||||||
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
2
build/src/file/document/body/index.d.ts
vendored
@ -1,2 +0,0 @@
|
|||||||
export * from "./body";
|
|
||||||
export * from "./section-properties";
|
|
@ -1,9 +0,0 @@
|
|||||||
import { XmlAttributeComponent } from "file/xml-components";
|
|
||||||
export interface IColumnsAttributes {
|
|
||||||
space?: number;
|
|
||||||
}
|
|
||||||
export declare class ColumnsAttributes extends XmlAttributeComponent<IColumnsAttributes> {
|
|
||||||
protected xmlKeys: {
|
|
||||||
space: string;
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,4 +0,0 @@
|
|||||||
import { XmlComponent } from "file/xml-components";
|
|
||||||
export declare class Columns extends XmlComponent {
|
|
||||||
constructor(space: number);
|
|
||||||
}
|
|
@ -1,9 +0,0 @@
|
|||||||
import { XmlAttributeComponent } from "file/xml-components";
|
|
||||||
export interface IDocGridAttributesProperties {
|
|
||||||
linePitch?: number;
|
|
||||||
}
|
|
||||||
export declare class DocGridAttributes extends XmlAttributeComponent<IDocGridAttributesProperties> {
|
|
||||||
protected xmlKeys: {
|
|
||||||
linePitch: string;
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,4 +0,0 @@
|
|||||||
import { XmlComponent } from "file/xml-components";
|
|
||||||
export declare class DocumentGrid extends XmlComponent {
|
|
||||||
constructor(linePitch: number);
|
|
||||||
}
|
|
@ -1,16 +0,0 @@
|
|||||||
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;
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,9 +0,0 @@
|
|||||||
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);
|
|
||||||
}
|
|
@ -1,2 +0,0 @@
|
|||||||
export * from "./footer-reference";
|
|
||||||
export * from "./footer-reference-attributes";
|
|
@ -1,16 +0,0 @@
|
|||||||
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;
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,9 +0,0 @@
|
|||||||
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);
|
|
||||||
}
|
|
@ -1,2 +0,0 @@
|
|||||||
export * from "./header-reference";
|
|
||||||
export * from "./header-reference-attributes";
|
|
@ -1,5 +0,0 @@
|
|||||||
export * from "./section-properties";
|
|
||||||
export * from "./footer-reference";
|
|
||||||
export * from "./header-reference";
|
|
||||||
export * from "./page-size";
|
|
||||||
export * from "./page-number";
|
|
@ -1,21 +0,0 @@
|
|||||||
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;
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,4 +0,0 @@
|
|||||||
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 +0,0 @@
|
|||||||
export * from "./page-number";
|
|
@ -1,28 +0,0 @@
|
|||||||
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);
|
|
||||||
}
|
|
@ -1,2 +0,0 @@
|
|||||||
export * from "./page-size";
|
|
||||||
export * from "./page-size-attributes";
|
|
@ -1,17 +0,0 @@
|
|||||||
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;
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,5 +0,0 @@
|
|||||||
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);
|
|
||||||
}
|
|
@ -1,14 +0,0 @@
|
|||||||
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;
|
|
||||||
}
|
|
53
build/src/file/document/document-attributes.d.ts
vendored
53
build/src/file/document/document-attributes.d.ts
vendored
@ -1,53 +0,0 @@
|
|||||||
import { XmlAttributeComponent } from "file/xml-components";
|
|
||||||
export interface IDocumentAttributesProperties {
|
|
||||||
wpc?: string;
|
|
||||||
mc?: string;
|
|
||||||
o?: string;
|
|
||||||
r?: string;
|
|
||||||
m?: string;
|
|
||||||
v?: string;
|
|
||||||
wp14?: string;
|
|
||||||
wp?: string;
|
|
||||||
w10?: string;
|
|
||||||
w?: string;
|
|
||||||
w14?: string;
|
|
||||||
w15?: string;
|
|
||||||
wpg?: string;
|
|
||||||
wpi?: string;
|
|
||||||
wne?: string;
|
|
||||||
wps?: string;
|
|
||||||
Ignorable?: string;
|
|
||||||
cp?: string;
|
|
||||||
dc?: string;
|
|
||||||
dcterms?: string;
|
|
||||||
dcmitype?: string;
|
|
||||||
xsi?: string;
|
|
||||||
type?: string;
|
|
||||||
}
|
|
||||||
export declare class DocumentAttributes extends XmlAttributeComponent<IDocumentAttributesProperties> {
|
|
||||||
protected xmlKeys: {
|
|
||||||
wpc: string;
|
|
||||||
mc: string;
|
|
||||||
o: string;
|
|
||||||
r: string;
|
|
||||||
m: string;
|
|
||||||
v: string;
|
|
||||||
wp14: string;
|
|
||||||
wp: string;
|
|
||||||
w10: string;
|
|
||||||
w: string;
|
|
||||||
w14: string;
|
|
||||||
w15: string;
|
|
||||||
wpg: string;
|
|
||||||
wpi: string;
|
|
||||||
wne: string;
|
|
||||||
wps: string;
|
|
||||||
Ignorable: string;
|
|
||||||
cp: string;
|
|
||||||
dc: string;
|
|
||||||
dcterms: string;
|
|
||||||
dcmitype: string;
|
|
||||||
xsi: string;
|
|
||||||
type: string;
|
|
||||||
};
|
|
||||||
}
|
|
17
build/src/file/document/document.d.ts
vendored
17
build/src/file/document/document.d.ts
vendored
@ -1,17 +0,0 @@
|
|||||||
import { IMediaData } from "file/media";
|
|
||||||
import { XmlComponent } from "file/xml-components";
|
|
||||||
import { Paragraph, PictureRun } from "../paragraph";
|
|
||||||
import { Table } from "../table";
|
|
||||||
import { Body } from "./body";
|
|
||||||
import { SectionPropertiesOptions } from "./body/section-properties/section-properties";
|
|
||||||
export declare class Document extends XmlComponent {
|
|
||||||
private readonly body;
|
|
||||||
constructor(sectionPropertiesOptions?: SectionPropertiesOptions);
|
|
||||||
addParagraph(paragraph: Paragraph): void;
|
|
||||||
createParagraph(text?: string): Paragraph;
|
|
||||||
addTable(table: Table): void;
|
|
||||||
createTable(rows: number, cols: number): Table;
|
|
||||||
addDrawing(pictureParagraph: Paragraph): void;
|
|
||||||
createDrawing(imageData: IMediaData): PictureRun;
|
|
||||||
readonly Body: Body;
|
|
||||||
}
|
|
2
build/src/file/document/index.d.ts
vendored
2
build/src/file/document/index.d.ts
vendored
@ -1,2 +0,0 @@
|
|||||||
export * from "./document";
|
|
||||||
export * from "./body";
|
|
@ -1,24 +0,0 @@
|
|||||||
import { XmlAttributeComponent } from "file/xml-components";
|
|
||||||
import { IDistance } from "../drawing";
|
|
||||||
export interface IAnchorAttributes extends IDistance {
|
|
||||||
allowOverlap?: "0" | "1";
|
|
||||||
behindDoc?: "0" | "1";
|
|
||||||
layoutInCell?: "0" | "1";
|
|
||||||
locked?: "0" | "1";
|
|
||||||
relativeHeight?: number;
|
|
||||||
simplePos?: "0" | "1";
|
|
||||||
}
|
|
||||||
export declare class AnchorAttributes extends XmlAttributeComponent<IAnchorAttributes> {
|
|
||||||
protected xmlKeys: {
|
|
||||||
distT: string;
|
|
||||||
distB: string;
|
|
||||||
distL: string;
|
|
||||||
distR: string;
|
|
||||||
allowOverlap: string;
|
|
||||||
behindDoc: string;
|
|
||||||
layoutInCell: string;
|
|
||||||
locked: string;
|
|
||||||
relativeHeight: string;
|
|
||||||
simplePos: string;
|
|
||||||
};
|
|
||||||
}
|
|
6
build/src/file/drawing/anchor/anchor.d.ts
vendored
6
build/src/file/drawing/anchor/anchor.d.ts
vendored
@ -1,6 +0,0 @@
|
|||||||
import { IMediaDataDimensions } from "file/media";
|
|
||||||
import { XmlComponent } from "file/xml-components";
|
|
||||||
import { IDrawingOptions } from "../drawing";
|
|
||||||
export declare class Anchor extends XmlComponent {
|
|
||||||
constructor(referenceId: number, dimensions: IMediaDataDimensions, drawingOptions: IDrawingOptions);
|
|
||||||
}
|
|
2
build/src/file/drawing/anchor/index.d.ts
vendored
2
build/src/file/drawing/anchor/index.d.ts
vendored
@ -1,2 +0,0 @@
|
|||||||
export * from "./anchor";
|
|
||||||
export * from "./anchor-attributes";
|
|
@ -1,13 +0,0 @@
|
|||||||
import { XmlAttributeComponent } from "file/xml-components";
|
|
||||||
export interface IDocPropertiesAttributes {
|
|
||||||
id?: number;
|
|
||||||
name?: string;
|
|
||||||
descr?: string;
|
|
||||||
}
|
|
||||||
export declare class DocPropertiesAttributes extends XmlAttributeComponent<IDocPropertiesAttributes> {
|
|
||||||
protected xmlKeys: {
|
|
||||||
id: string;
|
|
||||||
name: string;
|
|
||||||
descr: string;
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,4 +0,0 @@
|
|||||||
import { XmlComponent } from "file/xml-components";
|
|
||||||
export declare class DocProperties extends XmlComponent {
|
|
||||||
constructor();
|
|
||||||
}
|
|
24
build/src/file/drawing/drawing.d.ts
vendored
24
build/src/file/drawing/drawing.d.ts
vendored
@ -1,24 +0,0 @@
|
|||||||
import { IMediaData } from "file/media";
|
|
||||||
import { XmlComponent } from "file/xml-components";
|
|
||||||
import { IFloating } from "./floating";
|
|
||||||
import { ITextWrapping } from "./text-wrap";
|
|
||||||
export declare enum PlacementPosition {
|
|
||||||
INLINE = 0,
|
|
||||||
FLOATING = 1
|
|
||||||
}
|
|
||||||
export interface IDistance {
|
|
||||||
distT?: number;
|
|
||||||
distB?: number;
|
|
||||||
distL?: number;
|
|
||||||
distR?: number;
|
|
||||||
}
|
|
||||||
export interface IDrawingOptions {
|
|
||||||
position?: PlacementPosition;
|
|
||||||
textWrapping?: ITextWrapping;
|
|
||||||
floating?: IFloating;
|
|
||||||
}
|
|
||||||
export declare class Drawing extends XmlComponent {
|
|
||||||
private inline;
|
|
||||||
constructor(imageData: IMediaData, drawingOptions?: IDrawingOptions);
|
|
||||||
scale(factorX: number, factorY: number): void;
|
|
||||||
}
|
|
@ -1,15 +0,0 @@
|
|||||||
import { XmlAttributeComponent } from "file/xml-components";
|
|
||||||
export interface IEffectExtentAttributes {
|
|
||||||
b?: number;
|
|
||||||
l?: number;
|
|
||||||
r?: number;
|
|
||||||
t?: number;
|
|
||||||
}
|
|
||||||
export declare class EffectExtentAttributes extends XmlAttributeComponent<IEffectExtentAttributes> {
|
|
||||||
protected xmlKeys: {
|
|
||||||
b: string;
|
|
||||||
l: string;
|
|
||||||
r: string;
|
|
||||||
t: string;
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,4 +0,0 @@
|
|||||||
import { XmlComponent } from "file/xml-components";
|
|
||||||
export declare class EffectExtent extends XmlComponent {
|
|
||||||
constructor();
|
|
||||||
}
|
|
@ -1,11 +0,0 @@
|
|||||||
import { XmlAttributeComponent } from "file/xml-components";
|
|
||||||
export interface IExtentAttributes {
|
|
||||||
cx?: number;
|
|
||||||
cy?: number;
|
|
||||||
}
|
|
||||||
export declare class ExtentAttributes extends XmlAttributeComponent<IExtentAttributes> {
|
|
||||||
protected xmlKeys: {
|
|
||||||
cx: string;
|
|
||||||
cy: string;
|
|
||||||
};
|
|
||||||
}
|
|
6
build/src/file/drawing/extent/extent.d.ts
vendored
6
build/src/file/drawing/extent/extent.d.ts
vendored
@ -1,6 +0,0 @@
|
|||||||
import { XmlComponent } from "file/xml-components";
|
|
||||||
export declare class Extent extends XmlComponent {
|
|
||||||
private attributes;
|
|
||||||
constructor(x: number, y: number);
|
|
||||||
setXY(x: number, y: number): void;
|
|
||||||
}
|
|
5
build/src/file/drawing/floating/align.d.ts
vendored
5
build/src/file/drawing/floating/align.d.ts
vendored
@ -1,5 +0,0 @@
|
|||||||
import { XmlComponent } from "file/xml-components";
|
|
||||||
import { HorizontalPositionAlign, VerticalPositionAlign } from "./floating-position";
|
|
||||||
export declare class Align extends XmlComponent {
|
|
||||||
constructor(value: HorizontalPositionAlign | VerticalPositionAlign);
|
|
||||||
}
|
|
@ -1,52 +0,0 @@
|
|||||||
export declare enum HorizontalPositionRelativeFrom {
|
|
||||||
CHARACTER = "character",
|
|
||||||
COLUMN = "column",
|
|
||||||
INSIDE_MARGIN = "insideMargin",
|
|
||||||
LEFT_MARGIN = "leftMargin",
|
|
||||||
MARGIN = "margin",
|
|
||||||
OUTSIDE_MARGIN = "outsideMargin",
|
|
||||||
PAGE = "page",
|
|
||||||
RIGHT_MARGIN = "rightMargin"
|
|
||||||
}
|
|
||||||
export declare enum VerticalPositionRelativeFrom {
|
|
||||||
BOTTOM_MARGIN = "bottomMargin",
|
|
||||||
INSIDE_MARGIN = "insideMargin",
|
|
||||||
LINE = "line",
|
|
||||||
MARGIN = "margin",
|
|
||||||
OUTSIDE_MARGIN = "outsideMargin",
|
|
||||||
PAGE = "page",
|
|
||||||
PARAGRAPH = "paragraph",
|
|
||||||
TOP_MARGIN = "topMargin"
|
|
||||||
}
|
|
||||||
export declare enum HorizontalPositionAlign {
|
|
||||||
CENTER = "center",
|
|
||||||
INSIDE = "inside",
|
|
||||||
LEFT = "left",
|
|
||||||
OUTSIDE = "outside",
|
|
||||||
RIGHT = "right"
|
|
||||||
}
|
|
||||||
export declare enum VerticalPositionAlign {
|
|
||||||
BOTTOM = "bottom",
|
|
||||||
CENTER = "center",
|
|
||||||
INSIDE = "inside",
|
|
||||||
OUTSIDE = "outside",
|
|
||||||
TOP = "top"
|
|
||||||
}
|
|
||||||
export interface IHorizontalPositionOptions {
|
|
||||||
relative: HorizontalPositionRelativeFrom;
|
|
||||||
align?: HorizontalPositionAlign;
|
|
||||||
offset?: number;
|
|
||||||
}
|
|
||||||
export interface IVerticalPositionOptions {
|
|
||||||
relative: VerticalPositionRelativeFrom;
|
|
||||||
align?: VerticalPositionAlign;
|
|
||||||
offset?: number;
|
|
||||||
}
|
|
||||||
export interface IFloating {
|
|
||||||
horizontalPosition: IHorizontalPositionOptions;
|
|
||||||
verticalPosition: IVerticalPositionOptions;
|
|
||||||
allowOverlap?: boolean;
|
|
||||||
lockAnchor?: boolean;
|
|
||||||
behindDocument?: boolean;
|
|
||||||
layoutInCell?: boolean;
|
|
||||||
}
|
|
@ -1,5 +0,0 @@
|
|||||||
import { XmlComponent } from "file/xml-components";
|
|
||||||
import { IHorizontalPositionOptions } from "./floating-position";
|
|
||||||
export declare class HorizontalPosition extends XmlComponent {
|
|
||||||
constructor(horizontalPosition: IHorizontalPositionOptions);
|
|
||||||
}
|
|
4
build/src/file/drawing/floating/index.d.ts
vendored
4
build/src/file/drawing/floating/index.d.ts
vendored
@ -1,4 +0,0 @@
|
|||||||
export * from "./floating-position";
|
|
||||||
export * from "./simple-pos";
|
|
||||||
export * from "./horizontal-position";
|
|
||||||
export * from "./vertical-position";
|
|
@ -1,4 +0,0 @@
|
|||||||
import { XmlComponent } from "file/xml-components";
|
|
||||||
export declare class PositionOffset extends XmlComponent {
|
|
||||||
constructor(offsetValue: number);
|
|
||||||
}
|
|
@ -1,4 +0,0 @@
|
|||||||
import { XmlComponent } from "file/xml-components";
|
|
||||||
export declare class SimplePos extends XmlComponent {
|
|
||||||
constructor();
|
|
||||||
}
|
|
@ -1,5 +0,0 @@
|
|||||||
import { XmlComponent } from "file/xml-components";
|
|
||||||
import { IVerticalPositionOptions } from "./floating-position";
|
|
||||||
export declare class VerticalPosition extends XmlComponent {
|
|
||||||
constructor(verticalPosition: IVerticalPositionOptions);
|
|
||||||
}
|
|
@ -1,11 +0,0 @@
|
|||||||
import { XmlAttributeComponent } from "file/xml-components";
|
|
||||||
export interface IGraphicFrameLockAttributes {
|
|
||||||
xmlns?: string;
|
|
||||||
noChangeAspect?: number;
|
|
||||||
}
|
|
||||||
export declare class GraphicFrameLockAttributes extends XmlAttributeComponent<IGraphicFrameLockAttributes> {
|
|
||||||
protected xmlKeys: {
|
|
||||||
xmlns: string;
|
|
||||||
noChangeAspect: string;
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,4 +0,0 @@
|
|||||||
import { XmlComponent } from "file/xml-components";
|
|
||||||
export declare class GraphicFrameLocks extends XmlComponent {
|
|
||||||
constructor();
|
|
||||||
}
|
|
@ -1,4 +0,0 @@
|
|||||||
import { XmlComponent } from "file/xml-components";
|
|
||||||
export declare class GraphicFrameProperties extends XmlComponent {
|
|
||||||
constructor();
|
|
||||||
}
|
|
3
build/src/file/drawing/index.d.ts
vendored
3
build/src/file/drawing/index.d.ts
vendored
@ -1,3 +0,0 @@
|
|||||||
export * from "./drawing";
|
|
||||||
export * from "./text-wrap";
|
|
||||||
export * from "./floating";
|
|
@ -1,9 +0,0 @@
|
|||||||
import { XmlAttributeComponent } from "file/xml-components";
|
|
||||||
export interface IGraphicDataAttributes {
|
|
||||||
uri?: string;
|
|
||||||
}
|
|
||||||
export declare class GraphicDataAttributes extends XmlAttributeComponent<IGraphicDataAttributes> {
|
|
||||||
protected xmlKeys: {
|
|
||||||
uri: string;
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,6 +0,0 @@
|
|||||||
import { XmlComponent } from "file/xml-components";
|
|
||||||
export declare class GraphicData extends XmlComponent {
|
|
||||||
private pic;
|
|
||||||
constructor(referenceId: number, x: number, y: number);
|
|
||||||
setXY(x: number, y: number): void;
|
|
||||||
}
|
|
@ -1 +0,0 @@
|
|||||||
export * from "./graphic-data";
|
|
@ -1,4 +0,0 @@
|
|||||||
import { XmlComponent } from "file/xml-components";
|
|
||||||
export declare class BlipFill extends XmlComponent {
|
|
||||||
constructor(referenceId: number);
|
|
||||||
}
|
|
@ -1,4 +0,0 @@
|
|||||||
import { XmlComponent } from "file/xml-components";
|
|
||||||
export declare class Blip extends XmlComponent {
|
|
||||||
constructor(referenceId: number);
|
|
||||||
}
|
|
@ -1,4 +0,0 @@
|
|||||||
import { XmlComponent } from "file/xml-components";
|
|
||||||
export declare class SourceRectangle extends XmlComponent {
|
|
||||||
constructor();
|
|
||||||
}
|
|
@ -1,4 +0,0 @@
|
|||||||
import { XmlComponent } from "file/xml-components";
|
|
||||||
export declare class Stretch extends XmlComponent {
|
|
||||||
constructor();
|
|
||||||
}
|
|
@ -1 +0,0 @@
|
|||||||
export * from "./pic";
|
|
@ -1,4 +0,0 @@
|
|||||||
import { XmlComponent } from "file/xml-components";
|
|
||||||
export declare class ChildNonVisualProperties extends XmlComponent {
|
|
||||||
constructor();
|
|
||||||
}
|
|
@ -1,11 +0,0 @@
|
|||||||
import { XmlAttributeComponent } from "file/xml-components";
|
|
||||||
export interface IPicLocksAttributes {
|
|
||||||
noChangeAspect?: number;
|
|
||||||
noChangeArrowheads?: number;
|
|
||||||
}
|
|
||||||
export declare class PicLocksAttributes extends XmlAttributeComponent<IPicLocksAttributes> {
|
|
||||||
protected xmlKeys: {
|
|
||||||
noChangeAspect: string;
|
|
||||||
noChangeArrowheads: string;
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,4 +0,0 @@
|
|||||||
import { XmlComponent } from "file/xml-components";
|
|
||||||
export declare class PicLocks extends XmlComponent {
|
|
||||||
constructor();
|
|
||||||
}
|
|
@ -1,4 +0,0 @@
|
|||||||
import { XmlComponent } from "file/xml-components";
|
|
||||||
export declare class NonVisualPicProperties extends XmlComponent {
|
|
||||||
constructor();
|
|
||||||
}
|
|
@ -1,13 +0,0 @@
|
|||||||
import { XmlAttributeComponent } from "file/xml-components";
|
|
||||||
export interface INonVisualPropertiesAttributes {
|
|
||||||
id?: number;
|
|
||||||
name?: string;
|
|
||||||
descr?: string;
|
|
||||||
}
|
|
||||||
export declare class NonVisualPropertiesAttributes extends XmlAttributeComponent<INonVisualPropertiesAttributes> {
|
|
||||||
protected xmlKeys: {
|
|
||||||
id: string;
|
|
||||||
name: string;
|
|
||||||
descr: string;
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,4 +0,0 @@
|
|||||||
import { XmlComponent } from "file/xml-components";
|
|
||||||
export declare class NonVisualProperties extends XmlComponent {
|
|
||||||
constructor();
|
|
||||||
}
|
|
@ -1,9 +0,0 @@
|
|||||||
import { XmlAttributeComponent } from "file/xml-components";
|
|
||||||
export interface IPicAttributes {
|
|
||||||
xmlns?: string;
|
|
||||||
}
|
|
||||||
export declare class PicAttributes extends XmlAttributeComponent<IPicAttributes> {
|
|
||||||
protected xmlKeys: {
|
|
||||||
xmlns: string;
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,6 +0,0 @@
|
|||||||
import { XmlComponent } from "file/xml-components";
|
|
||||||
export declare class Pic extends XmlComponent {
|
|
||||||
private shapeProperties;
|
|
||||||
constructor(referenceId: number, x: number, y: number);
|
|
||||||
setXY(x: number, y: number): void;
|
|
||||||
}
|
|
@ -1,11 +0,0 @@
|
|||||||
import { XmlAttributeComponent } from "file/xml-components";
|
|
||||||
export interface IExtentsAttributes {
|
|
||||||
cx?: number;
|
|
||||||
cy?: number;
|
|
||||||
}
|
|
||||||
export declare class ExtentsAttributes extends XmlAttributeComponent<IExtentsAttributes> {
|
|
||||||
protected xmlKeys: {
|
|
||||||
cx: string;
|
|
||||||
cy: string;
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,6 +0,0 @@
|
|||||||
import { XmlComponent } from "file/xml-components";
|
|
||||||
export declare class Extents extends XmlComponent {
|
|
||||||
private attributes;
|
|
||||||
constructor(x: number, y: number);
|
|
||||||
setXY(x: number, y: number): void;
|
|
||||||
}
|
|
@ -1,6 +0,0 @@
|
|||||||
import { XmlComponent } from "file/xml-components";
|
|
||||||
export declare class Form extends XmlComponent {
|
|
||||||
private extents;
|
|
||||||
constructor(x: number, y: number);
|
|
||||||
setXY(x: number, y: number): void;
|
|
||||||
}
|
|
@ -1 +0,0 @@
|
|||||||
export * from "./form";
|
|
@ -1,11 +0,0 @@
|
|||||||
import { XmlAttributeComponent } from "file/xml-components";
|
|
||||||
export interface IOffsetAttributes {
|
|
||||||
x?: number;
|
|
||||||
y?: number;
|
|
||||||
}
|
|
||||||
export declare class OffsetAttributes extends XmlAttributeComponent<IOffsetAttributes> {
|
|
||||||
protected xmlKeys: {
|
|
||||||
x: string;
|
|
||||||
y: string;
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,4 +0,0 @@
|
|||||||
import { XmlComponent } from "file/xml-components";
|
|
||||||
export declare class Offset extends XmlComponent {
|
|
||||||
constructor();
|
|
||||||
}
|
|
@ -1,4 +0,0 @@
|
|||||||
import { XmlComponent } from "file/xml-components";
|
|
||||||
export declare class AdjustmentValues extends XmlComponent {
|
|
||||||
constructor();
|
|
||||||
}
|
|
@ -1,9 +0,0 @@
|
|||||||
import { XmlAttributeComponent } from "file/xml-components";
|
|
||||||
export interface IPresetGeometryAttributes {
|
|
||||||
prst?: string;
|
|
||||||
}
|
|
||||||
export declare class PresetGeometryAttributes extends XmlAttributeComponent<IPresetGeometryAttributes> {
|
|
||||||
protected xmlKeys: {
|
|
||||||
prst: string;
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,4 +0,0 @@
|
|||||||
import { XmlComponent } from "file/xml-components";
|
|
||||||
export declare class PresetGeometry extends XmlComponent {
|
|
||||||
constructor();
|
|
||||||
}
|
|
@ -1,9 +0,0 @@
|
|||||||
import { XmlAttributeComponent } from "file/xml-components";
|
|
||||||
export interface IShapePropertiesAttributes {
|
|
||||||
bwMode?: string;
|
|
||||||
}
|
|
||||||
export declare class ShapePropertiesAttributes extends XmlAttributeComponent<IShapePropertiesAttributes> {
|
|
||||||
protected xmlKeys: {
|
|
||||||
bwMode: string;
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,6 +0,0 @@
|
|||||||
import { XmlComponent } from "file/xml-components";
|
|
||||||
export declare class ShapeProperties extends XmlComponent {
|
|
||||||
private form;
|
|
||||||
constructor(x: number, y: number);
|
|
||||||
setXY(x: number, y: number): void;
|
|
||||||
}
|
|
@ -1,6 +0,0 @@
|
|||||||
import { XmlComponent } from "file/xml-components";
|
|
||||||
export declare class Graphic extends XmlComponent {
|
|
||||||
private data;
|
|
||||||
constructor(referenceId: number, x: number, y: number);
|
|
||||||
setXY(x: number, y: number): void;
|
|
||||||
}
|
|
@ -1 +0,0 @@
|
|||||||
export * from "./graphic";
|
|
1
build/src/file/drawing/inline/index.d.ts
vendored
1
build/src/file/drawing/inline/index.d.ts
vendored
@ -1 +0,0 @@
|
|||||||
export * from "./inline";
|
|
@ -1,12 +0,0 @@
|
|||||||
import { XmlAttributeComponent } from "file/xml-components";
|
|
||||||
import { IDistance } from "../drawing";
|
|
||||||
export interface IInlineAttributes extends IDistance {
|
|
||||||
}
|
|
||||||
export declare class InlineAttributes extends XmlAttributeComponent<IInlineAttributes> {
|
|
||||||
protected xmlKeys: {
|
|
||||||
distT: string;
|
|
||||||
distB: string;
|
|
||||||
distL: string;
|
|
||||||
distR: string;
|
|
||||||
};
|
|
||||||
}
|
|
9
build/src/file/drawing/inline/inline.d.ts
vendored
9
build/src/file/drawing/inline/inline.d.ts
vendored
@ -1,9 +0,0 @@
|
|||||||
import { IMediaDataDimensions } from "file/media";
|
|
||||||
import { XmlComponent } from "file/xml-components";
|
|
||||||
export declare class Inline extends XmlComponent {
|
|
||||||
private dimensions;
|
|
||||||
private extent;
|
|
||||||
private graphic;
|
|
||||||
constructor(referenceId: number, dimensions: IMediaDataDimensions);
|
|
||||||
scale(factorX: number, factorY: number): void;
|
|
||||||
}
|
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user