summaryrefslogtreecommitdiff
path: root/lily/header.cc
blob: 39dffd5dbffaf846b6be97ffcdd66d1e840a8ede (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
  header.cc -- implement Header

  source file of the GNU LilyPond music typesetter

  (c)  1997--1998 Han-Wen Nienhuys <hanwen@stack.nl>
*/

#include "string.hh"
#include "dictionary-iter.hh"
#include "header.hh"

String
Header::TeX_string() const
{
  String s;

  s+= "\\def\\LilyIdString{"  + lily_id_str_ + "}";
  
  for (Dictionary_iter<String> i(*this); i.ok(); i++) 
    {
      s += "\\def\\mudela" + i.key() + "{" + i.val() + "}";
    }
  return s;
}