]> git.lyx.org Git - lyx.git/blobdiff - src/insets/ExternalTransforms.h
* src/LyXAction.C: mark goto-clear-bookmark as working without buffer
[lyx.git] / src / insets / ExternalTransforms.h
index 5f9a85294bb00d053f6dd7ba96d36d210a599ced..e650d292a8bf292089730bc7b1b8fdd3547d80fb 100644 (file)
 #include <map>
 #include <memory>
 
+namespace lyx {
+
 class LyXLex;
 
-namespace lyx {
 namespace external {
 
 /*
@@ -35,7 +36,7 @@ class ClipData {
 public:
        ClipData() : clip(false) {}
 
-       lyx::graphics::BoundingBox bbox;
+       graphics::BoundingBox bbox;
        bool clip;
 };
 
@@ -56,12 +57,12 @@ private:
 
 class ResizeData {
 public:
-       ResizeData() : scale(0), keepAspectRatio(false) {}
+       ResizeData() : scale(), keepAspectRatio(false) {}
        bool no_resize() const;
 
        bool usingScale() const;
 
-       float scale;
+       std::string scale;
        LyXLength width;
        LyXLength height;
        bool keepAspectRatio;
@@ -84,11 +85,11 @@ public:
                BASELINERIGHT
        };
 
-       RotationData() : angle_(0), origin_(DEFAULT) {}
+       RotationData() : angle("0"), origin_(DEFAULT) {}
        bool no_rotation() const;
 
-       void angle(double a);
-       double angle() const { return angle_; }
+       std::string const adjAngle() const;
+       std::string angle;
 
        void origin(OriginType o) { origin_ = o; }
        OriginType origin() const { return origin_; }
@@ -97,7 +98,6 @@ public:
        std::string const originString() const;
 
 private:
-       double angle_;
        OriginType origin_;
 };
 
@@ -303,7 +303,6 @@ private:
  */
 std::string const sanitizeLatexOption(std::string const & input);
 std::string const sanitizeDocBookOption(std::string const & input);
-std::string const sanitizeLinuxDocOption(std::string const & input);
 
 
 enum TransformID {
@@ -328,8 +327,9 @@ typedef boost::function<TransformCommand::ptr_type(RotationData)>
        RotationCommandFactory;
 
 
-struct TransformStore
+class TransformStore
 {
+public:
        TransformStore() {}
 
        /** Stores \c factory and a reminder of what \c data this \c factory