]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCharStyle.cpp
Streamlining CollapseStatus stuff
[lyx.git] / src / insets / InsetCharStyle.cpp
index 9bb7ae27741aacc768d2c718d1215753ab7385cc..955d335e34c4dcf3166c04e4e9718a87c9bba04f 100644 (file)
@@ -51,7 +51,6 @@ using std::ostringstream;
 
 void InsetCharStyle::init()
 {
-       setInlined();
        setDrawFrame(false);
 }
 
@@ -134,7 +133,6 @@ void InsetCharStyle::read(Buffer const & buf, Lexer & lex)
 {
        params_.read(lex);
        InsetCollapsable::read(buf, lex);
-       setInlined();
 }
 
 
@@ -236,9 +234,8 @@ void InsetCharStyle::getDrawFont(Font & font) const
 
 void InsetCharStyle::doDispatch(Cursor & cur, FuncRequest & cmd)
 {
-       setInlined();
        switch (cmd.action) {
-       
+
        case LFUN_MOUSE_RELEASE:
                        if (cmd.button() == mouse_button::button3)
                                params_.show_label = !params_.show_label;
@@ -283,7 +280,7 @@ bool InsetCharStyle::getStatus(Cursor & cur, FuncRequest const & cmd,
 
 
 int InsetCharStyle::latex(Buffer const & buf, odocstream & os,
-                          OutputParams const & runparams) const
+                         OutputParams const & runparams) const
 {
        if (!undefined()) {
                // FIXME UNICODE
@@ -300,23 +297,23 @@ int InsetCharStyle::latex(Buffer const & buf, odocstream & os,
 
 
 int InsetCharStyle::plaintext(Buffer const & buf, odocstream & os,
-                              OutputParams const & runparams) const
+                             OutputParams const & runparams) const
 {
        return InsetText::plaintext(buf, os, runparams);
 }
 
 
 int InsetCharStyle::docbook(Buffer const & buf, odocstream & os,
-                            OutputParams const & runparams) const
+                           OutputParams const & runparams) const
 {
        ParagraphList::const_iterator beg = paragraphs().begin();
        ParagraphList::const_iterator par = paragraphs().begin();
        ParagraphList::const_iterator end = paragraphs().end();
 
        if (!undefined())
-                // FIXME UNICODE
-                sgml::openTag(os, params_.latexname,
-                              par->getID(buf, runparams) + params_.latexparam);
+               // FIXME UNICODE
+               sgml::openTag(os, params_.latexname,
+                             par->getID(buf, runparams) + params_.latexparam);
 
        for (; par != end; ++par) {
                par->simpleDocBookOnePar(buf, os, runparams,