X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FExternalTransforms.h;h=e650d292a8bf292089730bc7b1b8fdd3547d80fb;hb=e28331ed63062dea10d0a21b9ec12034b4b17b9a;hp=f5ea527a7ca9bc205be7a55492caa49fdb8b32ba;hpb=bc045d9320859d700c50c9cd4498d147c60cfc30;p=lyx.git diff --git a/src/insets/ExternalTransforms.h b/src/insets/ExternalTransforms.h index f5ea527a7c..e650d292a8 100644 --- a/src/insets/ExternalTransforms.h +++ b/src/insets/ExternalTransforms.h @@ -23,9 +23,10 @@ #include #include +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 { @@ -314,22 +313,23 @@ enum TransformID { }; -typedef boost::function1 +typedef boost::function ClipOptionFactory; -typedef boost::function1 +typedef boost::function ExtraOptionFactory; -typedef boost::function1 +typedef boost::function ResizeOptionFactory; -typedef boost::function1 +typedef boost::function RotationOptionFactory; -typedef boost::function1 +typedef boost::function ResizeCommandFactory; -typedef boost::function1 +typedef boost::function RotationCommandFactory; -struct TransformStore +class TransformStore { +public: TransformStore() {} /** Stores \c factory and a reminder of what \c data this \c factory