source file of the GNU LilyPond music typesetter
- (c) 2000--2001 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+ (c) 2000--2002 Han-Wen Nienhuys <hanwen@cs.uu.nl>
*/
class Output_property_engraver : public Engraver
{
-public:
- VIRTUAL_COPY_CONS (Translator);
+TRANSLATOR_DECLARATIONS(Output_property_engraver);
protected:
/*
should typecheck pred.
*/
SCM result=gh_apply (pred,
- gh_list (inf.elem_l_->self_scm (), SCM_UNDEFINED));
+ scm_list_n (inf.grob_l_->self_scm (), SCM_UNDEFINED));
if (to_boolean (result))
{
- SCM sym = o->get_mus_property ("symbol");
- SCM val = o->get_mus_property ("value");
- inf.elem_l_->set_grob_property (sym, val);
+ SCM sym = o->get_mus_property ("grob-property");
+ SCM val = o->get_mus_property ("grob-value");
+ inf.grob_l_->internal_set_grob_property (sym, val);
}
}
}
props_.clear ();
}
-ADD_THIS_TRANSLATOR (Output_property_engraver);
+Output_property_engraver::Output_property_engraver()
+{
+}
+
+ENTER_DESCRIPTION(Output_property_engraver,
+/* descr */ "Interpret Music of Output_property type, and apply a function
+to any Graphic objects that satisfies the predicate.",
+/* creats*/ "",
+/* acks */ "grob-interface",
+/* reads */ "",
+/* write */ "");