-//
-// what about
-// #include "flower.hh"
-// #include "lily.hh"
-//
-// or should we first devide lily/src up ?
-// HWN: huh?
+/*
+ lyricwalker.cc -- implement Lyric_walker
-#include "textspanner.hh"
-#include "script.hh"
-#include "request.hh"
+ source file of the LilyPond music typesetter
+
+ (c) 1997 Jan Nieuwenhuizen <jan@digicash.nl>
+*/
+
+#include "musicalrequest.hh"
#include "voice.hh"
#include "pscore.hh"
#include "lyricstaff.hh"
#include "lyricwalker.hh"
-#include "sccol.hh"
#include "debug.hh"
#include "lyricitem.hh"
-void
-Lyric_walker::do_word(Word_info)
-{
-}
-
-void
-Lyric_walker::do_INTERPRET_command(Command* )
-{
-// WARN << "command for Lyrics found\n";
-}
-
-void
-Lyric_walker::do_TYPESET_command(Command* )
-{
-// WARN << "command for Lyrics found\n";
-}
-
void
Lyric_walker::process_requests()
{
- Lyric_column* lcol_l = Lyric_walker::lcol_l();
-
- for (int i = 0; i < lcol_l->winfo_array_.size(); i++) {
- lcol_l->typeset_item(new Lyric_item(lcol_l->winfo_array_[i].lreq_l_, i));
+ allow_break();
+ for (int i = 0; i < lcol_l()->lreq_l_array_.size(); i++) {
+ lcol_l()->typeset_item(
+ new Lyric_item(lcol_l()->lreq_l_array_[i],i)
+ );
}
-
}
Lyric_walker::Lyric_walker(Lyric_staff* lstaff_l)
- : Staff_walker(lstaff_l, lstaff_l->line_pstaff_p_->pscore_l_)
+ : Staff_walker(lstaff_l, lstaff_l->pstaff_l_->pscore_l_)
{
- reset();
+
}
Lyric_staff*
Lyric_walker::lstaff_l()
{
- return (Lyric_staff*)staff_;
+ return (Lyric_staff*)staff_l_;
}
Lyric_column*
{
return (Lyric_column*) *(*this);
}
-
-void
-Lyric_walker::reset()
-{
-}
-