xref: /aoo42x/main/sw/source/ui/misc/pggrid.src (revision 8660f102)
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 "globals.hrc"
24#include "pggrid.hrc"
25#include "helpid.h"
26TabPage TP_TEXTGRID_PAGE
27{
28    HelpID = HID_TEXTGRID_PAGE;
29	Pos = MAP_APPFONT ( 0 , 0 ) ;
30	Size = MAP_APPFONT ( 260 , 185 ) ;
31	Hide = TRUE;
32    FixedLine       FL_GRID_TYPE
33    {
34        Pos = MAP_APPFONT ( 6 , 3 ) ;
35        Size = MAP_APPFONT ( 164 , 8 ) ;
36        Text [ en-US ] = "Grid" ;
37	};
38    RadioButton     RB_NOGRID
39    {
40        HelpID = "sw:RadioButton:TP_TEXTGRID_PAGE:RB_NOGRID";
41        Pos = MAP_APPFONT ( 12 , 14 ) ;
42        Size = MAP_APPFONT ( 158 , 10 ) ;
43        Text [ en-US ] = "No grid" ;
44	};
45    RadioButton     RB_LINESGRID
46    {
47        HelpID = "sw:RadioButton:TP_TEXTGRID_PAGE:RB_LINESGRID";
48        Pos = MAP_APPFONT ( 12 , 27 ) ;
49        Size = MAP_APPFONT ( 158 , 10 ) ;
50        Text [ en-US ] = "Grid (lines only)" ;
51	};
52    RadioButton     RB_CHARSGRID
53    {
54        HelpID = "sw:RadioButton:TP_TEXTGRID_PAGE:RB_CHARSGRID";
55        Pos = MAP_APPFONT ( 12 , 40 ) ;
56        Size = MAP_APPFONT ( 158 , 10 ) ;
57        Text [ en-US ] = "Grid (lines and characters)" ;
58	};
59    CheckBox        CB_SNAPTOCHARS
60    {
61        HelpID = "sw:CheckBox:TP_TEXTGRID_PAGE:CB_SNAPTOCHARS";
62        Pos = MAP_APPFONT ( 14 , 53 ) ;
63        Size = MAP_APPFONT ( 158 , 10 ) ;
64        Text [ en-US ] = "~Snap to characters" ;
65        Text [ zh-CN ] = "文字对齐字符网格" ;
66    };
67    Window          WN_EXAMPLE
68    {
69        Pos = MAP_APPFONT ( 176 , 6 ) ;
70        Size = MAP_APPFONT ( 75 , 46 ) ;
71    };
72    FixedLine       FL_LAYOUT
73    {
74        Pos = MAP_APPFONT ( 6 , 69 ) ;
75        Size = MAP_APPFONT ( 248 , 8 ) ;
76        Text [ en-US ] = "Grid layout" ;
77	};
78    FixedText       FT_LINESPERPAGE
79    {
80        Pos = MAP_APPFONT ( 12 , 82 ) ;
81        Size = MAP_APPFONT ( 59 , 8 ) ;
82        Text [ en-US ] = "Lines per page" ;
83	};
84    NumericField    NF_LINESPERPAGE
85    {
86        HelpID = "sw:NumericField:TP_TEXTGRID_PAGE:NF_LINESPERPAGE";
87        Pos = MAP_APPFONT ( 74 , 80 ) ;
88        Size = MAP_APPFONT ( 25 , 12 ) ;
89        Border = TRUE ;
90        TabStop = TRUE ;
91		Left = TRUE ;
92		Repeat = TRUE ;
93		Spin = TRUE ;
94		Minimum = 1 ;
95        Maximum = 154 ;
96		Value = 1 ;
97		First = 1 ;
98        Last = 154 ;
99		SpinSize = 1 ;
100    };
101    FixedText       FT_TEXTSIZE
102    {
103        Pos = MAP_APPFONT ( 133 , 82 ) ;
104        Size = MAP_APPFONT ( 80 , 8 ) ;
105        Text [ en-US ] = "Max. base text size" ;
106	};
107    MetricField     MF_TEXTSIZE
108    {
109        HelpID = "sw:MetricField:TP_TEXTGRID_PAGE:MF_TEXTSIZE";
110        Pos = MAP_APPFONT ( 216 , 80 ) ;
111        Size = MAP_APPFONT ( 35 , 12 ) ;
112        Border = TRUE ;
113        TabStop = TRUE ;
114		Left = TRUE ;
115		Repeat = TRUE ;
116		Spin = TRUE ;
117        Minimum = 100 ;
118		Maximum = 5600 ;
119        DecimalDigits = 2 ;
120        Unit = FUNIT_POINT ;
121		First = 10 ;
122		Last = 5600 ;
123        SpinSize = 5 ;
124    };
125    FixedText       FT_CHARSPERLINE
126    {
127        Pos = MAP_APPFONT ( 12 , 98 ) ;
128        Size = MAP_APPFONT ( 59 , 8 ) ;
129        Text [ en-US ] = "Characters per line" ;
130	};
131    NumericField    NF_CHARSPERLINE
132    {
133        HelpID = "sw:NumericField:TP_TEXTGRID_PAGE:NF_CHARSPERLINE";
134        Pos = MAP_APPFONT ( 74 , 96 ) ;
135        Size = MAP_APPFONT ( 25 , 12 ) ;
136        Border = TRUE ;
137        TabStop = TRUE ;
138		Left = TRUE ;
139		Repeat = TRUE ;
140		Spin = TRUE ;
141		Minimum = 1 ;
142        Maximum = 233 ;
143		Value = 1 ;
144		First = 1 ;
145        Last = 233 ;
146		SpinSize = 1 ;
147    };
148    FixedText       FT_CHARWIDTH
149    {
150        Pos = MAP_APPFONT ( 133 , 98 ) ;
151        Size = MAP_APPFONT ( 80 , 8 ) ;
152        Text [ en-US ] = "Character ~width" ;
153        Text [ zh-CN ] = "字符跨度" ;
154	};
155    MetricField     MF_CHARWIDTH
156    {
157        HelpID = "sw:MetricField:TP_TEXTGRID_PAGE:MF_CHARWIDTH";
158        Pos = MAP_APPFONT ( 216 , 96 ) ;
159        Size = MAP_APPFONT ( 35 , 12 ) ;
160        Border = TRUE ;
161        TabStop = TRUE ;
162		Left = TRUE ;
163		Repeat = TRUE ;
164		Spin = TRUE ;
165        Minimum = 100 ;
166		Maximum = 5600 ;
167        DecimalDigits = 2 ;
168        Unit = FUNIT_POINT;
169		First = 0 ;
170		Last = 5600 ;
171        SpinSize = 5 ;
172    };
173    FixedText       FT_RUBYSIZE
174    {
175        Pos = MAP_APPFONT ( 133 , 98 ) ;
176        Size = MAP_APPFONT ( 80 , 8 ) ;
177        Text [ en-US ] = "Max. Ruby text size" ;
178	};
179    MetricField     MF_RUBYSIZE
180    {
181        HelpID = "sw:MetricField:TP_TEXTGRID_PAGE:MF_RUBYSIZE";
182        Pos = MAP_APPFONT ( 216 , 96 ) ;
183        Size = MAP_APPFONT ( 35 , 12 ) ;
184        Border = TRUE ;
185        TabStop = TRUE ;
186        Left = TRUE ;
187        Repeat = TRUE ;
188        Spin = TRUE ;
189        Minimum = 100 ;
190        Maximum = 5600 ;
191        DecimalDigits = 2 ;
192        Unit = FUNIT_POINT;
193        First = 0 ;
194        Last = 5600 ;
195        SpinSize = 5 ;
196    };
197    CheckBox        CB_RUBYBELOW
198    {
199        HelpID = "sw:CheckBox:TP_TEXTGRID_PAGE:CB_RUBYBELOW";
200        Pos = MAP_APPFONT ( 14 , 112 ) ;
201        Size = MAP_APPFONT ( 237 , 10 ) ;
202        Text [ en-US ] = "Ruby text below/left from base text" ;
203	};
204    FixedLine       FL_DISPLAY
205    {
206        Pos = MAP_APPFONT ( 6 , 128 ) ;
207        Size = MAP_APPFONT ( 248 , 8 ) ;
208        Text [ en-US ] = "Grid display" ;
209	};
210    CheckBox        CB_DISPLAY
211    {
212        HelpID = "sw:CheckBox:TP_TEXTGRID_PAGE:CB_DISPLAY";
213        Pos = MAP_APPFONT ( 12 , 139 ) ;
214        Size = MAP_APPFONT ( 118 , 10 ) ;
215        Text [ en-US ] = "Display grid" ;
216	};
217    CheckBox        CB_PRINT
218    {
219        HelpID = "sw:CheckBox:TP_TEXTGRID_PAGE:CB_PRINT";
220        Pos = MAP_APPFONT ( 18 , 154 ) ;
221        Size = MAP_APPFONT ( 112 , 10 ) ;
222        Text [ en-US ] = "Print grid" ;
223	};
224    FixedText       FT_COLOR
225    {
226        Pos = MAP_APPFONT ( 133 , 139 ) ;
227        Size = MAP_APPFONT ( 55 , 8 ) ;
228        Text [ en-US ] = "Grid color" ;
229	};
230    ListBox         LB_COLOR
231    {
232        HelpID = "sw:ListBox:TP_TEXTGRID_PAGE:LB_COLOR";
233        Pos = MAP_APPFONT ( 191 , 137 ) ;
234        Size = MAP_APPFONT ( 60 , 50 ) ;
235        TabStop = TRUE;
236        Border = TRUE;
237        DropDown = TRUE;
238    };
239};
240
241