/*
- chord-name.cc -- implement Chord_name
+ chord-name.cc -- implement Chord_label
source file of the GNU LilyPond music typesetter
- (c) 1999--2005 Jan Nieuwenhuizen <janneke@gnu.org>
+ (c) 1999--2009 Jan Nieuwenhuizen <janneke@gnu.org>
*/
#include "chord-name.hh"
#include "paper-column.hh"
#include "system.hh"
#include "staff-symbol-referencer.hh"
-#include "text-item.hh"
+#include "text-interface.hh"
MAKE_SCHEME_CALLBACK (Chord_name, after_line_breaking, 1);
SCM
SCM s = me->get_property ("begin-of-line-visible");
if (to_boolean (s))
{
- if (Paper_column::get_rank (me->get_column ())
- - me->get_system ()->spanned_rank_iv ()[LEFT] > 1)
+ if (me->get_column ()->get_rank ()
+ - me->get_system ()->spanned_rank_interval ()[LEFT] > 1)
me->suicide ();
}
return SCM_UNSPECIFIED;
}
-ADD_INTERFACE (Chord_name, "chord-name-interface",
- "A chord name.",
- "begin-of-line-visible");
+ADD_INTERFACE (Chord_name,
+ "A chord label (name or fretboard).",
+
+ /* properties */
+ "begin-of-line-visible "
+ );