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"
14 #include "paper-column.hh"
16 #include "staff-symbol-referencer.hh"
17 #include "text-item.hh"
19 MAKE_SCHEME_CALLBACK (Chord_name
,after_line_breaking
,1);
21 Chord_name::after_line_breaking (SCM smob
)
23 Item
* me
= unsmob_item (smob
);
26 SCM s
= me
->get_property ("begin-of-line-visible");
29 if (Paper_column::get_rank (me
->get_column ()) -
30 me
->get_system ()->spanned_rank_iv ()[LEFT
] > 1)
33 return SCM_UNSPECIFIED
;
37 ADD_INTERFACE (Chord_name
, "chord-name-interface",
39 "begin-of-line-visible");