- for (int i=0; i < reqs_.size (); i++)
- {
- Text_script_req * r = reqs_[i];
-
- Text_item *text = new Text_item;
- Staff_side_item *ss = new Staff_side_item;
-
-
-
- SCM axisprop = get_property ("scriptHorizontal",0);
- if (gh_boolean_p (axisprop) && gh_scm2bool (axisprop))
- {
- ss->axis_ = X_AXIS;
- text->set_parent (ss, Y_AXIS);
-
- }
- ss->set_victim (text);
- ss->set_elt_property ("script-priority",
- gh_int2scm (200));
-
- ss->dir_ = r->dir_;
-
- text->text_str_ = r->text_str_;
-
- if (r->style_str_.length_i ())
- text->set_elt_property ("style", ly_str02scm (r->style_str_.ch_C()));
-
- SCM empty = get_property ("textEmptyDimension", 0);
- if (gh_boolean_p (empty) && gh_scm2bool (empty))
- {
- text->set_empty (true, X_AXIS);
- }
-
- announce_element (Score_element_info (text, r));
- announce_element (Score_element_info (ss, r));
-
- texts_.push (text);
- positionings_.push (ss);
- }