4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Asger Alstrup
9 * \author Angus Leeming
11 * Full author contact details are available in file CREDITS.
17 #include "GuiDialog.h"
18 #include "ui_ExternalUi.h"
20 #include "support/types.h"
22 #include "insets/InsetExternal.h"
31 class RotationDataType;
33 } // namespace external
37 class GuiExternal : public GuiDialog, public Ui::ExternalUi
42 GuiExternal(GuiView & lv);
47 void change_adaptor();
49 void extraChanged(const QString &);
50 void formatChanged(const QString &);
53 void templateChanged();
54 void widthUnitChanged();
58 typedef QHash<QString, QString> MapType;
62 bool activateAspectratio() const;
66 void updateContents();
67 /// Helper function called when the template is changed.
68 void updateTemplate();
69 /// get bounding box from file
75 bool initialiseParams(std::string const & data);
79 void dispatchParams();
81 bool isBufferDependent() const { return true; }
86 QString browse(QString const & input_file,
87 QString const & template_name) const;
89 /// Read the Bounding Box from a eps or ps-file
90 std::string const readBB(std::string const & file);
94 InsetExternalParams params_;
99 } // namespace frontend
102 #endif // GUIEXTERNAL_H