+2002-06-20 Han-Wen <hanwen@cs.uu.nl>
+
+ * lily/system.cc (output_lines): kill grobs that are only for spacing.
+
2002-06-20 Jan Nieuwenhuizen <janneke@gnu.org>
* aclocal.m4: Regenerate.
* config.hh.in: Only set GUILE_MAJOR_VERSION if necessary.
* lily/include/lily-guile.hh: Only include config.h if necessary.
- * Changlog: cvs changes ml archive test #8.
+ * Changelog: cvs changes ml archive test #8.
* lily/slur-engraver.cc: Layout fix.
#include "paper-column.hh"
#include "spaceable-grob.hh"
#include "break-align-interface.hh"
-
-
-
+#include "spacing-interface.hh"
/*
paper-column:
",
"grace-space-factor spacing-increment base-shortest-duration shortest-duration-space");
+
+
+ADD_INTERFACE (Spacing_interface,"spacing-interface",
+ "Something to do with line breaking and spacing. Kill this one after determining line breaks.",
+ "");
+
#include "dimensions.hh"
#include "molecule.hh"
#include "all-font-metrics.hh"
+#include "spacing-interface.hh"
// todo: use map.
void
for (SCM s = get_grob_property ("all-elements");
gh_pair_p (s); s = ly_cdr (s))
{
- unsmob_grob (ly_car (s))->do_break_processing ();
+ Grob * g = unsmob_grob (ly_car (s));
+ if (Spacing_interface::has_interface (g))
+ g->suicide ();
+ else
+ g->do_break_processing ();
}
/*
(shortest-duration-space . 2.0)
(spacing-increment . 1.2)
(base-shortest-duration . ,(make-moment 1 8))
- (meta . ((interfaces . (spacing-spanner-interface))))
+ (meta . ((interfaces . (spacing-interface spacing-spanner-interface))))
))
(SpanBar
. (
(breakable . #t)
(stem-spacing-correction . 0.4)
- (meta . ((interfaces . (staff-spacing-interface))))
+ (meta . ((interfaces . (spacing-interface staff-spacing-interface))))
))
(NoteSpacing
. (
(stem-spacing-correction . 0.5)
- (meta . ((interfaces . (note-spacing-interface))))
+ (meta . ((interfaces . (spacing-interface note-spacing-interface))))
))
(StaffSymbol
(SeparationItem
. (
- (meta . ((interfaces . (separation-item-interface))))
+ (meta . ((interfaces . (spacing-interface separation-item-interface))))
))
(SeparatingGroupSpanner
. (
(spacing-procedure . ,Separating_group_spanner::set_spacing_rods)
- (meta . ((interfaces . (separation-spanner-interface))))
+ (meta . ((interfaces . (spacing-interface separation-spanner-interface))))
))
(SustainPedal