From 34fc50c20d2a168a367959e27d1cdb31f5ff0e40 Mon Sep 17 00:00:00 2001 From: "@chuangda_1" Date: Wed, 16 Nov 2022 17:37:21 +0800 Subject: [PATCH] Add print job setting Signed-off-by: @chuangda_1 --- systemres/main/config.json | 18 +++++++++++++++++ .../resources/base/element/id_defined.json | 20 +++++++++++++++++++ .../main/resources/base/element/string.json | 16 +++++++++++++++ .../main/resources/zh_CN/element/string.json | 16 +++++++++++++++ 4 files changed, 70 insertions(+) diff --git a/systemres/main/config.json b/systemres/main/config.json index 71e21ca8..f11641f3 100644 --- a/systemres/main/config.json +++ b/systemres/main/config.json @@ -1595,6 +1595,24 @@ "distributedSceneEnable": false, "label": "$string:ohos_lab_write_whole_calendar", "description": "$string:ohos_desc_write_whole_calendar" + }, + { + "name": "ohos.permission.PRINT", + "grantMode": "system_grant", + "availableLevel": "normal", + "provisionEnable": true, + "distributedSceneEnable": false, + "label": "$string:ohos_lab_print", + "description": "$string:ohos_desc_print" + }, + { + "name": "ohos.permission.MANAGE_PRINT_JOB", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "provisionEnable": true, + "distributedSceneEnable": false, + "label": "$string:ohos_lab_manage_print_job", + "description": "$string:ohos_desc_manage_print_job" } ] } diff --git a/systemres/main/resources/base/element/id_defined.json b/systemres/main/resources/base/element/id_defined.json index 6ffc678d..86b9924b 100644 --- a/systemres/main/resources/base/element/id_defined.json +++ b/systemres/main/resources/base/element/id_defined.json @@ -4420,6 +4420,26 @@ "name": "ohos_ic_public_spinner", "order": 864, "flags": "private" + }, + { + "type": "string", + "name": "ohos_lab_print", + "order": 860 + }, + { + "type": "string", + "name": "ohos_desc_print", + "order": 861 + }, + { + "type": "string", + "name": "ohos_lab_manage_print_job", + "order": 862 + }, + { + "type": "string", + "name": "ohos_desc_manage_print_job", + "order": 863 } ] } diff --git a/systemres/main/resources/base/element/string.json b/systemres/main/resources/base/element/string.json index a33bb10c..e1f41387 100644 --- a/systemres/main/resources/base/element/string.json +++ b/systemres/main/resources/base/element/string.json @@ -499,6 +499,22 @@ { "name": "ohos_desc_write_whole_calendar", "value": "Allows an application to add, modify, and delete the whole calendar events." + }, + { + "name": "ohos_lab_print", + "value": "Use print service" + }, + { + "name": "ohos_desc_print", + "value": "Allows an application to use print service." + }, + { + "name": "ohos_lab_manage_print_job", + "value": "Manage print job" + }, + { + "name": "ohos_desc_manage_print_job", + "value": "Allows an application to manage print job." } ] } diff --git a/systemres/main/resources/zh_CN/element/string.json b/systemres/main/resources/zh_CN/element/string.json index 7430e35e..6711792c 100644 --- a/systemres/main/resources/zh_CN/element/string.json +++ b/systemres/main/resources/zh_CN/element/string.json @@ -491,6 +491,22 @@ { "name": "ohos_desc_write_whole_calendar", "value": "允许应用新建/修改/删除全部日历。" + }, + { + "name": "ohos_lab_print", + "value": "允许使用打印服务" + }, + { + "name": "ohos_desc_print", + "value": "允许应用使用打印服务。" + }, + { + "name": "ohos_lab_manage_print_job", + "value": "允许管理打印任务任务" + }, + { + "name": "ohos_desc_manage_print_job", + "value": "允许应用管理打印任务任务。" } ] } -- Gitee