]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/script.hh
release: 1.3.142
[lilypond.git] / lily / include / script.hh
index a09eb7b0f3528761f167e5bb5f05daaf91d66adf..e1e46d5c213dbd9a750af1cb70ddcc05fb06f00d 100644 (file)
@@ -1,43 +1,32 @@
-/*
-  script.hh -- part of GNU LilyPond
-
-  (c) 1996--1999 Han-Wen Nienhuys
-*/
+/*   
+  script.hh -- declare Script
+  
+  source file of the GNU LilyPond music typesetter
+  
+  (c) 1999--2001 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 *do_brew_molecule_p() const;
-  virtual void do_substitute_element_pointer (Score_element*,Score_element*);
-  virtual void do_print() const;
-  virtual Interval symbol_height() const;
-  virtual void do_pre_processing();
-  virtual Interval do_width() const;
-  VIRTUAL_COPY_CONS(Score_element);
-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
+{
 public:
-  General_script_def *specs_p_;
-
-  static int compare (Script  *const&, Script *const&) ;
-  Script();
-  ~Script ();
-  Script (Script const&);
-   
-  void set_stem (Stem*);
+  static Molecule get_molecule (Grob*,Direction d);
+  static void set_interface (Grob*);
+  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 */