2 page-marker.cc -- implement Page_marker
4 source file of the GNU LilyPond music typesetter
6 (c) 2007--2008 Nicolas Sceaux <nicolas.sceaux@free.fr>
9 #include "page-marker.hh"
10 #include "ly-smobs.icc"
12 Page_marker::Page_marker ()
15 permission_
= SCM_EOL
;
20 Page_marker::~Page_marker ()
24 IMPLEMENT_SMOBS (Page_marker
);
25 IMPLEMENT_DEFAULT_EQUAL_P (Page_marker
);
26 IMPLEMENT_TYPE_P (Page_marker
, "ly:page-marker?");
29 Page_marker::mark_smob (SCM smob
)
31 Page_marker
*pm
= (Page_marker
*) SCM_CELL_WORD_1 (smob
);
32 scm_gc_mark (pm
->symbol_
);
33 scm_gc_mark (pm
->permission_
);
34 scm_gc_mark (pm
->label_
);
39 Page_marker::print_smob (SCM smob
, SCM port
, scm_print_state
*)
41 Page_marker
*pm
= (Page_marker
*) SCM_CELL_WORD_1 (smob
);
43 scm_puts ("#<Page_marker>", port
);
48 Page_marker::permission_symbol ()
54 Page_marker::permission_value ()
66 Page_marker::set_permission (SCM symbol
, SCM permission
)
69 permission_
= permission
;
73 Page_marker::set_label (SCM label
)