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"
33 class RotationDataType;
35 } // namespace external
39 class GuiExternal : public GuiDialog, public Ui::ExternalUi
44 GuiExternal(GuiView & lv);
49 void change_adaptor();
51 void extraChanged(const QString&);
52 void formatChanged(const QString&);
55 void templateChanged();
56 void widthUnitChanged();
60 typedef std::map<std::string, QString> MapType;
64 bool activateAspectratio() const;
68 void updateContents();
69 /// Helper function called when the template is changed.
70 void updateTemplate();
71 /// get bounding box from file
77 bool initialiseParams(std::string const & data);
81 void dispatchParams();
83 bool isBufferDependent() const { return true; }
88 std::vector<std::string> const getTemplates() const;
90 int getTemplateNumber(std::string const &) const;
92 external::Template getTemplate(int) const;
95 getTemplateFilters(std::string const & template_name) const;
97 QString browse(QString const & input_file,
98 QString const & template_name) const;
100 /// Read the Bounding Box from a eps or ps-file
101 std::string const readBB(std::string const & file);
105 InsetExternalParams params_;
109 } // namespace frontend
112 #endif // GUIEXTERNAL_H