class UmlDiagram
!!!128852.cpp!!!	html(in pfix : string, in rank : uint, in level : uint) : void
  UmlCom::message(name());

  define();

  QCString s;
  
  s.setNum(getIdentifier());
  s = "fig" + s + ((svg) ? ".svg" : ".png");
  saveIn(directory + s);
  
  if (svg) {
    fw.write("<p align=\"center\"><embed src=\"");
    fw.write(s);
    fw.write('"');
    
    s = directory + s;
    
    FILE * fp = fopen((const char *) s, "r");
    
    if (fp != 0) {
      char line[256];
      
      fgets(line, sizeof(line) - 1, fp);	// <?xml version="1.0" ...
      fgets(line, sizeof(line) - 1, fp);	// <!-- Created with Bouml ...
      fgets(line, sizeof(line) - 1, fp);	// <!DOCTYPE svg PUBLIC ...
      fgets(line, sizeof(line) - 1, fp);	// <svg width="495" height="560" version=...
      fclose(fp);
      
      char * p = strstr(line, " version=");
      
      if (p != 0) {
	*p = 0;
	fw.write(line+4);
      }
    }
    
    fw.write("/></p>\n");
  }
  else {
    fw.write("<p align=\"center\"><img src=\"");
    fw.write(s);
    fw.write("\" alt=\"\" /></p>\n");
  }
  
  fw.write(" <p align=\"center\"><b>");
  writeq(name());
  fw.write("</b></p><p><br /></p><p><br /></p>\n");

  s = description();
  
  if (!s.isEmpty()) {
    fw.write("<p>");
    writeq(description());
    fw.write("<br /></p>");
  }

  unload(FALSE, FALSE);
!!!128852.java!!!	html(in pfix : string, in rank : uint, in level : uint) : void
  UmlCom.message(name());

  define();

  String s = "fig" + String.valueOf(getIdentifier()) + ((svg) ? ".svg" : ".png");
  
  saveIn(directory + "/" + s);
  
  if (svg) {
    fw.write("<p align=\"center\"><embed src=\"");
    fw.write(s);
    fw.write('"');
    
    s = directory + s;
    
    BufferedReader in = null;
    
    try {
      in = new BufferedReader(new FileReader(s));
    
      in.readLine();	// <?xml version="1.0" ...
      in.readLine();	// <!-- Created with Bouml ...
      in.readLine();	// <!DOCTYPE svg PUBLIC ...
      s = in.readLine();	// <svg width="495" height="560" version=...
      
      int p = s.indexOf(" version=");
      
      if (p != -1)
	fw.write(s.substring(4, p));
    }
    catch(FileNotFoundException e1) {
    }
    catch(Exception e2) {
    }
    
    if (in != null) {
      try {
	in.close();
      }
      catch(IOException e3) {
      }
    }
    
    fw.write("/></p>\n");
  }
  else {
    fw.write("<p align=\"center\"><img src=\"");
    fw.write(s);
    fw.write("\" alt=\"\" /></p>\n");
  }
  
  fw.write(" <p align=\"center\"><b>");
  writeq(name());
  fw.write("</b></p><p><br /></p><p><br /></p>\n");

  s = description();
  
  if (s.length() != 0) {
    fw.write("<p>");
    writeq(description());
    fw.write("<br /></p>");
  }

  unload(false, false);

