For linuxdoc and docbook:

* add empty methods to insetnote (as latex)
   * fix use of uninitialized varible in insetquote
   * fix standard style in layout files.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3664 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
José Matox 2002-03-05 13:38:40 +00:00
parent a2a6509aff
commit d228f08abd
9 changed files with 39 additions and 5 deletions

View File

@ -1,3 +1,10 @@
2002-03-05 Jose Abilio Oliveira Matos <jamatos@novalis.fc.up.pt>
* layouts/db_stdclass.inc:
* layouts/linuxdoc.layout:
* layouts/manpage.layout: set DefaultStyle
2002-03-04 Herbert Voss <voss@perce.de>
* configure.m4: fix the problem with tgif's xpm export

View File

@ -12,6 +12,7 @@ Columns 1
Sides 1
SecNumDepth 3
TocDepth 3
DefaultStyle Standard
# This is just to show how to declare the default font.
# The defaults are exactly those shown here.

View File

@ -9,6 +9,7 @@ Sides 1
PageStyle Plain
MaxCounter Counter_Section
OutputType linuxdoc
DefaultStyle Standard
# Standard style definition
Style Standard

View File

@ -7,8 +7,9 @@
Columns 1
Sides 1
PageStyle Plain
MaxCounter Counter_Subsection
MaxCounter Counter_Section
OutputType linuxdoc
DefaultStyle Standard
# Standard style definition
Style Standard

View File

@ -1,3 +1,8 @@
2002-03-05 José Abílio Oliveira Matos <jamatos@novalis.fc.up.pt>
* buffer.C (makeLinuxDocFile, makeDocBookFile): take in account the
final location of file, for the included files, and graphics.
2002-03-05 Juergen Vigna <jug@sad.it>
* CutAndPaste.C (pasteSelection): fix the depth level on paste.

View File

@ -2627,7 +2627,9 @@ void Buffer::makeLinuxDocFile(string const & fname, bool nice, bool body_only)
ofs << "<!doctype linuxdoc system";
string preamble = params.preamble;
preamble += features.getIncludedFiles(fname);
const string name = nice ? ChangeExtension(filename_, ".sgml")
: fname;
preamble += features.getIncludedFiles(name);
preamble += features.getLyXSGMLEntities();
if (!preamble.empty()) {
@ -3066,7 +3068,9 @@ void Buffer::makeDocBookFile(string const & fname, bool nice, bool only_body)
<< " PUBLIC \"-//OASIS//DTD DocBook V4.1//EN\"";
string preamble = params.preamble;
preamble += features.getIncludedFiles(fname);
const string name = nice ? ChangeExtension(filename_, ".sgml")
: fname;
preamble += features.getIncludedFiles(name);
preamble += features.getLyXSGMLEntities();
if (!preamble.empty()) {

View File

@ -1,3 +1,9 @@
2002-03-05 José Abílio Oliveira Matos <jamatos@novalis.fc.up.pt>
* insetnote.h (linuxdoc, docbook): add empty methods.
* insetinclude.C (validate): fix a case where buffer->niceFile was used
before being initialized.
2002-03-05 Juergen Vigna <jug@sad.it>
* insettext.C (insetButtonPress): don't call exit on a InsetButtonPress

View File

@ -407,11 +407,14 @@ void InsetInclude::validate(LaTeXFeatures & features) const
// to be loaded:
if (loadIfNeeded()) {
// a file got loaded
Buffer const * const tmp = bufferlist.getBuffer(getFileName());
if (tmp)
Buffer * const tmp = bufferlist.getBuffer(getFileName());
if (tmp) {
if (b)
tmp->niceFile = b->niceFile;
tmp->validate(features);
}
}
}
vector<string> const InsetInclude::getLabelList() const

View File

@ -41,6 +41,12 @@ public:
int latex(Buffer const *, std::ostream &, bool, bool) const
{ return 0; }
///
int linuxdoc(Buffer const *, std::ostream &) const
{ return 0; }
///
int docbook(Buffer const *, std::ostream &) const
{ return 0; }
///
void validate(LaTeXFeatures &) const {}
private:
/// used by the constructors