mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-27 01:11:35 +00:00
print.d.ts更新 Signed-off-by:baozewei@huawei.com
Signed-off-by: 18903078203 <baozewei@huawei.com>
This commit is contained in:
parent
a1ee0acd61
commit
615c90ef8b
45
api/@ohos.print.d.ts
vendored
45
api/@ohos.print.d.ts
vendored
@ -203,7 +203,7 @@ declare namespace print {
|
||||
function print(files: Array<string>, context: Context): Promise<PrintTask>;
|
||||
|
||||
/**
|
||||
* Start new print task for App And the App need updata print file.
|
||||
* Start new print task for App And the App need update print file.
|
||||
* @permission ohos.permission.PRINT
|
||||
* @param { string } jobName - Indicates print file Name.
|
||||
* @param { PrintDocumentAdapter } printAdapter - Indicates functions implemented by the cpp.
|
||||
@ -218,7 +218,7 @@ declare namespace print {
|
||||
context: Context, callback: AsyncCallback<PrintTask>): void;
|
||||
|
||||
/**
|
||||
* Start new print task for App And the App need updata print file.
|
||||
* Start new print task for App And the App need update print file.
|
||||
* @permission ohos.permission.PRINT
|
||||
* @param { string } jobName - Indicates print file Name.
|
||||
* @param { PrintDocumentAdapter } printAdapter - Indicates functions implemented by the cpp.
|
||||
@ -236,7 +236,6 @@ declare namespace print {
|
||||
* defines print attributes.
|
||||
* @typedef PrintAttributes
|
||||
* @syscap SystemCapability.Print.PrintFramework
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 11
|
||||
*/
|
||||
interface PrintAttributes {
|
||||
@ -244,7 +243,6 @@ declare namespace print {
|
||||
* Copies of document list.
|
||||
* @type { ?number }
|
||||
* @syscap SystemCapability.Print.PrintFramework
|
||||
* @systemapi
|
||||
* @since 11
|
||||
*/
|
||||
copyNumber?: number;
|
||||
@ -253,7 +251,6 @@ declare namespace print {
|
||||
* Range size to be printed.
|
||||
* @type { ?PrinterRange }
|
||||
* @syscap SystemCapability.Print.PrintFramework
|
||||
* @systemapi
|
||||
* @since 11
|
||||
*/
|
||||
pageRange?: PrinterRange;
|
||||
@ -262,7 +259,6 @@ declare namespace print {
|
||||
* Page size.
|
||||
* @type { ?PrintPageSize | PrintPageTypeCode}
|
||||
* @syscap SystemCapability.Print.PrintFramework
|
||||
* @systemapi
|
||||
* @since 11
|
||||
*/
|
||||
pageSize?: PrintPageSize | PrintPageTypeCode;
|
||||
@ -271,7 +267,6 @@ declare namespace print {
|
||||
* Print direction.
|
||||
* @type { ?PrintDirectionModeCode }
|
||||
* @syscap SystemCapability.Print.PrintFramework
|
||||
* @systemapi
|
||||
* @since 11
|
||||
*/
|
||||
directionMode?: PrintDirectionModeCode;
|
||||
@ -280,7 +275,6 @@ declare namespace print {
|
||||
* Color mode.
|
||||
* @type { ?PrintColorModeCode }
|
||||
* @syscap SystemCapability.Print.PrintFramework
|
||||
* @systemapi
|
||||
* @since 11
|
||||
*/
|
||||
colorMode?: PrintColorModeCode;
|
||||
@ -289,7 +283,6 @@ declare namespace print {
|
||||
* Duplex mode.
|
||||
* @type { ?PrintDuplexModeCode }
|
||||
* @syscap SystemCapability.Print.PrintFramework
|
||||
* @systemapi
|
||||
* @since 11
|
||||
*/
|
||||
duplexMode?: PrintDuplexModeCode;
|
||||
@ -767,14 +760,12 @@ declare namespace print {
|
||||
* Enumeration of Print Direction Mode Code.
|
||||
* @enum { number } PrintDirectionModeCode
|
||||
* @syscap SystemCapability.Print.PrintFramework
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 11
|
||||
*/
|
||||
enum PrintDirectionModeCode {
|
||||
/**
|
||||
* Automatically select direction.
|
||||
* @syscap SystemCapability.Print.PrintFramework
|
||||
* @systemapi
|
||||
* @since 11
|
||||
*/
|
||||
DIRECTION_MODE_AUTO = 0,
|
||||
@ -782,7 +773,6 @@ declare namespace print {
|
||||
/**
|
||||
* Print portrait.
|
||||
* @syscap SystemCapability.Print.PrintFramework
|
||||
* @systemapi
|
||||
* @since 11
|
||||
*/
|
||||
DIRECTION_MODE_PORTRAIT = 1,
|
||||
@ -790,7 +780,6 @@ declare namespace print {
|
||||
/**
|
||||
* Print landscape.
|
||||
* @syscap SystemCapability.Print.PrintFramework
|
||||
* @systemapi
|
||||
* @since 11
|
||||
*/
|
||||
DIRECTION_MODE_LANDSCAPE = 2,
|
||||
@ -800,14 +789,12 @@ declare namespace print {
|
||||
* Enumeration of Print Color Mode Code.
|
||||
* @enum { number } PrintColorModeCode
|
||||
* @syscap SystemCapability.Print.PrintFramework
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 11
|
||||
*/
|
||||
enum PrintColorModeCode {
|
||||
/**
|
||||
* Print monochrome.
|
||||
* @syscap SystemCapability.Print.PrintFramework
|
||||
* @systemapi
|
||||
* @since 11
|
||||
*/
|
||||
COLOR_MODE_MONOCHROME = 0,
|
||||
@ -815,7 +802,6 @@ declare namespace print {
|
||||
/**
|
||||
* Color printing.
|
||||
* @syscap SystemCapability.Print.PrintFramework
|
||||
* @systemapi
|
||||
* @since 11
|
||||
*/
|
||||
COLOR_MODE_COLOR = 1,
|
||||
@ -825,14 +811,12 @@ declare namespace print {
|
||||
* Enumeration of Print Duplex Mode Code.
|
||||
* @enum { number } PrintDuplexModeCode
|
||||
* @syscap SystemCapability.Print.PrintFramework
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 11
|
||||
*/
|
||||
enum PrintDuplexModeCode {
|
||||
/**
|
||||
* Single side printing.
|
||||
* @syscap SystemCapability.Print.PrintFramework
|
||||
* @systemapi
|
||||
* @since 11
|
||||
*/
|
||||
DUPLEX_MODE_NONE = 0,
|
||||
@ -840,7 +824,6 @@ declare namespace print {
|
||||
/**
|
||||
* Long-edge flip-up duplex printing.
|
||||
* @syscap SystemCapability.Print.PrintFramework
|
||||
* @systemapi
|
||||
* @since 11
|
||||
*/
|
||||
DUPLEX_MODE_LONG_EDGE = 1,
|
||||
@ -848,7 +831,6 @@ declare namespace print {
|
||||
/**
|
||||
* Short-edge flip-up duplex printing.
|
||||
* @syscap SystemCapability.Print.PrintFramework
|
||||
* @systemapi
|
||||
* @since 11
|
||||
*/
|
||||
DUPLEX_MODE_SHORT_EDGE = 2,
|
||||
@ -858,14 +840,12 @@ declare namespace print {
|
||||
* Enumeration of Print Page Type Code.
|
||||
* @enum { number } PrintPageTypeCode
|
||||
* @syscap SystemCapability.Print.PrintFramework
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 11
|
||||
*/
|
||||
enum PrintPageTypeCode {
|
||||
/**
|
||||
* A3 page.
|
||||
* @syscap SystemCapability.Print.PrintFramework
|
||||
* @systemapi
|
||||
* @since 11
|
||||
*/
|
||||
PAGE_ISO_A3 = 0,
|
||||
@ -873,7 +853,6 @@ declare namespace print {
|
||||
/**
|
||||
* A4 page.
|
||||
* @syscap SystemCapability.Print.PrintFramework
|
||||
* @systemapi
|
||||
* @since 11
|
||||
*/
|
||||
PAGE_ISO_A4 = 1,
|
||||
@ -881,7 +860,6 @@ declare namespace print {
|
||||
/**
|
||||
* A5 page.
|
||||
* @syscap SystemCapability.Print.PrintFramework
|
||||
* @systemapi
|
||||
* @since 11
|
||||
*/
|
||||
PAGE_ISO_A5 = 2,
|
||||
@ -889,7 +867,6 @@ declare namespace print {
|
||||
/**
|
||||
* B5 page.
|
||||
* @syscap SystemCapability.Print.PrintFramework
|
||||
* @systemapi
|
||||
* @since 11
|
||||
*/
|
||||
PAGE_ISO_B5 = 3,
|
||||
@ -897,7 +874,6 @@ declare namespace print {
|
||||
/**
|
||||
* C5 page.
|
||||
* @syscap SystemCapability.Print.PrintFramework
|
||||
* @systemapi
|
||||
* @since 11
|
||||
*/
|
||||
PAGE_ISO_C5 = 4,
|
||||
@ -905,7 +881,6 @@ declare namespace print {
|
||||
/**
|
||||
* DL Envelope.
|
||||
* @syscap SystemCapability.Print.PrintFramework
|
||||
* @systemapi
|
||||
* @since 11
|
||||
*/
|
||||
PAGE_ISO_DL = 5,
|
||||
@ -913,7 +888,6 @@ declare namespace print {
|
||||
/**
|
||||
* Letter.
|
||||
* @syscap SystemCapability.Print.PrintFramework
|
||||
* @systemapi
|
||||
* @since 11
|
||||
*/
|
||||
PAGE_LETTER = 6,
|
||||
@ -921,7 +895,6 @@ declare namespace print {
|
||||
/**
|
||||
* Legal.
|
||||
* @syscap SystemCapability.Print.PrintFramework
|
||||
* @systemapi
|
||||
* @since 11
|
||||
*/
|
||||
PAGE_LEGAL = 7,
|
||||
@ -929,7 +902,6 @@ declare namespace print {
|
||||
/**
|
||||
* Photo 4x6.
|
||||
* @syscap SystemCapability.Print.PrintFramework
|
||||
* @systemapi
|
||||
* @since 11
|
||||
*/
|
||||
PAGE_PHOTO_4x6 = 8,
|
||||
@ -937,7 +909,6 @@ declare namespace print {
|
||||
/**
|
||||
* Photo 5x7.
|
||||
* @syscap SystemCapability.Print.PrintFramework
|
||||
* @systemapi
|
||||
* @since 11
|
||||
*/
|
||||
PAGE_PHOTO_5x7 = 9,
|
||||
@ -945,7 +916,6 @@ declare namespace print {
|
||||
/**
|
||||
* Envelopr INT DL.
|
||||
* @syscap SystemCapability.Print.PrintFramework
|
||||
* @systemapi
|
||||
* @since 11
|
||||
*/
|
||||
PAGE_INT_DL_ENVELOPE = 10,
|
||||
@ -953,7 +923,6 @@ declare namespace print {
|
||||
/**
|
||||
* Tabloid B.
|
||||
* @syscap SystemCapability.Print.PrintFramework
|
||||
* @systemapi
|
||||
* @since 11
|
||||
*/
|
||||
PAGE_B_TABLOID = 11,
|
||||
@ -963,14 +932,12 @@ declare namespace print {
|
||||
* Enumeration of Print Adapter Listening State.
|
||||
* @enum { number } PrintAdapterListeningState
|
||||
* @syscap SystemCapability.Print.PrintFramework
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 11
|
||||
*/
|
||||
enum PrintAdapterListeningState {
|
||||
/**
|
||||
* Preview failed.
|
||||
* @syscap SystemCapability.Print.PrintFramework
|
||||
* @systemapi
|
||||
* @since 11
|
||||
*/
|
||||
PREVIEW_ABILITY_DESTROY = 0,
|
||||
@ -978,7 +945,6 @@ declare namespace print {
|
||||
/**
|
||||
* Print state is succeed.
|
||||
* @syscap SystemCapability.Print.PrintFramework
|
||||
* @systemapi
|
||||
* @since 11
|
||||
*/
|
||||
PRINT_TASK_SUCCEED = 1,
|
||||
@ -986,7 +952,6 @@ declare namespace print {
|
||||
/**
|
||||
* Print state is fail.
|
||||
* @syscap SystemCapability.Print.PrintFramework
|
||||
* @systemapi
|
||||
* @since 11
|
||||
*/
|
||||
PRINT_TASK_FAIL = 2,
|
||||
@ -994,7 +959,6 @@ declare namespace print {
|
||||
/**
|
||||
* Print state is cancel.
|
||||
* @syscap SystemCapability.Print.PrintFramework
|
||||
* @systemapi
|
||||
* @since 11
|
||||
*/
|
||||
PRINT_TASK_CANCEL = 3,
|
||||
@ -1002,7 +966,6 @@ declare namespace print {
|
||||
/**
|
||||
* Print state is block.
|
||||
* @syscap SystemCapability.Print.PrintFramework
|
||||
* @systemapi
|
||||
* @since 11
|
||||
*/
|
||||
PRINT_TASK_BLOCK = 4,
|
||||
@ -1012,14 +975,12 @@ declare namespace print {
|
||||
* Enumeration of Print File Created Info Code.
|
||||
* @enum { number } PrintFileCreatedInfoCode
|
||||
* @syscap SystemCapability.Print.PrintFramework
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 11
|
||||
*/
|
||||
enum PrintFileCreatedInfoCode {
|
||||
/**
|
||||
* Print file created success.
|
||||
* @syscap SystemCapability.Print.PrintFramework
|
||||
* @systemapi
|
||||
* @since 11
|
||||
*/
|
||||
PRINT_FILE_CREATED_SUCCESS = 0,
|
||||
@ -1027,7 +988,6 @@ declare namespace print {
|
||||
/**
|
||||
* Print file created fail.
|
||||
* @syscap SystemCapability.Print.PrintFramework
|
||||
* @systemapi
|
||||
* @since 11
|
||||
*/
|
||||
PRINT_FILE_CREATED_FAIL = 1,
|
||||
@ -1035,7 +995,6 @@ declare namespace print {
|
||||
/**
|
||||
* Print file created success but unrendered.
|
||||
* @syscap SystemCapability.Print.PrintFramework
|
||||
* @systemapi
|
||||
* @since 11
|
||||
*/
|
||||
PRINT_FILE_CREATED_SUCCESS_UNRENDERED = 2,
|
||||
|
Loading…
Reference in New Issue
Block a user