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