X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fexporter.h;h=9bd2d038aca805b2b610a5de3e09617c75e1c80b;hb=b59621bc59584fb3496459a2be79acfc8476a9a1;hp=0cdbd4e96e4801f21d78d4b5d804851a2717ac0d;hpb=fa29d7ee984e9240554f093862fe53239f776582;p=lyx.git diff --git a/src/exporter.h b/src/exporter.h index 0cdbd4e96e..9bd2d038ac 100644 --- a/src/exporter.h +++ b/src/exporter.h @@ -45,7 +45,8 @@ public: }; -struct ExportedFile { +class ExportedFile { +public: ExportedFile(std::string const &, std::string const &); /// absolute name of the source file std::string sourceName; @@ -66,15 +67,24 @@ public: * with this method. * Then the exporter mechanism copies them to the right place, asks * for confirmation before overwriting existing files etc. + * \param format format that references the given file + * \param sourceName source file name. Needs to be absolute + * \param exportName resulting file name. Can be either absolute + * or relative to the exported document. + */ + void addExternalFile(std::string const & format, + 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 &, std::string const &, - std::string const &); - /// add a referenced file for one format. - /// The final name is the source file name without path - void addExternalFile(std::string const &, std::string const &); - /// get referenced files for one format + void addExternalFile(std::string const & format, + std::string const & sourceName); + /// get referenced files for \p format std::vector const - externalFiles(std::string const &) const; + externalFiles(std::string const & format) const; private: typedef std::map > FileMap; /** Files that are referenced by the export result in the