]> git.lyx.org Git - lyx.git/blobdiff - src/Length.h
GuiDocument.cpp: remove unneeded conversion
[lyx.git] / src / Length.h
index bf377d2a834e22f463521cdb2c9452c6ade2c585..11b591dcb8e69be8df6b5a225ea9ef1bc31eecee 100644 (file)
@@ -5,7 +5,7 @@
  * 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 John Levon
  *
@@ -89,9 +89,12 @@ public:
        std::string const asLatexString() const;
        /// return the on-screen size of this length
        int inPixels(int text_width, int em_width = 0) const;
-       /// return the on-screen size of this length of an image
+       /// return the value in Big Postscript points.
        int inBP() const;
 
+       /// return the default unit (centimeter or inch)
+       static UNIT defaultUnit();
+
        friend bool isValidLength(std::string const & data, Length * result);
 
 private: