]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/chord-name.hh
($(outdir)/%.pdf): add DVIPS_FLAGS. This will
[lilypond.git] / lily / include / chord-name.hh
index fa9cba3a871cbb67d5b683ff3ad6e581e98b0c0e..a775a2b79abfca6cc328fcc1e430dbada4eb8103 100644 (file)
@@ -3,44 +3,21 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 1999--2000 Jan Nieuwenhuizen <janneke@gnu.org>
+  (c) 1999--2004 Jan Nieuwenhuizen <janneke@gnu.org>
 */
 
 #ifndef CHORD_NAME_HH
 #define CHORD_NAME_HH
 
-#include "chord.hh"
-#include "item.hh"
-#include "molecule.hh"
+#include "lily-guile.hh"
+#include "stencil.hh"
 
-class Chord_mol
-{
-public:
-  Molecule tonic_mol;
-  Molecule modifier_mol;
-  Molecule addition_mol;
-  Molecule inversion_mol;
-  Molecule bass_mol;
-};
 
-/**
-   elt_properties:
-   pitches: list of musical-pitch
-   inversion(optional): musical-pitch
-   bass(optional): musical-pitch
- */
-class Chord_name : public Item
+class Chord_name
 {
 public:
-  VIRTUAL_COPY_CONS (Score_element);
-  Molecule ly_word2molecule (SCM scm) const;
-  Molecule ly_text2molecule (SCM scm) const;
-  Molecule pitch2molecule (Musical_pitch p) const;
-  bool user_chord_name (Array<Musical_pitch> pitch_arr, Chord_mol* name_p) const;
-  void banter (Array<Musical_pitch> pitch_arr, Chord_mol* name_p) const;
-
-protected:
-  virtual Molecule do_brew_molecule () const;
+  DECLARE_SCHEME_CALLBACK (after_line_breaking, (SCM ));
+  static  bool has_interface (Grob*);
 };
 
 #endif // CHORD_NAME_HH