]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/page-layout-problem.hh
Merge branch 'lilypond/translation' into staging
[lilypond.git] / lily / include / page-layout-problem.hh
index 6c952e3eedc0526847673566afce7959345d0fcf..12455c6fe76d494352372a0b41c30e655e5f24e5 100644 (file)
@@ -1,7 +1,7 @@
 /*
   This file is part of LilyPond, the GNU music typesetter.
 
-  Copyright (C) 2009--2011 Joe Neeman <joeneeman@gmail.com>
+  Copyright (C) 2009--2012 Joe Neeman <joeneeman@gmail.com>
 
   LilyPond is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
 class Page_layout_problem
 {
 public:
-  Page_layout_problem (Paper_book *, SCM page, SCM systems, int footnote_count);
+  Page_layout_problem (Paper_book *, SCM page, SCM systems);
 
   SCM solution (bool ragged);
+  SCM fixed_force_solution (Real force);
   void set_header_height (Real);
   void set_footer_height (Real);
+  Real force () const;
   static bool read_spacing_spec (SCM spec, Real *dest, SCM sym);
   static bool is_spaceable (Grob *g);
   static SCM get_details (Grob *g);
+  static vector<Grob *> get_footnote_grobs (SCM lines);
   static vsize get_footnote_count (SCM lines);
-  static SCM get_footnotes_from_lines (SCM lines, int counter, Paper_book *pb);
+  static SCM get_footnotes_from_lines (SCM lines);
+  static void add_footnotes_to_lines (SCM lines, int counter, Paper_book *pb);
   static Stencil *get_footnote_separator_stencil (Output_def *paper);
   static SCM get_spacing_spec (Grob *before, Grob *after, bool pure, int start, int end);
   static Real get_fixed_spacing (Grob *before, Grob *after, int spaceable_index, bool pure, int start, int end);
@@ -45,7 +49,7 @@ protected:
   void append_system (System *, Spring const &, Real indent, Real padding);
   void append_prob (Prob *, Spring const &, Real padding);
 
-  void solve_rod_spring_problem (bool ragged);
+  void solve_rod_spring_problem (bool ragged, Real fixed_force);
   SCM find_system_offsets ();
   void distribute_loose_lines (vector<Grob *> const &, vector<Real> const &, Real, Real);
 
@@ -89,12 +93,16 @@ protected:
   vector<Spring> springs_;
   vector<Element> elements_;
   vector<Real> solution_;
+  Real force_;
   Skyline bottom_skyline_;
+  Real bottom_loose_baseline_;
   Real page_height_;
   Real header_height_;
   Real footer_height_;
   Real header_padding_;
   Real footer_padding_;
+  Real in_note_padding_;
+  Direction in_note_direction_;
 };
 
 #endif /* PAGE_LAYOUT_HH */