]> git.lyx.org Git - features.git/blobdiff - src/insets/ExternalTransforms.h
Completion: handle undo in insets' insertCompletion methods
[features.git] / src / insets / ExternalTransforms.h
index 8b22f622c87b6efc4dc0936e1bc7869ab39f7cf7..2311ac2f66c4675c96f03f72cc1b2fe466a68959 100644 (file)
 
 #include "graphics/GraphicsParams.h"
 
+#include "support/any.h"
 #include "support/Length.h"
 #include "support/unique_ptr.h"
 
-#include <boost/any.hpp>
-
 #include <functional>
 #include <map>
 #include <memory>
@@ -308,6 +307,7 @@ std::string const sanitizeDocBookOption(std::string const & input);
 
 
 enum TransformID {
+       None = -1,
        Rotate,
        Resize,
        Clip,
@@ -339,7 +339,7 @@ public:
         */
        template <typename Factory>
        TransformStore(TransformID id_, Factory const & factory)
-               : id(id_), any_factory(boost::any(factory)) {}
+               : id(id_), any_factory(any(factory)) {}
 
        typedef TransformCommand::ptr_type ComPtr;
        typedef TransformOption::ptr_type  OptPtr;
@@ -353,7 +353,7 @@ public:
 
 private:
        TransformID id;
-       boost::any any_factory;
+       any any_factory;
 };
 
 } // namespace external