#include "lookup.hh"
#include "side-position-interface.hh"
#include "paper-def.hh"
-
-
-Script ::Script (SCM s)
- : Item (s)
-{
-}
+#include "item.hh"
Molecule
Script::get_molecule(Score_element * me, Direction d)
}
else if (key == ly_symbol2scm ("accordion"))
{
- return me->lookup_l ()->accordion (gh_cdr (s), me->paper_l()->get_var("interline"));
+ return me->lookup_l ()->accordion (gh_cdr (s), me->paper_l()->get_var("staffspace"));
}
else
assert (false);
return Molecule ();
}
-
-
MAKE_SCHEME_CALLBACK(Script,after_line_breaking);
SCM
Script::after_line_breaking (SCM smob)
Direction d = Side_position::get_direction (me);
Side_position::set_direction (me,d);
- return SCM_UNDEFINED;
+ return SCM_UNSPECIFIED;
}
-
MAKE_SCHEME_CALLBACK(Script,brew_molecule);
SCM
Script::brew_molecule (SCM smob)
{
Score_element *me= unsmob_element (smob);
- Direction dir = DOWN;
- SCM d = me->get_elt_property ("direction");
- if (isdir_b (d))
- dir = to_dir (d);
-
+// Direction dir = DOWN;
+// SCM d = me->get_elt_property ("direction");
+// if (isdir_b (d))
+// dir = to_dir (d);
+ Direction dir = Side_position::get_direction(me);
return get_molecule (me, dir).create_scheme();
}
+bool
+Script::has_interface (Score_element*me)
+{
+ return me->has_interface (ly_symbol2scm ("script-interface"));
+}
-
+void
+Script::set_interface (Score_element*me)
+{
+ return me->set_interface (ly_symbol2scm ("script-interface"));
+}