X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fexporter.h;h=d1f3c8d6fde8251482da46ac177e376ffaa3644a;hb=83e7c2cff73797fa8f22a8f2cabef003679da10e;hp=b052f591b3796a7bbb4e8e76869cc12d5cca7b15;hpb=b9df4a9322159713c0036a95f3dae9aa3c592f0d;p=lyx.git diff --git a/src/exporter.h b/src/exporter.h index b052f591b3..d1f3c8d6fd 100644 --- a/src/exporter.h +++ b/src/exporter.h @@ -5,7 +5,7 @@ * LyX, The Document Processor * * Copyright 1995 Matthias Ettrich - * Copyright 1995-2000 The LyX Team. + * Copyright 1995-2001 The LyX Team. * * ====================================================== */ @@ -20,30 +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 - GetViewableFormats(Buffer const * buffer); + std::vector const + GetExportableFormats(Buffer const * buffer, bool only_viewable); /// +private: static - string const BufferExtension(Buffer const * buffer); + string const BufferFormat(Buffer const * buffer); + /// + static + std::vector const Backends(Buffer const * buffer); }; - -#define NEW_EXPORT 1 - #endif