xref: /trunk/main/cui/source/options/doclinkdialog.src (revision 3f2293a34d640799d3a646809239d04f5e6f46e0)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22#include <cuires.hrc>
23#ifndef _SVX_DOCLINKDIALOG_HRC_
24#include "doclinkdialog.hrc"
25#endif
26
27#define DIALOG_SIZE_X       200
28#define DIALOG_SIZE_Y       94
29#define BUTTON_SIZE_X       50
30#define BUTTON_SIZE_Y       14
31
32#define LABEL_WIDTH         50
33
34#define HEIGHT_LABEL         8
35#define HEIGHT_EDIT         12
36
37#define LINE_1_Y            6
38#define LINE_2_Y            LINE_1_Y + HEIGHT_EDIT + 4
39#define OFFSET_Y            6
40
41ModalDialog DLG_DOCUMENTLINK
42{
43    HelpID = "cui:ModalDialog:DLG_DOCUMENTLINK" ;
44    OutputSize = TRUE ;
45    SVLook = TRUE ;
46    Size = MAP_APPFONT ( DIALOG_SIZE_X, DIALOG_SIZE_Y ) ;
47
48    Moveable = TRUE ;
49    Closeable = TRUE ;
50
51    FixedText FT_URL
52    {
53
54        Pos = MAP_APPFONT ( 6, LINE_1_Y ) ;
55        Size = MAP_APPFONT ( DIALOG_SIZE_X - 6, HEIGHT_LABEL ) ;
56        Group = TRUE ;
57
58        Text [ en-US ] = "~Database file" ;
59    };
60    ComboBox CMB_URL
61    {
62        HelpID = "cui:ComboBox:DLG_DOCUMENTLINK:CMB_URL" ;
63        Pos = MAP_APPFONT ( 6, LINE_1_Y + OFFSET_Y + HEIGHT_LABEL - 3) ;
64        Size = MAP_APPFONT ( DIALOG_SIZE_X - 3*LINE_1_Y - BUTTON_SIZE_X, HEIGHT_EDIT ) ;
65
66        SVLook = TRUE ;
67        Border = TRUE ;
68        DropDown = TRUE ;
69        AutoHScroll = TRUE ;
70        TabStop = TRUE ;
71    };
72    PushButton PB_BROWSEFILE
73    {
74        HelpID = "cui:PushButton:DLG_DOCUMENTLINK:PB_BROWSEFILE" ;
75        Pos = MAP_APPFONT ( DIALOG_SIZE_X - BUTTON_SIZE_X - 6, LINE_1_Y + OFFSET_Y + HEIGHT_LABEL - 4) ;
76        Size = MAP_APPFONT ( BUTTON_SIZE_X, BUTTON_SIZE_Y ) ;
77        Text [ en-US ] = "~Browse..." ;
78    };
79
80    FixedText FT_NAME
81    {
82        Pos = MAP_APPFONT ( 6, LINE_1_Y + 2*OFFSET_Y + HEIGHT_LABEL + BUTTON_SIZE_Y - 3) ;
83        Size = MAP_APPFONT ( DIALOG_SIZE_X - 6, HEIGHT_LABEL ) ;
84        Group = TRUE ;
85
86        Text [ en-US ] = "Registered ~name" ;
87    };
88    Edit ET_NAME
89    {
90        HelpID = "cui:Edit:DLG_DOCUMENTLINK:ET_NAME" ;
91        Pos = MAP_APPFONT ( 6, LINE_1_Y + 3*OFFSET_Y + 2*HEIGHT_LABEL + BUTTON_SIZE_Y - 6) ;
92        Size = MAP_APPFONT ( DIALOG_SIZE_X - 3*LINE_1_Y - BUTTON_SIZE_X, HEIGHT_EDIT ) ;
93        TabStop = TRUE ;
94        Border = TRUE ;
95    };
96
97    FixedLine FL_BOTTOM
98    {
99        Pos = MAP_APPFONT ( 4, LINE_1_Y + 4*OFFSET_Y + 2*HEIGHT_LABEL + BUTTON_SIZE_Y + HEIGHT_EDIT - 6) ;
100        Size = MAP_APPFONT ( DIALOG_SIZE_X - 8, 8 ) ;
101    };
102
103    OKButton BTN_OK
104    {
105        Pos = MAP_APPFONT ( DIALOG_SIZE_X - 3 * ( BUTTON_SIZE_X + 3 ) - 6, DIALOG_SIZE_Y - 6 - BUTTON_SIZE_Y ) ;
106        Size = MAP_APPFONT ( BUTTON_SIZE_X, BUTTON_SIZE_Y ) ;
107        DefButton = TRUE ;
108    };
109    CancelButton BTN_CANCEL
110    {
111        Pos = MAP_APPFONT ( DIALOG_SIZE_X - 2 * ( BUTTON_SIZE_X + 3 ) - 6, DIALOG_SIZE_Y - 6 - BUTTON_SIZE_Y ) ;
112        Size = MAP_APPFONT ( BUTTON_SIZE_X, BUTTON_SIZE_Y ) ;
113    };
114    HelpButton BTN_HELP
115    {
116        Pos = MAP_APPFONT ( DIALOG_SIZE_X - 1 * ( BUTTON_SIZE_X + 3 ) - 3, DIALOG_SIZE_Y - 6 - BUTTON_SIZE_Y ) ;
117        Size = MAP_APPFONT ( BUTTON_SIZE_X, BUTTON_SIZE_Y ) ;
118    };
119
120    String STR_EDIT_LINK
121    {
122        Text [ en-US ] = "Edit Database Link" ;
123    };
124    String STR_NEW_LINK
125    {
126        Text [ en-US ] = "Create Database Link" ;
127    };
128};
129
130String STR_LINKEDDOC_DOESNOTEXIST
131{
132    Text [ en-US ] = "The file\n$file$\ndoes not exist." ;
133};
134
135String STR_LINKEDDOC_NO_SYSTEM_FILE
136{
137    Text [ en-US ] = "The file\n$file$\ndoes not exist in the local file system." ;
138};
139
140String STR_NAME_CONFLICT
141{
142    Text [ en-US ] = "The name '$file$' is already used for another database.\nPlease choose a different name." ;
143};
144
145QueryBox QUERY_DELETE_CONFIRM
146{
147    Buttons = WB_YES_NO ;
148    Message [ en-US ] = "Do you want to delete the entry?" ;
149};
150
151// ********************************************************************** EOF
152