2 chord-name.cc -- implement Chord_name
4 source file of the GNU LilyPond music typesetter
6 (c) 1999--2004 Jan Nieuwenhuizen <janneke@gnu.org>
9 #include "chord-name.hh"
11 #include "output-def.hh"
12 #include "font-interface.hh"
13 #include "paper-column.hh"
15 #include "staff-symbol-referencer.hh"
16 #include "text-item.hh"
18 MAKE_SCHEME_CALLBACK (Chord_name, after_line_breaking, 1);
20 Chord_name::after_line_breaking (SCM smob)
22 Item* me = unsmob_item (smob);
25 SCM s = me->get_property ("begin-of-line-visible");
28 if (Paper_column::get_rank (me->get_column ()) -
29 me->get_system ()->spanned_rank_iv ()[LEFT] > 1)
32 return SCM_UNSPECIFIED;
35 ADD_INTERFACE (Chord_name, "chord-name-interface",
37 "begin-of-line-visible");