X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FCoordCache.h;h=ba69f94eba3de2d74629a9f96a62c3b548ce93b0;hb=966c48abc658f459ca2269e4f65fa2003f731fb6;hp=830a2a5634cd9aad6ec4a3dcd02ab62df8b4dd92;hpb=76dec26fec47df5b828973554b85dc91f3b564d1;p=lyx.git diff --git a/src/CoordCache.h b/src/CoordCache.h index 830a2a5634..ba69f94eba 100644 --- a/src/CoordCache.h +++ b/src/CoordCache.h @@ -20,8 +20,8 @@ namespace lyx { -class InsetBase; -class LyXText; +class Inset; +class Text; class MathData; class Paragraph; @@ -113,22 +113,22 @@ public: class CoordCache { public: void clear(); - Point get(LyXText const *, pit_type) const; + Point get(Text const *, pit_type) const; /// A map from paragraph index number to screen point typedef std::map InnerParPosCache; - /// A map from a LyXText to the map of paragraphs to screen points - typedef std::map ParPosCache; + /// A map from a Text to the map of paragraphs to screen points + typedef std::map ParPosCache; /// A map from a CursorSlice to screen points - typedef std::map SliceCache; + typedef std::map SliceCache; /// A map from MathData to position on the screen CoordCacheBase & arrays() { return arrays_; } CoordCacheBase const & getArrays() const { return arrays_; } /// A map from insets to positions on the screen - CoordCacheBase & insets() { return insets_; } - CoordCacheBase const & getInsets() const { return insets_; } - /// A map from (LyXText, paragraph) pair to screen positions + CoordCacheBase & insets() { return insets_; } + CoordCacheBase const & getInsets() const { return insets_; } + /// A map from (Text, paragraph) pair to screen positions ParPosCache & parPos() { return pars_; } ParPosCache const & getParPos() const { return pars_; } /// @@ -147,7 +147,7 @@ private: /// MathDatas CoordCacheBase arrays_; // All insets - CoordCacheBase insets_; + CoordCacheBase insets_; /// Paragraph grouped by owning text ParPosCache pars_; /// Used with boundary == 0