X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FExternalTransforms.h;h=a43b45b312d5a569c68f025af8b53fef459524b3;hb=d044d6afa7192b2119784e1415e71dad644bc335;hp=f5ea527a7ca9bc205be7a55492caa49fdb8b32ba;hpb=bc045d9320859d700c50c9cd4498d147c60cfc30;p=lyx.git diff --git a/src/insets/ExternalTransforms.h b/src/insets/ExternalTransforms.h index f5ea527a7c..a43b45b312 100644 --- a/src/insets/ExternalTransforms.h +++ b/src/insets/ExternalTransforms.h @@ -12,7 +12,7 @@ #ifndef EXTERNALTRANSFORMS_H #define EXTERNALTRANSFORMS_H -#include "lyxlength.h" +#include "Length.h" #include "graphics/GraphicsParams.h" @@ -23,9 +23,10 @@ #include #include -class LyXLex; - namespace lyx { + +class Lexer; + namespace external { /* @@ -35,7 +36,7 @@ class ClipData { public: ClipData() : clip(false) {} - lyx::graphics::BoundingBox bbox; + graphics::BoundingBox bbox; bool clip; }; @@ -56,14 +57,14 @@ private: class ResizeData { public: - ResizeData() : scale(0), keepAspectRatio(false) {} + ResizeData() : scale(), keepAspectRatio(false) {} bool no_resize() const; bool usingScale() const; - float scale; - LyXLength width; - LyXLength height; + std::string scale; + Length width; + Length 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