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);
23 empty_b_ = (break_status_i() != 1);
24 transparent_b_ = (break_status_i() != 1);
28 Clef_item::Clef_item()
36 Clef_item::read(String t)
39 if (type_ == "violin")
49 Clef_item::read(Clef_engraver const &k)
51 read(k.clef_type_str_);
55 Clef_item::brew_molecule_p()const
60 Symbol s = paper()->lookup_l()->clef(t);
61 Molecule*output = new Molecule(Atom(s));
62 output->translate_y( paper()->internote_f() * y_off);
67 IMPLEMENT_IS_TYPE_B1(Clef_item,Item);