mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-30 13:20:58 +00:00
8dccec5c46
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@403 a592a061-630c-0410-9148-cb99ea01b6c8
22 lines
489 B
C
22 lines
489 B
C
#include <config.h>
|
|
|
|
#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";
|
|
}
|
|
}
|