]> git.donarmstrong.com Git - lilypond.git/blob - hdr/staffcommands.hh
b7cdef0f9b72585531874e56329f2b87c33b0230
[lilypond.git] / hdr / staffcommands.hh
1 /*
2   lilypond, (c) 1996 Han-Wen Nienhuys
3 */
4 #ifndef SCORECOMMANDS_HH
5 #define SCORECOMMANDS_HH
6
7 #include "proto.hh"
8 #include "command.hh"
9 #include "vray.hh"
10 #include "plist.hh"
11
12 /// the list of commands in Score
13 struct Staff_commands : public IPointerList<Command*> {
14     void process_add(Command);
15     void add_seq(svec<Command>,bool);
16     void clean(Real last);
17     void set_breakable(Real when);
18     bool is_breakable(Real w);
19     PCursor<Command*> last_insertion(Real w);
20     PCursor<Command*> first(Real w);
21     void add_command_to_break(Command pre, Command mid,Command post);
22     void OK() const;
23     void print() const;
24     Real last() const;
25     void insert_between(Command victim, PCursor<Command*> firstc,
26                         PCursor<Command*> last);
27 };
28 /** the list of commands in Score. Put in a separate class, since it
29   otherwise clutters the methods of Score.
30
31   This class serves two purposes: it stores the commands (via
32   parser_add()) in the yacc parser. at a later stage, some 'high
33   level' commands are converted (method: parse())  
34   */
35
36 #endif
37