]> git.lyx.org Git - lyx.git/blobdiff - src/ParagraphMetrics.h
BufferParams.cpp: change the package loading to:
[lyx.git] / src / ParagraphMetrics.h
index 69ac74df417aa567bef66a8a8e841b059ca1ee87..63c9edb76eee13678a0559ce0fb81d413defd26b 100644 (file)
@@ -21,6 +21,8 @@
 #include "Paragraph.h"
 #include "Row.h"
 
+#include <map>
+
 namespace lyx {
 
 /**
@@ -86,6 +88,10 @@ public:
        int position() const { return position_; }
        void setPosition(int position);
 
+       ///
+       Dimension const & insetDimension(Inset const * inset) const;
+       ///
+       void setInsetDimension(Inset const *, Dimension const & dim);
 
 private:
        ///
@@ -96,6 +102,10 @@ private:
        Dimension dim_;
        ///
        Paragraph const * par_;
+       
+       typedef std::map<Inset const *, Dimension> InsetDims;
+       ///
+       InsetDims inset_dims_;
 };
 
 } // namespace lyx