1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
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.
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).
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.
26 ************************************************************************/
29 #ifndef _SVX_DOCLINKDIALOG_HRC_
30 #include "doclinkdialog.hrc"
33 #define DIALOG_SIZE_X 200
34 #define DIALOG_SIZE_Y 94
35 #define BUTTON_SIZE_X 50
36 #define BUTTON_SIZE_Y 14
38 #define LABEL_WIDTH 50
40 #define HEIGHT_LABEL 8
41 #define HEIGHT_EDIT 12
44 #define LINE_2_Y LINE_1_Y + HEIGHT_EDIT + 4
47 ModalDialog DLG_DOCUMENTLINK
49 HelpID = "cui:ModalDialog:DLG_DOCUMENTLINK";
52 Size = MAP_APPFONT ( DIALOG_SIZE_X , DIALOG_SIZE_Y ) ;
60 Pos = MAP_APPFONT ( 6, LINE_1_Y ) ;
61 Size = MAP_APPFONT ( DIALOG_SIZE_X - 6, HEIGHT_LABEL ) ;
64 Text [ en-US ] = "~Database file";
68 HelpID = "cui:ComboBox:DLG_DOCUMENTLINK:CMB_URL";
69 Pos = MAP_APPFONT ( 6 , LINE_1_Y + OFFSET_Y + HEIGHT_LABEL - 3) ;
70 Size = MAP_APPFONT ( DIALOG_SIZE_X - 3*LINE_1_Y - BUTTON_SIZE_X , HEIGHT_EDIT ) ;
78 PushButton PB_BROWSEFILE
80 HelpID = "cui:PushButton:DLG_DOCUMENTLINK:PB_BROWSEFILE";
81 Pos = MAP_APPFONT ( DIALOG_SIZE_X - BUTTON_SIZE_X - 6 , LINE_1_Y + OFFSET_Y + HEIGHT_LABEL - 4) ;
82 Size = MAP_APPFONT ( BUTTON_SIZE_X, BUTTON_SIZE_Y );
83 Text [ en-US ] = "~Browse...";
88 Pos = MAP_APPFONT ( 6, LINE_1_Y + 2*OFFSET_Y + HEIGHT_LABEL + BUTTON_SIZE_Y - 3) ;
89 Size = MAP_APPFONT ( DIALOG_SIZE_X - 6, HEIGHT_LABEL ) ;
92 Text [ en-US ] = "Registered ~name";
96 HelpID = "cui:Edit:DLG_DOCUMENTLINK:ET_NAME";
97 Pos = MAP_APPFONT ( 6, LINE_1_Y + 3*OFFSET_Y + 2*HEIGHT_LABEL + BUTTON_SIZE_Y - 6) ;
98 Size = MAP_APPFONT ( DIALOG_SIZE_X - 3*LINE_1_Y - BUTTON_SIZE_X , HEIGHT_EDIT ) ;
105 Pos = MAP_APPFONT ( 4, LINE_1_Y + 4*OFFSET_Y + 2*HEIGHT_LABEL + BUTTON_SIZE_Y + HEIGHT_EDIT - 6);
106 Size = MAP_APPFONT ( DIALOG_SIZE_X - 8, 8 );
111 Pos = MAP_APPFONT ( DIALOG_SIZE_X - 3 * ( BUTTON_SIZE_X + 3 ) - 6, DIALOG_SIZE_Y - 6 - BUTTON_SIZE_Y );
112 Size = MAP_APPFONT ( BUTTON_SIZE_X, BUTTON_SIZE_Y );
115 CancelButton BTN_CANCEL
117 Pos = MAP_APPFONT ( DIALOG_SIZE_X - 2 * ( BUTTON_SIZE_X + 3 ) - 6, DIALOG_SIZE_Y - 6 - BUTTON_SIZE_Y );
118 Size = MAP_APPFONT ( BUTTON_SIZE_X, BUTTON_SIZE_Y );
122 Pos = MAP_APPFONT ( DIALOG_SIZE_X - 1 * ( BUTTON_SIZE_X + 3 ) - 3, DIALOG_SIZE_Y - 6 - BUTTON_SIZE_Y );
123 Size = MAP_APPFONT ( BUTTON_SIZE_X, BUTTON_SIZE_Y );
128 Text [ en-US ] = "Edit Database Link";
132 Text [ en-US ] = "Create Database Link";
136 String STR_LINKEDDOC_DOESNOTEXIST
138 Text [ en-US ] = "The file\n$file$\ndoes not exist.";
141 String STR_LINKEDDOC_NO_SYSTEM_FILE
143 Text [ en-US ] = "The file\n$file$\ndoes not exist in the local file system.";
146 String STR_NAME_CONFLICT
148 Text [ en-US ] = "The name '$file$' is already used for another database.\nPlease choose a different name.";
151 QueryBox QUERY_DELETE_CONFIRM
153 Buttons = WB_YES_NO ;
154 Message [ en-US ] = "Do you want to delete the entry?" ;