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:
Peter Kümmel 2007-12-02 10:43:11 +00:00
parent eec779b2c9
commit 2507fd4345
5 changed files with 45 additions and 12 deletions

View File

@ -91,6 +91,7 @@
#include "support/Path.h" #include "support/Path.h"
#include "support/textutils.h" #include "support/textutils.h"
#include "support/types.h" #include "support/types.h"
#include "support/FileZipListDir.h"
#if !defined (HAVE_FORK) #if !defined (HAVE_FORK)
# define fork() -1 # define fork() -1

View File

@ -33,6 +33,7 @@
#include "support/Package.h" #include "support/Package.h"
#include "support/Path.h" #include "support/Path.h"
#include "support/Systemcall.h" #include "support/Systemcall.h"
#include "support/FileZipListDir.h"
using std::find_if; using std::find_if;
using std::string; using std::string;

View File

@ -32,6 +32,7 @@
#include "support/convert.h" #include "support/convert.h"
#include "support/lyxlib.h" #include "support/lyxlib.h"
#include "support/lstrings.h" #include "support/lstrings.h"
#include "support/FileZipListDir.h"
#include <sstream> #include <sstream>
#include <fstream> #include <fstream>

View 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

View File

@ -15,7 +15,6 @@
#include "support/docstring.h" #include "support/docstring.h"
#include "support/FileName.h" #include "support/FileName.h"
#include <vector>
#include <utility> #include <utility>
#include <string> #include <string>
@ -275,21 +274,10 @@ typedef std::pair<int, std::string> cmd_ret;
cmd_ret const runCommand(std::string const & cmd); 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 support
} // namespace lyx } // 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 #endif