xref: /trunk/main/sw/source/ui/dbui/dbinsdlg.src (revision 76b0e0849959cb674e5b1573590ecf36aab7b63a)
18660f102SAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
38660f102SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
48660f102SAndrew Rist * or more contributor license agreements.  See the NOTICE file
58660f102SAndrew Rist * distributed with this work for additional information
68660f102SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
78660f102SAndrew Rist * to you under the Apache License, Version 2.0 (the
88660f102SAndrew Rist * "License"); you may not use this file except in compliance
98660f102SAndrew Rist * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir *
118660f102SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir *
138660f102SAndrew Rist * Unless required by applicable law or agreed to in writing,
148660f102SAndrew Rist * software distributed under the License is distributed on an
158660f102SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
168660f102SAndrew Rist * KIND, either express or implied.  See the License for the
178660f102SAndrew Rist * specific language governing permissions and limitations
188660f102SAndrew Rist * under the License.
19cdf0e10cSrcweir *
208660f102SAndrew Rist *************************************************************/
218660f102SAndrew Rist
228660f102SAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweir#include "dbinsdlg.hrc"
25cdf0e10cSrcweir#include "dbui.hrc"
26cdf0e10cSrcweir#include "cmdid.h"
27cdf0e10cSrcweir#include "helpid.h"
28cdf0e10cSrcweirModalDialog DLG_AP_INSERT_DB_SEL
29cdf0e10cSrcweir{
30cdf0e10cSrcweir    HelpID = HID_AP_INSERT_DB_SEL ;
31cdf0e10cSrcweir    OUTPUTSIZE = TRUE ;
32cdf0e10cSrcweir    Pos = MAP_APPFONT ( 0 , 0 ) ;
33cdf0e10cSrcweir    Size = MAP_APPFONT ( 291 , 189 ) ;
34cdf0e10cSrcweir    Moveable = TRUE ;
35cdf0e10cSrcweir    Closeable = TRUE ;
36cdf0e10cSrcweir    SVLOOK = TRUE ;
37cdf0e10cSrcweir    FixedText FT_INSERT_DATA
38cdf0e10cSrcweir    {
39cdf0e10cSrcweir        Pos = MAP_APPFONT ( 6 , 6 ) ;
40cdf0e10cSrcweir        Size = MAP_APPFONT ( 66 , 8 ) ;
41cdf0e10cSrcweir        Text [ en-US ] = "Insert data as:" ;
42cdf0e10cSrcweir    };
43cdf0e10cSrcweir    RadioButton RB_AS_TABLE
44cdf0e10cSrcweir    {
45cdf0e10cSrcweir        HelpID = "sw:RadioButton:DLG_AP_INSERT_DB_SEL:RB_AS_TABLE";
46cdf0e10cSrcweir        Pos = MAP_APPFONT ( 80 , 6 ) ;
47cdf0e10cSrcweir        Size = MAP_APPFONT ( 60 , 10 ) ;
48cdf0e10cSrcweir        TabStop = TRUE ;
49cdf0e10cSrcweir        Check = TRUE ;
50cdf0e10cSrcweir        Text [ en-US ] = "T~able" ;
51cdf0e10cSrcweir    };
52cdf0e10cSrcweir    RadioButton RB_AS_FIELD
53cdf0e10cSrcweir    {
54cdf0e10cSrcweir        HelpID = "sw:RadioButton:DLG_AP_INSERT_DB_SEL:RB_AS_FIELD";
55cdf0e10cSrcweir        Pos = MAP_APPFONT ( 145 , 6 ) ;
56cdf0e10cSrcweir        Size = MAP_APPFONT ( 60 , 10 ) ;
57cdf0e10cSrcweir        TabStop = TRUE ;
58cdf0e10cSrcweir        Text [ en-US ] = "~Fields" ;
59cdf0e10cSrcweir    };
60cdf0e10cSrcweir    RadioButton RB_AS_TEXT
61cdf0e10cSrcweir    {
62cdf0e10cSrcweir        HelpID = "sw:RadioButton:DLG_AP_INSERT_DB_SEL:RB_AS_TEXT";
63cdf0e10cSrcweir        Pos = MAP_APPFONT ( 210 , 6 ) ;
64cdf0e10cSrcweir        Size = MAP_APPFONT ( 60 , 10 ) ;
65cdf0e10cSrcweir        TabStop = TRUE ;
66cdf0e10cSrcweir        Text [ en-US ] = "~Text" ;
67cdf0e10cSrcweir    };
68cdf0e10cSrcweir    OKButton BT_OK
69cdf0e10cSrcweir    {
70cdf0e10cSrcweir        Pos = MAP_APPFONT ( 123 , 172 ) ;
71cdf0e10cSrcweir        Size = MAP_APPFONT ( 50 , 14 ) ;
72cdf0e10cSrcweir        TabStop = TRUE ;
73cdf0e10cSrcweir        DefButton = TRUE ;
74cdf0e10cSrcweir    };
75cdf0e10cSrcweir    CancelButton BT_CANCEL
76cdf0e10cSrcweir    {
77cdf0e10cSrcweir        Pos = MAP_APPFONT ( 179 , 172 ) ;
78cdf0e10cSrcweir        Size = MAP_APPFONT ( 50 , 14 ) ;
79cdf0e10cSrcweir        TabStop = TRUE ;
80cdf0e10cSrcweir    };
81cdf0e10cSrcweir    HelpButton BT_HELP
82cdf0e10cSrcweir    {
83cdf0e10cSrcweir        Pos = MAP_APPFONT ( 235 , 172 ) ;
84cdf0e10cSrcweir        Size = MAP_APPFONT ( 50 , 14 ) ;
85cdf0e10cSrcweir        TabStop = TRUE ;
86cdf0e10cSrcweir    };
87cdf0e10cSrcweir    FixedLine FL_HEAD
88cdf0e10cSrcweir    {
89cdf0e10cSrcweir        Pos = MAP_APPFONT ( 6 , 19 ) ;
90cdf0e10cSrcweir        Size = MAP_APPFONT ( 279 , 8 ) ;
91cdf0e10cSrcweir        /* wird dynamisch gesetzt! */
92cdf0e10cSrcweir        Text = "" ;
93cdf0e10cSrcweir    };
94cdf0e10cSrcweir    FixedText FT_DB_COLUMN
95cdf0e10cSrcweir    {
96cdf0e10cSrcweir        Pos = MAP_APPFONT ( 12 , 31 ) ;
97cdf0e10cSrcweir        Size = MAP_APPFONT ( 72 , 8 ) ;
98cdf0e10cSrcweir        Text [ en-US ] = "Database ~columns" ;
99cdf0e10cSrcweir    };
100cdf0e10cSrcweir    FixedLine FL_FORMAT
101cdf0e10cSrcweir    {
102cdf0e10cSrcweir        Pos = MAP_APPFONT (   6 , 117 ) ;
103cdf0e10cSrcweir        Size = MAP_APPFONT ( 279 , 8 ) ;
104cdf0e10cSrcweir        Text [ en-US ] = "For~mat" ;
105cdf0e10cSrcweir    };
106cdf0e10cSrcweir    RadioButton RB_DBFMT_FROM_DB
107cdf0e10cSrcweir    {
108cdf0e10cSrcweir        HelpID = "sw:RadioButton:DLG_AP_INSERT_DB_SEL:RB_DBFMT_FROM_DB";
109cdf0e10cSrcweir        Pos = MAP_APPFONT ( 15 , 128 ) ;
110cdf0e10cSrcweir        Size = MAP_APPFONT ( 90 , 10 ) ;
111cdf0e10cSrcweir        TabStop = TRUE ;
112cdf0e10cSrcweir        Check = TRUE ;
113cdf0e10cSrcweir        Text [ en-US ] = "From ~database" ;
114cdf0e10cSrcweir    };
115cdf0e10cSrcweir    RadioButton RB_DBFMT_FROM_USR
116cdf0e10cSrcweir    {
117cdf0e10cSrcweir        HelpID = "sw:RadioButton:DLG_AP_INSERT_DB_SEL:RB_DBFMT_FROM_USR";
118cdf0e10cSrcweir        Pos = MAP_APPFONT ( 15 , 143 ) ;
119cdf0e10cSrcweir        Size = MAP_APPFONT ( 10 , 10 ) ;
120cdf0e10cSrcweir        TabStop = TRUE ;
121cdf0e10cSrcweir    };
122cdf0e10cSrcweir    ListBox LB_DBFMT_FROM_USR
123cdf0e10cSrcweir    {
124cdf0e10cSrcweir        HelpID = "sw:ListBox:DLG_AP_INSERT_DB_SEL:LB_DBFMT_FROM_USR";
125cdf0e10cSrcweir        Border = TRUE ;
126cdf0e10cSrcweir        Pos = MAP_APPFONT ( 30 , 142 ) ;
127cdf0e10cSrcweir        Size = MAP_APPFONT ( 75 , 44 ) ;
128cdf0e10cSrcweir        TabStop = TRUE ;
129cdf0e10cSrcweir        DropDown = TRUE ;
130cdf0e10cSrcweir        AutoHScroll = TRUE ;
131cdf0e10cSrcweir    };
132cdf0e10cSrcweir    /* -------------- Page Text / Fields -------------------------------- */
133cdf0e10cSrcweir    ListBox LB_TXT_DB_COLUMN
134cdf0e10cSrcweir    {
135cdf0e10cSrcweir        HelpID = "sw:ListBox:DLG_AP_INSERT_DB_SEL:LB_TXT_DB_COLUMN";
136cdf0e10cSrcweir        Border = TRUE ;
137cdf0e10cSrcweir        Pos = MAP_APPFONT ( 12 , 41 ) ;
138cdf0e10cSrcweir        Size = MAP_APPFONT ( 93 , 70 ) ;
139cdf0e10cSrcweir        TabStop = TRUE ;
140cdf0e10cSrcweir        Hide = TRUE ;
141cdf0e10cSrcweir    };
142cdf0e10cSrcweir    ImageButton IB_DBCOL_TOEDIT
143cdf0e10cSrcweir    {
144cdf0e10cSrcweir        HelpID = "sw:ImageButton:DLG_AP_INSERT_DB_SEL:IB_DBCOL_TOEDIT";
145cdf0e10cSrcweir        Pos = MAP_APPFONT ( 111 , 41 ) ;
146cdf0e10cSrcweir        Size = MAP_APPFONT ( 20 , 12 ) ;
147cdf0e10cSrcweir        TabStop = TRUE ;
148cdf0e10cSrcweir        Hide = TRUE ;
149cdf0e10cSrcweir        ButtonImage = Image
150cdf0e10cSrcweir        {
151cdf0e10cSrcweir            ImageBitmap = Bitmap
152cdf0e10cSrcweir            {
153*76b0e084Smseidel                File = "one_right.png" ;
154cdf0e10cSrcweir            };
155cdf0e10cSrcweir            MaskColor = IMAGE_MASK_COLOR ;
156cdf0e10cSrcweir        };
157cdf0e10cSrcweir    };
158cdf0e10cSrcweir    MultiLineEdit ED_DB_TEXT
159cdf0e10cSrcweir    {
160cdf0e10cSrcweir        HelpID = "sw:MultiLineEdit:DLG_AP_INSERT_DB_SEL:ED_DB_TEXT";
161cdf0e10cSrcweir        Border = TRUE ;
162cdf0e10cSrcweir        Pos = MAP_APPFONT ( 137 , 41 ) ;
163cdf0e10cSrcweir        Size = MAP_APPFONT ( 142 , 70 ) ;
164cdf0e10cSrcweir        TabStop = TRUE ;
165cdf0e10cSrcweir        Left = TRUE ;
166cdf0e10cSrcweir        VScroll = TRUE ;
167cdf0e10cSrcweir        HScroll = TRUE ;
168cdf0e10cSrcweir        Hide = TRUE ;
169cdf0e10cSrcweir        IgnoreTab = TRUE;
170cdf0e10cSrcweir    };
171cdf0e10cSrcweir    FixedText FT_DB_PARA_COLL
172cdf0e10cSrcweir    {
173cdf0e10cSrcweir        Pos = MAP_APPFONT ( 118 , 129 ) ;
174cdf0e10cSrcweir        Size = MAP_APPFONT ( 58 , 8 ) ;
175cdf0e10cSrcweir        Text [ en-US ] = "Paragraph ~Style:" ;
176cdf0e10cSrcweir        Hide = TRUE ;
177cdf0e10cSrcweir    };
178cdf0e10cSrcweir    ListBox LB_DB_PARA_COLL
179cdf0e10cSrcweir    {
180cdf0e10cSrcweir        HelpID = "sw:ListBox:DLG_AP_INSERT_DB_SEL:LB_DB_PARA_COLL";
181cdf0e10cSrcweir        Border = TRUE ;
182cdf0e10cSrcweir        Pos = MAP_APPFONT ( 182 , 127 ) ;
183cdf0e10cSrcweir        Size = MAP_APPFONT ( 97 , 59 ) ;
184cdf0e10cSrcweir        TabStop = TRUE ;
185cdf0e10cSrcweir        DropDown = TRUE ;
186cdf0e10cSrcweir        Hide = TRUE ;
187cdf0e10cSrcweir        Sort = TRUE ;
188cdf0e10cSrcweir    };
189cdf0e10cSrcweir    /* -------------- Page Table ---------------------------------------- */
190cdf0e10cSrcweir    ListBox LB_TBL_DB_COLUMN
191cdf0e10cSrcweir    {
192cdf0e10cSrcweir        HelpID = "sw:ListBox:DLG_AP_INSERT_DB_SEL:LB_TBL_DB_COLUMN";
193cdf0e10cSrcweir        Border = TRUE ;
194cdf0e10cSrcweir        Pos = MAP_APPFONT ( 12 , 41 ) ;
195cdf0e10cSrcweir        Size = MAP_APPFONT ( 93 , 70 ) ;
196cdf0e10cSrcweir        TabStop = TRUE ;
197cdf0e10cSrcweir    };
198cdf0e10cSrcweir    ImageButton IB_DBCOL_ALL_TO
199cdf0e10cSrcweir    {
200cdf0e10cSrcweir        HelpID = "sw:ImageButton:DLG_AP_INSERT_DB_SEL:IB_DBCOL_ALL_TO";
201cdf0e10cSrcweir        Pos = MAP_APPFONT ( 111 , 41 ) ;
202cdf0e10cSrcweir        Size = MAP_APPFONT ( 20 , 12 ) ;
203cdf0e10cSrcweir        TabStop = TRUE ;
204cdf0e10cSrcweir        ButtonImage = Image
205cdf0e10cSrcweir        {
206cdf0e10cSrcweir            ImageBitmap = Bitmap
207cdf0e10cSrcweir            {
208*76b0e084Smseidel                File = "all_right.png" ;
209cdf0e10cSrcweir            };
210cdf0e10cSrcweir            MaskColor = IMAGE_MASK_COLOR ;
211cdf0e10cSrcweir        };
212cdf0e10cSrcweir    };
213cdf0e10cSrcweir    ImageButton IB_DBCOL_ONE_TO
214cdf0e10cSrcweir    {
215cdf0e10cSrcweir        HelpID = "sw:ImageButton:DLG_AP_INSERT_DB_SEL:IB_DBCOL_ONE_TO";
216cdf0e10cSrcweir        Pos = MAP_APPFONT ( 111 , 56 ) ;
217cdf0e10cSrcweir        Size = MAP_APPFONT ( 20 , 12 ) ;
218cdf0e10cSrcweir        TabStop = TRUE ;
219cdf0e10cSrcweir        ButtonImage = Image
220cdf0e10cSrcweir        {
221cdf0e10cSrcweir            ImageBitmap = Bitmap
222cdf0e10cSrcweir            {
223*76b0e084Smseidel                File = "one_right.png" ;
224cdf0e10cSrcweir            };
225cdf0e10cSrcweir            MaskColor = IMAGE_MASK_COLOR ;
226cdf0e10cSrcweir        };
227cdf0e10cSrcweir    };
228cdf0e10cSrcweir    ImageButton IB_DBCOL_ONE_FROM
229cdf0e10cSrcweir    {
230cdf0e10cSrcweir        HelpID = "sw:ImageButton:DLG_AP_INSERT_DB_SEL:IB_DBCOL_ONE_FROM";
231cdf0e10cSrcweir        Pos = MAP_APPFONT ( 111 , 84 ) ;
232cdf0e10cSrcweir        Size = MAP_APPFONT ( 20 , 12 ) ;
233cdf0e10cSrcweir        TabStop = TRUE ;
234cdf0e10cSrcweir        ButtonImage = Image
235cdf0e10cSrcweir        {
236cdf0e10cSrcweir            ImageBitmap = Bitmap
237cdf0e10cSrcweir            {
238*76b0e084Smseidel                File = "one_left.png" ;
239cdf0e10cSrcweir            };
240cdf0e10cSrcweir            MaskColor = IMAGE_MASK_COLOR ;
241cdf0e10cSrcweir        };
242cdf0e10cSrcweir    };
243cdf0e10cSrcweir    ImageButton IB_DBCOL_ALL_FROM
244cdf0e10cSrcweir    {
245cdf0e10cSrcweir        HelpID = "sw:ImageButton:DLG_AP_INSERT_DB_SEL:IB_DBCOL_ALL_FROM";
246cdf0e10cSrcweir        Pos = MAP_APPFONT ( 111 , 99 ) ;
247cdf0e10cSrcweir        Size = MAP_APPFONT ( 20 , 12 ) ;
248cdf0e10cSrcweir        TabStop = TRUE ;
249cdf0e10cSrcweir        ButtonImage = Image
250cdf0e10cSrcweir        {
251cdf0e10cSrcweir            ImageBitmap = Bitmap
252cdf0e10cSrcweir            {
253*76b0e084Smseidel                File = "all_left.png" ;
254cdf0e10cSrcweir            };
255cdf0e10cSrcweir            MaskColor = IMAGE_MASK_COLOR ;
256cdf0e10cSrcweir        };
257cdf0e10cSrcweir    };
258cdf0e10cSrcweir    FixedText FT_TABLE_COL
259cdf0e10cSrcweir    {
260cdf0e10cSrcweir        Pos = MAP_APPFONT ( 137 , 31 ) ;
261cdf0e10cSrcweir        Size = MAP_APPFONT ( 75 , 8 ) ;
262cdf0e10cSrcweir
263cdf0e10cSrcweir        Text [ en-US ] = "Tab~le column(s)" ;
264cdf0e10cSrcweir    };
265cdf0e10cSrcweir    ListBox LB_TABLE_COL
266cdf0e10cSrcweir    {
267cdf0e10cSrcweir        HelpID = "sw:ListBox:DLG_AP_INSERT_DB_SEL:LB_TABLE_COL";
268cdf0e10cSrcweir        Border = TRUE ;
269cdf0e10cSrcweir        Pos = MAP_APPFONT ( 137 , 41 ) ;
270cdf0e10cSrcweir        Size = MAP_APPFONT ( 75 , 70 ) ;
271cdf0e10cSrcweir        TabStop = TRUE ;
272cdf0e10cSrcweir    };
273cdf0e10cSrcweir    FixedLine FL_BOTTOM
274cdf0e10cSrcweir    {
275cdf0e10cSrcweir        Pos = MAP_APPFONT ( 0 , 164 ) ;
276cdf0e10cSrcweir        Size = MAP_APPFONT ( 291, 8 ) ;
277cdf0e10cSrcweir    };
278cdf0e10cSrcweir    CheckBox CB_TABLE_HEADON
279cdf0e10cSrcweir    {
280cdf0e10cSrcweir        HelpID = "sw:CheckBox:DLG_AP_INSERT_DB_SEL:CB_TABLE_HEADON";
281cdf0e10cSrcweir        Pos = MAP_APPFONT ( 111 , 128 ) ;
282cdf0e10cSrcweir        Size = MAP_APPFONT ( 100 , 10 ) ;
283cdf0e10cSrcweir        TabStop = TRUE ;
284cdf0e10cSrcweir        Check = TRUE ;
285cdf0e10cSrcweir        Text [ en-US ] = "Insert table heading";
286cdf0e10cSrcweir    };
287cdf0e10cSrcweir    RadioButton RB_HEADL_COLNMS
288cdf0e10cSrcweir    {
289cdf0e10cSrcweir        HelpID = "sw:RadioButton:DLG_AP_INSERT_DB_SEL:RB_HEADL_COLNMS";
290cdf0e10cSrcweir        Pos = MAP_APPFONT ( 120 , 142 ) ;
291cdf0e10cSrcweir        Size = MAP_APPFONT ( 90 , 10 ) ;
292cdf0e10cSrcweir        TabStop = TRUE ;
293cdf0e10cSrcweir        Check = TRUE ;
294cdf0e10cSrcweir        Text [ en-US ] = "Apply column ~name";
295cdf0e10cSrcweir    };
296cdf0e10cSrcweir    RadioButton RB_HEADL_EMPTY
297cdf0e10cSrcweir    {
298cdf0e10cSrcweir        HelpID = "sw:RadioButton:DLG_AP_INSERT_DB_SEL:RB_HEADL_EMPTY";
299cdf0e10cSrcweir        Pos = MAP_APPFONT ( 120 , 155 ) ;
300cdf0e10cSrcweir        Size = MAP_APPFONT ( 90 , 10 ) ;
301cdf0e10cSrcweir        TabStop = TRUE ;
302cdf0e10cSrcweir        Text [ en-US ] = "Create row only";
303cdf0e10cSrcweir    };
304cdf0e10cSrcweir    PushButton PB_TBL_FORMAT
305cdf0e10cSrcweir    {
306cdf0e10cSrcweir        HelpID = "sw:PushButton:DLG_AP_INSERT_DB_SEL:PB_TBL_FORMAT";
307cdf0e10cSrcweir        Pos = MAP_APPFONT ( 214 , 128 ) ;
308cdf0e10cSrcweir        Size = MAP_APPFONT ( 65 , 12 ) ;
309cdf0e10cSrcweir        Text [ en-US ] = "Pr~operties..." ;
310cdf0e10cSrcweir        TabStop = TRUE ;
311cdf0e10cSrcweir    };
312cdf0e10cSrcweir    PushButton PB_TBL_AUTOFMT
313cdf0e10cSrcweir    {
314cdf0e10cSrcweir        HelpID = "sw:PushButton:DLG_AP_INSERT_DB_SEL:PB_TBL_AUTOFMT";
315cdf0e10cSrcweir        Pos = MAP_APPFONT ( 214 , 144 ) ;
316cdf0e10cSrcweir        Size = MAP_APPFONT ( 65 , 12 ) ;
317cdf0e10cSrcweir        TabStop = TRUE ;
318cdf0e10cSrcweir        Text [ en-US ] = "Aut~oFormat..." ;
319cdf0e10cSrcweir    };
320cdf0e10cSrcweir    String STR_NOTEMPL
321cdf0e10cSrcweir    {
322cdf0e10cSrcweir        Text [ en-US ] = "<none>" ;
323cdf0e10cSrcweir    };
324cdf0e10cSrcweir    Text [ en-US ] = "Insert Database Columns" ;
325cdf0e10cSrcweir};
326cdf0e10cSrcweir
327