1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License") ; you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22#include "svtools/controldims.hrc"
23
24#include "dp_gui.hrc"
25
26#define LOCAL_WIDTH (60 * RSC_BS_CHARWIDTH)
27#define LABEL_WIDTH (1 * RSC_BS_CHARWIDTH)
28#define LOCAL_LIST_HEIGHT1 (6 * RSC_BS_CHARHEIGHT) + 4
29#define LOCAL_LIST_HEIGHT2 (7 * RSC_BS_CHARHEIGHT) + 3
30
31ModalDialog RID_DLG_UPDATE
32{
33	HelpID = HID_DEPLOYMENT_GUI_UPDATE ;
34	Size = MAP_APPFONT ( RSC_SP_DLG_INNERBORDER_LEFT + LOCAL_WIDTH + RSC_SP_DLG_INNERBORDER_RIGHT,
35		RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT1 + RSC_SP_CTRL_GROUP_Y +
36		RSC_CD_CHECKBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT2 + RSC_SP_FLGR_SPACE_Y +
37		RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_SPACE_Y + RSC_CD_PUSHBUTTON_HEIGHT + RSC_SP_DLG_INNERBORDER_BOTTOM ) ;
38	Text [en-US] = "Extension Update" ;
39	Moveable = TRUE ;
40	Closeable = TRUE ;
41	FixedText RID_DLG_UPDATE_CHECKING
42	{
43		Pos = MAP_APPFONT ( RSC_SP_DLG_INNERBORDER_LEFT + LOCAL_WIDTH * 2 / 3, RSC_SP_DLG_INNERBORDER_TOP ) ;
44		Size = MAP_APPFONT ( LOCAL_WIDTH - LOCAL_WIDTH * 2 / 3 - RSC_SP_CTRL_DESC_X - RSC_CD_FIXEDTEXT_HEIGHT, RSC_CD_FIXEDTEXT_HEIGHT ) ;
45		Text [en-US] = "Checking... " ;
46		Right = TRUE ;
47		NoLabel = TRUE ;
48	};
49	FixedImage RID_DLG_UPDATE_THROBBER
50	{
51		Pos = MAP_APPFONT ( RSC_SP_DLG_INNERBORDER_LEFT + LOCAL_WIDTH - RSC_CD_FIXEDTEXT_HEIGHT, RSC_SP_DLG_INNERBORDER_TOP ) ;
52		Size = MAP_APPFONT ( RSC_CD_FIXEDTEXT_HEIGHT, RSC_CD_FIXEDTEXT_HEIGHT + 1 ) ;
53	};
54	FixedText RID_DLG_UPDATE_UPDATE
55	{
56		Disable = TRUE ;
57		Pos = MAP_APPFONT ( RSC_SP_DLG_INNERBORDER_LEFT, RSC_SP_DLG_INNERBORDER_TOP ) ;
58		Size = MAP_APPFONT ( LOCAL_WIDTH * 2 / 3 - RSC_SP_CTRL_GROUP_X, RSC_CD_FIXEDTEXT_HEIGHT ) ;
59		Text [en-US] = "~Available extension updates" ;
60	};
61	Control RID_DLG_UPDATE_UPDATES
62	{
63		HelpId = HID_DEPLOYMENT_GUI_UPDATE_AVAILABLE_UPDATES ;
64		Disable = TRUE ;
65		Border = TRUE ;
66		Pos = MAP_APPFONT ( RSC_SP_DLG_INNERBORDER_LEFT, RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_DESC_Y ) ;
67		Size = MAP_APPFONT ( LOCAL_WIDTH, LOCAL_LIST_HEIGHT1 ) ;
68		TabStop = TRUE ;
69	};
70	CheckBox RID_DLG_UPDATE_ALL
71	{
72		HelpID = "desktop:CheckBox:RID_DLG_UPDATE:RID_DLG_UPDATE_ALL" ;
73		Disable = TRUE ;
74		Pos = MAP_APPFONT ( RSC_SP_DLG_INNERBORDER_LEFT, RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT1 + RSC_SP_CTRL_GROUP_Y ) ;
75		Size = MAP_APPFONT ( LOCAL_WIDTH, RSC_CD_CHECKBOX_HEIGHT ) ;
76		Text [en-US] = "~Show all updates" ;
77	};
78	FixedLine RID_DLG_UPDATE_DESCRIPTION
79	{
80		Disable = TRUE ;
81		Pos = MAP_APPFONT ( RSC_SP_DLG_INNERBORDER_LEFT,
82			RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT1 + RSC_SP_CTRL_GROUP_Y + RSC_CD_CHECKBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y ) ;
83		Size = MAP_APPFONT ( LOCAL_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT ) ;
84		Text [en-US] = "Description" ;
85	};
86	FixedText RID_DLG_UPDATE_PUBLISHER_LABEL
87	{
88		Pos = MAP_APPFONT ( RSC_SP_DLG_INNERBORDER_LEFT,
89			RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT1 + RSC_SP_CTRL_GROUP_Y +
90			RSC_CD_CHECKBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_DESC_Y ) ;
91		Size = MAP_APPFONT ( LABEL_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT ) ;
92		Text [en-US] = "Publisher:" ;
93	};
94	FixedText RID_DLG_UPDATE_PUBLISHER_LINK
95	{
96		HelpId = HID_DEPLOYMENT_GUI_UPDATE_PUBLISHER ;
97		Pos = MAP_APPFONT ( RSC_SP_DLG_INNERBORDER_LEFT + LABEL_WIDTH + RSC_SP_CTRL_DESC_X,
98			RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT1 + RSC_SP_CTRL_GROUP_Y +
99			RSC_CD_CHECKBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_DESC_Y ) ;
100		Size = MAP_APPFONT ( LOCAL_WIDTH - LABEL_WIDTH - RSC_SP_CTRL_DESC_X, RSC_CD_FIXEDTEXT_HEIGHT ) ;
101	};
102	FixedText RID_DLG_UPDATE_RELEASENOTES_LABEL
103	{
104		Pos = MAP_APPFONT ( RSC_SP_DLG_INNERBORDER_LEFT,
105			RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT1 + RSC_SP_CTRL_GROUP_Y +
106			RSC_CD_CHECKBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_DESC_Y + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_DESC_Y ) ;
107		Size = MAP_APPFONT ( LABEL_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT ) ;
108		Text [en-US] = "What is new:" ;
109	};
110	FixedText RID_DLG_UPDATE_RELEASENOTES_LINK
111	{
112		HelpId = HID_DEPLOYMENT_GUI_UPDATE_RELEASENOTES ;
113		Pos = MAP_APPFONT ( RSC_SP_DLG_INNERBORDER_LEFT + LABEL_WIDTH + RSC_SP_CTRL_DESC_X,
114			RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT1 + RSC_SP_CTRL_GROUP_Y +
115			RSC_CD_CHECKBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_DESC_Y + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_DESC_Y ) ;
116		Size = MAP_APPFONT (LOCAL_WIDTH - LABEL_WIDTH - RSC_SP_CTRL_DESC_X, RSC_CD_FIXEDTEXT_HEIGHT) ;
117		Text [en-US] = "Release Notes" ;
118	};
119	MultiLineEdit RID_DLG_UPDATE_DESCRIPTIONS
120	{
121		HelpID = "desktop:MultiLineEdit:RID_DLG_UPDATE:RID_DLG_UPDATE_DESCRIPTIONS" ;
122		Disable = TRUE ;
123		Border = TRUE ;
124		Pos = MAP_APPFONT ( RSC_SP_DLG_INNERBORDER_LEFT,
125			RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT1 + RSC_SP_CTRL_GROUP_Y +
126			RSC_CD_CHECKBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_DESC_Y ) ;
127		Size = MAP_APPFONT ( LOCAL_WIDTH, LOCAL_LIST_HEIGHT2 ) ;
128		ReadOnly = TRUE ;
129		VScroll = TRUE ;
130		IgnoreTab = TRUE ;
131	};
132	FixedLine RID_DLG_UPDATE_LINE
133	{
134		Pos = MAP_APPFONT ( RSC_SP_DLG_INNERBORDER_LEFT,
135			RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT1 + RSC_SP_CTRL_GROUP_Y +
136			RSC_CD_CHECKBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT2 + RSC_SP_FLGR_SPACE_Y ) ;
137		Size = MAP_APPFONT ( LOCAL_WIDTH, RSC_CD_FIXEDLINE_HEIGHT ) ;
138	};
139	HelpButton RID_DLG_UPDATE_HELP
140	{
141		Pos = MAP_APPFONT ( RSC_SP_DLG_INNERBORDER_LEFT,
142			RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT1 + RSC_SP_CTRL_GROUP_Y +
143			RSC_CD_CHECKBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT2 + RSC_SP_FLGR_SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_SPACE_Y ) ;
144		Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ) ;
145	};
146	PushButton RID_DLG_UPDATE_OK
147	{
148		HelpID = "desktop:PushButton:RID_DLG_UPDATE:RID_DLG_UPDATE_OK" ;
149		Disable = TRUE ;
150		Pos = MAP_APPFONT ( RSC_SP_DLG_INNERBORDER_LEFT + LOCAL_WIDTH - RSC_CD_PUSHBUTTON_WIDTH - RSC_SP_CTRL_GROUP_X - RSC_CD_PUSHBUTTON_WIDTH,
151			RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT1 + RSC_SP_CTRL_GROUP_Y +RSC_CD_CHECKBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y + RSC_CD_FIXEDTEXT_HEIGHT +
152			RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT2 + RSC_SP_FLGR_SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_SPACE_Y ) ;
153		Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ) ;
154		Text [en-US] = "~Install" ;
155		DefButton = TRUE ;
156	};
157	PushButton RID_DLG_UPDATE_CLOSE
158	{
159		Pos = MAP_APPFONT ( RSC_SP_DLG_INNERBORDER_LEFT + LOCAL_WIDTH - RSC_CD_PUSHBUTTON_WIDTH,
160			RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT1 + RSC_SP_CTRL_GROUP_Y +RSC_CD_CHECKBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y + RSC_CD_FIXEDTEXT_HEIGHT +
161			RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT2 + RSC_SP_FLGR_SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_SPACE_Y ) ;
162		Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ) ;
163		Text [en-US] = "Close" ;
164	};
165	Image RID_DLG_UPDATE_NORMALALERT {
166		ImageBitmap = Bitmap {
167			File = "caution_12.png" ;
168		};
169	};
170	Image RID_DLG_UPDATE_HIGHCONTRASTALERT {
171		ImageBitmap = Bitmap {
172			File = "caution_12_h.png" ;
173		};
174	};
175	String RID_DLG_UPDATE_ERROR {
176		Text [en-US] = "Error" ;
177	};
178	String RID_DLG_UPDATE_NONE {
179		Text [en-US] = "No new updates are available." ;
180	};
181	String RID_DLG_UPDATE_NOINSTALLABLE {
182		Text [en-US] = "No installable updates are available. To see ignored or disabled updates, mark the check box 'Show all updates'." ;
183	};
184	String RID_DLG_UPDATE_FAILURE {
185		Text [en-US] = "An error occurred:" ;
186	};
187	String RID_DLG_UPDATE_UNKNOWNERROR {
188		Text [en-US] = "Unknown error." ;
189	};
190	String RID_DLG_UPDATE_NODESCRIPTION {
191		Text [en-US] = "No more details are available for this update." ;
192	};
193	String RID_DLG_UPDATE_NOINSTALL {
194		Text [en-US] = "The extension cannot be updated because:" ;
195	};
196	String RID_DLG_UPDATE_NODEPENDENCY {
197		Text [en-US] = "Required Apache OpenOffice version doesn't match:" ;
198	};
199	String RID_DLG_UPDATE_NODEPENDENCY_CUR_VER {
200		Text [en-US] = "You have Apache OpenOffice %VERSION" ;
201	};
202	String RID_DLG_UPDATE_BROWSERBASED {
203		Text [en-US] = "browser based update" ;
204	};
205	String RID_DLG_UPDATE_VERSION {
206		Text [en-US] = "Version" ;
207	};
208	String RID_DLG_UPDATE_IGNORE {
209		Text [en-US] = "Ignore this Update" ;
210	};
211	String RID_DLG_UPDATE_IGNORE_ALL {
212		Text [en-US] = "Ignore all Updates" ;
213	};
214	String RID_DLG_UPDATE_ENABLE {
215		Text [en-US] = "Enable Updates" ;
216	};
217	String RID_DLG_UPDATE_IGNORED_UPDATE {
218		Text [en-US] = "This update will be ignored.\n" ;
219	};
220};
221
222WarningBox RID_WARNINGBOX_UPDATE_SHARED_EXTENSION
223{
224	Buttons = WB_OK_CANCEL ;
225	DefButton = WB_DEF_CANCEL ;
226	Message [en-US] = "Make sure that no further users are working with the same "
227	"%PRODUCTNAME, when changing shared extensions in a multi user environment.\n"
228	"Click \'OK\' to update the extensions.\n"
229	"Click \'Cancel\' to stop updating the extensions." ;
230};
231
232// ******************************************************************* EOF
233