Commit Graph

19 Commits

Author SHA1 Message Date
Richard Heck
d252730dff New AddToPreamble tag for layout files. This tag will ADD some information to the document premable rather than completely over-write it, as the Preamble tag does.
Increment layout format to 7.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23916 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-24 13:11:16 +00:00
Jürgen Spitzmüller
9e5eebc14c *** Requires tag for classes, layouts and custom insets ***
* src/TextClass{cpp,h}:
	- implement Requires tag for class and InsetLayout.
* src/Layout.{cpp,h}:
	- implement Requires tag for layouts.
	- increase layouts format to 6.
* src/Paragraph.cpp:
	- request required features for paragraph layouts.
* src/LaTeXFeatures.cpp:
	- add some packages needed by modules.
	- remove Preamble method for InsetLayout. This is now done
	  in InsetFlex::validate.
* src/BufferParams.cpp (validate):
	- request required features for the class.
* src/insets/InsetLayout.h:
	- new member "requires".
* src/insets/InsetFlex.{cpp,h}:
	- implement validate method and request required features and preamble snippets.

* lib/layouts/*.{layout,module,inc}:
	- increase layouts format to 6.
	- use Requires tags in some modules (more can be done later).

* lib/doc/Customization.lyx:
	- document Requires tag.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22414 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-07 16:59:10 +00:00
Martin Vermeer
2b0fd3325b Further charstyle -> element fixes, thx John
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20741 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-05 05:08:51 +00:00
Richard Heck
0e4e230f01 Remove redundant AlignPossible lines.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20437 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-22 18:00:36 +00:00
Martin Vermeer
8eb22fd082 Updated versions to 5; added stdinsets.inc where I felt confident
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19804 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-26 09:10:52 +00:00
Martin Vermeer
1bd92eb2f1 The necessary changes to these XML layouts (charstyle new format)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19696 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-21 19:43:10 +00:00
José Matox
29d106fbf7 Convert layout files to utf8
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19189 a592a061-630c-0410-9148-cb99ea01b6c8
2007-07-24 17:16:35 +00:00
Jean-Marc Lasgouttes
04efe3c40a New framework for declaring generic features in textclasses.
* src/LaTeXFeatures.C (mustProvide): new method; returns true when
	isRequired is true and the feature is not provided by the
	textclass. 
	(getPackages, getLyXSGMLEntities): use mustProvide when relevant.

	* src/bufferparams.C (getEngine):
	* src/buffer.C (validate): adapt to change below.

	* src/lyxtextclass.C (read): replace tags ProvidesNatbib,
	ProvidesMakeidx, ProvidesUrl and ProvidesAmsmath by a generic
	"Provides".
	(provides): take a string as argument.
	
	* lib/scripts/layout2layout.py (convert): convert "ProvidesXxx" tags
	to "Provides xxx".

	* lib/layouts/*: update to format 4.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17740 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-06 09:02:23 +00:00
Michael Schmitt
ff521787b2 * layouts/*.inc: update to format 3
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16984 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-31 19:02:52 +00:00
Georg Baum
3e885523c3 layout file converter for layout files in old format
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10565 a592a061-630c-0410-9148-cb99ea01b6c8
2005-10-21 16:11:36 +00:00
José Matox
2d9a5e9adc replace most &dquot;...&dquot; by <...>
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9139 a592a061-630c-0410-9148-cb99ea01b6c8
2004-10-28 14:56:08 +00:00
José Matox
c984a235eb slight changes for the new counter support in agu.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9136 a592a061-630c-0410-9148-cb99ea01b6c8
2004-10-28 11:30:18 +00:00
José Matox
33243f7003 clean code to export between different flavours, output different code for sgml to deal with incomplete implementation, clean code
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8755 a592a061-630c-0410-9148-cb99ea01b6c8
2004-05-14 15:47:35 +00:00
Martin Vermeer
6c176e40e3 moving LatexParam functionality into .layout files
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8290 a592a061-630c-0410-9148-cb99ea01b6c8
2003-12-31 08:44:42 +00:00
Martin Vermeer
ed4864c114 More AGU header stuff
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8273 a592a061-630c-0410-9148-cb99ea01b6c8
2003-12-22 17:33:46 +00:00
Martin Vermeer
2b21af9a42 AGU header stuff
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8264 a592a061-630c-0410-9148-cb99ea01b6c8
2003-12-18 12:42:02 +00:00
Martin Vermeer
ee31454d59 Conglomerate-style CharStyles
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8210 a592a061-630c-0410-9148-cb99ea01b6c8
2003-12-06 09:31:30 +00:00
Martin Vermeer
9ef3f928a5 parametrize SGML document header
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8142 a592a061-630c-0410-9148-cb99ea01b6c8
2003-11-27 16:52:07 +00:00
Martin Vermeer
af37f0d23e Introducing a number of tags parametrizing various
XML formats that we may want to support


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8137 a592a061-630c-0410-9148-cb99ea01b6c8
2003-11-25 17:23:36 +00:00