]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/page-turn-page-breaking.hh
(Two-pass vertical spacing): add documentation for two-pass spacing
[lilypond.git] / lily / include / page-turn-page-breaking.hh
index e386cc85daa4e75bea0fd294f24d7a2104cebb71..1706437908be0a93a7adda746911dbea2a80f578 100644 (file)
@@ -45,7 +45,7 @@ protected:
     Real demerits_;
     vsize break_pos_; /* index into breaks_ */
 
-    vector<vsize> div_;  /* our division of systems between scores on this page */
+    Line_division div_;
     vector<vsize> system_count_; /* systems per page */
 
     Break_node ()
@@ -55,16 +55,18 @@ protected:
       line_penalty_ = line_force_ = 0;
       demerits_ = infinity_f;
       first_page_number_ = 0;
+      page_count_ = 0;
       too_many_lines_ = false;
     }
   };
 
-  std::vector<Break_node> state_;
+  vector<Break_node> state_;
 
+  vsize final_page_num (Break_node const &b);
   Break_node put_systems_on_pages (vsize start,
                                   vsize end,
                                   vector<Line_details> const &lines,
-                                  vector<vsize> const &system_div,
+                                  Line_division const &div,
                                   int page_number);
 
   SCM make_lines (vector<Break_node> *breaks);