]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/coherent-ligature-engraver.hh
Merge branch 'master' into translation
[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--2015 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   Coherent_ligature_engraver(Context *c)
28     : Ligature_engraver (c)
29   {}
30   // no TRANSLATOR_DECLARATIONS (Coherent_ligature_engraver) needed
31   // since this class is abstract
32   TRANSLATOR_INHERIT (Ligature_engraver);
33   DECLARE_TRANSLATOR_CALLBACKS (Coherent_ligature_engraver);
34
35 protected:
36   virtual void build_ligature (Spanner *ligature,
37                                vector<Grob_info> const &primitives) = 0;
38   virtual void typeset_ligature (Spanner *ligature,
39                                  vector<Grob_info> const &primitives);
40   virtual void move_related_items_to_column (Item *, Paper_column *, Real);
41 private:
42   void collect_accidentals (Spanner *, vector<Grob_info> const &);
43 };
44
45 #endif // COHERENT_LIGATURE_ENGRAVER_HH