lilypond-0.1.56
[lilypond.git] / lily / type-swallow-trans.cc
blobb90ced5d1bba02871382e80517547df20aad38a4
1 /*
2 type-swallow-trans.cc -- implement Type_swallow_translator
4 source file of the GNU LilyPond music typesetter
6 (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
7 */
9 #include "type-swallow-trans.hh"
10 #include "musical-request.hh"
12 Type_swallow_translator::Type_swallow_translator ()
14 type_ =0;
17 bool
18 Type_swallow_translator::do_try_request (Request*r)
20 if (type_&&r->is_type_b (type_))
21 return true;
22 return false;
25 IMPLEMENT_IS_TYPE_B1(Type_swallow_translator, Translator);
27 DECLARE_REQUEST_SWALLOWER(Skip_req);