]> git.lyx.org Git - lyx.git/blobdiff - src/exporter.h
fix a compiler warning regarding unused variable
[lyx.git] / src / exporter.h
index 9bd2d038aca805b2b610a5de3e09617c75e1c80b..22c01ef6b9c4eb70885563ec824b4e786bea8116 100644 (file)
 #ifndef EXPORTER_H
 #define EXPORTER_H
 
+#include "support/filename.h"
+
 #include <map>
 #include <string>
 #include <vector>
 
 
+namespace lyx {
+
+
 class Buffer;
 class Format;
 
@@ -33,23 +38,23 @@ 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);
        ///
 };
 
 
 class ExportedFile {
 public:
-       ExportedFile(std::string const &, std::string const &);
+       ExportedFile(support::FileName const &, std::string const &);
        /// absolute name of the source file
-       std::string sourceName;
+       support::FileName sourceName;
        /// final name that the exported file should get (absolute name or
        /// relative to the directory of the master document)
        std::string exportName;
@@ -73,15 +78,15 @@ public:
         *                   or relative to the exported document.
         */
        void addExternalFile(std::string const & format,
-                            std::string const & sourceName,
-                            std::string const & exportName);
+                            support::FileName 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);
+                            support::FileName const & sourceName);
        /// get referenced files for \p format
        std::vector<ExportedFile> const
        externalFiles(std::string const & format) const;
@@ -93,4 +98,7 @@ private:
        FileMap externalfiles;
 };
 
+
+} // namespace lyx
+
 #endif