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