-Paper_system::Paper_system (Stencil s, bool is_title)
-{
- is_title_ = is_title;
- number_ = 0;
- penalty_ = 0;
- smobify_self ();
- stencil_ = s;
-}
-
-Paper_system::~Paper_system ()
-{
-}
-
-SCM
-Paper_system::mark_smob (SCM smob)
-{
- Paper_system *system = (Paper_system*) ly_cdr (smob);
- return system-> stencil_.expr ();
-}
-
-int
-Paper_system::print_smob (SCM smob, SCM port, scm_print_state*)
-{
- Paper_system *p = (Paper_system*) ly_cdr (smob);
- scm_puts ("#<", port);
- scm_puts (classname (p), port);
- scm_puts (" ", port);
- scm_puts (to_string (p->number_).to_str0 (), port);
- scm_puts ("p ", port);
- scm_puts (to_string (p->penalty_).to_str0 (), port);
- if (p->is_title ())
- scm_puts (" t", port);
- scm_puts (" >", port);
- return 1;
-}
-
-bool
-Paper_system::is_title () const
-{
- return is_title_;
-}
-
-Real
-Paper_system::penalty () const
-{
- return penalty_;
-}
-
-Offset
-Paper_system::dim () const
-{
- return Offset (stencil_.extent (X_AXIS).length (),
- stencil_.extent (Y_AXIS).length ());
-}
+ You should have received a copy of the GNU General Public License
+ along with LilyPond. If not, see <http://www.gnu.org/licenses/>.
+*/