]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.0.38
authorfred <fred>
Sun, 24 Mar 2002 19:34:14 +0000 (19:34 +0000)
committerfred <fred>
Sun, 24 Mar 2002 19:34:14 +0000 (19:34 +0000)
src/lyric-item.cc [new file with mode: 0644]
src/textitem.cc

diff --git a/src/lyric-item.cc b/src/lyric-item.cc
new file mode 100644 (file)
index 0000000..c0adac7
--- /dev/null
@@ -0,0 +1,27 @@
+#include "musicalrequest.hh"
+#include "paper-def.hh"
+#include "lyric-item.hh"
+#include "stem.hh"
+#include "molecule.hh"
+#include "lookup.hh"
+#include "text-def.hh"
+#include "source-file.hh"
+#include "source.hh"
+#include "debug.hh"
+#include "main.hh"
+
+Lyric_item::Lyric_item(Lyric_req* lreq_l, int voice_count_i)
+    : Text_item(lreq_l,0)
+{
+    pos_i_ = -voice_count_i * 4 ;      // 4 fontsize dependant. TODO
+    dir_i_ = -1;
+}
+
+void
+Lyric_item::do_pre_processing()
+{
+
+    // test context-error
+    if ( tdef_l_->text_str_.index_i( "Gates" ) >=0)// :-)
+       warning( "foul word", tdef_l_->defined_ch_c_l_ );
+}
index 56fb8e054b80d74c21590ed23a439abe0d491c37..ed943f52a27a9492fd7cf60a458ee9f36628ef3f 100644 (file)
@@ -1,11 +1,20 @@
-#include "musicalrequest.hh"
-#include "paperdef.hh"
+/*
+  textitem.cc -- implement Text_item
+
+  source file of the LilyPond music typesetter
+
+  (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
+*/
+
+
+  #include "musicalrequest.hh"
+#include "paper-def.hh"
 #include "textitem.hh"
 #include "stem.hh"
 #include "molecule.hh"
 #include "lookup.hh"
 
-NAME_METHOD(Text_item);
+
 
 Text_item::Text_item(Text_req* treq_l, int staffsize_i)
 {