]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/page-marker-scheme.cc
Web-ja: update introduction
[lilypond.git] / lily / page-marker-scheme.cc
index 3278a7b013d6d9a350108342f778279b4718c4cc..f78069ff9635e91ef62061dcdac504461c4322d2 100644 (file)
@@ -1,19 +1,42 @@
 /*
-  page-marker-scheme.cc -- implement Page_marker bindings.
+  This file is part of LilyPond, the GNU music typesetter.
 
-  source file of the GNU LilyPond music typesetter
+  Copyright (C) 2007--2015 Nicolas Sceaux <nicolas.sceaux@free.fr>
 
-  (c) 2007 Nicolas Sceaux <nicolas.sceaux@free.fr>
+  LilyPond is free software: you can redistribute it and/or modify
+  it under the terms of the GNU General Public License as published by
+  the Free Software Foundation, either version 3 of the License, or
+  (at your option) any later version.
+
+  LilyPond is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+
+  You should have received a copy of the GNU General Public License
+  along with LilyPond.  If not, see <http://www.gnu.org/licenses/>.
 */
 
 #include "page-marker.hh"
 
-LY_DEFINE (ly_make_page_marker, "ly:make-page-marker",
-          2, 0, 0,
-          (SCM symbol, SCM permission),
-          "Return page marker with page breaking and turning permissions.")
+LY_DEFINE (ly_make_page_permission_marker, "ly:make-page-permission-marker",
+           2, 0, 0,
+           (SCM symbol, SCM permission),
+           "Return page marker with page breaking and turning permissions.")
 {
   LY_ASSERT_TYPE (ly_is_symbol, symbol, 1);
-  Page_marker *page_marker = new Page_marker (symbol, permission);
+  Page_marker *page_marker = new Page_marker ();
+  page_marker->set_permission (symbol, permission);
+  return page_marker->unprotect ();
+}
+
+LY_DEFINE (ly_make_page_label_marker, "ly:make-page-label-marker",
+           1, 0, 0,
+           (SCM label),
+           "Return page marker with label @var{label}.")
+{
+  LY_ASSERT_TYPE (ly_is_symbol, label, 1);
+  Page_marker *page_marker = new Page_marker ();
+  page_marker->set_label (label);
   return page_marker->unprotect ();
 }