mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28455 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
9db713da16
commit
7e4d4d2641
@ -82,8 +82,7 @@ LayoutFile const & LayoutFileList::operator[](string const & classname) const
|
||||
}
|
||||
|
||||
|
||||
LayoutFile &
|
||||
LayoutFileList::operator[](string const & classname)
|
||||
LayoutFile & LayoutFileList::operator[](string const & classname)
|
||||
{
|
||||
LASSERT(haveClass(classname), /**/);
|
||||
return *classmap_[classname];
|
||||
|
@ -67,8 +67,10 @@ public:
|
||||
///
|
||||
std::list<std::string> const & defaultModules() const
|
||||
{ return default_modules_; }
|
||||
///
|
||||
std::list<std::string> const & providedModules() const
|
||||
{ return provided_modules_; }
|
||||
///
|
||||
std::list<std::string> const & excludedModules() const
|
||||
{ return excluded_modules_; }
|
||||
private:
|
||||
@ -92,6 +94,7 @@ class LayoutFileList {
|
||||
public:
|
||||
///
|
||||
LayoutFileList() {}
|
||||
///
|
||||
~LayoutFileList();
|
||||
/// \return The sole instance of this class.
|
||||
static LayoutFileList & get();
|
||||
@ -99,9 +102,11 @@ public:
|
||||
bool empty() const { return classmap_.empty(); }
|
||||
///
|
||||
bool haveClass(std::string const & classname) const;
|
||||
///
|
||||
/// Note that this will assert if we don't have classname, so
|
||||
/// check via haveClass() first.
|
||||
LayoutFile const & operator[](std::string const & classname) const;
|
||||
///
|
||||
/// Note that this will assert if we don't have classname, so
|
||||
/// check via haveClass() first.
|
||||
LayoutFile & operator[](std::string const & classname);
|
||||
/// Read textclass list. Returns false if this fails.
|
||||
bool read();
|
||||
|
Loading…
Reference in New Issue
Block a user