2 staff-sym-reg.cc -- implement Staff_sym_engraver
4 source file of the GNU LilyPond music typesetter
6 (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
9 #include "staff-sym-grav.hh"
10 #include "staff-sym.hh"
16 Staff_sym_engraver::fill_staff_info (Staff_info
&i
)
18 i
.staff_sym_l_
= span_p_
;
21 Staff_sym_engraver::~Staff_sym_engraver()
26 Staff_sym_engraver::Staff_sym_engraver()
32 Staff_sym_engraver::do_creation_processing()
34 span_p_
= new Staff_symbol
;
35 span_p_
->set_bounds(LEFT
,get_staff_info().command_pcol_l ());
36 announce_element (Score_elem_info (span_p_
, 0));
40 Staff_sym_engraver::do_removal_processing()
42 Scalar
l (get_property ("nolines"));
45 span_p_
->no_lines_i_
= l
;
48 span_p_
->set_bounds(RIGHT
,get_staff_info().command_pcol_l ());
49 typeset_element (span_p_
);
55 IMPLEMENT_IS_TYPE_B1(Staff_sym_engraver
,Engraver
);
56 ADD_THIS_TRANSLATOR(Staff_sym_engraver
);