xref: /trunk/main/cui/source/options/doclinkdialog.src (revision cdf0e10c4e3984b49a9502b011690b615761d4a3)
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#include <cuires.hrc>
29#ifndef _SVX_DOCLINKDIALOG_HRC_
30#include "doclinkdialog.hrc"
31#endif
32
33#define DIALOG_SIZE_X       200
34#define DIALOG_SIZE_Y       94
35#define BUTTON_SIZE_X       50
36#define BUTTON_SIZE_Y       14
37
38#define LABEL_WIDTH         50
39
40#define HEIGHT_LABEL         8
41#define HEIGHT_EDIT         12
42
43#define LINE_1_Y            6
44#define LINE_2_Y            LINE_1_Y + HEIGHT_EDIT + 4
45#define OFFSET_Y            6
46
47ModalDialog DLG_DOCUMENTLINK
48{
49    HelpID = "cui:ModalDialog:DLG_DOCUMENTLINK";
50    OutputSize = TRUE ;
51    SVLook = TRUE ;
52    Size = MAP_APPFONT ( DIALOG_SIZE_X , DIALOG_SIZE_Y ) ;
53
54    Moveable = TRUE ;
55    Closeable = TRUE ;
56
57    FixedText FT_URL
58    {
59
60        Pos = MAP_APPFONT ( 6, LINE_1_Y ) ;
61        Size = MAP_APPFONT ( DIALOG_SIZE_X - 6, HEIGHT_LABEL ) ;
62        Group = TRUE;
63
64        Text [ en-US ] = "~Database file";
65    };
66    ComboBox CMB_URL
67    {
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 ) ;
71
72        SVLook = TRUE ;
73        Border = TRUE ;
74        DropDown = TRUE ;
75        AutoHScroll = TRUE ;
76        TabStop = TRUE ;
77    };
78    PushButton PB_BROWSEFILE
79    {
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...";
84    };
85
86    FixedText FT_NAME
87    {
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 ) ;
90        Group = TRUE;
91
92        Text [ en-US ] = "Registered ~name";
93    };
94    Edit ET_NAME
95    {
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 ) ;
99        TabStop = TRUE ;
100        Border = TRUE ;
101    };
102
103    FixedLine FL_BOTTOM
104    {
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 );
107    };
108
109    OKButton BTN_OK
110    {
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 );
113        DefButton = TRUE;
114    };
115    CancelButton BTN_CANCEL
116    {
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 );
119    };
120    HelpButton BTN_HELP
121    {
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 );
124    };
125
126    String STR_EDIT_LINK
127    {
128        Text [ en-US ] = "Edit Database Link";
129    };
130    String STR_NEW_LINK
131    {
132        Text [ en-US ] = "Create Database Link";
133    };
134};
135
136String STR_LINKEDDOC_DOESNOTEXIST
137{
138    Text [ en-US ] = "The file\n$file$\ndoes not exist.";
139};
140
141String STR_LINKEDDOC_NO_SYSTEM_FILE
142{
143    Text [ en-US ] = "The file\n$file$\ndoes not exist in the local file system.";
144};
145
146String STR_NAME_CONFLICT
147{
148    Text [ en-US ] = "The name '$file$' is already used for another database.\nPlease choose a different name.";
149};
150
151QueryBox QUERY_DELETE_CONFIRM
152{
153    Buttons = WB_YES_NO ;
154    Message [ en-US ] = "Do you want to delete the entry?" ;
155};
156