]> git.lyx.org Git - lyx.git/blobdiff - src/exporter.h
hopefully fix tex2lyx linking.
[lyx.git] / src / exporter.h
index 1f912a6f5b2257987e763d9cb8caf0408306fecb..ec1c9d6495fdbae61cce1e21eee08f82de6a42e8 100644 (file)
@@ -18,6 +18,9 @@
 #include <vector>
 
 
+namespace lyx {
+
+
 class Buffer;
 class Format;
 
@@ -33,19 +36,20 @@ public:
                    bool put_in_tempdir);
        ///
        static
-       bool Preview(Buffer * buffer, std::string const & format);
+       bool preview(Buffer * buffer, std::string const & format);
        ///
        static
-       bool IsExportable(Buffer const & buffer, std::string const & format);
+       bool isExportable(Buffer const & buffer, std::string const & format);
        ///
        static
        std::vector<Format const *> const
-       GetExportableFormats(Buffer const & buffer, bool only_viewable);
+       getExportableFormats(Buffer const & buffer, bool only_viewable);
        ///
 };
 
 
-struct ExportedFile {
+class ExportedFile {
+public:
        ExportedFile(std::string const &, std::string const &);
        /// absolute name of the source file
        std::string sourceName;
@@ -72,15 +76,15 @@ public:
         *                   or relative to the exported document.
         */
        void addExternalFile(std::string const & format,
-                            std::string const & sourceName,
-                            std::string const & exportName);
+                            std::string const & sourceName,
+                            std::string const & exportName);
        /** add a referenced file for one format.
         *  The final name is the source file name without path.
         * \param format     format that references the given file
         * \param sourceName source file name. Needs to be absolute
         */
        void addExternalFile(std::string const & format,
-                            std::string const & sourceName);
+                            std::string const & sourceName);
        /// get referenced files for \p format
        std::vector<ExportedFile> const
        externalFiles(std::string const & format) const;
@@ -92,4 +96,7 @@ private:
        FileMap externalfiles;
 };
 
+
+} // namespace lyx
+
 #endif