They were implementation-specific and do not impact on the interface anyway.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39709
a592a061-630c-0410-9148-
cb99ea01b6c8
#include "support/Translator.h"
#include <algorithm>
#include "support/Translator.h"
#include <algorithm>
+#include <map>
+#include <ctime>
// FIXME: Q_WS_MACX is not available, it's in Qt
#ifdef USE_MACOSX_PACKAGING
// FIXME: Q_WS_MACX is not available, it's in Qt
#ifdef USE_MACOSX_PACKAGING
+/// Used to store last timestamp of file and whether it is (was) zipped
+struct ZippedInfo {
+ bool zipped;
+ std::time_t timestamp;
+ ZippedInfo(bool zipped, std::time_t timestamp)
+ : zipped(zipped), timestamp(timestamp) { }
+};
+
+
+/// Mapping absolute pathnames of files to their ZippedInfo metadata.
+static std::map<std::string, ZippedInfo> zipped_;
+
+
bool Formats::isZippedFile(support::FileName const & filename) const {
string const & fname = filename.absFileName();
time_t timestamp = filename.lastModified();
bool Formats::isZippedFile(support::FileName const & filename) const {
string const & fname = filename.absFileName();
time_t timestamp = filename.lastModified();
#include "OutputParams.h"
#include <vector>
#include "OutputParams.h"
#include <vector>
-#include <map>
-#include <ctime>
private:
///
FormatList formatlist;
private:
///
FormatList formatlist;
- /// Used to store last timestamp of file and whether it is (was) zipped
- struct ZippedInfo {
- bool zipped; std::time_t timestamp;
- ZippedInfo(bool zipped, std::time_t timestamp)
- : zipped(zipped), timestamp(timestamp) { }
- };
- ///
- mutable std::map<std::string, ZippedInfo> zipped_;