X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fpaper-column.cc;h=2636b20fe4bccee354e4b9b915f060f8e6f082af;hb=9e69cb84d6ee5b0a861cd97869b10e3bdf0c833c;hp=fccdba6e7f694d4549f0008438126e17fbc6ba0f;hpb=d755c3361f6a53ee9b40013e0ee7df69aab56f3d;p=lilypond.git diff --git a/lily/paper-column.cc b/lily/paper-column.cc index fccdba6e7f..2636b20fe4 100644 --- a/lily/paper-column.cc +++ b/lily/paper-column.cc @@ -34,9 +34,9 @@ Paper_column::do_break_processing () } int -Paper_column::get_rank (Grob *me) +Paper_column::get_rank (Grob const *me) { - return dynamic_cast (me)->rank_; + return dynamic_cast (me)->rank_; } System * @@ -45,6 +45,12 @@ Paper_column::get_system () const return system_; } +void +Paper_column::set_system (System *s) +{ + system_ = s; +} + Paper_column * Paper_column::get_column () const { @@ -73,6 +79,16 @@ Paper_column::compare (Grob * const &a, - dynamic_cast (b)->rank_); } +bool +Paper_column::less_than (Grob *const &a, + Grob *const &b) +{ + Paper_column *pa = dynamic_cast (a); + Paper_column *pb = dynamic_cast (b); + + return pa->rank_ < pb->rank_; +} + Moment Paper_column::when_mom (Grob *me) { @@ -187,8 +203,6 @@ Paper_column::before_line_breaking (SCM grob) ADD_INTERFACE (Paper_column, - - "paper-column-interface", "@code{Paper_column} objects form the top-most X-parents for items." " The are two types of columns: musical columns, where are attached to, and " " non-musical columns, where bar-lines, clefs etc. are attached to. " @@ -206,6 +220,7 @@ ADD_INTERFACE (Paper_column, /* properties */ "between-cols " "bounded-by-me " + "grace-spacing " "line-break-system-details " "line-break-penalty " "line-break-permission " @@ -213,8 +228,10 @@ ADD_INTERFACE (Paper_column, "page-break-permission " "page-turn-penalty " "page-turn-permission " + "rhythmic-location " "shortest-playing-duration " "shortest-starter-duration " + "spacing " "used " "when ");