]> git.lyx.org Git - features.git/commitdiff
InsetFootnote XHTML output. Of course the CSS can be modified, but
authorRichard Heck <rgheck@comcast.net>
Fri, 5 Jun 2009 19:25:49 +0000 (19:25 +0000)
committerRichard Heck <rgheck@comcast.net>
Fri, 5 Jun 2009 19:25:49 +0000 (19:25 +0000)
this is pretty cool, I think.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29965 a592a061-630c-0410-9148-cb99ea01b6c8

lib/layouts/stdinsets.inc
src/insets/InsetFoot.cpp
src/insets/InsetFoot.h

index a1d7c7e097f9292df17adf89c563e5c4f1fcace7..19068860efbc27dad124891264048d572d99ca2f 100644 (file)
@@ -99,6 +99,21 @@ InsetLayout Foot
        MultiPar              true
        HTMLTag               span
        HTMLAttr              class='footnote'
+       HTMLStyle
+               span.notenum { 
+                       vertical-align: super; 
+                       font-size: smaller; 
+               }
+               span.footnote {
+                       display: none;
+               }
+               span.footwrapper:hover span.footnote { 
+                       display: block; 
+                       border: 1px double black; 
+                       margin: 0em 1em;
+                       padding: 1em;
+               }
+       EndHTMLStyle
 End
 
 InsetLayout Note:Comment
index 122eaecc8a14fdaffd7e3e654fef1db9149fd97e..22fa7f6f83aa6aa762ec8151f6aa49645701820f 100644 (file)
@@ -128,4 +128,14 @@ int InsetFoot::docbook(odocstream & os, OutputParams const & runparams) const
 }
 
 
+int InsetFoot::xhtml(odocstream & os, OutputParams const & runparams) const
+{
+       // FIXME It'd be nice to output the note number, but we'd need to save 
+       // that when we go through updateLabels.
+       os << "<span class='footwrapper'><span class='notenum'>Note</span>\n";
+       InsetCollapsable::xhtml(os, runparams);
+       os << "\n</span>\n";
+       return 0;
+}
+
 } // namespace lyx
index a2c1b7421c9aa73aafbb09359c5a07cf90791f8f..e25e93138dd1d690d189730a7393df67eccd94a9 100644 (file)
@@ -38,6 +38,8 @@ private:
        ///
        int docbook(odocstream &, OutputParams const &) const;
        ///
+       int xhtml(odocstream &, OutputParams const &) const;
+       ///
        docstring editMessage() const;
        /// Update the counters of this inset and of its contents
        void updateLabels(ParIterator const &);