#include <config.h>
#include "inseturl.h"
+
#include "funcrequest.h"
-#include "BufferView.h"
-#include "LaTeXFeatures.h"
#include "latexrunparams.h"
-#include "frontends/LyXView.h"
-#include "debug.h"
-#include "frontends/Dialogs.h"
-#include "support/lstrings.h"
+#include "LaTeXFeatures.h"
#include "gettext.h"
-using namespace lyx::support;
+#include "support/lstrings.h"
+
+#include "support/std_ostream.h"
+
+using lyx::support::subst;
+using std::string;
using std::ostream;