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