2 script-reg.cc -- implement Script_register
4 (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
7 #include "script-reg.hh"
9 #include "musicalrequest.hh"
10 #include "complex-walker.hh"
13 Script_register::Script_register()
16 post_move_processing();
20 Script_register::try_request(Request
*r_l
)
26 && Script_req::compare(*script_req_l_
, *r_l
->script()))
30 script_req_l_
= r_l
->script();
36 Script_register::process_requests()
39 script_p_
= new Script(script_req_l_
, 10);
41 Staff_elem_info(script_p_
, script_req_l_
));
46 Script_register::acknowledge_element(Staff_elem_info info
)
50 if (info
.elem_p_
->name() == Stem::static_name())
51 script_p_
->set_stem((Stem
*)info
.elem_p_
);
52 else if (info
.req_l_
->rhythmic())
53 script_p_
->set_support(info
.elem_p_
->item());
57 Script_register::pre_move_processing()
60 script_p_
->dir
= dir_i_
;
61 typeset_element(script_p_
);
66 Script_register::post_move_processing()
72 Script_register::set_feature(Features i
)
74 if (i
.direction_i_
|| i
.initialiser_b_
)
75 dir_i_
= i
.direction_i_
;