2 clef-item.cc -- implement Clef_item
4 source file of the GNU LilyPond music typesetter
6 (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
9 #include "clef-item.hh"
11 #include "molecule.hh"
12 #include "paper-def.hh"
14 #include "clef-grav.hh"
18 Clef_item::do_pre_processing()
20 change_b_ = ! (break_status_i() == 1);
24 set_empty(break_status_i() != 1);
25 transparent_b_ = (break_status_i() != 1);
29 Clef_item::Clef_item()
38 Clef_item::read (String t)
41 if (type_ == "violin")
51 Clef_item::read (Clef_engraver const &k)
53 read (k.clef_type_str_);
57 Clef_item::brew_molecule_p() const
62 Atom s = paper()->lookup_l ()->clef (t);
63 Molecule*output = new Molecule (Atom (s));
64 output->translate (paper()->internote_f () * y_off, Y_AXIS);
69 IMPLEMENT_IS_TYPE_B1(Clef_item,Item);