xref: /aoo41x/main/sc/source/ui/src/optsolver.src (revision cdf0e10c)
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
28#include "optsolver.hrc"
29
30ModelessDialog RID_SCDLG_OPTSOLVER
31{
32    OutputSize = TRUE ;
33    HelpId = CMD_SID_OPENDLG_OPTSOLVER ;
34    Hide = TRUE ;
35    SVLook = TRUE ;
36    Size = MAP_APPFONT ( 230 , 210 ) ;
37    Text [ en-US ] = "Solver" ;
38    Moveable = TRUE ;
39    Closeable = FALSE ;
40
41    FixedText FT_OBJECTIVECELL
42    {
43        Pos = MAP_APPFONT ( 6 , 8 ) ;
44        Size = MAP_APPFONT ( 59 , 8 ) ;
45        Text [ en-US ] = "Target cell" ;
46    };
47    Edit ED_OBJECTIVECELL
48    {
49        HelpID = "sc:Edit:RID_SCDLG_OPTSOLVER:ED_OBJECTIVECELL";
50        Border = TRUE ;
51        Pos = MAP_APPFONT ( 67 , 6 ) ;
52        Size = MAP_APPFONT ( 130 , 12 ) ;
53        TabStop = TRUE ;
54    };
55    ImageButton IB_OBJECTIVECELL
56    {
57        HelpID = "sc:ImageButton:RID_SCDLG_OPTSOLVER:IB_OBJECTIVECELL";
58        Pos = MAP_APPFONT ( 199 , 5 ) ;
59        Size = MAP_APPFONT ( 13 , 15 ) ;
60        TabStop = FALSE ;
61        QuickHelpText [ en-US ] = "Shrink" ;
62    };
63
64    FixedText FT_DIRECTION
65    {
66        Pos = MAP_APPFONT ( 6 , 24 ) ;
67        Size = MAP_APPFONT ( 59 , 8 ) ;
68        Text [ en-US ] = "Optimize result to" ;
69    };
70    RadioButton RB_MAX
71    {
72        HelpID = "sc:RadioButton:RID_SCDLG_OPTSOLVER:RB_MAX";
73        Pos = MAP_APPFONT ( 67 , 24 ) ;
74        Size = MAP_APPFONT ( 50 , 10 ) ;
75        Text [ en-US ] = "Maximum" ;
76        TabStop = TRUE ;
77    };
78    RadioButton RB_MIN
79    {
80        HelpID = "sc:RadioButton:RID_SCDLG_OPTSOLVER:RB_MIN";
81        Pos = MAP_APPFONT ( 67 , 38 ) ;
82        Size = MAP_APPFONT ( 50 , 10 ) ;
83        Text [ en-US ] = "Minimum" ;
84        TabStop = TRUE ;
85    };
86    RadioButton RB_VALUE
87    {
88        HelpID = "sc:RadioButton:RID_SCDLG_OPTSOLVER:RB_VALUE";
89        Pos = MAP_APPFONT ( 67 , 52 ) ;
90        Size = MAP_APPFONT ( 59 , 10 ) ;
91        Text [ en-US ] = "Value of" ;
92        TabStop = TRUE ;
93    };
94    Edit ED_TARGET
95    {
96        HelpID = "sc:Edit:RID_SCDLG_OPTSOLVER:ED_TARGET";
97        Border = TRUE ;
98        Pos = MAP_APPFONT ( 128 , 50 ) ;
99        Size = MAP_APPFONT ( 69 , 12 ) ;
100        TabStop = TRUE ;
101    };
102    ImageButton IB_TARGET
103    {
104        HelpID = "sc:ImageButton:RID_SCDLG_OPTSOLVER:IB_TARGET";
105        Pos = MAP_APPFONT ( 199 , 49 ) ;
106        Size = MAP_APPFONT ( 13 , 15 ) ;
107        TabStop = FALSE ;
108        QuickHelpText [ en-US ] = "Shrink" ;
109    };
110
111    FixedText FT_VARIABLECELLS
112    {
113        Pos = MAP_APPFONT ( 6 , 68 ) ;
114        Size = MAP_APPFONT ( 59 , 8 ) ;
115        Text [ en-US ] = "By changing cells" ;
116    };
117    Edit ED_VARIABLECELLS
118    {
119        HelpID = "sc:Edit:RID_SCDLG_OPTSOLVER:ED_VARIABLECELLS";
120        Border = TRUE ;
121        Pos = MAP_APPFONT ( 67 , 66 ) ;
122        Size = MAP_APPFONT ( 130 , 12 ) ;
123        TabStop = TRUE ;
124    };
125    ImageButton IB_VARIABLECELLS
126    {
127        HelpID = "sc:ImageButton:RID_SCDLG_OPTSOLVER:IB_VARIABLECELLS";
128        Pos = MAP_APPFONT ( 199 , 65 ) ;
129        Size = MAP_APPFONT ( 13 , 15 ) ;
130        TabStop = FALSE ;
131        QuickHelpText [ en-US ] = "Shrink" ;
132    };
133
134    FixedLine FL_CONDITIONS
135    {
136        Pos = MAP_APPFONT ( 6 , 88 ) ;
137        Size = MAP_APPFONT ( 221 , 8 ) ;
138        Text [ en-US ] = "Limiting conditions" ;
139    };
140
141    FixedText FT_CELLREF
142    {
143        Pos = MAP_APPFONT ( 12 , 102 ) ;
144        Size = MAP_APPFONT ( 70 , 8 ) ;
145        Text [ en-US ] = "Cell reference" ;
146    };
147    FixedText FT_OPERATOR
148    {
149        Pos = MAP_APPFONT ( 84 , 102 ) ;
150        Size = MAP_APPFONT ( 38 , 8 ) ;
151        Text [ en-US ] = "Operator" ;
152    };
153    FixedText FT_CONSTRAINT
154    {
155        Pos = MAP_APPFONT ( 128 , 102 ) ;
156        Size = MAP_APPFONT ( 70 , 8 ) ;
157        Text [ en-US ] = "Value" ;
158    };
159
160    Edit ED_LEFT1
161    {
162        HelpID = "sc:Edit:RID_SCDLG_OPTSOLVER:ED_LEFT1";
163        Border = TRUE ;
164        Pos = MAP_APPFONT ( 12 , 114 ) ;
165        Size = MAP_APPFONT ( 53 , 12 ) ;
166        TabStop = TRUE ;
167    };
168    ImageButton IB_LEFT1
169    {
170        HelpID = "sc:ImageButton:RID_SCDLG_OPTSOLVER:IB_LEFT1";
171        Pos = MAP_APPFONT ( 67 , 113 ) ;
172        Size = MAP_APPFONT ( 13 , 15 ) ;
173        TabStop = FALSE ;
174        QuickHelpText [ en-US ] = "Shrink" ;
175    };
176    ListBox LB_OP1
177    {
178        HelpID = "sc:ListBox:RID_SCDLG_OPTSOLVER:LB_OP1";
179        Border = TRUE ;
180        Pos = MAP_APPFONT ( 84 , 114 ) ;
181        Size = MAP_APPFONT ( 38 , 56 ) ;
182        TabStop = TRUE ;
183        DropDown = TRUE ;
184        StringList [ en-US ] =
185        {
186            < "<=" ; Default ; > ;
187            < "=" ; Default ; > ;
188            < ">=" ; Default ; > ;
189            < "Integer" ; Default ; > ;
190            < "Binary" ; Default ; > ;
191        };
192    };
193    Edit ED_RIGHT1
194    {
195        HelpID = "sc:Edit:RID_SCDLG_OPTSOLVER:ED_RIGHT1";
196        Border = TRUE ;
197        Pos = MAP_APPFONT ( 128 , 114 ) ;
198        Size = MAP_APPFONT ( 53 , 12 ) ;
199        TabStop = TRUE ;
200    };
201    ImageButton IB_RIGHT1
202    {
203        HelpID = "sc:ImageButton:RID_SCDLG_OPTSOLVER:IB_RIGHT1";
204        Pos = MAP_APPFONT ( 183 , 113 ) ;
205        Size = MAP_APPFONT ( 13 , 15 ) ;
206        TabStop = FALSE ;
207        QuickHelpText [ en-US ] = "Shrink" ;
208    };
209    ImageButton IB_DELETE1
210    {
211        HelpID = "sc:ImageButton:RID_SCDLG_OPTSOLVER:IB_DELETE1";
212        Pos = MAP_APPFONT ( 199 , 113 ) ;
213        Size = MAP_APPFONT ( 13 , 15 ) ;
214        TabStop = TRUE ;
215        QuickHelpText [ en-US ] = "Remove" ;
216        // image is set dynamically
217    };
218
219    Edit ED_LEFT2
220    {
221        HelpID = "sc:Edit:RID_SCDLG_OPTSOLVER:ED_LEFT2";
222        Border = TRUE ;
223        Pos = MAP_APPFONT ( 12 , 129 ) ;
224        Size = MAP_APPFONT ( 53 , 12 ) ;
225        TabStop = TRUE ;
226    };
227    ImageButton IB_LEFT2
228    {
229        HelpID = "sc:ImageButton:RID_SCDLG_OPTSOLVER:IB_LEFT2";
230        Pos = MAP_APPFONT ( 67 , 128 ) ;
231        Size = MAP_APPFONT ( 13 , 15 ) ;
232        TabStop = FALSE ;
233        QuickHelpText [ en-US ] = "Shrink" ;
234    };
235    ListBox LB_OP2
236    {
237        HelpID = "sc:ListBox:RID_SCDLG_OPTSOLVER:LB_OP2";
238        Border = TRUE ;
239        Pos = MAP_APPFONT ( 84 , 129 ) ;
240        Size = MAP_APPFONT ( 38 , 56 ) ;
241        TabStop = TRUE ;
242        DropDown = TRUE ;
243        StringList [ en-US ] =
244        {
245            < "<=" ; Default ; > ;
246            < "=" ; Default ; > ;
247            < ">=" ; Default ; > ;
248            < "Integer" ; Default ; > ;
249            < "Binary" ; Default ; > ;
250        };
251    };
252    Edit ED_RIGHT2
253    {
254        HelpID = "sc:Edit:RID_SCDLG_OPTSOLVER:ED_RIGHT2";
255        Border = TRUE ;
256        Pos = MAP_APPFONT ( 128 , 129 ) ;
257        Size = MAP_APPFONT ( 53 , 12 ) ;
258        TabStop = TRUE ;
259    };
260    ImageButton IB_RIGHT2
261    {
262        HelpID = "sc:ImageButton:RID_SCDLG_OPTSOLVER:IB_RIGHT2";
263        Pos = MAP_APPFONT ( 183 , 128 ) ;
264        Size = MAP_APPFONT ( 13 , 15 ) ;
265        TabStop = FALSE ;
266        QuickHelpText [ en-US ] = "Shrink" ;
267    };
268    ImageButton IB_DELETE2
269    {
270        HelpID = "sc:ImageButton:RID_SCDLG_OPTSOLVER:IB_DELETE2";
271        Pos = MAP_APPFONT ( 199 , 128 ) ;
272        Size = MAP_APPFONT ( 13 , 15 ) ;
273        TabStop = TRUE ;
274        QuickHelpText [ en-US ] = "Remove" ;
275        // image is set dynamically
276    };
277
278    Edit ED_LEFT3
279    {
280        HelpID = "sc:Edit:RID_SCDLG_OPTSOLVER:ED_LEFT3";
281        Border = TRUE ;
282        Pos = MAP_APPFONT ( 12 , 144 ) ;
283        Size = MAP_APPFONT ( 53 , 12 ) ;
284        TabStop = TRUE ;
285    };
286    ImageButton IB_LEFT3
287    {
288        HelpID = "sc:ImageButton:RID_SCDLG_OPTSOLVER:IB_LEFT3";
289        Pos = MAP_APPFONT ( 67 , 143 ) ;
290        Size = MAP_APPFONT ( 13 , 15 ) ;
291        TabStop = FALSE ;
292        QuickHelpText [ en-US ] = "Shrink" ;
293    };
294    ListBox LB_OP3
295    {
296        HelpID = "sc:ListBox:RID_SCDLG_OPTSOLVER:LB_OP3";
297        Border = TRUE ;
298        Pos = MAP_APPFONT ( 84 , 144 ) ;
299        Size = MAP_APPFONT ( 38 , 56 ) ;
300        TabStop = TRUE ;
301        DropDown = TRUE ;
302        StringList [ en-US ] =
303        {
304            < "<=" ; Default ; > ;
305            < "=" ; Default ; > ;
306            < ">=" ; Default ; > ;
307            < "Integer" ; Default ; > ;
308            < "Binary" ; Default ; > ;
309        };
310    };
311    Edit ED_RIGHT3
312    {
313        HelpID = "sc:Edit:RID_SCDLG_OPTSOLVER:ED_RIGHT3";
314        Border = TRUE ;
315        Pos = MAP_APPFONT ( 128 , 144 ) ;
316        Size = MAP_APPFONT ( 53 , 12 ) ;
317        TabStop = TRUE ;
318    };
319    ImageButton IB_RIGHT3
320    {
321        HelpID = "sc:ImageButton:RID_SCDLG_OPTSOLVER:IB_RIGHT3";
322        Pos = MAP_APPFONT ( 183 , 143 ) ;
323        Size = MAP_APPFONT ( 13 , 15 ) ;
324        TabStop = FALSE ;
325        QuickHelpText [ en-US ] = "Shrink" ;
326    };
327    ImageButton IB_DELETE3
328    {
329        HelpID = "sc:ImageButton:RID_SCDLG_OPTSOLVER:IB_DELETE3";
330        Pos = MAP_APPFONT ( 199 , 143 ) ;
331        Size = MAP_APPFONT ( 13 , 15 ) ;
332        TabStop = TRUE ;
333        QuickHelpText [ en-US ] = "Remove" ;
334        // image is set dynamically
335    };
336
337    Edit ED_LEFT4
338    {
339        HelpID = "sc:Edit:RID_SCDLG_OPTSOLVER:ED_LEFT4";
340        Border = TRUE ;
341        Pos = MAP_APPFONT ( 12 , 159 ) ;
342        Size = MAP_APPFONT ( 53 , 12 ) ;
343        TabStop = TRUE ;
344    };
345    ImageButton IB_LEFT4
346    {
347        HelpID = "sc:ImageButton:RID_SCDLG_OPTSOLVER:IB_LEFT4";
348        Pos = MAP_APPFONT ( 67 , 158 ) ;
349        Size = MAP_APPFONT ( 13 , 15 ) ;
350        TabStop = FALSE ;
351        QuickHelpText [ en-US ] = "Shrink" ;
352    };
353    ListBox LB_OP4
354    {
355        HelpID = "sc:ListBox:RID_SCDLG_OPTSOLVER:LB_OP4";
356        Border = TRUE ;
357        Pos = MAP_APPFONT ( 84 , 159 ) ;
358        Size = MAP_APPFONT ( 38 , 56 ) ;
359        TabStop = TRUE ;
360        DropDown = TRUE ;
361        StringList [ en-US ] =
362        {
363            < "<=" ; Default ; > ;
364            < "=" ; Default ; > ;
365            < ">=" ; Default ; > ;
366            < "Integer" ; Default ; > ;
367            < "Binary" ; Default ; > ;
368        };
369    };
370    Edit ED_RIGHT4
371    {
372        HelpID = "sc:Edit:RID_SCDLG_OPTSOLVER:ED_RIGHT4";
373        Border = TRUE ;
374        Pos = MAP_APPFONT ( 128 , 159 ) ;
375        Size = MAP_APPFONT ( 53 , 12 ) ;
376        TabStop = TRUE ;
377    };
378    ImageButton IB_RIGHT4
379    {
380        HelpID = "sc:ImageButton:RID_SCDLG_OPTSOLVER:IB_RIGHT4";
381        Pos = MAP_APPFONT ( 183 , 158 ) ;
382        Size = MAP_APPFONT ( 13 , 15 ) ;
383        TabStop = FALSE ;
384        QuickHelpText [ en-US ] = "Shrink" ;
385    };
386    ImageButton IB_DELETE4
387    {
388        HelpID = "sc:ImageButton:RID_SCDLG_OPTSOLVER:IB_DELETE4";
389        Pos = MAP_APPFONT ( 199 , 158 ) ;
390        Size = MAP_APPFONT ( 13 , 15 ) ;
391        TabStop = TRUE ;
392        QuickHelpText [ en-US ] = "Remove" ;
393        // image is set dynamically
394    };
395
396    ScrollBar SB_SCROLL
397    {
398        Pos = MAP_APPFONT ( 216, 113 ) ;
399        Size = MAP_APPFONT ( 8 , 59 ) ;
400        VScroll = TRUE ;
401    };
402
403    FixedLine FL_BUTTONS
404    {
405        Pos = MAP_APPFONT ( 0 , 179 ) ;
406        Size = MAP_APPFONT ( 230 , 8 ) ;
407    };
408
409    PushButton BTN_OPTIONS
410    {
411        HelpID = "sc:PushButton:RID_SCDLG_OPTSOLVER:BTN_OPTIONS";
412        Pos = MAP_APPFONT ( 6 , 190 ) ;
413        Size = MAP_APPFONT ( 50 , 14 ) ;
414        TabStop = TRUE ;
415        Text [ en-US ] = "Options..." ;
416    };
417    HelpButton BTN_HELP
418    {
419        Pos = MAP_APPFONT ( 62 , 190 ) ;
420        Size = MAP_APPFONT ( 50 , 14 ) ;
421        TabStop = TRUE ;
422    };
423    CancelButton BTN_CLOSE
424    {
425        Pos = MAP_APPFONT ( 118 , 190 ) ;
426        Size = MAP_APPFONT ( 50 , 14 ) ;
427        TabStop = TRUE ;
428        Text [ en-US ] = "Close" ;
429    };
430    PushButton BTN_SOLVE
431    {
432        HelpID = "sc:PushButton:RID_SCDLG_OPTSOLVER:BTN_SOLVE";
433        Pos = MAP_APPFONT ( 174 , 190 ) ;
434        Size = MAP_APPFONT ( 50 , 14 ) ;
435        TabStop = TRUE ;
436        Text [ en-US ] = "Solve" ;
437        DefButton = TRUE ;
438    };
439
440    // IMG_DEL_H not used - image is set dynamically
441
442    String STR_INVALIDINPUT
443    {
444        Text [ en-US ] = "Invalid input." ;
445    };
446    String STR_INVALIDCONDITION
447    {
448        Text [ en-US ] = "Invalid condition." ;
449    };
450};
451
452
453ModelessDialog RID_SCDLG_SOLVER_PROGRESS
454{
455    OutputSize = TRUE ;
456    HelpId = HID_SC_SOLVER_PROGRESS ;
457    SVLook = TRUE ;
458    Size = MAP_APPFONT ( 118 , 72 ) ;
459    Moveable = TRUE ;
460    Closeable = FALSE ;
461    FixedText FT_PROGRESS
462    {
463        Pos = MAP_APPFONT ( 6 , 11 ) ;
464        Size = MAP_APPFONT ( 106 , 8 ) ;
465        Center = TRUE ;
466        Text [ en-US ] = "Solving in progress..." ;
467    };
468    FixedText FT_TIMELIMIT
469    {
470        Pos = MAP_APPFONT ( 6 , 25 ) ;
471        Size = MAP_APPFONT ( 106 , 8 ) ;
472        Center = TRUE ;
473        Text [ en-US ] = "(time limit # seconds)" ;
474    };
475    FixedLine FL_BUTTONS
476    {
477        Pos = MAP_APPFONT ( 0 , 41 ) ;
478        Size = MAP_APPFONT ( 118 , 8 ) ;
479    };
480    OKButton BTN_OK
481    {
482        Pos = MAP_APPFONT ( 34 , 52 ) ;
483        Size = MAP_APPFONT ( 50 , 14 ) ;
484        TabStop = TRUE ;
485        DefButton = TRUE ;
486    };
487    Text [ en-US ] = "Solving..." ;
488};
489
490
491ModalDialog RID_SCDLG_SOLVER_NOSOLUTION
492{
493    OutputSize = TRUE ;
494    HelpId = HID_SC_SOLVER_NOSOLUTION ;
495    SVLook = TRUE ;
496    Size = MAP_APPFONT ( 118 , 72 ) ;
497    Moveable = TRUE ;
498    FixedText FT_NOSOLUTION
499    {
500        Pos = MAP_APPFONT ( 6 , 8 ) ;
501        Size = MAP_APPFONT ( 106 , 8 ) ;
502        Text [ en-US ] = "No solution was found." ;
503    };
504    FixedText FT_ERRORTEXT
505    {
506        Pos = MAP_APPFONT ( 6 , 22 ) ;
507        Size = MAP_APPFONT ( 106 , 16 ) ;
508        WordBreak = TRUE ;
509        // text is dynamic
510    };
511    FixedLine FL_BUTTONS
512    {
513        Pos = MAP_APPFONT ( 0 , 41 ) ;
514        Size = MAP_APPFONT ( 118 , 8 ) ;
515    };
516    OKButton BTN_OK
517    {
518        Pos = MAP_APPFONT ( 34 , 52 ) ;
519        Size = MAP_APPFONT ( 50 , 14 ) ;
520        TabStop = TRUE ;
521        DefButton = TRUE ;
522    };
523    Text [ en-US ] = "No Solution" ;
524};
525
526
527ModalDialog RID_SCDLG_SOLVER_SUCCESS
528{
529    OutputSize = TRUE ;
530    HelpId = HID_SC_SOLVER_SUCCESS ;
531    SVLook = TRUE ;
532    Size = MAP_APPFONT ( 138 , 89 ) ;
533    Moveable = TRUE ;
534    FixedText FT_SUCCESS
535    {
536        Pos = MAP_APPFONT ( 6 , 8 ) ;
537        Size = MAP_APPFONT ( 126 , 8 ) ;
538        Text [ en-US ] = "Solving successfully finished." ;
539    };
540    FixedText FT_RESULT
541    {
542        Pos = MAP_APPFONT ( 6 , 22 ) ;
543        Size = MAP_APPFONT ( 126 , 8 ) ;
544        Text [ en-US ] = "Result:" ;
545    };
546    FixedText FT_QUESTION
547    {
548        Pos = MAP_APPFONT ( 6 , 36 ) ;
549        Size = MAP_APPFONT ( 126 , 16 ) ;
550        WordBreak = TRUE ;
551        Text [ en-US ] = "Do you want to keep the result or do you want to restore previous values?" ;
552    };
553    FixedLine FL_BUTTONS
554    {
555        Pos = MAP_APPFONT ( 0 , 58 ) ;
556        Size = MAP_APPFONT ( 138 , 8 ) ;
557    };
558    OKButton BTN_OK
559    {
560        Pos = MAP_APPFONT ( 6 , 69 ) ;
561        Size = MAP_APPFONT ( 60 , 14 ) ;
562        TabStop = TRUE ;
563        DefButton = TRUE ;
564        Text [ en-US ] = "Keep Result" ;
565    };
566    CancelButton BTN_CANCEL
567    {
568        Pos = MAP_APPFONT ( 72 , 69 ) ;
569        Size = MAP_APPFONT ( 60 , 14 ) ;
570        TabStop = TRUE ;
571        Text [ en-US ] = "Restore Previous" ;
572    };
573    Text [ en-US ] = "Solving Result" ;
574};
575
576