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:
Georg Baum 2007-01-20 17:08:39 +00:00
parent fb84e1ca52
commit b9d1b797c9
3 changed files with 3 additions and 3 deletions

View File

@ -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();

View File

@ -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?

View File

@ -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);
} }
} }