2 This file is part of LilyPond, the GNU music typesetter.
4 Copyright (C) 1997--2015 Han-Wen Nienhuys <hanwen@xs4all.nl>
6 LilyPond is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
11 LilyPond is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with LilyPond. If not, see <http://www.gnu.org/licenses/>.
20 #ifndef PAPER_COLUMN_HH
21 #define PAPER_COLUMN_HH
26 class Paper_column : public Item
29 /// if lines are broken then this column is in #line#
34 Paper_column (Paper_column const &);
36 virtual Grob *clone () const;
37 virtual void do_break_processing ();
38 virtual Paper_column *get_column () const;
39 virtual System *get_system () const;
40 void set_system (System *);
42 static int compare (Grob *const &a,
44 static bool less_than (Grob *const &a,
47 int get_rank () const { return rank_; }
50 DECLARE_SCHEME_CALLBACK (print, (SCM));
51 DECLARE_SCHEME_CALLBACK (before_line_breaking, (SCM));
53 static int get_rank (Grob const *);
54 static bool is_musical (Grob *);
55 static Moment when_mom (Grob *);
56 static bool is_used (Grob *);
57 static bool is_breakable (Grob *);
58 static bool is_extraneous_column_from_ligature (Grob *);
59 static Real minimum_distance (Grob *l, Grob *r);
60 static Interval break_align_width (Grob *me, SCM align_sym);
61 static Interval get_interface_extent (Grob *column, SCM iface, Axis a);
64 #endif // PAPER_COLUMN_HH