--- /dev/null
+/*
+ collision-reg.cc -- implement Collision_register
+
+ source file of the LilyPond music typesetter
+
+ (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
+*/
+
+#include "note-column.hh"
+#include "collision-reg.hh"
+#include "collision.hh"
+
+void
+Collision_register::acknowledge_element(Staff_elem_info i)
+{
+ if (!(i.elem_l_->name() == Note_column::static_name()))
+ return;
+
+ if (!col_p_)
+ col_p_ = new Collision;
+
+ col_p_->add((Note_column*)i.elem_l_);
+}
+
+void
+Collision_register::pre_move_processing()
+{
+ if (col_p_) {
+ typeset_element(col_p_);
+ col_p_ =0;
+ }
+}
+Collision_register::Collision_register()
+{
+ col_p_ =0;
+}
+
+IMPLEMENT_STATIC_NAME(Collision_register);
+ADD_THIS_REGISTER(Collision_register);