]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.h
Fix fa0f142e (plain quotes fix).
[lyx.git] / src / BufferView.h
index ee2de8276e3a597c258d14ea65d8de435068b6ea..92e898735065ac2f8146fbb7b14fd8a3f43fac80 100644 (file)
@@ -41,6 +41,7 @@ class FuncRequest;
 class FuncStatus;
 class Intl;
 class Inset;
+class Length;
 class PainterInfo;
 class ParIterator;
 class ParagraphMetrics;
@@ -105,6 +106,14 @@ public:
        /// left margin
        int leftMargin() const;
 
+       /// return the on-screen size of this length
+       /*
+        *  This is a wrapper around Length::inPixels that uses the
+        *  bufferview width as width and the EM value of the default
+        *  document font.
+        */
+       int inPixels(Length const & len) const;
+
        /// \return true if the BufferView is at the top of the document.
        bool isTopScreen() const;