XHTML for InsetNote.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29970 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2009-06-05 19:58:23 +00:00
parent c7d0862a94
commit eda7b787b9
4 changed files with 19 additions and 3 deletions

View File

@ -10,8 +10,8 @@ Known issues:
These insets are basically done, though there are probably issues here and there,
and there are even some FIXMEs:
Branch, Collapsable, Footnote, Hyperlink, Label, Line, Newline, Newpage, Quotes,
Space, SpecialChar
Branch, Collapsable, Footnote, Hyperlink, Label, Line, Note,
Newline, Newpage, Quotes, Space, SpecialChar
These insets probably do nothing:
OptArg, Phantom
@ -52,7 +52,6 @@ These do not yet work and need some attention:
InsetListings: Probably just output it as <pre>.
InsetMarginal: Fine, but will need CSS.
InsetNomencl: Also "advanced".
InsetNote: Need CSS, again.
InsetRef: Presumably, this is an internal link. But what should the text be, and how
should we get it? Probably some validation thing again, where labels tell us where
they are. Alternatively, we could parse the aux file.

View File

@ -126,6 +126,7 @@ InsetLayout Note:Comment
Size Small
EndFont
MultiPar true
HTMLTag !--
End
@ -151,6 +152,11 @@ InsetLayout Note:Greyedout
Size Small
EndFont
MultiPar true
HTMLTag span
HTMLAttr class='notegrey'
HTMLStyle
span.notegrey { color: gray; }
EndHTMLStyle
End
InsetLayout ERT

View File

@ -326,6 +326,15 @@ int InsetNote::docbook(odocstream & os, OutputParams const & runparams_in) const
}
int InsetNote::xhtml(odocstream & os, OutputParams const & rp) const
{
if (params_.type == InsetNoteParams::Note)
return 0;
return InsetCollapsable::xhtml(os, rp);
}
void InsetNote::validate(LaTeXFeatures & features) const
{
switch (params_.type) {

View File

@ -91,6 +91,8 @@ private:
///
int docbook(odocstream &, OutputParams const &) const;
///
int xhtml(odocstream &, OutputParams const &) const;
///
void validate(LaTeXFeatures &) const;
///
bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;