mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
reduce <vector> include from 73 to 3
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21909 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
eec779b2c9
commit
2507fd4345
@ -91,6 +91,7 @@
|
||||
#include "support/Path.h"
|
||||
#include "support/textutils.h"
|
||||
#include "support/types.h"
|
||||
#include "support/FileZipListDir.h"
|
||||
|
||||
#if !defined (HAVE_FORK)
|
||||
# define fork() -1
|
||||
|
@ -33,6 +33,7 @@
|
||||
#include "support/Package.h"
|
||||
#include "support/Path.h"
|
||||
#include "support/Systemcall.h"
|
||||
#include "support/FileZipListDir.h"
|
||||
|
||||
using std::find_if;
|
||||
using std::string;
|
||||
|
@ -32,6 +32,7 @@
|
||||
#include "support/convert.h"
|
||||
#include "support/lyxlib.h"
|
||||
#include "support/lstrings.h"
|
||||
#include "support/FileZipListDir.h"
|
||||
|
||||
#include <sstream>
|
||||
#include <fstream>
|
||||
|
42
src/support/FileZipListDir.h
Normal file
42
src/support/FileZipListDir.h
Normal file
@ -0,0 +1,42 @@
|
||||
// -*- C++ -*-
|
||||
/**
|
||||
* \file FileZipDir.h
|
||||
* This file is part of LyX, the document processor.
|
||||
* Licence details can be found in the file COPYING.
|
||||
*
|
||||
* \author Lars Gullik Bjønnes
|
||||
*
|
||||
* Full author contact details are available in file CREDITS.
|
||||
*/
|
||||
|
||||
#ifndef LYX_FILEZIPDIR_H
|
||||
#define LYX_FILEZIPDIR_H
|
||||
|
||||
#include "support/docstring.h"
|
||||
#include "support/filetools.h"
|
||||
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <string>
|
||||
|
||||
namespace lyx {
|
||||
namespace support {
|
||||
|
||||
/// \return list other files in the directory having optional extension 'ext'.
|
||||
std::vector<FileName> dirList(FileName const & filename, std::string const & ext);
|
||||
|
||||
|
||||
} // namespace support
|
||||
} // namespace lyx
|
||||
|
||||
/// The following functions are implemented in minizip/zipunzip.cpp, and are not in
|
||||
/// the lyx::support namespace
|
||||
|
||||
/// zip several files to a zipfile. In-zip filenames are also specified
|
||||
bool zipFiles(std::string const & zipfile, std::vector<std::pair<std::string, std::string> > const & files);
|
||||
|
||||
/// Unzip a zip file to a directory
|
||||
bool unzipToDir(std::string const & zipfile, std::string const & path);
|
||||
|
||||
|
||||
#endif
|
@ -15,7 +15,6 @@
|
||||
#include "support/docstring.h"
|
||||
#include "support/FileName.h"
|
||||
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <string>
|
||||
|
||||
@ -275,21 +274,10 @@ typedef std::pair<int, std::string> cmd_ret;
|
||||
|
||||
cmd_ret const runCommand(std::string const & cmd);
|
||||
|
||||
/// \return list other files in the directory having optional extension 'ext'.
|
||||
std::vector<FileName> dirList(FileName const & filename, std::string const & ext);
|
||||
|
||||
|
||||
} // namespace support
|
||||
} // namespace lyx
|
||||
|
||||
/// The following functions are implemented in minizip/zipunzip.cpp, and are not in
|
||||
/// the lyx::support namespace
|
||||
|
||||
/// zip several files to a zipfile. In-zip filenames are also specified
|
||||
bool zipFiles(std::string const & zipfile, std::vector<std::pair<std::string, std::string> > const & files);
|
||||
|
||||
/// Unzip a zip file to a directory
|
||||
bool unzipToDir(std::string const & zipfile, std::string const & path);
|
||||
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user