]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/measure-grouping-spanner.cc
* flower
[lilypond.git] / lily / measure-grouping-spanner.cc
index cb23c7c68c90092a414cdd99ead001baa5371230..9918b5051b05a2c81e42e6d0c9282000f98e09ad 100644 (file)
@@ -1,45 +1,42 @@
-/*   
-       measure-grouping-spanner.cc -- implement Measure_grouping
+/*
+  measure-grouping-spanner.cc -- implement Measure_grouping
 
-       source file of the GNU LilyPond music typesetter
+  source file of the GNU LilyPond music typesetter
 
-       (c) 2002--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
-
- */
+  (c) 2002--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+*/
 
 #include "measure-grouping-spanner.hh"
 
 #include "output-def.hh"
 #include "spanner.hh"
-#include "lookup.hh" 
+#include "lookup.hh"
 #include "item.hh"
 #include "staff-symbol-referencer.hh"
 
 MAKE_SCHEME_CALLBACK (Measure_grouping, print, 1);
-SCM 
+SCM
 Measure_grouping::print (SCM grob)
 {
-  Spanner * me = dynamic_cast<Spanner*> (unsmob_grob (grob));
+  Spanner *me = dynamic_cast<Spanner *> (unsmob_grob (grob));
 
   SCM which = me->get_property ("style");
   Real height = robust_scm2double (me->get_property ("height"), 1);
 
   Real t = Staff_symbol_referencer::line_thickness (me) * robust_scm2double (me->get_property ("thickness"), 1);
   Grob *common = me->get_bound (LEFT)->common_refpoint (me->get_bound (RIGHT),
-                                                      X_AXIS);
+                                                       X_AXIS);
 
   Real right_point = robust_relative_extent (me->get_bound (RIGHT),
                                             common, X_AXIS).linear_combination (CENTER);
   Real left_point = me->get_bound (LEFT)->relative_coordinate (common, X_AXIS);
 
-
-  
   Interval iv (left_point, right_point);
   Stencil m;
-  
+
   /*
     TODO: use line interface
-   */
+  */
   if (which == ly_symbol2scm ("bracket"))
     {
       m = Lookup::bracket (X_AXIS, iv, t, -height, t);
@@ -59,4 +56,3 @@ ADD_INTERFACE (Measure_grouping, "measure-grouping-interface",
               "Valid choices for @code{style} are @code{bracket} and @code{triangle}.",
               "thickness style height");
 
-