]> git.lyx.org Git - features.git/commitdiff
/home/balu/mes.cvs
authorJosé Matox <jamatos@lyx.org>
Tue, 27 Feb 2001 08:05:40 +0000 (08:05 +0000)
committerJosé Matox <jamatos@lyx.org>
Tue, 27 Feb 2001 08:05:40 +0000 (08:05 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1630 a592a061-630c-0410-9148-cb99ea01b6c8

lib/ChangeLog
lib/templates/docbook_article.lyx [new file with mode: 0644]
lib/templates/docbook_template.lyx [deleted file]
lib/templates/linuxdoc_article.lyx [new file with mode: 0644]
lib/templates/linuxdoctemplate.lyx [deleted file]
src/ChangeLog
src/LaTeXFeatures.C
src/support/ChangeLog
src/support/filetools.C
src/support/filetools.h

index 14a75041545cd29cde05ae6fc28207916dc1f89e..ed4ce5c9e1bb7790b4a5d9ad7ec45e51eead90d2 100644 (file)
@@ -1,3 +1,16 @@
+2001-02-26  José Matos  <jamatos@fep.up.pt>
+
+       * templates/docbook_template.lyx: removed.
+       * templates/docbook_article.lyx: updated file, to replace the previous.
+
+       * templates/linuxdoctemplate.lyx: removed.
+       * templates/linuxdoc_article.lyx: updated file, to replace the previous.
+
+2001-02-11  José Matos  <jamatos@fep.up.pt>
+
+       * layouts/docbook.layout: chapter and part insertion are forbiden in
+       article.
+
 2001-02-26  Juergen Vigna  <jug@sad.it>
 
        * ui/default.ui: added Custom-Export to export menu.
@@ -7,7 +20,6 @@
        * bind/emacs.bind: 
        * bind/xemacs.bind: add bookmark commands. 
        
-
 2001-02-07  Allan Rae  <rae@lyx.org>
 
        * bind/emacs.bind: 
@@ -46,7 +58,7 @@
 
        * ui/default.ui: Fix typos.
 
-2001-01-28  José Matos <jamatos@fep.up.pt>
+2001-01-28  José Matos  <jamatos@fep.up.pt>
 
        * layouts/db_lyxmacros.inc
        * layouts/db_stdclass.inc
diff --git a/lib/templates/docbook_article.lyx b/lib/templates/docbook_article.lyx
new file mode 100644 (file)
index 0000000..90af271
--- /dev/null
@@ -0,0 +1,39 @@
+#LyX 1.2 created this file. For more info see http://www.lyx.org/
+\lyxformat 218
+\textclass docbook
+\use_geometry 0
+\use_amsmath 0
+\paperorientation portrait
+\secnumdepth 3
+\tocdepth 3
+\paragraph_separation indent
+\defskip medskip
+\papercolumns 1
+\papersides 1                                                                                                                                                                                                                       
+
+\layout Title
+\added_space_top vfill \added_space_bottom vfill 
+Title
+\layout Date
+
+Date 
+\layout Author
+
+
+\latex latex 
+<firstname>
+\latex default 
+Joe
+\latex latex 
+</firstname><surname>
+\latex default 
+Doe
+\latex latex 
+</surname>
+\layout Abstract
+
+Abstract
+\layout Section
+
+First Section
+\the_end
diff --git a/lib/templates/docbook_template.lyx b/lib/templates/docbook_template.lyx
deleted file mode 100644 (file)
index 1ca8554..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-#This file was created by <jamatos> Fri Sep 24 13:10:52 1999
-#LyX 1.0 (C) 1995-1999 Matthias Ettrich and the LyX Team
-\lyxformat 2.15
-\textclass docbook
-\begin_preamble
-<!entity header system "header.sgml">
-\end_preamble
-\language english
-\inputencoding default
-\fontscheme default
-\graphics default
-\paperfontsize default
-\spacing single 
-\papersize Default
-\paperpackage a4
-\use_geometry 0
-\use_amsmath 0
-\paperorientation portrait
-\secnumdepth 3
-\tocdepth 3
-\paragraph_separation indent
-\defskip medskip
-\quotes_language english
-\quotes_times 2
-\papercolumns 1
-\papersides 1
-\paperpagestyle default
-
-\layout Title
-\added_space_top vfill \added_space_bottom vfill 
-Title
-\layout Date
-
-Date 
-\layout Author
-
-
-\latex latex 
-<firstname>
-\latex default 
-Joe
-\latex latex 
-</firstname><surname>
-\latex default 
-Doe
-\latex latex 
-</surname>
-\layout Abstract
-
-Abstract
-\layout Section
-
-First Section
-\the_end
diff --git a/lib/templates/linuxdoc_article.lyx b/lib/templates/linuxdoc_article.lyx
new file mode 100644 (file)
index 0000000..895bb34
--- /dev/null
@@ -0,0 +1,37 @@
+#LyX 1.2 created this file. For more info see http://www.lyx.org/
+\lyxformat 218
+\textclass linuxdoc
+\use_geometry 0
+\use_amsmath 0
+\paperorientation portrait
+\secnumdepth 3
+\tocdepth 3
+\paragraph_separation indent
+\defskip medskip
+\papercolumns 1
+\papersides 1
+
+\layout Title
+\added_space_top vfill \added_space_bottom vfill 
+TITLE
+\layout Author
+
+AUTHOR 
+\layout Date
+
+DATE
+\layout Abstract
+
+ABSTRACT
+\layout Standard
+
+
+\begin_inset LatexCommand \tableofcontents{}
+
+\end_inset 
+
+
+\layout Section
+
+First Section
+\the_end
diff --git a/lib/templates/linuxdoctemplate.lyx b/lib/templates/linuxdoctemplate.lyx
deleted file mode 100644 (file)
index 1a9632b..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-#This file was created by <iselborn> Fri Jun 27 07:10:39 1997
-#LyX 0.11 (C) 1995-1997 Matthias Ettrich and the LyX Team
-\lyxformat 2.15
-\textclass linuxdoc
-\language english
-\inputencoding default
-\fontscheme default
-\graphics default
-\paperfontsize 10
-\spacing single 
-\papersize Default
-\paperpackage a4
-\use_geometry 0
-\paperorientation portrait
-\secnumdepth 3
-\tocdepth 3
-\paragraph_separation indent
-\defskip medskip
-\quotes_language english
-\quotes_times 2
-\papercolumns 1
-\papersides 1
-\paperpagestyle default
-
-\layout Title
-\added_space_top vfill \added_space_bottom vfill 
-TITLE
-\layout Author
-
-AUTHOR 
-\layout Date
-
-DATE
-\layout Abstract
-
-ABSTRACT
-\layout Standard
-
-
-\begin_inset LatexCommand \tableofcontents
-
-\end_inset 
-
-
-\layout Section
-\cursor 0 
-First Section
-\the_end
index a67ea301bb7248ce268e5e117d81adc7513e0bfe..ecd545cba1b91938d4131ff8e27f1444ddecd308 100644 (file)
@@ -1,3 +1,13 @@
+2001-02-27  José Matos  <jamatos@fep.up.pt>
+       
+       * LaTeXFeatures.C (getIncludedFiles): call to BasePath replaced
+       by OnlyPath.
+       
+2001-02-11  José Matos  <jamatos@fep.up.pt>
+
+       * buffer.C (makeDocBookFile): command styles now have a parameter as
+       "title" by default.
+
 2001-02-23  Edwin Leuven <leuven@fee.uva.nl>
 
        * layout_forms.[Ch]: removed
index 0bfa934613caf5473d67e72812203ea0f8c6c3df..8d4d5868f17a465c2a128230592fc1972031d243 100644 (file)
@@ -377,7 +377,7 @@ string const LaTeXFeatures::getTClassPreamble()
 string const LaTeXFeatures::getIncludedFiles(string const fname) const
 {
        string sgmlpreamble;
-       string basename = BasePath(fname);
+       string basename = OnlyPath(fname);
 
        FileMap::const_iterator end = IncludedFiles.end();
        for (FileMap::const_iterator fi = IncludedFiles.begin();
index 0e2118d9410b6e25481f971f28ad6f3a80af7139..f1016aa81c425b2fee416bd898a0203f0043ee2d 100644 (file)
@@ -1,3 +1,12 @@
+2001-02-27  José Matos  <jamatos@fep.up.pt>
+
+       * filetools.h (BasePath):
+       * filetools.C (BasePath): removed since it is a duplicate of OnlyPath.
+
+       * filetools.C (IsLyXFilename):
+       * filetools.C (IsSGMLFilename): test if extension is suffix and not
+       only containned.
+
 2001-02-14  Lars Gullik Bjønnes  <larsbj@lyx.org>
 
        * fmt.C: 
index f843494cddcc75deede22d4f2d656a8840207772..146641f46ea41f007e9e1693aeaf10c7dfd36d0c 100644 (file)
@@ -68,13 +68,13 @@ extern string system_tempdir;
 
 bool IsLyXFilename(string const & filename)
 {
-       return contains(filename, ".lyx");
+       return suffixIs(filename, ".lyx");
 }
 
 
 bool IsSGMLFilename(string const & filename)
 {
-       return contains(filename, ".sgml");
+       return suffixIs(filename, ".sgml");
 }
 
 
@@ -648,21 +648,6 @@ string const OnlyFilename(string const & fname)
 }
 
 
-// Strips filename from path
-string const BasePath(string const & fname)
-{
-       if (fname.empty())
-               return fname;
-
-       string::size_type j = fname.rfind('/');
-       if (j == string::npos) // no '/' in fname
-               return string();
-
-       // Strip to basename
-       return fname.substr(0,j + 1);
-}
-
-
 // Is a filename/path absolute?
 bool AbsolutePath(string const & path)
 {
index 65505a9b2ecd19706dd7f27a17d74ff963290afe..c373562d1ab77342d0bb87befac50912f93dfc17 100644 (file)
@@ -179,9 +179,6 @@ string const NormalizePath(string const & path);
 /// Strips path from filename
 string const OnlyFilename(string const & fname);
 
-/// Strips filename from path
-string const BasePath(string const & fname);
-
 /// Get the contents of a file as a huge string
 string const GetFileContents(string const & fname);