1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: optsolver.src,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #include "optsolver.hrc"
33 ModelessDialog RID_SCDLG_OPTSOLVER
36 HelpId = SID_OPENDLG_OPTSOLVER ;
39 Size = MAP_APPFONT ( 230 , 210 ) ;
40 Text [ en-US ] = "Solver" ;
44 FixedText FT_OBJECTIVECELL
46 Pos = MAP_APPFONT ( 6 , 8 ) ;
47 Size = MAP_APPFONT ( 59 , 8 ) ;
48 Text [ en-US ] = "Target cell" ;
53 Pos = MAP_APPFONT ( 67 , 6 ) ;
54 Size = MAP_APPFONT ( 130 , 12 ) ;
57 ImageButton IB_OBJECTIVECELL
59 Pos = MAP_APPFONT ( 199 , 5 ) ;
60 Size = MAP_APPFONT ( 13 , 15 ) ;
62 QuickHelpText [ en-US ] = "Shrink" ;
65 FixedText FT_DIRECTION
67 Pos = MAP_APPFONT ( 6 , 24 ) ;
68 Size = MAP_APPFONT ( 59 , 8 ) ;
69 Text [ en-US ] = "Optimize result to" ;
73 Pos = MAP_APPFONT ( 67 , 24 ) ;
74 Size = MAP_APPFONT ( 50 , 10 ) ;
75 Text [ en-US ] = "Maximum" ;
80 Pos = MAP_APPFONT ( 67 , 38 ) ;
81 Size = MAP_APPFONT ( 50 , 10 ) ;
82 Text [ en-US ] = "Minimum" ;
87 Pos = MAP_APPFONT ( 67 , 52 ) ;
88 Size = MAP_APPFONT ( 59 , 10 ) ;
89 Text [ en-US ] = "Value of" ;
95 Pos = MAP_APPFONT ( 128 , 50 ) ;
96 Size = MAP_APPFONT ( 69 , 12 ) ;
101 Pos = MAP_APPFONT ( 199 , 49 ) ;
102 Size = MAP_APPFONT ( 13 , 15 ) ;
104 QuickHelpText [ en-US ] = "Shrink" ;
107 FixedText FT_VARIABLECELLS
109 Pos = MAP_APPFONT ( 6 , 68 ) ;
110 Size = MAP_APPFONT ( 59 , 8 ) ;
111 Text [ en-US ] = "By changing cells" ;
113 Edit ED_VARIABLECELLS
116 Pos = MAP_APPFONT ( 67 , 66 ) ;
117 Size = MAP_APPFONT ( 130 , 12 ) ;
120 ImageButton IB_VARIABLECELLS
122 Pos = MAP_APPFONT ( 199 , 65 ) ;
123 Size = MAP_APPFONT ( 13 , 15 ) ;
125 QuickHelpText [ en-US ] = "Shrink" ;
128 FixedLine FL_CONDITIONS
130 Pos = MAP_APPFONT ( 6 , 88 ) ;
131 Size = MAP_APPFONT ( 221 , 8 ) ;
132 Text [ en-US ] = "Limiting conditions" ;
137 Pos = MAP_APPFONT ( 12 , 102 ) ;
138 Size = MAP_APPFONT ( 70 , 8 ) ;
139 Text [ en-US ] = "Cell reference" ;
141 FixedText FT_OPERATOR
143 Pos = MAP_APPFONT ( 84 , 102 ) ;
144 Size = MAP_APPFONT ( 38 , 8 ) ;
145 Text [ en-US ] = "Operator" ;
147 FixedText FT_CONSTRAINT
149 Pos = MAP_APPFONT ( 128 , 102 ) ;
150 Size = MAP_APPFONT ( 70 , 8 ) ;
151 Text [ en-US ] = "Value" ;
157 Pos = MAP_APPFONT ( 12 , 114 ) ;
158 Size = MAP_APPFONT ( 53 , 12 ) ;
163 Pos = MAP_APPFONT ( 67 , 113 ) ;
164 Size = MAP_APPFONT ( 13 , 15 ) ;
166 QuickHelpText [ en-US ] = "Shrink" ;
171 Pos = MAP_APPFONT ( 84 , 114 ) ;
172 Size = MAP_APPFONT ( 38 , 56 ) ;
175 StringList [ en-US ] =
177 < "<=" ; Default ; > ;
178 < "=" ; Default ; > ;
179 < ">=" ; Default ; > ;
180 < "Integer" ; Default ; > ;
181 < "Binary" ; Default ; > ;
187 Pos = MAP_APPFONT ( 128 , 114 ) ;
188 Size = MAP_APPFONT ( 53 , 12 ) ;
191 ImageButton IB_RIGHT1
193 Pos = MAP_APPFONT ( 183 , 113 ) ;
194 Size = MAP_APPFONT ( 13 , 15 ) ;
196 QuickHelpText [ en-US ] = "Shrink" ;
198 ImageButton IB_DELETE1
200 Pos = MAP_APPFONT ( 199 , 113 ) ;
201 Size = MAP_APPFONT ( 13 , 15 ) ;
203 QuickHelpText [ en-US ] = "Remove" ;
204 // image is set dynamically
210 Pos = MAP_APPFONT ( 12 , 129 ) ;
211 Size = MAP_APPFONT ( 53 , 12 ) ;
216 Pos = MAP_APPFONT ( 67 , 128 ) ;
217 Size = MAP_APPFONT ( 13 , 15 ) ;
219 QuickHelpText [ en-US ] = "Shrink" ;
224 Pos = MAP_APPFONT ( 84 , 129 ) ;
225 Size = MAP_APPFONT ( 38 , 56 ) ;
228 StringList [ en-US ] =
230 < "<=" ; Default ; > ;
231 < "=" ; Default ; > ;
232 < ">=" ; Default ; > ;
233 < "Integer" ; Default ; > ;
234 < "Binary" ; Default ; > ;
240 Pos = MAP_APPFONT ( 128 , 129 ) ;
241 Size = MAP_APPFONT ( 53 , 12 ) ;
244 ImageButton IB_RIGHT2
246 Pos = MAP_APPFONT ( 183 , 128 ) ;
247 Size = MAP_APPFONT ( 13 , 15 ) ;
249 QuickHelpText [ en-US ] = "Shrink" ;
251 ImageButton IB_DELETE2
253 Pos = MAP_APPFONT ( 199 , 128 ) ;
254 Size = MAP_APPFONT ( 13 , 15 ) ;
256 QuickHelpText [ en-US ] = "Remove" ;
257 // image is set dynamically
263 Pos = MAP_APPFONT ( 12 , 144 ) ;
264 Size = MAP_APPFONT ( 53 , 12 ) ;
269 Pos = MAP_APPFONT ( 67 , 143 ) ;
270 Size = MAP_APPFONT ( 13 , 15 ) ;
272 QuickHelpText [ en-US ] = "Shrink" ;
277 Pos = MAP_APPFONT ( 84 , 144 ) ;
278 Size = MAP_APPFONT ( 38 , 56 ) ;
281 StringList [ en-US ] =
283 < "<=" ; Default ; > ;
284 < "=" ; Default ; > ;
285 < ">=" ; Default ; > ;
286 < "Integer" ; Default ; > ;
287 < "Binary" ; Default ; > ;
293 Pos = MAP_APPFONT ( 128 , 144 ) ;
294 Size = MAP_APPFONT ( 53 , 12 ) ;
297 ImageButton IB_RIGHT3
299 Pos = MAP_APPFONT ( 183 , 143 ) ;
300 Size = MAP_APPFONT ( 13 , 15 ) ;
302 QuickHelpText [ en-US ] = "Shrink" ;
304 ImageButton IB_DELETE3
306 Pos = MAP_APPFONT ( 199 , 143 ) ;
307 Size = MAP_APPFONT ( 13 , 15 ) ;
309 QuickHelpText [ en-US ] = "Remove" ;
310 // image is set dynamically
316 Pos = MAP_APPFONT ( 12 , 159 ) ;
317 Size = MAP_APPFONT ( 53 , 12 ) ;
322 Pos = MAP_APPFONT ( 67 , 158 ) ;
323 Size = MAP_APPFONT ( 13 , 15 ) ;
325 QuickHelpText [ en-US ] = "Shrink" ;
330 Pos = MAP_APPFONT ( 84 , 159 ) ;
331 Size = MAP_APPFONT ( 38 , 56 ) ;
334 StringList [ en-US ] =
336 < "<=" ; Default ; > ;
337 < "=" ; Default ; > ;
338 < ">=" ; Default ; > ;
339 < "Integer" ; Default ; > ;
340 < "Binary" ; Default ; > ;
346 Pos = MAP_APPFONT ( 128 , 159 ) ;
347 Size = MAP_APPFONT ( 53 , 12 ) ;
350 ImageButton IB_RIGHT4
352 Pos = MAP_APPFONT ( 183 , 158 ) ;
353 Size = MAP_APPFONT ( 13 , 15 ) ;
355 QuickHelpText [ en-US ] = "Shrink" ;
357 ImageButton IB_DELETE4
359 Pos = MAP_APPFONT ( 199 , 158 ) ;
360 Size = MAP_APPFONT ( 13 , 15 ) ;
362 QuickHelpText [ en-US ] = "Remove" ;
363 // image is set dynamically
368 Pos = MAP_APPFONT ( 216, 113 ) ;
369 Size = MAP_APPFONT ( 8 , 59 ) ;
375 Pos = MAP_APPFONT ( 0 , 179 ) ;
376 Size = MAP_APPFONT ( 230 , 8 ) ;
379 PushButton BTN_OPTIONS
381 Pos = MAP_APPFONT ( 6 , 190 ) ;
382 Size = MAP_APPFONT ( 50 , 14 ) ;
384 Text [ en-US ] = "Options..." ;
388 Pos = MAP_APPFONT ( 62 , 190 ) ;
389 Size = MAP_APPFONT ( 50 , 14 ) ;
392 CancelButton BTN_CLOSE
394 Pos = MAP_APPFONT ( 118 , 190 ) ;
395 Size = MAP_APPFONT ( 50 , 14 ) ;
397 Text [ en-US ] = "Close" ;
401 Pos = MAP_APPFONT ( 174 , 190 ) ;
402 Size = MAP_APPFONT ( 50 , 14 ) ;
404 Text [ en-US ] = "Solve" ;
408 // IMG_DEL_H not used - image is set dynamically
410 String STR_INVALIDINPUT
412 Text [ en-US ] = "Invalid input." ;
414 String STR_INVALIDCONDITION
416 Text [ en-US ] = "Invalid condition." ;
421 ModelessDialog RID_SCDLG_SOLVER_PROGRESS
424 HelpId = HID_SC_SOLVER_PROGRESS ;
426 Size = MAP_APPFONT ( 118 , 72 ) ;
429 FixedText FT_PROGRESS
431 Pos = MAP_APPFONT ( 6 , 11 ) ;
432 Size = MAP_APPFONT ( 106 , 8 ) ;
434 Text [ en-US ] = "Solving in progress..." ;
436 FixedText FT_TIMELIMIT
438 Pos = MAP_APPFONT ( 6 , 25 ) ;
439 Size = MAP_APPFONT ( 106 , 8 ) ;
441 Text [ en-US ] = "(time limit # seconds)" ;
445 Pos = MAP_APPFONT ( 0 , 41 ) ;
446 Size = MAP_APPFONT ( 118 , 8 ) ;
450 Pos = MAP_APPFONT ( 34 , 52 ) ;
451 Size = MAP_APPFONT ( 50 , 14 ) ;
455 Text [ en-US ] = "Solving..." ;
459 ModalDialog RID_SCDLG_SOLVER_NOSOLUTION
462 HelpId = HID_SC_SOLVER_NOSOLUTION ;
464 Size = MAP_APPFONT ( 118 , 72 ) ;
466 FixedText FT_NOSOLUTION
468 Pos = MAP_APPFONT ( 6 , 8 ) ;
469 Size = MAP_APPFONT ( 106 , 8 ) ;
470 Text [ en-US ] = "No solution was found." ;
472 FixedText FT_ERRORTEXT
474 Pos = MAP_APPFONT ( 6 , 22 ) ;
475 Size = MAP_APPFONT ( 106 , 16 ) ;
481 Pos = MAP_APPFONT ( 0 , 41 ) ;
482 Size = MAP_APPFONT ( 118 , 8 ) ;
486 Pos = MAP_APPFONT ( 34 , 52 ) ;
487 Size = MAP_APPFONT ( 50 , 14 ) ;
491 Text [ en-US ] = "No Solution" ;
495 ModalDialog RID_SCDLG_SOLVER_SUCCESS
498 HelpId = HID_SC_SOLVER_SUCCESS ;
500 Size = MAP_APPFONT ( 138 , 89 ) ;
504 Pos = MAP_APPFONT ( 6 , 8 ) ;
505 Size = MAP_APPFONT ( 126 , 8 ) ;
506 Text [ en-US ] = "Solving successfully finished." ;
510 Pos = MAP_APPFONT ( 6 , 22 ) ;
511 Size = MAP_APPFONT ( 126 , 8 ) ;
512 Text [ en-US ] = "Result:" ;
514 FixedText FT_QUESTION
516 Pos = MAP_APPFONT ( 6 , 36 ) ;
517 Size = MAP_APPFONT ( 126 , 16 ) ;
519 Text [ en-US ] = "Do you want to keep the result or do you want to restore previous values?" ;
523 Pos = MAP_APPFONT ( 0 , 58 ) ;
524 Size = MAP_APPFONT ( 138 , 8 ) ;
528 Pos = MAP_APPFONT ( 6 , 69 ) ;
529 Size = MAP_APPFONT ( 60 , 14 ) ;
532 Text [ en-US ] = "Keep Result" ;
534 CancelButton BTN_CANCEL
536 Pos = MAP_APPFONT ( 72 , 69 ) ;
537 Size = MAP_APPFONT ( 60 , 14 ) ;
539 Text [ en-US ] = "Restore Previous" ;
541 Text [ en-US ] = "Solving Result" ;