* Licence details can be found in the file COPYING.
*
* \author Matthias Ettrich
- * \author Lars Gullik Bjønnes
+ * \author Lars Gullik Bjønnes
* \author Jean-Marc Lasgouttes
* \author Angus Leeming
* \author John Levon
#include <config.h>
#include "Length.h"
-#include "lengthcommon.h"
#include "LyXRC.h"
#include "support/docstream.h"
+
#include <sstream>
#include <iomanip>
+using namespace std;
namespace lyx {
-using std::ostringstream;
-using std::string;
-
/////////////////////////////////////////////////////////////////////
//
}
+void Length::swap(Length & rhs)
+{
+ std::swap(val_, rhs.val_);
+ std::swap(unit_, rhs.unit_);
+}
+
+
string const Length::asString() const
{
ostringstream os;
? em_width_base
: 10*(dpi/72.27)*zoom;
// A different estimate for em_width is
- // theFontMetrics(LyXFont(LyXFont::ALL_SANE)).width('M')
+ // theFontMetrics(FontInfo(sane_font)).width('M')
// but this estimate might not be more accurate as the screen font
// is different then the latex font.