home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Linux / Divers / lyx-0.13.2.tar.gz / lyx-0.13.2.tar / lyx-0.13.2 / src / Spacing.C < prev    next >
C/C++ Source or Header  |  1998-04-23  |  438b  |  22 lines

  1. #include <config.h>
  2.  
  3. #include <stdio.h>
  4. #include "Spacing.h"
  5.  
  6. /// how can I put this inside of Spacing (class)
  7. static
  8. char const *spacing_string[] = {"single", "onehalf", "double", "other"};
  9.  
  10.  
  11. void Spacing::writeFile(FILE *file)
  12. {
  13.     if (getSpace() == Spacing::Other) {
  14.         fprintf(file, "\\spacing %s %.2f \n",
  15.             spacing_string[getSpace()],
  16.             getValue());
  17.     } else {
  18.         fprintf(file, "\\spacing %s \n",
  19.             spacing_string[getSpace()]);
  20.     }    
  21. }
  22.