#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();
TempName & operator=(TempName const &);
support::FileName operator()() const;
private:
- support::TempFile * tempfile_;
+ support::FileName tempname_;
};
} // namespace external
///
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 *);
///