]> git.lyx.org Git - lyx.git/blobdiff - src/exporter.C
zlib stuff
[lyx.git] / src / exporter.C
index 49e59e194951a16fd7358f2829e612419475412a..ee9e80bcbb94026abe11fad689c6038a1fefa76e 100644 (file)
 #include "exporter.h"
 #include "buffer.h"
 #include "buffer_funcs.h"
-#include "lyx_cb.h" //ShowMessage()
 #include "support/filetools.h"
 #include "lyxrc.h"
 #include "converter.h"
 #include "format.h"
 #include "frontends/Alert.h"
 #include "gettext.h"
-#include "BufferView.h"
 
 #include <algorithm>
 
+using namespace lyx::support;
+
 using std::vector;
 using std::find;
 
@@ -106,11 +106,10 @@ bool Exporter::Export(Buffer * buffer, string const & format,
                return false;
 
        if (!put_in_tempdir)
-               ShowMessage(buffer,
-                           _("Document exported as ")
-                           + formats.prettyName(format)
-                           + _(" to file `")
-                           + MakeDisplayPath(result_file) +'\'');
+               buffer->message(_("Document exported as ")
+                                     + formats.prettyName(format)
+                                     + _(" to file `")
+                                     + MakeDisplayPath(result_file) +'\'');
        return true;
 }
 
@@ -157,4 +156,3 @@ Exporter::GetExportableFormats(Buffer const * buffer, bool only_viewable)
        }
        return result;
 }
-