From b9d1b797c9177894b03fdb7760530a14c57323cb Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Sat, 20 Jan 2007 17:08:39 +0000 Subject: [PATCH] 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 --- src/LaTeXFeatures.C | 2 +- src/LaTeXFeatures.h | 2 +- src/insets/insetexternal.C | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/LaTeXFeatures.C b/src/LaTeXFeatures.C index faf5df9b82..46df0fec7c 100644 --- a/src/LaTeXFeatures.C +++ b/src/LaTeXFeatures.C @@ -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 end = preamble_snippets_.end(); diff --git a/src/LaTeXFeatures.h b/src/LaTeXFeatures.h index 48524f30a2..e03457c12d 100644 --- a/src/LaTeXFeatures.h +++ b/src/LaTeXFeatures.h @@ -66,7 +66,7 @@ public: /// Print requirements to lyxerr void showStruct() const; /// - void addExternalPreamble(std::string const &); + void addPreambleSnippet(std::string const &); /// Provide a string name-space to the requirements void require(std::string const & name); /// Which of the required packages are installed? diff --git a/src/insets/insetexternal.C b/src/insets/insetexternal.C index a047a4fb94..0eed62d01c 100644 --- a/src/insets/insetexternal.C +++ b/src/insets/insetexternal.C @@ -780,7 +780,7 @@ void InsetExternal::validate(LaTeXFeatures & features) const for (; it != end; ++it) { string const preamble = etm.getPreambleDefByName(*it); if (!preamble.empty()) - features.addExternalPreamble(preamble); + features.addPreambleSnippet(preamble); } }