2 * This file is part of the LibreOffice project.
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 * This file incorporates work covered by the following license notice:
10 * Licensed to the Apache Software Foundation (ASF) under one or more
11 * contributor license agreements. See the NOTICE file distributed
12 * with this work for additional information regarding copyright
13 * ownership. The ASF licenses this file to you under the Apache
14 * License, Version 2.0 (the "License"); you may not use this file
15 * except in compliance with the License. You may obtain a copy of
16 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
22 #include "nameclashdlg.hrc"
26 #define BORDER_OFFSET 6
27 #define EDIT_HEIGTH 12
31 ModalDialog DLG_SIMPLE_NAME_CLASH
33 HelpId = HID_DLG_SIMPLE_NAME_CLASH ;
36 Size = MAP_APPFONT ( DLG_WIDTH , DLG_HEIGTH ) ;
38 Text [ en-US ] = "File Exists" ;
40 FixedText FT_FILE_EXISTS_WARNING
42 Pos = MAP_APPFONT ( BORDER_OFFSET, BORDER_OFFSET ) ;
43 Size = MAP_APPFONT ( DLG_WIDTH - 2*BORDER_OFFSET, DLG_HEIGTH - EDIT_HEIGTH - BTN_HEIGTH - 4*BORDER_OFFSET ) ;
49 HelpID = "uui:Edit:DLG_SIMPLE_NAME_CLASH:EDIT_NEW_NAME";
51 Pos = MAP_APPFONT ( BORDER_OFFSET, DLG_HEIGTH - EDIT_HEIGTH - BTN_HEIGTH - 2*BORDER_OFFSET ) ;
52 Size = MAP_APPFONT ( DLG_WIDTH - 2*BORDER_OFFSET , EDIT_HEIGTH ) ;
55 PushButton BTN_OVERWRITE
57 HelpID = "uui:PushButton:DLG_SIMPLE_NAME_CLASH:BTN_OVERWRITE";
58 Pos = MAP_APPFONT ( DLG_WIDTH - 3*(BTN_WIDTH + BORDER_OFFSET) , DLG_HEIGTH - BTN_HEIGTH - BORDER_OFFSET ) ;
59 Size = MAP_APPFONT ( BTN_WIDTH, BTN_HEIGTH ) ;
61 Text [ en-US ] = "Replace" ;
66 HelpID = "uui:PushButton:DLG_SIMPLE_NAME_CLASH:BTN_RENAME";
67 Pos = MAP_APPFONT ( DLG_WIDTH - 2*(BTN_WIDTH + BORDER_OFFSET) , DLG_HEIGTH - BTN_HEIGTH - BORDER_OFFSET ) ;
68 Size = MAP_APPFONT ( BTN_WIDTH, BTN_HEIGTH ) ;
70 Text [ en-US ] = "Rename" ;
74 CancelButton BTN_CANCEL
76 Pos = MAP_APPFONT ( DLG_WIDTH - BTN_WIDTH - BORDER_OFFSET, DLG_HEIGTH - BTN_HEIGTH - BORDER_OFFSET ) ;
77 Size = MAP_APPFONT ( BTN_WIDTH, BTN_HEIGTH ) ;
83 Pos = MAP_APPFONT ( BORDER_OFFSET, DLG_HEIGTH - BTN_HEIGTH - BORDER_OFFSET ) ;
84 Size = MAP_APPFONT ( BTN_WIDTH, BTN_HEIGTH ) ;
89 String STR_RENAME_OR_REPLACE
91 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.";
94 String STR_NAME_CLASH_RENAME_ONLY
96 Text = "A file with the name \"%NAME\" already exists in the location \"%FOLDER\".\nPlease enter a new name.";
99 String STR_SAME_NAME_USED
101 Text = "Please provide a different file name!";