#include "file-results.hh"
#include "misc.hh"
+#if 1 // has w32 advanced?
+ // nope (cygwin-b20)
+
// sucking Cygnus egcs - w32
#include "list.tcc"
#include "cursor.tcc"
+#endif
+
Paper_score::Paper_score ()
{
outputter_l_ =0;
Paper_score::~Paper_score ()
{
-#if 0
- for (int i=0; i< line_l_arr_.size (); i++)
- line_l_arr_[i]->unlink_all ();
-
- for (PCursor<Score_element*> i(elem_p_list_.top()); i.ok(); i++)
- {
-
- if (i->linked_b())
- i->unlink ();
- assert (! i->linked_b ());
- }
-#endif
}
void
}
-#if 0
-void
-Paper_score::set_breaking (Array<Column_x_positions> const &breaking)
-{
- for (iter (span_p_list_.top (),i); i.ok ();)
- {
- Spanner *span_p = i.remove_p ();
- if (span_p->broken_b ()
- || !((Score_element*)span_p)->line_l ())
- {
- span_p->unlink ();
- delete span_p;
- }
- else
- {
- typeset_broken_spanner (span_p);
- }
- }
- for (iter (elem_p_list_.top (),i); i.ok () ;)
- {
- Item *i_l =dynamic_cast <Item *> (i);
- if (i_l && !i_l->line_l ())
- {
- i_l->unlink ();
- Score_element * item_p= i.remove_p ();
- delete item_p;
- }
- else
- i++;
- }
-}
-#endif
Array<Column_x_positions>
Item const*l=l_item_l;
Item const*r=r_item_l;
- while (! l->is_type_b(Paper_column::static_name ()))
+ // huh? see Item::left_right_compare ()
+ /*
+ while (! (dynamic_cast<Paper_column const *> (l)))
l = dynamic_cast<Item*> (l->axis_group_l_a_[X_AXIS]);
- while (! r->is_type_b(Paper_column::static_name ()))
+ while (! (dynamic_cast<Paper_column const *> (r)))
r = dynamic_cast<Item*>(r->axis_group_l_a_[X_AXIS]);
-
+ */
+ l = l->column_l ();
+ r = r->column_l ();
+
PCursor<Paper_column*> start (l ? find_col ((Paper_column*)l)+1 : col_p_list_.top ());
PCursor<Paper_column*> stop (r ? find_col ((Paper_column*)r) : col_p_list_.bottom ());