]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt/GuiFontMetrics.h
Make string-widget combination more l7n friendly
[lyx.git] / src / frontends / qt / GuiFontMetrics.h
index 9501eb866d17b891eb4e921dcc2c9013e7ef5b07..5c32ea9de89237cc9e6822ff50b1cb4ed84c86b9 100644 (file)
@@ -27,6 +27,8 @@
 namespace lyx {
 namespace frontend {
 
+struct TextLayoutHelper;
+
 struct BreakStringKey
 {
        bool operator==(BreakStringKey const & key) const {
@@ -92,20 +94,22 @@ public:
                int & ascent,
                int & descent) const override;
 
-       int countExpanders(docstring const & str) const override;
        ///
        int width(QString const & str) const;
 
        /// Return a pointer to a cached QTextLayout object
        std::shared_ptr<QTextLayout const>
-       getTextLayout(docstring const & s, bool const rtl,
-                     double const wordspacing) const;
+       getTextLayout(docstring const & s, bool const rtl, double const wordspacing) const;
 
 private:
 
        Breaks breakString_helper(docstring const & s, int first_wid, int wid,
                                  bool rtl, bool force) const;
 
+       /// A different version of getTextLayout for internal use
+       std::shared_ptr<QTextLayout const>
+       getTextLayout(TextLayoutHelper const & tlh, double const wordspacing) const;
+
        /// The font
        QFont font_;