source file of the GNU LilyPond music typesetter
- (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
+ (c) 1997--1998 Han-Wen Nienhuys <hanwen@cs.uu.nl>
*/
#include "type-swallow-trans.hh"
#include "musical-request.hh"
-Type_swallow_translator::Type_swallow_translator ()
-{
- type_ =0;
-}
bool
-Type_swallow_translator::do_try_request (Request*r)
+Type_swallow_translator::do_try_music (Music*r)
{
- if (type_&&r->is_type_b (type_))
+ if (classname (r) == swallow_str_)
return true;
return false;
}
-IMPLEMENT_IS_TYPE_B1(Type_swallow_translator, Translator);
-DECLARE_REQUEST_SWALLOWER(Skip_req);
+DECLARE_REQUEST_SWALLOWER(Skip_req);
+DECLARE_REQUEST_SWALLOWER(Beam_req);