lilypond-1.1.31
[lilypond.git] / src / voiceregs.cc
blobea56a5da4643b064da4fc54b94a26049e8097ad2
1 /*
2 voiceregs.cc -- implement Voice_registers
4 source file of the LilyPond music typesetter
6 (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
7 */
9 #include "musicalrequest.hh"
10 #include "voiceregs.hh"
11 #include "register.hh"
12 #include "slurreg.hh"
13 #include "headreg.hh"
15 Voice_registers::Voice_registers(Complex_walker*c_l, Voice *v_p)
17 voice_l_ = v_p;
18 add(new Notehead_register(c_l));
19 add(new Slur_register(c_l));
22 void
23 Voice_registers::acknowledge_element(Staff_elem_info i)
25 if (i.voice_l_ != voice_l_)
26 return;
27 Register_group::acknowledge_element(i);
30 bool
31 Voice_registers::acceptable_request_b(Request*r)
33 return (r->rest() || r->note() || r->slur());