]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/bar-script-engraver.hh
release: 1.3.18
[lilypond.git] / lily / include / bar-script-engraver.hh
index cfd2b7c266c7a4d3e68e2584bf44abe4ce10f800..29110c81fea12e71da8c6346edf8d6ea93cd015a 100644 (file)
 #include "protected-scm.hh"
 
 /**
-  put stuff over or next to  bars
+  put stuff over or next to  bars.  Examples: bar numbers, marginal notes,
+  rehearsal marks.
  */
 class Bar_script_engraver : public Engraver
 {
+public:
+  VIRTUAL_COPY_CONS(Translator);
 protected:
-  G_staff_side_item* staff_side_p_;
-  G_text_item* text_p_;
+  Text_item* text_p_;
   Protected_scm visibility_lambda_;
   String type_;
   Axis axis_;
 
 protected:
+  /**
+    Put the script on #it#
+   */
+  void attach_script_to_item (Item *it);
+  /**
+     Return non-nil if we want to hang something on this.
+   */
+  Item *cast_to_interesting_item (Score_element*);
   Bar_script_engraver ();
+  virtual void do_creation_processing ();
   virtual void do_pre_move_processing ();
   virtual void acknowledge_element (Score_element_info);
   void create_items(Request*);