]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetExternal.h
Circumvent odd stmary font metrics (part of #9990).
[lyx.git] / src / insets / InsetExternal.h
index a6167b5dd901d46c19b4611014112736313ac96c..75131182b982928eb2a29ec44b45cba77b821653 100644 (file)
 #include <boost/signals/trackable.hpp>
 
 
+namespace lyx {
+
+namespace external {
+
 /** No two InsetExternalParams variables can have the same temporary file.
  *  This class has copy-semantics but the copy constructor
  *  and assignment operator simply call the default constructor.
  *  copy constructor and assignment operator for the
  *  InsetExternalParams class.
  */
-namespace lyx {
-
-namespace support {
-class TempFile;
-}
-
-namespace external {
-
 class TempName {
 public:
        TempName();
@@ -45,7 +41,7 @@ public:
        TempName & operator=(TempName const &);
        support::FileName operator()() const;
 private:
-       support::TempFile * tempfile_;
+       support::FileName tempname_;
 };
 
 } // namespace external
@@ -96,6 +92,9 @@ class RenderBase;
 ///
 class InsetExternal : public Inset, public boost::signals::trackable
 {
+       // Disable assignment operator, since it is not used, and it is too
+       // complicated to implement it consistently with the copy constructor
+       InsetExternal & operator=(InsetExternal const &);
 public:
        InsetExternal(Buffer *);
        ///
@@ -120,6 +119,9 @@ public:
        bool setMouseHover(BufferView const * bv, bool mouse_hover) const;
        ///
        bool clickable(int, int) const { return true; }
+       ///
+       void addToToc(DocIterator const & di, bool output_active,
+                                 UpdateType utype) const;
 private:
        ///
        InsetExternal(InsetExternal const &);