]> git.lyx.org Git - lyx.git/blobdiff - src/coordcache.h
add config.h
[lyx.git] / src / coordcache.h
index d5ac02f6eb220ce1f65433195c0118fa6f193507..dba9b89fd4d283a2a27c7c31e9ecf2dac1a4c379 100644 (file)
@@ -95,6 +95,9 @@ private:
 
        typedef std::map<T const *, Point> cache_type;
        cache_type data_;
+
+public:
+       cache_type const & getData() const { return data_; }
 };
 
 /**
@@ -104,13 +107,13 @@ private:
  * updates. (x,y) == (0,0) is the upper left screen corner, x increases
  * to the right, y increases downwords.
  * The cache is built in BufferView::updateMetrics which is called
- * from BufferView::Pimpl::update. The individual points are added
+ * from BufferView::update. The individual points are added
  * while we paint them. See for instance paintPar in RowPainter.C.
  */
 class CoordCache {
 public:
        void clear();
-       Point get(LyXText const *, pit_type);
+       Point get(LyXText const *, pit_type) const;
 
        /// A map from paragraph index number to screen point
        typedef std::map<pit_type, Point> InnerParPosCache;