#include "lengthcommon.h"
#include "lyxrc.h"
+#include <sstream>
-#include "support/std_sstream.h"
-using std::abs;
using std::ostringstream;
using std::string;
switch (unit_) {
case PTW:
snprintf(buffer, 78, "%.2f\\textwidth", val_/100.0);
- break;
- case PCW:
+ break;
+ case PCW:
snprintf(buffer, 78, "%.2f\\columnwidth", val_/100.0);
- break;
- case PPW:
+ break;
+ case PPW:
snprintf(buffer, 78, "%.2f\\paperwidth", val_/100.0);
- break;
- case PLW:
+ break;
+ case PLW:
snprintf(buffer, 78, "%.2f\\linewidth", val_/100.0);
- break;
- case PPH:
+ break;
+ case PPH:
snprintf(buffer, 78, "%.2f\\paperheight", val_/100.0);
- break;
- case PTH:
+ break;
+ case PTH:
snprintf(buffer, 78, "%.2f\\textheight", val_/100.0);
break;
default:
// between lengths and font sizes on the screen
// is the same as on paper.
-#ifdef WITH_WARNINGS
-#warning if you don't care than either call this function differently or let it return negative values and call abs() explicitly when needed (Andre')
-#endif
-
double result = 0.0;
switch (unit_) {