#ifndef CONTROLEXTERNAL_H
#define CONTROLEXTERNAL_H
-
#include "Dialog.h"
-#include "insets/insetexternal.h"
+
+#include "support/types.h"
+
#include <boost/scoped_ptr.hpp>
+#include <string>
+#include <vector>
+
+
+class InsetExternalParams;
namespace lyx {
namespace external {
+
class Template;
+class RotationDataType;
+
} // namespace external
} // namespace lyx
virtual bool isBufferDependent() const { return true; }
///
- InsetExternal::Params const & params() const;
+ InsetExternalParams const & params() const;
///
- void setParams(InsetExternal::Params const &);
+ void setParams(InsetExternalParams const &);
///
void editExternal();
lyx::external::Template getTemplate(int) const;
///
std::string const Browse(std::string const &) const;
+
+ /// Read the Bounding Box from a eps or ps-file
+ std::string const readBB(std::string const & file);
+ ///
+ void bbChanged(bool val) { bb_changed_ = val; }
+ bool bbChanged() const { return bb_changed_; }
private:
///
- boost::scoped_ptr<InsetExternal::Params> params_;
+ boost::scoped_ptr<InsetExternalParams> params_;
+ bool bb_changed_;
};
+
+namespace lyx {
+namespace external {
+
+std::vector<RotationDataType> const & all_origins();
+std::string const origin_gui_str(lyx::size_type i);
+
+} // namespace external
+} // namespace lyx
+
#endif // CONTROLEXTERNAL_H