~ubuntu-branches/ubuntu/quantal/texmacs/quantal

« back to all changes in this revision

Viewing changes to src/Typeset/Boxes/Basic/basic_boxes.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Atsuhito KOHDA, Kamaraju Kusumanchi, kohda
  • Date: 2009-04-26 19:35:14 UTC
  • mfrom: (1.1.10 upstream) (4.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090426193514-9yo3oggdslgdls4b
Tags: 1:1.0.7.2-1
[Kamaraju Kusumanchi <kamaraju@gmail.com>]
* New upstream release
* texmacs crashes if /usr/share/texmacs/TeXmacs/misc/pixmaps/unknown.ps
  is not present. Do not remove it. (Closes: #484073, #497021)
* update patches 03_mupad.dpatch, 04_axiom.dpatch, 11-desktop-file.dpatch
* fix the mime problem in gnome. Thanks to Andrea Gamba for the fix.
[kohda]
* Refined a fix for the mime problem in gnome a bit.
* Try to fix /bin/sh problem (debian/fixsh) but it is not complete fix yet.
* Try to fix hard coded settings for ipa fonts(patches/09_ipa.dpatch), 
  especially for Debian where no ipa fonts exist yet.
* Fixed obsolete Build-Depends: changed libltdl3-dev to 
  libltdl-dev | libltdl7-dev (the latter for Ubuntu?)

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
*                - line boxes
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
******************************************************************************/
15
14
 
16
15
#include "boxes.hpp"
234
233
 
235
234
box
236
235
test_box (path ip) {
237
 
  return new test_box_rep (ip);
 
236
  return tm_new<test_box_rep> (ip);
238
237
}
239
238
 
240
239
box
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);
243
242
}
244
243
 
245
244
box
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);
248
247
}
249
248
 
250
249
box
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);
253
252
}
254
253
 
255
254
box
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);
258
257
}
259
258
 
260
259
box
261
260
image_box (path ip, url u, SI w, SI h,
262
261
           double cx1, double cy1, double cx2, double cy2)
263
262
{
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);
265
264
}
266
265
 
267
266
box
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);
270
269
}
271
270
 
272
271
box
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);
275
274
}