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();
58 bool usingScale() const;
61 bool initialiseParams(std::string
const & data
);
65 void dispatchParams();
67 bool isBufferDependent() const { return true; }
70 QString
browse(QString
const & input_file
,
71 QString
const & template_name
) const;
76 InsetExternalParams params_
;
81 } // namespace frontend
84 #endif // GUIEXTERNAL_H