Bar::Bar()
{
type_str_ = "|";
+ spanned_i_ = 0;
}
Molecule*
Bar::brew_molecule_p()const
{
- Symbol s = paper()->lookup_l()->bar(type_str_);
+ Paper_def *p = paper();
+ Symbol s = p->lookup_l()->bar( type_str_,
+ p->get_var("bar_size") );
Molecule*output = new Molecule(Atom(s));
return output;
}
Symbol flag(int)const;
Symbol rest(int, bool outside)const;
Symbol clef(String)const;
- Symbol bar(String)const;
+ Symbol bar(String, Real height)const;
+
Symbol dots(int)const;
Symbol slur(int dy, Real &dx, int dir)const;
Symbol half_slur(int dy, Real &dx, int dir, int xpart)const;
/*
- acceptor.hh -- declare Translator
+ translator.hh -- declare Translator
source file of the GNU LilyPond music typesetter
*/
-#ifndef ACCEPTOR_HH
-#define ACCEPTOR_HH
+#ifndef TRANSLATOR_HH
+#define TRANSLATOR_HH
#include "string.hh"
#include "lily-proto.hh"
-#include "interpreter.hh"
#include "virtual-methods.hh"
class Translator {
int iterator_count_;
- virtual Interpreter * interpreter_l() { return 0; }
+ virtual Global_translator *global_l() { return 0; }
/// Score_register = 0, Staff_registers = 1, etc)
virtual int depth_i()const=0;
+ virtual bool is_bottom_engraver_b() const { return false; }
+ virtual bool try_request(Request*);
virtual Translator *find_get_translator_l(String name, String id)=0;
virtual Translator *ancestor_l(int l=1)=0;
virtual ~Translator(){}
virtual Translator *get_default_interpreter()=0;
};
-class Interpreter : public virtual Translator {
-public:
- virtual bool interpret_request_b(Request*) { return false;}
-};
-#endif // ACCEPTOR_HH
+#endif // TRANSLATOR_HH