X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fexporter.h;h=6d95507d59df8803bc23cf88c7bb803776078128;hb=d4ee9c38b6aa45146f67658352623bcbc3e0ad9b;hp=ce57770b2e041d8ba50248dd1678d9358b66f784;hpb=9625f5e2300339330e099ccea259c46667ea1461;p=lyx.git diff --git a/src/exporter.h b/src/exporter.h index ce57770b2e..6d95507d59 100644 --- a/src/exporter.h +++ b/src/exporter.h @@ -20,11 +20,16 @@ #include "LString.h" class Buffer; +class Format; class Exporter { public: /// static + bool Export(Buffer * buffer, string const & format, + bool put_in_tempdir, string & result_file); + /// + static bool Export(Buffer * buffer, string const & format, bool put_in_tempdir); /// @@ -32,15 +37,17 @@ public: bool Preview(Buffer * buffer, string const & format); /// static - std::vector > GetExportableFormats(Buffer * buffer); + bool IsExportable(Buffer const * buffer, string const & format); /// static - std::vector > GetViewableFormats(Buffer * buffer); + std::vector const + GetExportableFormats(Buffer const * buffer, bool only_viewable); /// +private: static - string BufferExtension(Buffer * buffer); + string const BufferFormat(Buffer const * buffer); + /// + static + std::vector const Backends(Buffer const * buffer); }; - -//#define NEW_EXPORT 1 - #endif