X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fottava-bracket.cc;h=cfd1d5d0363a294aa05617b71653fa6922a61efe;hb=d8c103f73dec7a61da04f3be0ffa6a790660fb52;hp=f025a6f0c7b5b54b9aa700de291a487b85a5c01f;hpb=48060abd765e6d6346e644535fff58b5479d9d0e;p=lilypond.git diff --git a/lily/ottava-bracket.cc b/lily/ottava-bracket.cc index f025a6f0c7..cfd1d5d036 100644 --- a/lily/ottava-bracket.cc +++ b/lily/ottava-bracket.cc @@ -3,11 +3,10 @@ source file of the GNU LilyPond music typesetter - (c) 2004--2005 Han-Wen Nienhuys + (c) 2004--2007 Han-Wen Nienhuys */ #include "text-interface.hh" -#include "line-spanner.hh" #include "spanner.hh" #include "font-interface.hh" #include "dimensions.hh" @@ -24,7 +23,7 @@ struct Ottava_bracket { DECLARE_SCHEME_CALLBACK (print, (SCM)); - static bool has_interface (Grob *); + DECLARE_GROB_INTERFACE (); }; /* @@ -42,7 +41,7 @@ Ottava_bracket::print (SCM smob) Interval span_points; Grob *common = me->get_bound (LEFT)->common_refpoint (me->get_bound (RIGHT), X_AXIS); - Output_def *layout = me->get_layout (); + Output_def *layout = me->layout (); Drul_array broken; Direction d = LEFT; @@ -55,7 +54,7 @@ Ottava_bracket::print (SCM smob) { extract_grob_set (b, "note-heads", heads); common = common_refpoint_of_array (heads, common, X_AXIS); - for (int i = 0; i < heads.size (); i++) + for (vsize i = 0; i < heads.size (); i++) { Grob *h = heads[i]; Grob *dots = Rhythmic_head::get_dots (h); @@ -87,7 +86,7 @@ Ottava_bracket::print (SCM smob) if (Note_column::has_interface (b)) { extract_grob_set (b, "note-heads", heads); - for (int i = 0; i < heads.size (); i++) + for (vsize i = 0; i < heads.size (); i++) { Grob *h = heads[i]; ext.unite (h->extent (common, X_AXIS)); @@ -176,8 +175,6 @@ Ottava_bracket::print (SCM smob) } ADD_INTERFACE (Ottava_bracket, - "ottava-bracket-interface", - "An ottava bracket", /*