]> git.lyx.org Git - features.git/commitdiff
Get InsetCollapsable working, at least to some extent.
authorRichard Heck <rgheck@comcast.net>
Fri, 5 Jun 2009 18:57:53 +0000 (18:57 +0000)
committerRichard Heck <rgheck@comcast.net>
Fri, 5 Jun 2009 18:57:53 +0000 (18:57 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29963 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetCollapsable.cpp
src/insets/InsetCollapsable.h

index ac1bc3a8e9a9211a6ed3072efae03a869e46ab9b..5eec355c68c4adb635f03185a2a69fd2e371b453 100644 (file)
@@ -28,6 +28,7 @@
 #include "LaTeXFeatures.h"
 #include "Lexer.h"
 #include "MetricsInfo.h"
+#include "output_xhtml.h"
 #include "paragraph_funcs.h"
 #include "ParagraphParameters.h"
 #include "sgml.h"
@@ -871,6 +872,19 @@ int InsetCollapsable::docbook(odocstream & os, OutputParams const & runparams) c
 }
 
 
+int InsetCollapsable::xhtml(odocstream & os, OutputParams const & runparams) const
+{
+       InsetLayout const & il = getLayout();
+       bool opened = false;
+       if (!undefined())
+               opened = html::openTag(os, il.htmltag(), il.htmlattr());
+       InsetText::xhtml(os, runparams);
+       if (opened && !undefined())
+               html::closeTag(os, il.htmltag());
+       return 0;
+}
+
+
 void InsetCollapsable::validate(LaTeXFeatures & features) const
 {
        features.useInsetLayout(getLayout());
index 73fde24e8c2de0342ac0139f6ed34c989758b8a2..4e69f893c3d92c3911d8013f46aea5ed971f36c0 100644 (file)
@@ -144,6 +144,8 @@ public:
        ///
        int docbook(odocstream &, OutputParams const &) const;
        ///
+       int xhtml(odocstream &, OutputParams const &) const;
+       ///
        void validate(LaTeXFeatures &) const;
        ///
        InsetCode lyxCode() const { return COLLAPSABLE_CODE; }