lyx_mirror/src/Spacing.C
Jean-Marc Lasgouttes f6ec60f98e New dutch example files; the usual set of dec cxx fixes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@356 a592a061-630c-0410-9148-cb99ea01b6c8
1999-12-07 10:49:58 +00:00

23 lines
507 B
C

#include <config.h>
#include <cstdio>
#include "Spacing.h"
using std::ios;
/// how can I put this inside of Spacing (class)
static
char const * spacing_string[] = {"single", "onehalf", "double", "other"};
void Spacing::writeFile(ostream & os)
{
if (getSpace() == Spacing::Other) {
os.setf(ios::showpoint|ios::fixed);
os.precision(2);
os << "\\spacing " << spacing_string[getSpace()]
<< " " << getValue() << " \n";
} else {
os << "\\spacing " << spacing_string[getSpace()] << " \n";
}
}