/*
  lyricwalker.cc -- implement Lyric_walker

  source file of the LilyPond music typesetter

  (c) 1997 Jan Nieuwenhuizen <jan@digicash.com>
*/

#include "musicalrequest.hh"
#include "voice.hh"
#include "pscore.hh"
#include "lyricstaff.hh"
#include "lyricwalker.hh"
#include "debug.hh"
#include "lyricitem.hh"
#include "staffcolumn.hh"

void
Lyric_walker::process_requests()
{
    allow_break();
    
    int req_count=0;
    for (int i = 0; i < ptr()->musicalreq_l_arr_.size(); i++)  {
	Lyric_req * lreq_l = ptr()->musicalreq_l_arr_[i]->lreq_l();
	if (!lreq_l)
	    continue;
	Item *lp = new Lyric_item(lreq_l,req_count++);
	ptr()->typeset_musical_item( lp);
    }
}

Lyric_walker::Lyric_walker(Lyric_staff* lstaff_l)
    : Staff_walker(lstaff_l, lstaff_l->pstaff_l_->pscore_l_)
{

}


