]> git.lyx.org Git - lyx.git/blobdiff - src/Length.h
* GuiDocument.cpp:
[lyx.git] / src / Length.h
index bf377d2a834e22f463521cdb2c9452c6ade2c585..c6e32c3431e94b570681bf4bd38ba711213881a4 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
  *
@@ -87,11 +87,16 @@ public:
        docstring const asDocstring() const;
        /// return string representation for LaTeX
        std::string const asLatexString() const;
+       /// return string representation for HTML
+       std::string const asHTMLString() 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: