xref: /aoo41x/main/uui/source/nameclashdlg.src (revision cdf0e10c)
1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *
9 * This file is part of OpenOffice.org.
10 *
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
14 *
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
20 *
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org.  If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
25 *
26 ************************************************************************/
27
28#define __RSC
29
30#ifndef UUI_IDS_HRC
31#include "ids.hrc"
32#endif
33
34#ifndef UUI_NAMECLASHDLG_HRC
35#include "nameclashdlg.hrc"
36#endif
37
38#define DLG_WIDTH       250
39#define DLG_HEIGTH       75
40#define BORDER_OFFSET     6
41#define EDIT_HEIGTH      12
42#define BTN_WIDTH        50
43#define BTN_HEIGTH       14
44
45ModalDialog DLG_SIMPLE_NAME_CLASH
46{
47	HelpId 		= HID_DLG_SIMPLE_NAME_CLASH ;
48	OutputSize 	= TRUE ;
49	SVLook 		= TRUE ;
50	Size 		= MAP_APPFONT ( DLG_WIDTH , DLG_HEIGTH ) ;
51	Moveable 	= TRUE ;
52	Text [ en-US ] = "File Exists" ;
53
54	FixedText FT_FILE_EXISTS_WARNING
55	{
56		Pos       = MAP_APPFONT ( BORDER_OFFSET, BORDER_OFFSET ) ;
57		Size      = MAP_APPFONT ( DLG_WIDTH - 2*BORDER_OFFSET, DLG_HEIGTH - EDIT_HEIGTH - BTN_HEIGTH - 4*BORDER_OFFSET ) ;
58		WordBreak = TRUE ;
59	};
60
61	Edit EDIT_NEW_NAME
62	{
63	    HelpID = "uui:Edit:DLG_SIMPLE_NAME_CLASH:EDIT_NEW_NAME";
64		Border 		= TRUE ;
65		Pos 		= MAP_APPFONT ( BORDER_OFFSET, DLG_HEIGTH - EDIT_HEIGTH - BTN_HEIGTH - 2*BORDER_OFFSET ) ;
66		Size 		= MAP_APPFONT ( DLG_WIDTH - 2*BORDER_OFFSET , EDIT_HEIGTH ) ;
67	};
68
69	PushButton BTN_OVERWRITE
70	{
71	    HelpID = "uui:PushButton:DLG_SIMPLE_NAME_CLASH:BTN_OVERWRITE";
72		Pos 		= MAP_APPFONT (  DLG_WIDTH - 3*(BTN_WIDTH + BORDER_OFFSET) , DLG_HEIGTH - BTN_HEIGTH - BORDER_OFFSET ) ;
73		Size 		= MAP_APPFONT ( BTN_WIDTH, BTN_HEIGTH ) ;
74		TabStop 	= TRUE ;
75		Text [ en-US ] = "Replace" ;
76	};
77
78	PushButton BTN_RENAME
79	{
80	    HelpID = "uui:PushButton:DLG_SIMPLE_NAME_CLASH:BTN_RENAME";
81		Pos 		= MAP_APPFONT ( DLG_WIDTH - 2*(BTN_WIDTH + BORDER_OFFSET) , DLG_HEIGTH - BTN_HEIGTH - BORDER_OFFSET ) ;
82		Size 		= MAP_APPFONT ( BTN_WIDTH, BTN_HEIGTH ) ;
83		TabStop 	= TRUE ;
84		Text [ en-US ] = "Rename" ;
85		DefButton 	= TRUE ;
86	};
87
88	CancelButton BTN_CANCEL
89	{
90		Pos 	= MAP_APPFONT ( DLG_WIDTH - BTN_WIDTH - BORDER_OFFSET, DLG_HEIGTH - BTN_HEIGTH - BORDER_OFFSET ) ;
91		Size 	= MAP_APPFONT ( BTN_WIDTH, BTN_HEIGTH ) ;
92		TabStop = TRUE ;
93	};
94
95	HelpButton BTN_HELP
96	{
97		Pos 	= MAP_APPFONT ( BORDER_OFFSET, DLG_HEIGTH - BTN_HEIGTH - BORDER_OFFSET ) ;
98		Size 	= MAP_APPFONT ( BTN_WIDTH, BTN_HEIGTH ) ;
99		TabStop = TRUE ;
100	};
101};
102
103String STR_RENAME_OR_REPLACE
104{
105    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.";
106};
107
108String STR_NAME_CLASH_RENAME_ONLY
109{
110    Text = "A file with the name \"%NAME\" already exists in the location \"%FOLDER\".\nPlease enter a new name.";
111};
112
113String STR_SAME_NAME_USED
114{
115    Text = "Please provide a different file name!";
116};
117