xref: /AOO42X/main/cui/source/tabpages/border.src (revision 48b4597a2856c699bd618a4df53b49e70a921b21)
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 ---------------------------------------------------------------
23#include "helpid.hrc"
24#include <cuires.hrc>
25#include "border.hrc"
26#include <svx/dialogs.hrc>
27
28// define ---------------------------------------------------------------
29#define STD_MASKCOLOR Color { Red=0xFFFF; Green=0x0000; Blue=0xFFFF; }
30// RID_SVXPAGE_BORDER ---------------------------------------------------
31TabPage RID_SVXPAGE_BORDER
32{
33    Size = MAP_APPFONT ( 260, 185 ) ;
34    Helpid = HID_BORDER ;
35    Hide = TRUE ;
36    Text [ en-US ] = "Borders" ;
37    FixedLine FL_BORDER
38    {
39        Pos = MAP_APPFONT ( 6, 3 ) ;
40        Size = MAP_APPFONT ( 70, 8 ) ;
41        Text [ en-US ] = "Line arrangement" ;
42    };
43    FixedText FT_DEFAULT
44    {
45        Pos = MAP_APPFONT ( 12, 14) ;
46        Size = MAP_APPFONT ( 64, 8) ;
47        Text [ en-US ] = "~Default" ;
48    };
49    Control WIN_PRESETS
50    {
51        HelpId = HID_BORDER_CTL_PRESETS ;
52        Hide = TRUE ;
53        Pos = MAP_APPFONT ( 12, 25 ) ;
54        Size = MAP_APPFONT ( 61, 12 ) ;
55        TabStop = TRUE ;
56    };
57    FixedText FT_USERDEF
58    {
59        Pos = MAP_APPFONT (12, 41) ;
60        Size = MAP_APPFONT ( 64, 8) ;
61        Text [ en-US ] = "~User-defined" ;
62    };
63    Control WIN_FRAMESEL
64    {
65        Border = TRUE ;
66        Pos = MAP_APPFONT ( 12, 53 ) ;
67        Size = MAP_APPFONT ( 61, 65 ) ;
68        TabStop = TRUE ;
69        Text = "Border control" ;
70    };
71    FixedLine FL_SEPARATOR1
72    {
73        Pos = MAP_APPFONT ( 77, 14 ) ;
74        Size = MAP_APPFONT ( 4, 104 ) ;
75        Vert = TRUE ;
76    };
77    FixedLine FL_LINE
78    {
79        Pos = MAP_APPFONT ( 82, 3 ) ;
80        Size = MAP_APPFONT ( 83, 8 ) ;
81        Text [ en-US ] = "Line" ;
82    };
83    FixedText FT_STYLE
84    {
85        Pos = MAP_APPFONT ( 88, 14) ;
86        Size = MAP_APPFONT ( 77, 8) ;
87        Text [ en-US ] = "St~yle" ;
88    };
89    ListBox LB_LINESTYLE
90    {
91        HelpID = "cui:ListBox:RID_SVXPAGE_BORDER:LB_LINESTYLE" ;
92        Border = TRUE ;
93        Pos = MAP_APPFONT ( 88, 25 ) ;
94        Size = MAP_APPFONT ( 74, 66 ) ;
95    };
96    FixedText FT_COLOR
97    {
98        Pos = MAP_APPFONT ( 88, 95 ) ;
99        Size = MAP_APPFONT ( 77, 8 ) ;
100        Text [ en-US ] = "~Color" ;
101    };
102    ListBox LB_LINECOLOR
103    {
104        HelpID = "cui:ListBox:RID_SVXPAGE_BORDER:LB_LINECOLOR" ;
105        Border = TRUE ;
106        Pos = MAP_APPFONT ( 88, 106 ) ;
107        Size = MAP_APPFONT ( 74, 68 ) ;
108        DropDown = TRUE ;
109        DDExtraWidth = TRUE ;
110    };
111    FixedLine FL_SEPARATOR2
112    {
113        Pos = MAP_APPFONT ( 166, 14 ) ;
114        Size = MAP_APPFONT ( 4, 104 ) ;
115        Vert = TRUE ;
116    };
117    FixedText FT_LEFT
118    {
119        Pos = MAP_APPFONT ( 177, 16 ) ;
120        Size = MAP_APPFONT ( 34, 8 ) ;
121        Text [ en-US ] = "~Left" ;
122    };
123    MetricField MF_LEFT
124    {
125        HelpID = "cui:MetricField:RID_SVXPAGE_BORDER:MF_LEFT" ;
126        Border = TRUE ;
127        Pos = MAP_APPFONT ( 213, 14 ) ;
128        Size = MAP_APPFONT ( 38, 12 ) ;
129        Spin = TRUE ;
130        Repeat = TRUE ;
131        SpinSize = 10 ;
132        First = 100 ;
133        Last = 5000 ;
134        Maximum = 5000 ;
135        Minimum = 0 ;
136        DecimalDigits = 2 ;
137        Unit = FUNIT_MM ;
138    };
139    FixedText FT_RIGHT
140    {
141        Pos = MAP_APPFONT ( 177, 32 ) ;
142        Size = MAP_APPFONT ( 34, 8 ) ;
143        Text [ en-US ] = "Right" ;
144    };
145    MetricField MF_RIGHT
146    {
147        HelpID = "cui:MetricField:RID_SVXPAGE_BORDER:MF_RIGHT" ;
148        Border = TRUE ;
149        Pos = MAP_APPFONT ( 213, 30 ) ;
150        Size = MAP_APPFONT ( 38, 12 ) ;
151        Spin = TRUE ;
152        Repeat = TRUE ;
153        SpinSize = 10 ;
154        First = 100 ;
155        Last = 5000 ;
156        Maximum = 5000 ;
157        Minimum = 0 ;
158        DecimalDigits = 2 ;
159        Unit = FUNIT_MM ;
160    };
161    FixedText FT_TOP
162    {
163        Pos = MAP_APPFONT ( 177, 48 ) ;
164        Size = MAP_APPFONT ( 34, 8 ) ;
165        Text [ en-US ] = "~Top" ;
166    };
167    MetricField MF_TOP
168    {
169        HelpID = "cui:MetricField:RID_SVXPAGE_BORDER:MF_TOP" ;
170        Border = TRUE ;
171        Pos = MAP_APPFONT ( 213, 46 ) ;
172        Size = MAP_APPFONT ( 38, 12 ) ;
173        Spin = TRUE ;
174        Repeat = TRUE ;
175        SpinSize = 10 ;
176        First = 100 ;
177        Last = 5000 ;
178        Maximum = 5000 ;
179        Minimum = 0 ;
180        DecimalDigits = 2 ;
181        Unit = FUNIT_MM ;
182    };
183    FixedText FT_BOTTOM
184    {
185        Pos = MAP_APPFONT ( 177, 64 ) ;
186        Size = MAP_APPFONT ( 34, 8 ) ;
187        Text [ en-US ] = "~Bottom" ;
188    };
189    MetricField MF_BOTTOM
190    {
191        HelpID = "cui:MetricField:RID_SVXPAGE_BORDER:MF_BOTTOM" ;
192        Border = TRUE ;
193        Pos = MAP_APPFONT ( 213, 62 ) ;
194        Size = MAP_APPFONT ( 38, 12 ) ;
195        Spin = TRUE ;
196        Repeat = TRUE ;
197        SpinSize = 10 ;
198        First = 100 ;
199        Last = 5000 ;
200        Maximum = 5000 ;
201        Minimum = 0 ;
202        DecimalDigits = 2 ;
203        Unit = FUNIT_MM ;
204    };
205    CheckBox CB_SYNC
206    {
207        HelpID = "cui:CheckBox:RID_SVXPAGE_BORDER:CB_SYNC" ;
208        Pos = MAP_APPFONT ( 177, 78 ) ;
209        Size = MAP_APPFONT ( 74, 10 ) ;
210        Text [ en-US ] = "Synchronize" ;
211    };
212    FixedLine FL_DISTANCE
213    {
214        Pos = MAP_APPFONT ( 171, 3 ) ;
215        Size = MAP_APPFONT ( 83, 8 ) ;
216        Text [ en-US ] = "Spacing to contents" ;
217    };
218
219    FixedText FT_SHADOWPOS
220    {
221        Pos = MAP_APPFONT ( 12, 133 ) ;
222        Size = MAP_APPFONT ( 74, 8 ) ;
223        Text [ en-US ] = "~Position" ;
224    };
225    Control WIN_SHADOWS
226    {
227        HelpId = HID_BORDER_CTL_SHADOWS ;
228        Hide = TRUE ;
229        Pos = MAP_APPFONT ( 12, 144 ) ;
230        Size = MAP_APPFONT ( 74, 12 ) ;
231        TabStop = TRUE ;
232    };
233    FixedText FT_SHADOWSIZE
234    {
235        Pos = MAP_APPFONT ( 88, 133 ) ;
236        Size = MAP_APPFONT ( 60, 8 ) ;
237        Text [ en-US ] = "Distan~ce" ;
238    };
239    MetricField ED_SHADOWSIZE
240    {
241        HelpID = "cui:MetricField:RID_SVXPAGE_BORDER:ED_SHADOWSIZE" ;
242        Border = TRUE ;
243        Pos = MAP_APPFONT ( 88, 144 ) ;
244        Size = MAP_APPFONT ( 40, 12 ) ;
245        Spin = TRUE ;
246        Repeat = TRUE ;
247        SpinSize = 10 ;
248        First = 100 ;
249        Last = 5000 ;
250        Maximum = 5000 ;
251        Minimum = 50 ;
252        DecimalDigits = 2 ;
253        Unit = FUNIT_MM ;
254    };
255    FixedText FT_SHADOWCOLOR
256    {
257        Pos = MAP_APPFONT ( 177, 133 ) ;
258        Size = MAP_APPFONT ( 60, 8 ) ;
259        Text [ en-US ] = "C~olor" ;
260    };
261    ListBox LB_SHADOWCOLOR
262    {
263        HelpID = "cui:ListBox:RID_SVXPAGE_BORDER:LB_SHADOWCOLOR" ;
264        Border = TRUE ;
265        Pos = MAP_APPFONT ( 177, 144 ) ;
266        Size = MAP_APPFONT ( 74, 68 ) ;
267        DropDown = TRUE ;
268        DDExtraWidth = TRUE ;
269    };
270    FixedLine FL_SHADOW
271    {
272        Pos = MAP_APPFONT ( 6, 123 ) ;
273        Size = MAP_APPFONT ( 248, 8 ) ;
274        Text [ en-US ] = "Shadow style" ;
275    };
276    FixedLine FL_PROPERTIES
277    {
278        Pos = MAP_APPFONT ( 6, 162 ) ;
279        Size = MAP_APPFONT ( 248, 8 ) ;
280        Hide = TRUE ;
281        Text [ en-US ] = "Properties" ;
282    };
283    CheckBox CB_MERGEWITHNEXT
284    {
285        HelpID = "cui:CheckBox:RID_SVXPAGE_BORDER:CB_MERGEWITHNEXT" ;
286        Pos = MAP_APPFONT ( 12, 173 ) ;
287        Size = MAP_APPFONT ( 242, 10 ) ;
288        Hide = TRUE ;
289        Text [ en-US ] = "~Merge with next paragraph" ;
290    };
291    CheckBox CB_MERGEADJACENTBORDERS
292    {
293        HelpID = "cui:CheckBox:RID_SVXPAGE_BORDER:CB_MERGEADJACENTBORDERS" ;
294        Pos = MAP_APPFONT ( 12, 173 ) ;
295        Size = MAP_APPFONT ( 242, 10 ) ;
296        Hide = TRUE ;
297        Text [ en-US ] = "~Merge adjacent line styles" ;
298    };
299
300#define _PREVIEW_IDLIST_            \
301        IdList =                    \
302        {                           \
303            IID_PRE_CELL_NONE ;     \
304            IID_PRE_CELL_ALL ;      \
305            IID_PRE_CELL_LR ;       \
306            IID_PRE_CELL_TB ;       \
307            IID_PRE_CELL_L ;        \
308            IID_PRE_CELL_DIAG ;     \
309            IID_PRE_HOR_NONE ;      \
310            IID_PRE_HOR_OUTER ;     \
311            IID_PRE_HOR_HOR ;       \
312            IID_PRE_HOR_ALL ;       \
313            IID_PRE_HOR_OUTER2 ;    \
314            IID_PRE_VER_NONE ;      \
315            IID_PRE_VER_OUTER ;     \
316            IID_PRE_VER_VER ;       \
317            IID_PRE_VER_ALL ;       \
318            IID_PRE_VER_OUTER2 ;    \
319            IID_PRE_TABLE_NONE ;    \
320            IID_PRE_TABLE_OUTER ;   \
321            IID_PRE_TABLE_OUTERH ;  \
322            IID_PRE_TABLE_ALL ;     \
323            IID_PRE_TABLE_OUTER2 ;  \
324        };                          \
325        IdCount = { 21 ; } ;
326
327    ImageList IL_PRE_BITMAPS
328    {
329        Prefix = "pr" ;
330        MaskColor = STD_MASKCOLOR ;
331        _PREVIEW_IDLIST_
332    };
333    ImageList ILH_PRE_BITMAPS
334    {
335        Prefix = "prh" ;
336        MaskColor = STD_MASKCOLOR ;
337        _PREVIEW_IDLIST_
338    };
339
340#define _SHADOW_IDLIST_             \
341        IdList =                    \
342        {                           \
343            IID_SHADOWNONE ;        \
344            IID_SHADOW_BOT_RIGHT ;  \
345            IID_SHADOW_BOT_LEFT ;   \
346            IID_SHADOW_TOP_RIGHT ;  \
347            IID_SHADOW_TOP_LEFT ;   \
348        };                          \
349        IdCount = { 5 ; } ;
350
351    ImageList IL_SDW_BITMAPS
352    {
353        Prefix = "sh" ;
354        MaskColor = STD_MASKCOLOR ;
355        _SHADOW_IDLIST_
356    };
357    ImageList ILH_SDW_BITMAPS
358    {
359        Prefix = "shh" ;
360        MaskColor = STD_MASKCOLOR ;
361        _SHADOW_IDLIST_
362    };
363};
364
365String RID_SVXSTR_TABLE_PRESET_NONE
366{
367    Text [ en-US ] = "Set No Borders" ;
368};
369String RID_SVXSTR_TABLE_PRESET_ONLYOUTER
370{
371    Text [ en-US ] = "Set Outer Border Only" ;
372};
373String RID_SVXSTR_TABLE_PRESET_OUTERHORI
374{
375    Text [ en-US ] = "Set Outer Border and Horizontal Lines" ;
376};
377String RID_SVXSTR_TABLE_PRESET_OUTERALL
378{
379    Text [ en-US ] = "Set Outer Border and All Inner Lines" ;
380};
381String RID_SVXSTR_TABLE_PRESET_OUTERINNER
382{
383    Text [ en-US ] = "Set Outer Border Without Changing Inner Lines" ;
384};
385String RID_SVXSTR_PARA_PRESET_DIAGONAL
386{
387    Text [ en-US ] = "Set Diagonal Lines Only" ;
388};
389String RID_SVXSTR_PARA_PRESET_ALL
390{
391    Text [ en-US ] = "Set All Four Borders" ;
392};
393String RID_SVXSTR_PARA_PRESET_LEFTRIGHT
394{
395    Text [ en-US ] = "Set Left and Right Borders Only" ;
396};
397String RID_SVXSTR_PARA_PRESET_TOPBOTTOM
398{
399    Text [ en-US ] = "Set Top and Bottom Borders Only" ;
400};
401String RID_SVXSTR_PARA_PRESET_ONLYLEFT
402{
403    Text [ en-US ] = "Set Left Border Only" ;
404};
405String RID_SVXSTR_HOR_PRESET_ONLYHOR
406{
407    Text [ en-US ] = "Set Top and Bottom Borders, and All Inner Lines" ;
408};
409String RID_SVXSTR_VER_PRESET_ONLYVER
410{
411    Text [ en-US ] = "Set Left and Right Borders, and All Inner Lines" ;
412};
413String RID_SVXSTR_SHADOW_STYLE_NONE
414{
415    Text [ en-US ] = "No Shadow" ;
416};
417String RID_SVXSTR_SHADOW_STYLE_BOTTOMRIGHT
418{
419    Text [ en-US ] = "Cast Shadow to Bottom Right" ;
420};
421String RID_SVXSTR_SHADOW_STYLE_TOPRIGHT
422{
423    Text [ en-US ] = "Cast Shadow to Top Right" ;
424};
425String RID_SVXSTR_SHADOW_STYLE_BOTTOMLEFT
426{
427    Text [ en-US ] = "Cast Shadow to Bottom Left" ;
428};
429String RID_SVXSTR_SHADOW_STYLE_TOPLEFT
430{
431    Text [ en-US ] = "Cast Shadow to Top Left" ;
432};
433
434// ********************************************************************** EOF
435