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 "insets/InsetExternal.h"
27 class GuiExternal : public GuiDialog, public Ui::ExternalUi
32 GuiExternal(GuiView & lv);
37 void change_adaptor();
39 void extraChanged(const QString &);
40 void formatChanged(const QString &);
43 void templateChanged();
44 void widthUnitChanged();
48 typedef QHash<QString, QString> MapType;
51 bool activateAspectratio() const;
55 void updateContents();
56 /// Helper function called when the template is changed.
57 void updateTemplate();
60 bool initialiseParams(std::string const & data);
64 void dispatchParams();
66 bool isBufferDependent() const { return true; }
71 QString browse(QString const & input_file,
72 QString const & template_name) const;
77 InsetExternalParams params_;
82 } // namespace frontend
85 #endif // GUIEXTERNAL_H