X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fexporter.h;h=f02e8472a00df54c53e2c2b3677fb38cce803de4;hb=498f06d43a0f2000c3f704db1ea39fda3c819fe6;hp=3ca20c1e227912a021b07bb87e4d99950988a10c;hpb=5495b8803f7d76d3a49109bce652f3518af158c3;p=lyx.git diff --git a/src/exporter.h b/src/exporter.h index 3ca20c1e22..f02e8472a0 100644 --- a/src/exporter.h +++ b/src/exporter.h @@ -1,31 +1,31 @@ // -*- C++ -*- /* This file is part of - * ====================================================== - * + * ====================================================== + * * LyX, The Document Processor - * + * * Copyright 1995 Matthias Ettrich - * Copyright 1995-2000 The LyX Team. + * Copyright 1995-2001 The LyX Team. * * ====================================================== */ #ifndef EXPORTER_H #define EXPORTER_H -#ifdef __GNUG__ -#pragma interface -#endif - #include #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); /// @@ -33,17 +33,17 @@ public: 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); }; - -//#define NEW_EXPORT 1 - #endif