mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-12 14:05:59 +00:00
27de1486ca
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@140 a592a061-630c-0410-9148-cb99ea01b6c8
22 lines
438 B
C
22 lines
438 B
C
#include <config.h>
|
|
|
|
#include <stdio.h>
|
|
#include "Spacing.h"
|
|
|
|
/// how can I put this inside of Spacing (class)
|
|
static
|
|
char const *spacing_string[] = {"single", "onehalf", "double", "other"};
|
|
|
|
|
|
void Spacing::writeFile(FILE *file)
|
|
{
|
|
if (getSpace() == Spacing::Other) {
|
|
fprintf(file, "\\spacing %s %.2f \n",
|
|
spacing_string[getSpace()],
|
|
getValue());
|
|
} else {
|
|
fprintf(file, "\\spacing %s \n",
|
|
spacing_string[getSpace()]);
|
|
}
|
|
}
|