mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-02 08:10:39 +00:00
add suport for ert export for docbook and linuxdoc
add support for revision history related tags. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2885 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
e7cb07258f
commit
e7ac80f17d
@ -1,3 +1,8 @@
|
||||
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
|
||||
|
@ -21,6 +21,14 @@ Style Author
|
||||
KeepEmpty 1
|
||||
End
|
||||
|
||||
# Authorgroup
|
||||
Style Authorgroup
|
||||
CopyStyle Author
|
||||
LatexType Environment
|
||||
LatexName authorgroup
|
||||
LatexParam author
|
||||
End
|
||||
|
||||
# first name style definition
|
||||
Style FirstName
|
||||
Margin Static
|
||||
@ -50,3 +58,58 @@ Style Date
|
||||
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
|
||||
|
@ -1,3 +1,7 @@
|
||||
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
|
||||
|
@ -348,15 +348,61 @@ int InsetERT::ascii(Buffer const *,
|
||||
}
|
||||
|
||||
|
||||
int InsetERT::linuxdoc(Buffer const *, std::ostream &) const
|
||||
int InsetERT::linuxdoc(Buffer const *, std::ostream & os) const
|
||||
{
|
||||
return 0;
|
||||
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
|
||||
{
|
||||
return 0;
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user