]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/chord-name.cc
Add basic support for min-systems-per-page.
[lilypond.git] / lily / chord-name.cc
index 360edb564813c3aed5394165a2db6cf4cc40bf94..db784b8d2562b9cdd8b81d3b1a43dfd59320cfac 100644 (file)
@@ -1,9 +1,9 @@
 /*
-  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"
@@ -13,7 +13,7 @@
 #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
@@ -25,13 +25,16 @@ Chord_name::after_line_breaking (SCM smob)
   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 "
+              );