mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 11:08:41 +00:00
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:
parent
c7d0862a94
commit
eda7b787b9
@ -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.
|
||||
|
@ -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
|
||||
|
@ -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) {
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user