]> git.lyx.org Git - lyx.git/blobdiff - src/support/FileName.h
Let paragraph::requestSpellcheck() consider contained insets
[lyx.git] / src / support / FileName.h
index ac351c2386eb0782a2abbec6e23edca1c64e20e6..1cf1e730f4801704e2c955d1b132a4d60def40c8 100644 (file)
@@ -260,7 +260,7 @@ public:
         */
        void set(std::string const & filename, std::string const & buffer_path);
        ///
-       void erase();
+       void erase() override;
        ///
        bool saveAbsPath() const { return save_abs_path_; }
        /// \param buffer_path if empty, uses `pwd`
@@ -291,6 +291,14 @@ public:
        std::string
        mangledFileName(std::string const & dir = empty_string()) const;
 
+       /** Identical to mangledFileName, with the following additions:
+       *
+       * @encrypt_path allows using hash (SHA-256) instead of full path.
+       * @use_counter allows disabling the counter in the filename.
+       */
+       std::string
+       mangledFileName(std::string const & dir, bool use_counter, bool encrypt_path) const;
+
        /// \return the absolute file name without its .gz, .z, .Z extension
        std::string unzippedFileName() const;