X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fpage-breaking-scheme.cc;h=8f66a576771425dad896b88be98a43b38bf738e9;hb=0b544cfb7332615ef809b71b57ab656741311ae1;hp=26b9ffa866df6cba9a5395abefda31d3383148bc;hpb=d61cf3bbdb1c6670a127ba3baddf2f04d3e34fd3;p=lilypond.git diff --git a/lily/page-breaking-scheme.cc b/lily/page-breaking-scheme.cc index 26b9ffa866..8f66a57677 100644 --- a/lily/page-breaking-scheme.cc +++ b/lily/page-breaking-scheme.cc @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 2006--2012 Joe Neeman + Copyright (C) 2006--2014 Joe Neeman LilyPond is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -19,6 +19,7 @@ #include "paper-book.hh" #include "page-turn-page-breaking.hh" +#include "one-line-page-breaking.hh" #include "optimal-page-breaking.hh" #include "minimal-page-breaking.hh" @@ -51,3 +52,13 @@ LY_DEFINE (ly_minimal_breaking, "ly:minimal-breaking", Minimal_page_breaking b (unsmob_paper_book (pb)); return b.solve (); } + +LY_DEFINE (ly_one_line_breaking, "ly:one-line-breaking", + 1, 0, 0, (SCM pb), + "Put each score on a single line, and put each line on its own" + " page. The paper-width setting will be modified so that" + " every page will be wider than the widest line.") +{ + One_line_page_breaking b (unsmob_paper_book (pb)); + return b.solve (); +}