X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fexporter.h;h=6d95507d59df8803bc23cf88c7bb803776078128;hb=f65b7ff4ab2fe8ad0d9196c231064240e3fde81f;hp=94a832dbb895f843e6d5bb36ce38617b6f226e2b;hpb=d6665cba427b04ae37f42c846398cad518d2be0f;p=lyx.git diff --git a/src/exporter.h b/src/exporter.h index 94a832dbb8..6d95507d59 100644 --- a/src/exporter.h +++ b/src/exporter.h @@ -20,27 +20,34 @@ #include "LString.h" class Buffer; +class Format; -/// class Exporter { public: /// static bool Export(Buffer * buffer, string const & format, - bool put_in_tempdir, string * view_file = 0); + bool put_in_tempdir, string & result_file); + /// + static + bool Export(Buffer * buffer, string const & format, + bool put_in_tempdir); /// static bool Preview(Buffer * buffer, string const & format); /// static - std::vector > const - GetExportableFormats(Buffer const * buffer); + bool IsExportable(Buffer const * buffer, string const & format); + /// + static + std::vector const + GetExportableFormats(Buffer const * buffer, bool only_viewable); /// +private: static - std::vector > const - GetViewableFormats(Buffer const * buffer); + string const BufferFormat(Buffer const * buffer); /// static - string const BufferExtension(Buffer const * buffer); + std::vector const Backends(Buffer const * buffer); }; #endif