From 4a86c407d9f802b29bed47f88746d8ea122a330b Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Thu, 18 Jun 2009 20:44:38 +0000 Subject: [PATCH] Disable XHTML output for InsetExternal---for the time being. As said in the comment, someone who knows what these are supposed to do should have a look, please. It may be very easy to get these to work, but I don't know. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30164 a592a061-630c-0410-9148-cb99ea01b6c8 --- development/HTML/HTML.notes | 3 ++- src/insets/InsetExternal.cpp | 9 +++++++++ src/insets/InsetExternal.h | 3 +++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/development/HTML/HTML.notes b/development/HTML/HTML.notes index fddefb1209..df20bbd977 100644 --- a/development/HTML/HTML.notes +++ b/development/HTML/HTML.notes @@ -42,6 +42,8 @@ These insets do not work but should be completely straightforward: Caption These insets do not work and are not yet scheduled to work: + InsetExternal: It may be that this won't be too hard, but I don't understand + these so am not sure what to do. For now, it is disabled. InsetIndex and InsetPrintIndex: An "advanced" case. What really would be cool would be to collect all of these and then write the index as a series of links back to the occurrences. But not now. @@ -51,7 +53,6 @@ May need to make use here of TocWidget::itemInset, which should then be moved to TocBackend. These do not yet work and need some attention: - InsetExternal: I don't understand these so am not sure what to do. InsetFloat: This will need some work, again because I do not really understand what these are meant to do. Presumably, we'll just use a div or something, but it's not clear what subfloat means, etc. diff --git a/src/insets/InsetExternal.cpp b/src/insets/InsetExternal.cpp index b773a20204..c732024a23 100644 --- a/src/insets/InsetExternal.cpp +++ b/src/insets/InsetExternal.cpp @@ -682,6 +682,15 @@ int InsetExternal::docbook(odocstream & os, } +docstring InsetExternal::xhtml(odocstream & os, + OutputParams const & rp) const { +// external::writeExternal(params_, "XHTML", buffer(), os, +// *(runparams.exportdata), false, +// runparams.dryrun || runparams.inComment); + return docstring(); +} + + void InsetExternal::validate(LaTeXFeatures & features) const { if (params_.draft) diff --git a/src/insets/InsetExternal.h b/src/insets/InsetExternal.h index c41adea0af..5f9d9b7da7 100644 --- a/src/insets/InsetExternal.h +++ b/src/insets/InsetExternal.h @@ -133,6 +133,9 @@ private: int plaintext(odocstream &, OutputParams const &) const; /// int docbook(odocstream &, OutputParams const &) const; + /// For now, this does nothing. Someone who knows about this + /// should see what needs doing for XHTML output. + docstring xhtml(odocstream &, OutputParams const &) const; /// Update needed features for this inset. void validate(LaTeXFeatures & features) const; ///