]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/page-layout-problem.hh
Grand fixcc.py run on all .hh .cc files.
[lilypond.git] / lily / include / page-layout-problem.hh
index 629528bb53db51c0f4ea5acee8646b59abda545a..6c952e3eedc0526847673566afce7959345d0fcf 100644 (file)
 class Page_layout_problem
 {
 public:
-  Page_layout_problem (Paper_book*, SCM page, SCM systems, int footnote_count);
+  Page_layout_problem (Paper_book *, SCM page, SCM systems, int footnote_count);
 
   SCM solution (bool ragged);
   void set_header_height (Real);
   void set_footer_height (Real);
-  static bool read_spacing_spec (SCM spec, Realdest, SCM sym);
+  static bool read_spacing_spec (SCM spec, Real *dest, SCM sym);
   static bool is_spaceable (Grob *g);
   static SCM get_details (Grob *g);
   static vsize get_footnote_count (SCM lines);
   static SCM get_footnotes_from_lines (SCM lines, int counter, Paper_book *pb);
-  static Stencilget_footnote_separator_stencil (Output_def *paper);
+  static Stencil *get_footnote_separator_stencil (Output_def *paper);
   static SCM get_spacing_spec (Grob *before, Grob *after, bool pure, int start, int end);
   static Real get_fixed_spacing (Grob *before, Grob *after, int spaceable_index, bool pure, int start, int end);
   static void add_footnotes_to_footer (SCM footnotes, Stencil *foot, Paper_book *pb);
 
 protected:
-  void append_system (System*, Spring const&, Real indent, Real padding);
-  void append_prob (Prob*, Spring const&, Real padding);
+  void append_system (System *, Spring const &, Real indent, Real padding);
+  void append_prob (Prob *, Spring const &, Real padding);
 
   void solve_rod_spring_problem (bool ragged);
   SCM find_system_offsets ();
-  void distribute_loose_lines (vector<Grob*> const&, vector<Real> const&, Real, Real);
+  void distribute_loose_lines (vector<Grob *> const &, vector<Real> const &, Real, Real);
 
-  static void build_system_skyline (vector<Grob*> const&, vector<Real> const&, Skyline* up, Skyline* down);
-  static vector<Grob*> filter_dead_elements (vector<Grob*> const&);
+  static void build_system_skyline (vector<Grob *> const &, vector<Real> const &, Skyline *up, Skyline *down);
+  static vector<Grob *> filter_dead_elements (vector<Grob *> const &);
 
   // This is a union (in spirit).
   // Either staves must be empty or prob must be null.
-  typedef struct Element {
+  typedef struct Element
+  {
     Prob *prob;
-    vector<Grob*> staves;
+    vector<Grob *> staves;
     vector<Real> min_offsets;
     // Store the appropriate '*-*-spacing 'padding,
     //  for spacing any adjacent loose line
     Real padding;
 
-    Element (vector<Grob*> const& a, vector<Real> const& o, Real p)
+    Element (vector<Grob *> const &a, vector<Real> const &o, Real p)
     {
       staves = a;
       min_offsets = o;
@@ -77,13 +78,13 @@ protected:
     }
   } Element;
 
-  static Interval first_staff_extent (Element const&);
-  static Interval last_staff_extent (Element const&);
-  static Interval prob_extent (Prob*);
-  static SCM get_details (Element const&);
-  static SCM details_get_property (SCM details, const char*);
-  static void alter_spring_from_spacing_spec (SCM spec, Springspring);
-  static void mark_as_spaceable (Grob*);
+  static Interval first_staff_extent (Element const &);
+  static Interval last_staff_extent (Element const &);
+  static Interval prob_extent (Prob *);
+  static SCM get_details (Element const &);
+  static SCM details_get_property (SCM details, const char *);
+  static void alter_spring_from_spacing_spec (SCM spec, Spring *spring);
+  static void mark_as_spaceable (Grob *);
 
   vector<Spring> springs_;
   vector<Element> elements_;