X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Fpaper-score.hh;h=e3d0813b4b0820754390a6356bd97f84ad7950ff;hb=47db9a3883d726ca53e2133a3b2298f78dd6a32e;hp=f980ee154e2fd6d26e8e7cd6993b91af83d23a4e;hpb=08560a1b8076630c4fc6cb9b902614d8b74fd6fc;p=lilypond.git diff --git a/lily/include/paper-score.hh b/lily/include/paper-score.hh index f980ee154e..e3d0813b4b 100644 --- a/lily/include/paper-score.hh +++ b/lily/include/paper-score.hh @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 1996--2012 Han-Wen Nienhuys + Copyright (C) 1996--2015 Han-Wen Nienhuys LilyPond is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -39,6 +39,13 @@ public: DECLARE_CLASSNAME (Paper_score); + static Paper_score *unsmob (SCM ps) { + return dynamic_cast (Music_output::unsmob (ps)); + } + static bool is_smob (SCM ps) { + return Music_output::is_smob (ps) && unsmob (ps); + } + Output_def *layout () const; System *root_system () const; @@ -54,7 +61,7 @@ protected: virtual void derived_mark () const; private: - Paper_score (Paper_score const &); + Paper_score (Paper_score const &); // Do not define! Not copyable! }; #endif /* PAPER_SCORE_HH */