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();
38 void extraChanged(const QString &);
39 void formatChanged(const QString &);
42 void templateChanged();
43 void widthUnitChanged();
47 typedef QHash<QString, QString> MapType;
50 bool activateAspectratio() const;
54 void updateContents();
55 /// Helper function called when the template is changed.
56 void updateTemplate();
59 bool initialiseParams(std::string const & data);
63 void dispatchParams();
65 bool isBufferDependent() const { return true; }
68 QString browse(QString const & input_file,
69 QString const & template_name) const;
74 InsetExternalParams params_;
79 } // namespace frontend
82 #endif // GUIEXTERNAL_H