mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 13:31:49 +00:00
Some renaming (has been discussed a long time ago)
* src/LaTeXFeatures.[Ch] (LaTeXFeatures::addExternalPreamble): rename to addPreambleSnippet, since this is not specialized for InsetExternal at all * src/insets/insetexternal.C (InsetExternal::validate): reflect name change above git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16784 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
fb84e1ca52
commit
b9d1b797c9
@ -160,7 +160,7 @@ bool LaTeXFeatures::isAvailable(string const & name) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void LaTeXFeatures::addExternalPreamble(string const & preamble)
|
void LaTeXFeatures::addPreambleSnippet(string const & preamble)
|
||||||
{
|
{
|
||||||
FeaturesList::const_iterator begin = preamble_snippets_.begin();
|
FeaturesList::const_iterator begin = preamble_snippets_.begin();
|
||||||
FeaturesList::const_iterator end = preamble_snippets_.end();
|
FeaturesList::const_iterator end = preamble_snippets_.end();
|
||||||
|
@ -66,7 +66,7 @@ public:
|
|||||||
/// Print requirements to lyxerr
|
/// Print requirements to lyxerr
|
||||||
void showStruct() const;
|
void showStruct() const;
|
||||||
///
|
///
|
||||||
void addExternalPreamble(std::string const &);
|
void addPreambleSnippet(std::string const &);
|
||||||
/// Provide a string name-space to the requirements
|
/// Provide a string name-space to the requirements
|
||||||
void require(std::string const & name);
|
void require(std::string const & name);
|
||||||
/// Which of the required packages are installed?
|
/// Which of the required packages are installed?
|
||||||
|
@ -780,7 +780,7 @@ void InsetExternal::validate(LaTeXFeatures & features) const
|
|||||||
for (; it != end; ++it) {
|
for (; it != end; ++it) {
|
||||||
string const preamble = etm.getPreambleDefByName(*it);
|
string const preamble = etm.getPreambleDefByName(*it);
|
||||||
if (!preamble.empty())
|
if (!preamble.empty())
|
||||||
features.addExternalPreamble(preamble);
|
features.addPreambleSnippet(preamble);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user