mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 19:14:51 +00:00
Forgotten ChangeLogs, whitespace and some unnecessary namespace stuff removed
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7875 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
1e8ce61177
commit
fbd9df3dbb
@ -195,4 +195,3 @@ Template Date
|
||||
UpdateResult "$$Tempname"
|
||||
FormatEnd
|
||||
TemplateEnd
|
||||
|
||||
|
@ -188,7 +188,6 @@ src/mathed/ref_inset.C
|
||||
src/paragraph.C
|
||||
src/paragraph_funcs.C
|
||||
src/rowpainter.C
|
||||
src/support/path_defines.C
|
||||
src/text.C
|
||||
src/text2.C
|
||||
src/text3.C
|
||||
|
@ -1,3 +1,7 @@
|
||||
2003-10-07 Angus Leeming <leeming@lyx.org>
|
||||
|
||||
* factory.C (createInset): InsetExternal::Params -> InsetExternalParams
|
||||
|
||||
2003-10-07 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
|
||||
|
||||
* aspell.C:
|
||||
|
@ -1,3 +1,17 @@
|
||||
2003-10-07 Angus Leeming <leeming@lyx.org>
|
||||
|
||||
* ExternalSupport.[Ch]: new files, moving the private member functions
|
||||
and namespace anon functions out of insetexternal.C to here, so making
|
||||
it easier to understand what is going on in insetexternal itself.
|
||||
|
||||
* Makefile.am: add new files.
|
||||
|
||||
* insetexternal.[Ch]: InsetExternal::Params -> InsetExternalParams,
|
||||
allowing the class to be forward declared. (Also consistent with
|
||||
all other Params classes.)
|
||||
(write): moved out of the class. Move this function and those in
|
||||
namespace anon to ExternalSupport.[Ch].
|
||||
|
||||
2003-10-07 Angus Leeming <leeming@lyx.org>
|
||||
|
||||
* ExternalTemplate.[Ch] (TemplateManager::getTemplates): remove
|
||||
|
@ -29,12 +29,12 @@
|
||||
|
||||
#include "support/std_ostream.h"
|
||||
|
||||
|
||||
namespace support = lyx::support;
|
||||
|
||||
using std::endl;
|
||||
using std::string;
|
||||
|
||||
using std::ostream;
|
||||
using std::string;
|
||||
|
||||
|
||||
namespace lyx {
|
||||
@ -49,11 +49,10 @@ Template const * getTemplatePtr(InsetExternalParams const & params)
|
||||
|
||||
void editExternal(InsetExternalParams const & params, Buffer const & buffer)
|
||||
{
|
||||
external::Template const * const et_ptr =
|
||||
external::getTemplatePtr(params);
|
||||
Template const * const et_ptr = getTemplatePtr(params);
|
||||
if (!et_ptr)
|
||||
return;
|
||||
external::Template const & et = *et_ptr;
|
||||
Template const & et = *et_ptr;
|
||||
|
||||
if (et.editCommand.empty())
|
||||
return;
|
||||
@ -118,21 +117,19 @@ void updateExternal(InsetExternalParams const & params,
|
||||
Buffer const & buffer,
|
||||
bool external_in_tmpdir)
|
||||
{
|
||||
external::Template const * const et_ptr =
|
||||
external::getTemplatePtr(params);
|
||||
Template const * const et_ptr = getTemplatePtr(params);
|
||||
if (!et_ptr)
|
||||
return; // FAILURE
|
||||
external::Template const & et = *et_ptr;
|
||||
Template const & et = *et_ptr;
|
||||
|
||||
if (!et.automaticProduction)
|
||||
return; // NOT_NEEDED
|
||||
|
||||
external::Template::Formats::const_iterator cit =
|
||||
et.formats.find(format);
|
||||
Template::Formats::const_iterator cit = et.formats.find(format);
|
||||
if (cit == et.formats.end())
|
||||
return; // FAILURE
|
||||
|
||||
external::Template::Format const & outputFormat = cit->second;
|
||||
Template::Format const & outputFormat = cit->second;
|
||||
if (outputFormat.updateResult.empty())
|
||||
return; // NOT_NEEDED
|
||||
|
||||
@ -158,7 +155,7 @@ void updateExternal(InsetExternalParams const & params,
|
||||
|
||||
if (!converters.isReachable(from_format, to_format)) {
|
||||
lyxerr[Debug::EXTERNAL]
|
||||
<< "InsetExternal::updateExternal. "
|
||||
<< "external::updateExternal. "
|
||||
<< "Unable to convert from "
|
||||
<< from_format << " to " << to_format << endl;
|
||||
return; // FAILURE
|
||||
@ -208,14 +205,12 @@ int writeExternal(InsetExternalParams const & params,
|
||||
Buffer const & buffer, ostream & os,
|
||||
bool external_in_tmpdir)
|
||||
{
|
||||
external::Template const * const et_ptr =
|
||||
external::getTemplatePtr(params);
|
||||
Template const * const et_ptr = getTemplatePtr(params);
|
||||
if (!et_ptr)
|
||||
return 0;
|
||||
external::Template const & et = *et_ptr;
|
||||
Template const & et = *et_ptr;
|
||||
|
||||
external::Template::Formats::const_iterator cit =
|
||||
et.formats.find(format);
|
||||
Template::Formats::const_iterator cit = et.formats.find(format);
|
||||
if (cit == et.formats.end()) {
|
||||
lyxerr[Debug::EXTERNAL]
|
||||
<< "External template format '" << format
|
||||
|
Loading…
Reference in New Issue
Block a user