2 paper-book-scheme.cc -- implement Paper_book bindings
4 source file of the GNU LilyPond music typesetter
6 (c) 2005 Han-Wen Nienhuys <hanwen@xs4all.nl>
9 #include "paper-book.hh"
10 #include "ly-module.hh"
11 #include "output-def.hh"
13 LY_DEFINE (ly_paper_book_pages
, "ly:paper-book-pages",
15 "Return pages in book PB.")
17 return unsmob_paper_book (pb
)->pages ();
20 LY_DEFINE (ly_paper_book_scopes
, "ly:paper-book-scopes",
22 "Return pages in layout book @var{book}.")
24 Paper_book
*pb
= unsmob_paper_book (book
);
25 SCM_ASSERT_TYPE (pb
, book
, SCM_ARG1
, __FUNCTION__
, "Paper_book");
28 if (ly_c_module_p (pb
->header_
))
29 scopes
= scm_cons (pb
->header_
, scopes
);
34 LY_DEFINE (ly_paper_book_systems
, "ly:paper-book-systems",
36 "Return systems in book PB.")
38 return unsmob_paper_book (pb
)->systems ();
41 LY_DEFINE (ly_paper_book_paper
, "ly:paper-book-paper",
43 "Return pages in book PB.")
45 return unsmob_paper_book (pb
)->paper_
->self_scm ();