]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.1.7
authorfred <fred>
Sun, 24 Mar 2002 19:53:06 +0000 (19:53 +0000)
committerfred <fred>
Sun, 24 Mar 2002 19:53:06 +0000 (19:53 +0000)
lily/include/bar-number-grav.hh [new file with mode: 0644]
lily/include/script.hh

diff --git a/lily/include/bar-number-grav.hh b/lily/include/bar-number-grav.hh
new file mode 100644 (file)
index 0000000..287706b
--- /dev/null
@@ -0,0 +1,29 @@
+/*
+  bar-number-grav.hh -- declare Bar_number_grav
+
+  source file of the GNU LilyPond music typesetter
+
+  (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
+*/
+
+
+#ifndef BAR_NUMBER_GRAV_HH
+#define BAR_NUMBER_GRAV_HH
+
+#include "engraver.hh"
+
+/**
+  catch bars, and put a number over them.
+ */
+class Bar_number_grav : public Engraver {
+    Script * script_p_;
+    int number_i_;
+protected:
+
+    void acknowledge_element(Score_elem_info);
+    void do_pre_move_processing();
+public:
+    Bar_number_grav();
+    DECLARE_MY_RUNTIME_TYPEINFO;
+};
+#endif // BAR_NUMBER_GRAV_HH
index 2031a28ad685b6155383eb24d6163a4ddeda1010..bd7a5cc08636ddec8ee50337adadc039fc7c7b9c 100644 (file)
@@ -17,7 +17,6 @@ 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*);
@@ -25,6 +24,7 @@ protected:
     virtual Interval symbol_height()const;
     virtual void do_pre_processing();
     virtual Interval do_width() const;
+    SCORE_ELEM_CLONE(Script);
 private:
 
     void set_default_dir();