+++ /dev/null
-\header {
-filename
-title
-date
-description
-opus
-source
-composers
-enteredby
-copyright
-remarks
-}
-
-%{
-Tested Features:
-%}
+++ /dev/null
-/*
- normal-bar.hh -- declare
-
- source file of the GNU LilyPond music typesetter
-
- (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
-
- */
-
-#ifndef NORMAL_BAR_HH
-#define NORMAL_BAR_HH
-
-#include "bar.hh"
-
-class Normal_bar : public virtual Bar
-{
-public:
- SCORE_ELEM_CLONE(Normal_bar);
- DECLARE_MY_RUNTIME_TYPEINFO;
-};
-
-#endif /* NORMAL_BAR_HH */
-
+++ /dev/null
-/*
- normal-span-bar.hh -- declare Normal_span_bar
-
- source file of the GNU LilyPond music typesetter
-
- (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
-
- */
-
-#ifndef NORMAL_SPAN_BAR_HH
-#define NORMAL_SPAN_BAR_HH
-
-#include "normal-bar.hh"
-#include "span-bar.hh"
-
-class Normal_span_bar : public Span_bar, public Normal_bar
-{
-public:
- SCORE_ELEM_CLONE(Normal_span_bar);
- DECLARE_MY_RUNTIME_TYPEINFO;
-};
-
-#endif /* NORMAL_SPAN_BAR_HH */
-
+++ /dev/null
-/*
- score-align-grav.hh -- declare Type_align_engraver
-
- source file of the GNU LilyPond music typesetter
-
- (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
-*/
-
-
-#ifndef SCORE_ALIGN_GRAV_HH
-#define SCORE_ALIGN_GRAV_HH
-
-#include "engraver.hh"
-
-/**
- Group a number of items across staffs
- */
-class Type_align_engraver: public Engraver
-{
- Horizontal_group_item * align_p_;
-public:
- TRANSLATOR_CLONE(Type_align_engraver);
-
- const char* type_ch_C_;
- int priority_i_;
- Type_align_engraver();
- DECLARE_MY_RUNTIME_TYPEINFO;
-protected:
- virtual void acknowledge_element (Score_elem_info);
- virtual void do_pre_move_processing();
-};
-#endif // SCORE_ALIGN_GRAV_HH
+++ /dev/null
-/*
- score-halign-grav.hh -- declare Score_horizontal_align_engraver
-
- source file of the GNU LilyPond music typesetter
-
- (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
-*/
-
-
-#ifndef SCORE_HALIGN_GRAV_HH
-#define SCORE_HALIGN_GRAV_HH
-#include "engraver.hh"
-class Score_horizontal_align_engraver : public Engraver {
- Break_align_item * halign_p_;
-public:
- TRANSLATOR_CLONE(Score_horizontal_align_engraver);
- DECLARE_MY_RUNTIME_TYPEINFO;
- Score_horizontal_align_engraver();
-protected:
- virtual void acknowledge_element (Score_elem_info);
- virtual void do_pre_move_processing();
-};
-#endif // SCORE_HALIGN_GRAV_HH
+++ /dev/null
-/*
- normal-bar.cc -- implement Normal_bar
-
- source file of the GNU LilyPond music typesetter
-
- (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
-
- */
-
-#include "normal-bar.hh"
-
-IMPLEMENT_IS_TYPE_B1(Normal_bar, Bar);
+++ /dev/null
-/*
- normal-span-bar.cc -- implement
-
- source file of the GNU LilyPond music typesetter
-
- (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
-
- */
-
-#include "normal-span-bar.hh"
-
-IMPLEMENT_IS_TYPE_B2(Normal_span_bar, Span_bar, Normal_bar);
+++ /dev/null
-/*
- score-align-reg.cc -- implement Type_align_engraver
-
- source file of the GNU LilyPond music typesetter
-
- (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
-*/
-
-
-#include "horizontal-group-item.hh"
-#include "score-align-grav.hh"
-#include "item.hh"
-
-Type_align_engraver::Type_align_engraver()
-{
- type_ch_C_ = 0;
- priority_i_ =0;
- align_p_=0;
-}
-
-void
-Type_align_engraver::do_pre_move_processing()
-{
- if (align_p_)
- {
- typeset_element (align_p_);
- align_p_ =0;
- }
-}
-
-void
-Type_align_engraver::acknowledge_element (Score_elem_info inf)
-{
- if (inf.elem_l_->is_type_b (type_ch_C_))
- {
-
- if (!align_p_)
- {
- align_p_ = new Horizontal_group_item;
- align_p_->breakable_b_ = true;
- announce_element (Score_elem_info (align_p_,0));
- }
- Score_elem * unbound_elem = inf.elem_l_;
- while (unbound_elem->axis_group_l_a_[X_AXIS])
- unbound_elem = unbound_elem->axis_group_l_a_[X_AXIS];
- align_p_->add_element (unbound_elem);
- }
-
-}
-
-IMPLEMENT_IS_TYPE_B1(Type_align_engraver,Engraver);
+++ /dev/null
-/*
- score-align-gravs.cc -- implement different alignment engravers.
-
- source file of the GNU LilyPond music typesetter
-
- (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
-*/
-
-#include "key-item.hh"
-#include "clef-item.hh"
-#include "meter.hh"
-#include "bar.hh"
-#include "score-align-grav.hh"
-#include "score-bar.hh"
-#include "normal-bar.hh"
-
-#define IMPLEMENT_ALIGN_GRAV(C,T,p)\
-class C ## _align_engraver : public Type_align_engraver \
-{ \
-public: \
- DECLARE_MY_RUNTIME_TYPEINFO; \
- TRANSLATOR_CLONE(C ## _align_engraver);\
- C ## _align_engraver() : Type_align_engraver () \
- { type_ch_C_ = T::static_name();\
- priority_i_ = p;} \
-}; \
-ADD_THIS_TRANSLATOR(C ## _align_engraver); \
-IMPLEMENT_IS_TYPE_B1(C ## _align_engraver, Type_align_engraver) ;
-
-
-IMPLEMENT_ALIGN_GRAV(Key,Key_item,3);
-IMPLEMENT_ALIGN_GRAV(Clef,Clef_item,2);
-IMPLEMENT_ALIGN_GRAV(Normal_bar, Normal_bar,4);
-IMPLEMENT_ALIGN_GRAV(Meter,Meter,5);
-IMPLEMENT_ALIGN_GRAV(Score_bar, Score_bar,0);
+++ /dev/null
-/*
- score-halign-reg.cc -- implement Score_horizontal_align_engraver
-
- source file of the GNU LilyPond music typesetter
-
- (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
-*/
-
-#include "bar.hh"
-#include "break-align-item.hh"
-#include "score-halign-grav.hh"
-#include "score-align-grav.hh"
-
-Score_horizontal_align_engraver::Score_horizontal_align_engraver()
-{
- halign_p_ =0;
-}
-
-void
-Score_horizontal_align_engraver::do_pre_move_processing()
-{
- if (halign_p_)
- {
- typeset_element (halign_p_);
- halign_p_ =0;
- }
-}
-
-void
-Score_horizontal_align_engraver::acknowledge_element (Score_elem_info i)
-{
- Engraver* reg = i.origin_grav_l_arr_[0];
- if (reg->is_type_b (Type_align_engraver::static_name()))
- {
- Type_align_engraver * align_grav_l = (Type_align_engraver*) reg;
- if (!halign_p_)
- {
- halign_p_ = new Break_align_item;
- halign_p_->breakable_b_ = true;
- announce_element (Score_elem_info (halign_p_,0));
- }
- Item * it = i.elem_l_->item();
- if (align_grav_l->type_ch_C_ == Bar::static_name())
- halign_p_->center_l_ = it;
-
- halign_p_->add (it, align_grav_l->priority_i_);
- }
-}
-
-IMPLEMENT_IS_TYPE_B1(Score_horizontal_align_engraver,Engraver);
-ADD_THIS_TRANSLATOR(Score_horizontal_align_engraver);