add support for revision history related tags.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2885
a592a061-630c-0410-9148-
cb99ea01b6c8
+2001-10-15 José Matos <jamatos@fep.up.pt>
+
+ * layouts/db_stdtitle.inc: add AuthorGroup, RevisionHistory,
+ RevisionMark and Revision styles.
+
2001-10-12 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* scripts/TeXFiles.sh: use -follow predicate in "find" to follow
2001-10-12 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* scripts/TeXFiles.sh: use -follow predicate in "find" to follow
+# Authorgroup
+Style Authorgroup
+ CopyStyle Author
+ LatexType Environment
+ LatexName authorgroup
+ LatexParam author
+End
+
# first name style definition
Style FirstName
Margin Static
# first name style definition
Style FirstName
Margin Static
LatexType Paragraph
LatexName date
End
LatexType Paragraph
LatexName date
End
+
+# Revision History style definition
+Style RevisionHistory
+ Margin Static
+ LatexType Command
+ LatexName revhistory
+ LatexParam "3|!-- --"
+ LeftMargin MMM
+ RightMargin MMM
+ ParIndent MM
+ TopSep 0.7
+ BottomSep 0
+ ParSep 0
+ Align Block
+ AlignPossible Block
+ KeepEmpty 1
+ LabelType Centered_Top_Environment
+ LabelString "Revision History"
+ LabelBottomSep 0.5
+
+End
+
+# Revision style definition
+Style Revision
+ Margin Dynamic
+ LatexType Command
+ LatexName revision
+ LatexParam "4|revnumber"
+ LabelSep xxx
+ ParSkip 0.4
+ TopSep 0.9
+ BottomSep 0.5
+ ParSep 0.5
+ Align Block
+ AlignPossible Block
+
+End
+
+# RevisionRemark style definition
+Style RevisionRemark
+ Margin Static
+ LatexType Paragraph
+ InTitle 1
+ LatexName revremark
+ LabelSep xxx
+ ParIndent MM
+ ParSkip 0.0
+ TopSep 0.0
+ BottomSep 0.0
+ ParSep 1
+ Align Block
+ AlignPossible Block
+ LabelType No_Label
+
+End
+2001-10-15 José Matos <jamatos@fep.up.pt>
+
+ * insetert.C: allow export for docbook and linuxdoc
+
2001-10-07 Adrien Rebollo <adrien.rebollo@gmx.fr>
* insetquotes.C (dispString): handles latin3 and latin4 quotes
2001-10-07 Adrien Rebollo <adrien.rebollo@gmx.fr>
* insetquotes.C (dispString): handles latin3 and latin4 quotes
-int InsetERT::linuxdoc(Buffer const *, std::ostream &) const
+int InsetERT::linuxdoc(Buffer const *, std::ostream & os) const
+ Paragraph * par = inset.paragraph();
+ int lines = 0;
+ while (par) {
+ Paragraph::size_type siz = par->size();
+ for (Paragraph::size_type i = 0; i < siz; ++i) {
+ Paragraph::value_type c = par->getChar(i);
+ switch (c) {
+ case Paragraph::META_NEWLINE:
+ os << '\n';
+ ++lines;
+ break;
+ default:
+ os << c;
+ break;
+ }
+ }
+ par = par->next();
+ if (par) {
+ os << "\n";
+ lines ++;
+ }
+ }
+
+ return lines;
-int InsetERT::docbook(Buffer const *, std::ostream &) const
+int InsetERT::docbook(Buffer const *, std::ostream & os) const
+ Paragraph * par = inset.paragraph();
+ int lines = 0;
+ while (par) {
+ Paragraph::size_type siz = par->size();
+ for (Paragraph::size_type i = 0; i < siz; ++i) {
+ Paragraph::value_type c = par->getChar(i);
+ switch (c) {
+ case Paragraph::META_NEWLINE:
+ os << '\n';
+ ++lines;
+ break;
+ default:
+ os << c;
+ break;
+ }
+ }
+ par = par->next();
+ if (par) {
+ os << "\n";
+ lines ++;
+ }
+ }
+
+ return lines;