8
8
* COPYRIGHT : (C) 1999 Joris van der Hoeven
9
9
*******************************************************************************
10
* This software falls under the GNU general public license and comes WITHOUT
11
* ANY WARRANTY WHATSOEVER. See the file $TEXMACS_PATH/LICENSE for more details.
12
* If you don't have this file, write to the Free Software Foundation, Inc.,
13
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
10
* This software falls under the GNU general public license version 3 or later.
11
* It comes WITHOUT ANY WARRANTY WHATSOEVER. For details, see the file LICENSE
12
* in the root directory or <http://www.gnu.org/licenses/gpl-3.0.html>.
14
13
******************************************************************************/
16
15
#include "boxes.hpp"
236
235
test_box (path ip) {
237
return new test_box_rep (ip);
236
return tm_new<test_box_rep> (ip);
241
240
line_box (path ip, SI x1, SI y1, SI x2, SI y2, SI w, SI c) {
242
return new line_box_rep (ip, x1, y1, x2, y2, w, c);
241
return tm_new<line_box_rep> (ip, x1, y1, x2, y2, w, c);
246
245
arc_box (path ip, SI x1, SI y1, SI x2, SI y2, int a1, int a2, SI w, SI c) {
247
return new arc_box_rep (ip, x1, y1, x2, y2, a1, a2, w, c);
246
return tm_new<arc_box_rep> (ip, x1, y1, x2, y2, a1, a2, w, c);
251
250
polygon_box (path ip, array<SI> x, array<SI> y, SI w, color cf, color cl) {
252
return new polygon_box_rep (ip, x, y, w, cf, cl);
251
return tm_new<polygon_box_rep> (ip, x, y, w, cf, cl);
256
255
polygon_box (path ip, array<SI> x, array<SI> y, color c) {
257
return new polygon_box_rep (ip, x, y, 0, c, c);
256
return tm_new<polygon_box_rep> (ip, x, y, 0, c, c);
261
260
image_box (path ip, url u, SI w, SI h,
262
261
double cx1, double cy1, double cx2, double cy2)
264
return new image_box_rep (ip, u, w, h, cx1, cy1, cx2, cy2);
263
return tm_new<image_box_rep> (ip, u, w, h, cx1, cy1, cx2, cy2);
268
267
control_box (path ip, tree t, font fn) {
269
return new control_tree_box_rep (ip, t, fn);
268
return tm_new<control_tree_box_rep> (ip, t, fn);
273
272
control_box (path ip, lazy lz, font fn) {
274
return new control_lazy_box_rep (ip, lz, fn);
273
return tm_new<control_lazy_box_rep> (ip, lz, fn);