]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/coherent-ligature-engraver.hh
bf422c40d1b4d1e108bc6d692f84e03a264d7693
[lilypond.git] / lily / include / coherent-ligature-engraver.hh
1 /*
2   This file is part of LilyPond, the GNU music typesetter.
3
4   Copyright (C) 2003--2012 Juergen Reuter <reuter@ipd.uka.de>
5
6   LilyPond is free software: you can redistribute it and/or modify
7   it under the terms of the GNU General Public License as published by
8   the Free Software Foundation, either version 3 of the License, or
9   (at your option) any later version.
10
11   LilyPond is distributed in the hope that it will be useful,
12   but WITHOUT ANY WARRANTY; without even the implied warranty of
13   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14   GNU General Public License for more details.
15
16   You should have received a copy of the GNU General Public License
17   along with LilyPond.  If not, see <http://www.gnu.org/licenses/>.
18 */
19 #ifndef COHERENT_LIGATURE_ENGRAVER_HH
20 #define COHERENT_LIGATURE_ENGRAVER_HH
21
22 #include "ligature-engraver.hh"
23
24 class Coherent_ligature_engraver : public Ligature_engraver
25 {
26 public:
27   // no TRANSLATOR_DECLARATIONS (Coherent_ligature_engraver) needed
28   // since this class is abstract
29
30 protected:
31   virtual void build_ligature (Spanner *ligature,
32                                vector<Grob_info> const &primitives) = 0;
33   virtual void typeset_ligature (Spanner *ligature,
34                                  vector<Grob_info> const &primitives);
35   virtual void move_related_items_to_column (Item *, Paper_column *, Real);
36 private:
37   void collect_accidentals (Spanner *, vector<Grob_info> const &);
38 };
39
40 #endif // COHERENT_LIGATURE_ENGRAVER_HH