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