mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Whitespace only.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40886 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
45676a6259
commit
488b9ae3a2
@ -23,7 +23,7 @@
|
||||
#include "support/lstrings.h"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
|
||||
using namespace std;
|
||||
using namespace lyx::support;
|
||||
|
||||
@ -34,11 +34,11 @@ namespace lyx {
|
||||
ModuleList theModuleList;
|
||||
|
||||
|
||||
LyXModule::LyXModule(string const & n, string const & i,
|
||||
LyXModule::LyXModule(string const & n, string const & i,
|
||||
string const & d, vector<string> const & p,
|
||||
vector<string> const & r, vector<string> const & e,
|
||||
string const & c):
|
||||
name_(n), id_(i), description_(d), package_list_(p),
|
||||
name_(n), id_(i), description_(d), package_list_(p),
|
||||
required_modules_(r), excluded_modules_(e), category_(c),
|
||||
checked_(false)
|
||||
{
|
||||
@ -69,7 +69,7 @@ bool LyXModule::isAvailable() const {
|
||||
available_ = true;
|
||||
//check whether all of the required packages are available
|
||||
vector<string>::const_iterator it = package_list_.begin();
|
||||
vector<string>::const_iterator end = package_list_.end();
|
||||
vector<string>::const_iterator end = package_list_.end();
|
||||
for (; it != end; ++it) {
|
||||
if (!LaTeXFeatures::isAvailable(*it)) {
|
||||
available_ = false;
|
||||
@ -211,7 +211,7 @@ bool ModuleList::read()
|
||||
addLayoutModule(modname, fname, desc, pkgs, req, exc, catgy);
|
||||
} // end switch
|
||||
} //end while
|
||||
|
||||
|
||||
LYXERR(Debug::TCLASS, "End of parsing of lyxmodules.lst");
|
||||
|
||||
if (!theModuleList.empty())
|
||||
@ -220,7 +220,7 @@ bool ModuleList::read()
|
||||
}
|
||||
|
||||
|
||||
void ModuleList::addLayoutModule(string const & modname,
|
||||
void ModuleList::addLayoutModule(string const & modname,
|
||||
string const & filename, string const & description,
|
||||
vector<string> const & pkgs, vector<string> const & req,
|
||||
vector<string> const & exc, string const & catgy)
|
||||
|
@ -17,14 +17,14 @@
|
||||
#include <vector>
|
||||
|
||||
namespace lyx {
|
||||
|
||||
|
||||
/**
|
||||
* This class represents a particular LyX "module", which is a like a layout
|
||||
* file, except that it does not stand alone. In that sense, it is more like
|
||||
* a LaTeX package, where a layout file corresponds to a LaTeX class. Or, in
|
||||
* file, except that it does not stand alone. In that sense, it is more like
|
||||
* a LaTeX package, where a layout file corresponds to a LaTeX class. Or, in
|
||||
* LyX's own terms, a module is more like an included file that can be used
|
||||
* with various document classes. The difference is that using a module only
|
||||
* means selecting it in the Document>Settings dialog, whereas including a
|
||||
* means selecting it in the Document>Settings dialog, whereas including a
|
||||
* layout file means layout file editing.
|
||||
*
|
||||
* In general, a given module can be used with any document class. That said,
|
||||
@ -39,7 +39,7 @@ namespace lyx {
|
||||
* #Excludes: theorems-chap
|
||||
* #Category: theorems
|
||||
* The description is used in the gui to give information to the user. The
|
||||
* Requires, Excludes, and Categofy lines are read by the configuration script
|
||||
* Requires, Excludes, and Categofy lines are read by the configuration script
|
||||
* and written to a file lyxmodules.lst in the user configuration directory.
|
||||
* That file is then read on startup to populate the ModuleList, below.
|
||||
*
|
||||
@ -50,10 +50,10 @@ namespace lyx {
|
||||
class LyXModule {
|
||||
public:
|
||||
///
|
||||
LyXModule(std::string const & name, std::string const & id,
|
||||
std::string const & description,
|
||||
LyXModule(std::string const & name, std::string const & id,
|
||||
std::string const & description,
|
||||
std::vector<std::string> const & packagelist,
|
||||
std::vector<std::string> const & requires,
|
||||
std::vector<std::string> const & requires,
|
||||
std::vector<std::string> const & excludes,
|
||||
std::string const & catgy);
|
||||
/// whether the required packages are available
|
||||
@ -72,10 +72,10 @@ public:
|
||||
std::vector<std::string> const & getPackageList() const
|
||||
{ return package_list_; }
|
||||
///
|
||||
std::vector<std::string> const & getRequiredModules() const
|
||||
std::vector<std::string> const & getRequiredModules() const
|
||||
{ return required_modules_; }
|
||||
/// Modules this one excludes: the list should be treated disjunctively
|
||||
std::vector<std::string> const & getExcludedModules() const
|
||||
std::vector<std::string> const & getExcludedModules() const
|
||||
{ return excluded_modules_; }
|
||||
///
|
||||
std::string category() const { return category_; }
|
||||
@ -139,7 +139,7 @@ public:
|
||||
/// Returns a pointer to the LyXModule with filename str.
|
||||
/// Returns a null pointer if no such module is found.
|
||||
LyXModule const * operator[](std::string const & str) const;
|
||||
///
|
||||
///
|
||||
LyXModule * operator[](std::string const & str);
|
||||
private:
|
||||
/// noncopyable
|
||||
@ -147,7 +147,7 @@ public:
|
||||
///
|
||||
void operator=(ModuleList const &);
|
||||
/// add a module to the list
|
||||
void addLayoutModule(std::string const &, std::string const &,
|
||||
void addLayoutModule(std::string const &, std::string const &,
|
||||
std::string const &, std::vector<std::string> const &,
|
||||
std::vector<std::string> const &, std::vector<std::string> const &,
|
||||
std::string const &);
|
||||
|
@ -2203,7 +2203,7 @@ void GuiDocument::updateModuleInfo()
|
||||
if (focus_on_selected)
|
||||
lv = modulesModule->selectedLV;
|
||||
else
|
||||
lv= modulesModule->availableLV;
|
||||
lv = modulesModule->availableLV;
|
||||
if (lv->selectionModel()->selectedIndexes().isEmpty()) {
|
||||
modulesModule->infoML->document()->clear();
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user