Commit Graph

80 Commits

Author SHA1 Message Date
Richard Heck
9dfac74265 This patch introduces ProvidesModule and ExcludesModule layout tags.
See http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg145129.html.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27041 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-23 00:27:03 +00:00
Uwe Stöhr
f3117747ff remove last traces of linuxdoc whose support has been removed long ago; requested in http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg145127.html
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26982 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-19 20:49:04 +00:00
Uwe Stöhr
0ad53de085 English documentation files: update to recent file format as service for our translators
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26977 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-19 13:43:30 +00:00
Richard Heck
bd89780248 Minor doc update.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26803 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-07 16:43:48 +00:00
Richard Heck
d233a03e73 Move the LyX server documentation to Extended Features.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26788 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-06 21:05:22 +00:00
Richard Heck
2284351357 Stuff on the LyX server should be in the Extended Features manual, not the
Customization manual.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26787 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-06 20:57:11 +00:00
Richard Heck
59a001aa8d Update the Customization manual a bit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26785 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-06 20:21:43 +00:00
Richard Heck
838bccbb97 Update counter documentation after last commit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26780 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-06 14:42:57 +00:00
Richard Heck
93597a387e Correct out of date hyperlink.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26770 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-06 04:32:36 +00:00
Richard Heck
0f08a019a2 Update layout documentation.
Uwe, I've used change tracking with this, as we discussed. Please review the changes, accept or whatever, and recommit. You can let the translators know about this, too.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26769 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-06 04:24:41 +00:00
Uwe Stöhr
6d6ec205ec Customization.lyx: update section about package installation
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26597 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-28 00:42:55 +00:00
Uwe Stöhr
1b201008f5 documentation files: remove unused labels
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26532 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-25 01:26:54 +00:00
Uwe Stöhr
828112f4df Customization.lyx: remove things that are already described in the UserGuide
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26530 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-24 23:13:58 +00:00
Uwe Stöhr
64b6f7f3cf UserGuide.lyx: one of the last updates for LyX 1.6
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26500 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-22 23:12:13 +00:00
Richard Heck
b1475b461a Update layout specification.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26410 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-15 13:25:42 +00:00
Pavel Sanda
a89ab325ef Add note about ui-toggle
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26405 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-15 00:58:00 +00:00
Enrico Forestieri
e5e65c031c Update LYX_DIR_XXx and LYX_USERDIR_XXx environment variable names
in docs and manpages at install time.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26119 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-12 09:05:30 +00:00
Richard Heck
77dc6fd729 Update InsetLayout docs.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26076 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-05 21:57:22 +00:00
Richard Heck
5d95df6e39 Add CopyStyle tag for InsetLayout, per request of Steve Litt.
Update documentation for new tag.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25933 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-28 15:14:37 +00:00
Uwe Stöhr
68190dd5fb UserGuide.lyx: clarify the description of image settings grouping
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25901 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-26 17:10:53 +00:00
Pavel Sanda
c4ff55c340 LYX_USERDIR_15x -> 16
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25897 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-26 10:44:02 +00:00
Uwe Stöhr
f7a4ede2bd Customization.lyx: actualize how to start a new .po file
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25576 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-13 16:45:49 +00:00
Uwe Stöhr
8dd1a1759a - documentation: some preamble fixes, part 3/3
- French, Spanish Extended.lyx: remove section that is already included in the FAQ and the UserGuide

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25349 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-21 14:21:40 +00:00
Uwe Stöhr
d6f5d4f225 documentation: some preamble fixes, part 1
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25346 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-21 01:51:53 +00:00
Uwe Stöhr
6dab61d845 docs: update to latest file format
part 1/4

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25122 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-04 22:13:56 +00:00
Richard Heck
340b193e3d Update the Customization manual.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23933 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-24 21:08:49 +00:00
Richard Heck
761f004cdc Update layout format.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23915 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-24 13:02:18 +00:00
Richard Heck
fa73407a68 Use character styles in the Customization manual. Also contains a few minor updates.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23914 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-24 12:54:26 +00:00
Pavel Sanda
59110e5e24 * doc/Customization.lyx: few translation hints.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22704 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-29 02:46:55 +00:00
Uwe Stöhr
d60aff6c00 all docs: fix font loading in the preamble
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22651 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-22 21:53:25 +00:00
Richard Heck
4f76947d03 Documentation updates related to modules and the AMS classes. Note that, with the modularization of the theorem environments, we can now actually use them in Extended->AMSLaTeX to show the user what they look like.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22504 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-12 06:09:27 +00:00
Richard Heck
d5d665482e This commit changes the way individual LyXModule's are represented, both internally and in the .lyx files. The earlier version represented them by their `descriptive name', e.g., "Endnote" or "Theorems (AMS)", these being the same names used in the UI. This was a mistake, as becomes readily apparent when one starts to think about translating these strings. The modules ought to be represented by their filename, without the extension, just as TextClass's are.
The changes that accomplish this part are in ModuleList.{h,cpp}, configure.py, and the *.module files themselves. This is a format change, and the lyx2lyx is in those files.

By itself, that change would not be major, except for the fact that we do not want the module to be represented in the UI by its filename---e.g., theorems-std---but rather by a descriptive name, such as "Theorems". But that change turns out to be wholly non-trivial. The mechanism for choosing modules was the same as---indeed, was borrowed from---that in GuiCitation: You get a list of modules, and choosing them involves moving strings from one QListView to another. The models underlying these views are just QStringListModels, which means that, when you want to know what modules have been selected, you see what strings are in the "selected" QListView. But these are just the descriptive names, and we can't look up a module by its descriptive name if it's been translated. That, indeed, was the whole point of the change to the new representation.

So, we need a more complicated model underlying the QListView, one that will pair an identifying string---the filename minus the extension, in this case---with each item. This turns out not to be terribly difficult, though it took rather a while for me to understand why it's not difficult. There are two parts:
(i)  GuiSelectionManger gets re-written to use any QAbstractListModel, not just a QStringListModel. This actually seems to improve the code, independently.
(ii) We then subclass QAbstractListModel to get the associated ID string, using the Qt::UserRole slot associated with each item to store its ID. This would be almost completely trivial if QAbstractListItem::itemData() included the QVariant associated with this role, but it doesn't, so there are some additional hoops through which to jump.

The new model, a GuiIdListModel, is defined in the files by that name. The changes in GuiSelectionManger.{h,cpp} make it more abstract; the changes in GuiDocument.{h,cpp} adapt it to the new framework. 

I've also updated the module documenation to accord with this change.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22501 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-12 04:28:12 +00:00
Richard Heck
7c28905b17 This commit adds some new functionality to the modules stuff. In particular, it introduces the concept of "required" and "excluded" modules: A given module may require one of some list of modules, or it may be incompatible with some other modules. (Complex Boolean combinations are not supported!!) These facts can be noted in the module file, and the UI responds appropriately: Required and excluded modules are noted in the description, and the "Add" button is enabled only if at least one of the required modules has already been selected and no excluded module is selected. Getting this to work involved a fair bit of cleanup of the existing code---including ways Angus, I think, had already pointed out were required---and also involved changing the syntax of the headers of the module files, but in ways that are probably best anyway.
None of the extant modules require any other modules, but the Theorem modules all exclude one another. (See the screenshot.) When I modularize the AMS classes---that is the next task---we'll have requires.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22456 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-09 18:51:02 +00:00
Richard Heck
40cb894ca6 Minor edit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22426 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-07 23:22:09 +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
Richard Heck
a43667b5be Remove references to obsolete URL module and make some other minor changes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22401 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-06 17:00:59 +00:00
Richard Heck
ffbdd0e79a Remove obsolete URL module.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22399 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-06 16:54:17 +00:00
Bo Peng
3c66085625 remove the manifest section from two doc files
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21342 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-01 16:50:51 +00:00
Richard Heck
7deaa64d7e Update the documentation on copiers a little bit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21039 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-18 16:57:59 +00:00
Uwe Stöhr
4f70d72a24 Customization.lyx: - add PDF-bookmarks
- small updates in German version

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20592 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-29 16:13:14 +00:00
Richard Heck
3841e65c85 Documentation for modules.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20499 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-25 18:24:36 +00:00
Uwe Stöhr
c5302d6e70 Customization.lyx: revise Converters, Copiers and Formats section
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20252 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-13 01:14:55 +00:00
Uwe Stöhr
7eec20e0e1 revert my last accidental Customization.lyx commit
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20245 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-12 18:50:26 +00:00
Uwe Stöhr
a01887ecb4 UserGuide.lyx: more work on Appendix B
Customization.lyx: revise converters section

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20244 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-12 18:42:58 +00:00
Martin Vermeer
c143b34de8 update charstyle/flex docs a bit
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20174 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-09 18:28:30 +00:00
Jean-Marc Lasgouttes
f86fc8d88c The counters labelstring patch. Part 3: adapt some layout files and documentation
* numarticle.inc:
	* numreport.inc: 
	* stdcounter.inc:
	* stdsections.inc:
	* stdstarsections.inc:
	* stdclass.inc:
	* scrbook.layout:
	* amsmath.inc: adapt: remove most of the LabelString in layouts,
	add the necessary stuff to counters.

	* lib/doc/Customization.lyx: document the new stuff.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19604 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-16 11:16:07 +00:00
José Matox
64e12293a0 Update documentation to latest file format (for 1.5.0 release)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19190 a592a061-630c-0410-9148-cb99ea01b6c8
2007-07-24 17:39:27 +00:00
Uwe Stöhr
82d2a827b5 documentation: remove linuxdoc descriptions (part1), fixes bug 2787 http://bugzilla.lyx.org/show_bug.cgi?id=2787
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19123 a592a061-630c-0410-9148-cb99ea01b6c8
2007-07-18 23:24:33 +00:00
Richard Heck
954be90e11 Make HTML export work.
The key is the new copier script lib/scripts/ext_copy.py. Usage:
 ext_copy.py [-e ext1,ext2,...] <from file> <to file>
Given a <from file> and <to file>, it will copy all files in the directory 
in which from_file is found that have the extensions given in the -e option, 
or all files in that directory if no such argument is given. So, for example, 
we can do:
  python ext_copy.py -e png,html,css /path/from/file.html /path/to/file.html
and all html, png, and css files in /path/from/ will be copied to the 
(possibly new) directory /path/to/file.html.LyXconv/. The -t option determines 
the extension added to the output filename passed to the script ($$o, in the
copier definition), the default being "LyXconv". If just . is given, then no 
extension is added.

Other changes:
* configure.py: added appropriate copier definitions for html and wordhtml
formats, as well as for the Program pseudo-format.
* lib/Makefile.am and development/scons/scons_manifest.py: add ext_copy.py.
* lib/doc/Customization.lyx: update documentation.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18791 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-15 17:02:35 +00:00
Richard Heck
9879a1a185 Update documentation regarding converters, etc.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18491 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-24 16:42:40 +00:00