2 clef-item.cc -- implement Clef_item
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
10 #include "clef-item.hh"
12 #include "molecule.hh"
15 Clef_item::Clef_item (SCM s)
21 FIXME: should use symbol.
23 FIXME: this should be schemified.
26 Clef_item::before_line_breaking ()
28 SCM style_sym =get_elt_property ("style");
30 if (gh_string_p (style_sym))
31 style = ly_scm2string (style_sym);
33 SCM glyph = get_elt_property ("glyph");
35 if (gh_string_p (glyph))
37 String s = ly_scm2string (glyph);
40 FIXME: should use fontsize property to set clef changes.
42 if (get_elt_property ("non-default") &&
43 break_status_dir() != RIGHT && style != "fullSizeChanges")
46 set_elt_property ("glyph", ly_str02scm (s.ch_C()));
56 /* why not suicide? */
57 if (style == "transparent") // UGH. JUNKME
59 set_elt_property ("molecule-callback", SCM_BOOL_T);
60 set_extent_callback (0, X_AXIS);