]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/script.hh
release commit
[lilypond.git] / lily / include / script.hh
index 35a945af5a8665ed0154619881e91d69f9afe34a..d6681f2d026f52e1f2878bb460da4bb2328075aa 100644 (file)
@@ -1,43 +1,32 @@
-/*
-  script.hh -- part of GNU LilyPond
-
-  (c) 1996,97 Han-Wen Nienhuys
-*/
+/*   
+  script.hh -- declare Script
+  
+  source file of the GNU LilyPond music typesetter
+  
+  (c)  1999--2003 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  
+ */
 
 #ifndef SCRIPT_HH
 #define SCRIPT_HH
 
-#include "staff-side.hh"
-#include "item.hh"
-  
-/**
-  Accents that are put over a note-group.
- */
-class Script : public Item, public Staff_side {
-    
-    Stem *stem_l_;
-
-protected:
-    Molecule *brew_molecule_p() const;
-    virtual void do_substitute_dependency (Score_elem*,Score_elem*);
-    virtual void do_print() const;
-    virtual Interval symbol_height() const;
-    virtual void do_pre_processing();
-    virtual Interval do_width() const;
-    SCORE_ELEM_CLONE(Script);
-private:
+#include "lily-guile.hh"
+#include "lily-proto.hh"
 
-    void set_default_dir();
+/**
+   Articulation marks (and the like) that are attached to notes/stems.
+   Needs support from Staff_side for proper operation.  Staff_side
+   handles the positioning.
+*/
+class Script_interface
+{
 public:
-    General_script_def *specs_l_;
-    
-    static int compare (Script  *const&, Script *const&) ;
-    Script();
-    void set_stem (Stem*);
-    DECLARE_MY_RUNTIME_TYPEINFO;
-
+  static Molecule get_molecule (Grob*,Direction d);
+  
+  static bool  has_interface (Grob*);
+  DECLARE_SCHEME_CALLBACK (brew_molecule, (SCM ));
+  DECLARE_SCHEME_CALLBACK (before_line_breaking, (SCM ));
 };
 
-
-#endif // SCRIPT_HH
+#endif /* Stem_SCRIPT_HH */