]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/gregorian-ligature-engraver.hh
Issue 1375/1: Let Translator constructor take a Context argument
[lilypond.git] / lily / include / gregorian-ligature-engraver.hh
index 36dc551fcd95a658e5ad17da5aaab25bcd7fe43b..f2a1334ae93c89d834700bb7b3a8959f2e34ccbe 100644 (file)
@@ -1,7 +1,7 @@
 /*
   This file is part of LilyPond, the GNU music typesetter.
 
-  Copyright (C) 2003--2011 Juergen Reuter <reuter@ipd.uka.de>
+  Copyright (C) 2003--2015 Juergen Reuter <reuter@ipd.uka.de>
 
   LilyPond is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
@@ -29,13 +29,16 @@ public:
   // no TRANSLATOR_DECLARATIONS (Gregorian_ligature_engraver) needed
   // since this class is abstract
 
+  TRANSLATOR_INHERIT(Coherent_ligature_engraver);
+  DECLARE_TRANSLATOR_CALLBACKS (Gregorian_ligature_engraver);
 protected:
-  Gregorian_ligature_engraver ();
+  Gregorian_ligature_engraver (Context *);
 
-  virtual void listen_pes_or_flexa (Stream_event *ev);
-  virtual void build_ligature (Spanner *ligature, vector<Grob_info> primitives);
+  void listen_pes_or_flexa (Stream_event *ev);
+  virtual void build_ligature (Spanner *ligature,
+                               vector<Grob_info> const &primitives);
   virtual void transform_heads (Spanner *ligature,
-                                vector<Grob_info> primitives) = 0;
+                                vector<Grob_info> const &primitives) = 0;
   void stop_translation_timestep ();
 };