+2001-11-30 José Matos <jamatos@fep.up.pt>
+
+ * buffer.C (makeDocBookFile): add a comment to point a hack.
+ (simpleDocBookOnePar): changed a PAR::META_INSET to isInset().
+ Fixed a double write of labels.
+
2001-11-28 André Pönitz <poenitz@gmx.net>
* all the files from the change on 2001/11/26:
Change return code to string::npos when there have been no error
(0 was a bad idea when error is at first character)
+2001-11-14 José Matos <jamatos@fep.up.pt>
+
+ * buffer.h:
+ * buffer.C (simpleDocBookOnePar): removed unused argument.
+
2001-11-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* text.C (selectNextWordToSpellcheck): do not test explicitely for
// treat label as a special case for
// more WYSIWYM handling.
+ // This is a hack while paragraphs can't have
+ // attributes, like id in this case.
if (par->isInset(0)) {
Inset * inset = par->getInset(0);
Inset::Code lyx_code = inset->lyxCode();
}
}
- char c = par->getChar(i);
- if (c == Paragraph::META_INSET) {
+ if ( par->isInset(i) ) {
Inset * inset = par->getInset(i);
- inset->docbook(this, os);
+ // don't print the inset in position 0 if desc_on == 3 (label)
+ if ( i || desc_on != 3)
+ inset->docbook(this, os);
} else {
+ char c = par->getChar(i);
string sgml_string;
par->sgmlConvertChar(c, sgml_string);
+2001-11-30 José Matos <jamatos@fep.up.pt>
+
+ * inseturl.[Ch]:
+ * insettoc.[Ch]: DocBook -> docbook.
2001-11-29 André Pönitz <poenitz@gmx.net>
}
-int InsetTOC::DocBook(Buffer const *, std::ostream & os) const
+int InsetTOC::docbook(Buffer const *, std::ostream & os) const
{
if (getCmdName() == "tableofcontents")
os << "<toc></toc>";
///
int linuxdoc(Buffer const *, std::ostream &) const;
///
- int DocBook(Buffer const *, std::ostream &) const;
+ int docbook(Buffer const *, std::ostream &) const;
};
#endif
}
-int InsetUrl::DocBook(Buffer const *, ostream & os) const
+int InsetUrl::docbook(Buffer const *, ostream & os) const
{
os << "<ulink url=\"" << getContents() << "\">"
<< getOptions() << "</ulink>";
///
int linuxdoc(Buffer const *, std::ostream &) const;
///
- int DocBook(Buffer const *, std::ostream &) const;
+ int docbook(Buffer const *, std::ostream &) const;
};
#endif