]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/paper-def.hh
* lily/include/lily-guile.hh: is_x -> ly_c_X_p naming.
[lilypond.git] / lily / include / paper-def.hh
index 29d0abacc53b1aae3195af44b136ae7c1da98275..466fa59b3a46704a886ec6ba62bd40354c308447 100644 (file)
@@ -3,7 +3,7 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 1996--2001 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c) 1996--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
 
 
 #include "lily-proto.hh"
 #include "lily-guile.hh"
 #include "real.hh"
-
-#include "moment.hh"
 #include "array.hh"
 #include "interval.hh"
 #include "music-output-def.hh"
-#include "protected-scm.hh"
+
 
 /** 
 
 class Paper_def : public Music_output_def 
 {
 protected:
-  VIRTUAL_COPY_CONS(Music_output_def);
-
-
+  VIRTUAL_COPY_CONSTRUCTOR (Music_output_def, Paper_def);
+  SCM scaled_fonts_;
+  
 public:    
-  SCM font_descriptions ()const;
-  virtual ~Paper_def ();
-  static int score_count_i_;
+  static int score_count_;
   
-  /*
-    JUNKME
-   */
-  Real get_realvar (SCM symbol) const;
-  Real get_var (String id) const;
-  SCM get_scmvar (String id)const; 
-  void reinit ();
   Paper_def ();
   Paper_def (Paper_def const&);
-
+  virtual ~Paper_def ();
+  virtual void derived_mark ();
+  
+  Paper_outputter* get_paper_outputter (String) const;
+  SCM font_descriptions () const;
+  void reinit ();
   Interval line_dimensions_int (int) const;
-
-  virtual int get_next_score_count () const;
-  static void reset_score_count ();
   void output_settings (Paper_outputter*) const;
-  Paper_outputter* paper_outputter_p () ;
-
-  Font_metric * find_font (SCM name, Real mag);
+  Font_metric *find_scaled_font (Font_metric *fm, Real mag, SCM enc_name);
+  Real get_dimension (SCM symbol) const;
   
-  // urg
   friend int yyparse (void*);
 };
 
-#endif // Paper_def_HH
+Paper_def * unsmob_paper (SCM x);
+Font_metric *select_encoded_font (Paper_def *paper, SCM input_encoding, SCM chain);
+Font_metric *select_font (Paper_def *paper, SCM chain);
+
+#endif /* PAPER_DEF_HH */