4 #include "support/debug.h"
5 #include "support/Length.h"
16 // want to see non-zero SP
17 lyxrc.currentZoom = 100000;
19 for (int i = Length::BP; i <= Length::UNIT_NONE; ++i) {
20 Length const l(2342, static_cast<Length::UNIT>(i));
21 cout << l.inPixels(250) << " pix(250) = " << l.asString() << endl;
28 for (int i = Length::BP; i <= Length::UNIT_NONE; ++i) {
29 Length const l(2342, static_cast<Length::UNIT>(i));
30 cout << l.inBP() << " BP = " << l.asString() << endl;
35 int main(int, char **)
37 // Connect lyxerr with cout instead of cerr to catch error output
38 lyx::lyxerr.setStream(cout);