]> git.lyx.org Git - lyx.git/blobdiff - src/lyxlength.h
Change the latex font names in order to match the names of type1inst.
[lyx.git] / src / lyxlength.h
index df31f9534900c41a1fe8565f3c016d02ce8b9189..a4d71aef2cffd06de47d6b3004e6900ae03caa43 100644 (file)
@@ -68,7 +68,7 @@ public:
 
        /// "data" must be a decimal number, followed by a unit
        explicit LyXLength(string const & data);
-       
+
        ///
        double value() const;
        ///
@@ -77,14 +77,14 @@ public:
        void value(double);
        ///
        void unit(LyXLength::UNIT unit);
-
-       /// real length in SP
-       //void lenght();
-
+       ///
+       bool zero() const;
        /// conversion
        string const asString() const;
        ///
        string const asLatexString() const;
+       ///
+       int inPixels(int default_width, int default_height) const;
 
        /** If "data" is valid, the length represented by it is
          stored into "result", if that is not 0. */
@@ -100,6 +100,8 @@ private:
 ///
 bool operator==(LyXLength const & l1, LyXLength const & l2);
 ///
+bool operator!=(LyXLength const & l1, LyXLength const & l2);
+///
 bool isValidLength(string const & data, LyXLength * result);
 ///
 char const * stringFromUnit(int unit);