xref: /aoo42x/main/uui/source/nameclashdlg.src (revision 5578c25c)
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
23
24#define __RSC
25
26#ifndef UUI_IDS_HRC
27#include "ids.hrc"
28#endif
29
30#ifndef UUI_NAMECLASHDLG_HRC
31#include "nameclashdlg.hrc"
32#endif
33
34#define DLG_WIDTH		250
35#define DLG_HEIGTH		75
36#define BORDER_OFFSET	6
37#define EDIT_HEIGTH		12
38#define BTN_WIDTH		50
39#define BTN_HEIGTH		14
40
41ModalDialog DLG_SIMPLE_NAME_CLASH
42{
43	HelpId = HID_DLG_SIMPLE_NAME_CLASH ;
44	OutputSize = TRUE ;
45	SVLook = TRUE ;
46	Size = MAP_APPFONT ( DLG_WIDTH, DLG_HEIGTH ) ;
47	Moveable = TRUE ;
48	Text [ en-US ] = "File Exists" ;
49
50	FixedText FT_FILE_EXISTS_WARNING
51	{
52		Pos = MAP_APPFONT ( BORDER_OFFSET, BORDER_OFFSET ) ;
53		Size = MAP_APPFONT ( DLG_WIDTH - 2*BORDER_OFFSET, DLG_HEIGTH - EDIT_HEIGTH - BTN_HEIGTH - 4 * BORDER_OFFSET ) ;
54		WordBreak = TRUE ;
55	};
56
57	Edit EDIT_NEW_NAME
58	{
59		HelpID = "uui:Edit:DLG_SIMPLE_NAME_CLASH:EDIT_NEW_NAME" ;
60		Border = TRUE ;
61		Pos = MAP_APPFONT ( BORDER_OFFSET, DLG_HEIGTH - EDIT_HEIGTH - BTN_HEIGTH - 2 * BORDER_OFFSET ) ;
62		Size = MAP_APPFONT ( DLG_WIDTH - 2 * BORDER_OFFSET, EDIT_HEIGTH ) ;
63	};
64
65	PushButton BTN_OVERWRITE
66	{
67		HelpID = "uui:PushButton:DLG_SIMPLE_NAME_CLASH:BTN_OVERWRITE" ;
68		Pos = MAP_APPFONT ( DLG_WIDTH - 3 * (BTN_WIDTH + BORDER_OFFSET), DLG_HEIGTH - BTN_HEIGTH - BORDER_OFFSET ) ;
69		Size = MAP_APPFONT ( BTN_WIDTH, BTN_HEIGTH ) ;
70		TabStop = TRUE ;
71		Text [ en-US ] = "Replace" ;
72	};
73
74	PushButton BTN_RENAME
75	{
76		HelpID = "uui:PushButton:DLG_SIMPLE_NAME_CLASH:BTN_RENAME" ;
77		Pos = MAP_APPFONT ( DLG_WIDTH - 2 * (BTN_WIDTH + BORDER_OFFSET), DLG_HEIGTH - BTN_HEIGTH - BORDER_OFFSET ) ;
78		Size = MAP_APPFONT ( BTN_WIDTH, BTN_HEIGTH ) ;
79		TabStop = TRUE ;
80		Text [ en-US ] = "Rename" ;
81		DefButton = TRUE ;
82	};
83
84	CancelButton BTN_CANCEL
85	{
86		Pos = MAP_APPFONT ( DLG_WIDTH - BTN_WIDTH - BORDER_OFFSET, DLG_HEIGTH - BTN_HEIGTH - BORDER_OFFSET ) ;
87		Size = MAP_APPFONT ( BTN_WIDTH, BTN_HEIGTH ) ;
88		TabStop = TRUE ;
89	};
90
91	HelpButton BTN_HELP
92	{
93		Pos = MAP_APPFONT ( BORDER_OFFSET, DLG_HEIGTH - BTN_HEIGTH - BORDER_OFFSET ) ;
94		Size = MAP_APPFONT ( BTN_WIDTH, BTN_HEIGTH ) ;
95		TabStop = TRUE ;
96	};
97};
98
99String STR_RENAME_OR_REPLACE
100{
101	Text = "A file with the name \"%NAME\" already exists in the location \"%FOLDER\".\nChoose Replace to overwrite the existing file or provide a new name." ;
102};
103
104String STR_NAME_CLASH_RENAME_ONLY
105{
106	Text = "A file with the name \"%NAME\" already exists in the location \"%FOLDER\".\nPlease enter a new name." ;
107};
108
109String STR_SAME_NAME_USED
110{
111	Text = "Please provide a different file name!" ;
112};
113
114// ********************************************************************** EOF
115