mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-08 20:32:49 +00:00
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()]);
|
||
|
}
|
||
|
}
|