xref: /AOO41X/main/uui/source/nameclashdlg.src (revision e33492276f639ebe26fc2b5c7b0b687b13d47e4b)
1*2611ca73SAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
3*2611ca73SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4*2611ca73SAndrew Rist * or more contributor license agreements.  See the NOTICE file
5*2611ca73SAndrew Rist * distributed with this work for additional information
6*2611ca73SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
7*2611ca73SAndrew Rist * to you under the Apache License, Version 2.0 (the
8*2611ca73SAndrew Rist * "License"); you may not use this file except in compliance
9*2611ca73SAndrew Rist * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir *
11*2611ca73SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir *
13*2611ca73SAndrew Rist * Unless required by applicable law or agreed to in writing,
14*2611ca73SAndrew Rist * software distributed under the License is distributed on an
15*2611ca73SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*2611ca73SAndrew Rist * KIND, either express or implied.  See the License for the
17*2611ca73SAndrew Rist * specific language governing permissions and limitations
18*2611ca73SAndrew Rist * under the License.
19cdf0e10cSrcweir *
20*2611ca73SAndrew Rist *************************************************************/
21*2611ca73SAndrew Rist
22*2611ca73SAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweir#define __RSC
25cdf0e10cSrcweir
26cdf0e10cSrcweir#ifndef UUI_IDS_HRC
27cdf0e10cSrcweir#include "ids.hrc"
28cdf0e10cSrcweir#endif
29cdf0e10cSrcweir
30cdf0e10cSrcweir#ifndef UUI_NAMECLASHDLG_HRC
31cdf0e10cSrcweir#include "nameclashdlg.hrc"
32cdf0e10cSrcweir#endif
33cdf0e10cSrcweir
34cdf0e10cSrcweir#define DLG_WIDTH       250
35cdf0e10cSrcweir#define DLG_HEIGTH       75
36cdf0e10cSrcweir#define BORDER_OFFSET     6
37cdf0e10cSrcweir#define EDIT_HEIGTH      12
38cdf0e10cSrcweir#define BTN_WIDTH        50
39cdf0e10cSrcweir#define BTN_HEIGTH       14
40cdf0e10cSrcweir
41cdf0e10cSrcweirModalDialog DLG_SIMPLE_NAME_CLASH
42cdf0e10cSrcweir{
43cdf0e10cSrcweir    HelpId      = HID_DLG_SIMPLE_NAME_CLASH ;
44cdf0e10cSrcweir    OutputSize  = TRUE ;
45cdf0e10cSrcweir    SVLook      = TRUE ;
46cdf0e10cSrcweir    Size        = MAP_APPFONT ( DLG_WIDTH , DLG_HEIGTH ) ;
47cdf0e10cSrcweir    Moveable    = TRUE ;
48cdf0e10cSrcweir    Text [ en-US ] = "File Exists" ;
49cdf0e10cSrcweir
50cdf0e10cSrcweir    FixedText FT_FILE_EXISTS_WARNING
51cdf0e10cSrcweir    {
52cdf0e10cSrcweir        Pos       = MAP_APPFONT ( BORDER_OFFSET, BORDER_OFFSET ) ;
53cdf0e10cSrcweir        Size      = MAP_APPFONT ( DLG_WIDTH - 2*BORDER_OFFSET, DLG_HEIGTH - EDIT_HEIGTH - BTN_HEIGTH - 4*BORDER_OFFSET ) ;
54cdf0e10cSrcweir        WordBreak = TRUE ;
55cdf0e10cSrcweir    };
56cdf0e10cSrcweir
57cdf0e10cSrcweir    Edit EDIT_NEW_NAME
58cdf0e10cSrcweir    {
59cdf0e10cSrcweir        HelpID = "uui:Edit:DLG_SIMPLE_NAME_CLASH:EDIT_NEW_NAME";
60cdf0e10cSrcweir        Border      = TRUE ;
61cdf0e10cSrcweir        Pos         = MAP_APPFONT ( BORDER_OFFSET, DLG_HEIGTH - EDIT_HEIGTH - BTN_HEIGTH - 2*BORDER_OFFSET ) ;
62cdf0e10cSrcweir        Size        = MAP_APPFONT ( DLG_WIDTH - 2*BORDER_OFFSET , EDIT_HEIGTH ) ;
63cdf0e10cSrcweir    };
64cdf0e10cSrcweir
65cdf0e10cSrcweir    PushButton BTN_OVERWRITE
66cdf0e10cSrcweir    {
67cdf0e10cSrcweir        HelpID = "uui:PushButton:DLG_SIMPLE_NAME_CLASH:BTN_OVERWRITE";
68cdf0e10cSrcweir        Pos         = MAP_APPFONT (  DLG_WIDTH - 3*(BTN_WIDTH + BORDER_OFFSET) , DLG_HEIGTH - BTN_HEIGTH - BORDER_OFFSET ) ;
69cdf0e10cSrcweir        Size        = MAP_APPFONT ( BTN_WIDTH, BTN_HEIGTH ) ;
70cdf0e10cSrcweir        TabStop     = TRUE ;
71cdf0e10cSrcweir        Text [ en-US ] = "Replace" ;
72cdf0e10cSrcweir    };
73cdf0e10cSrcweir
74cdf0e10cSrcweir    PushButton BTN_RENAME
75cdf0e10cSrcweir    {
76cdf0e10cSrcweir        HelpID = "uui:PushButton:DLG_SIMPLE_NAME_CLASH:BTN_RENAME";
77cdf0e10cSrcweir        Pos         = MAP_APPFONT ( DLG_WIDTH - 2*(BTN_WIDTH + BORDER_OFFSET) , DLG_HEIGTH - BTN_HEIGTH - BORDER_OFFSET ) ;
78cdf0e10cSrcweir        Size        = MAP_APPFONT ( BTN_WIDTH, BTN_HEIGTH ) ;
79cdf0e10cSrcweir        TabStop     = TRUE ;
80cdf0e10cSrcweir        Text [ en-US ] = "Rename" ;
81cdf0e10cSrcweir        DefButton   = TRUE ;
82cdf0e10cSrcweir    };
83cdf0e10cSrcweir
84cdf0e10cSrcweir    CancelButton BTN_CANCEL
85cdf0e10cSrcweir    {
86cdf0e10cSrcweir        Pos     = MAP_APPFONT ( DLG_WIDTH - BTN_WIDTH - BORDER_OFFSET, DLG_HEIGTH - BTN_HEIGTH - BORDER_OFFSET ) ;
87cdf0e10cSrcweir        Size    = MAP_APPFONT ( BTN_WIDTH, BTN_HEIGTH ) ;
88cdf0e10cSrcweir        TabStop = TRUE ;
89cdf0e10cSrcweir    };
90cdf0e10cSrcweir
91cdf0e10cSrcweir    HelpButton BTN_HELP
92cdf0e10cSrcweir    {
93cdf0e10cSrcweir        Pos     = MAP_APPFONT ( BORDER_OFFSET, DLG_HEIGTH - BTN_HEIGTH - BORDER_OFFSET ) ;
94cdf0e10cSrcweir        Size    = MAP_APPFONT ( BTN_WIDTH, BTN_HEIGTH ) ;
95cdf0e10cSrcweir        TabStop = TRUE ;
96cdf0e10cSrcweir    };
97cdf0e10cSrcweir};
98cdf0e10cSrcweir
99cdf0e10cSrcweirString STR_RENAME_OR_REPLACE
100cdf0e10cSrcweir{
101cdf0e10cSrcweir    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.";
102cdf0e10cSrcweir};
103cdf0e10cSrcweir
104cdf0e10cSrcweirString STR_NAME_CLASH_RENAME_ONLY
105cdf0e10cSrcweir{
106cdf0e10cSrcweir    Text = "A file with the name \"%NAME\" already exists in the location \"%FOLDER\".\nPlease enter a new name.";
107cdf0e10cSrcweir};
108cdf0e10cSrcweir
109cdf0e10cSrcweirString STR_SAME_NAME_USED
110cdf0e10cSrcweir{
111cdf0e10cSrcweir    Text = "Please provide a different file name!";
112cdf0e10cSrcweir};
113