Commit Graph

1209 Commits

Author SHA1 Message Date
Jürgen Spitzmüller
ac1977018b ** subfig support **
* src/Buffer.cpp:
* development/FORMAT:
	- bump format to 316.

* src/insets/InsetFloat.{cpp, h}:
	- let nested floats be subfloats
	  NOTE: docbook support is missing.
* src/insets/InsetCaption.{cpp, h}:
	- handle subfigure captions
* src/insets/InsetGraphics.cpp:
* src/insets/InsetGraphicsParams.{cpp, h}:
	- remove old subfigure support

* lib/chkconfig.ltx:
* lib/doc/LaTeXConfig.lyx:
	- check for subfig instead of subfigure.

* lib/lyx2lyx/LyX.py:
* lib/lyx2lyx/lyx_1_6.py:
	- conversion/reversion routines for subfig -> subfloats
	  NOTE: the reversion routine still has bugs.

* src/Counters.{cpp, h}: 
	- add identifiers for subfloats

* src/LaTeXFeatures.{cpp, h}:
	- support for subfig

* src/TextClass.cpp:
	- set up subfloat counter for all custom floats.

* src/frontends/qt4/GuiGraphics.cpp:
* src/frontends/qt4/ui/GrahicsUi.ui:
	- remove subfigure UI.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23381 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-02 11:30:50 +00:00
Uwe Stöhr
0ab7a8dce3 - new Spanish translation of the math manual
- Math.lyx: bug 2461 is now fixed

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23369 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-01 14:50:42 +00:00
Richard Heck
d8a6b5bfd0 Remove TextClassPtr without losing the type safety it provided.
See these threads:
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg136112.html
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg136062.html
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg135997.html
for some background.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23299 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-28 01:42:02 +00:00
Stefan Schimanski
9f21b7f9ad * high performance text completion with weighted btrees to get pseudo
random-access (i.e. O(log n)) to the n-th element in a list/set. Try
  it with 1000000 keys ... no problem.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23213 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-25 01:56:53 +00:00
Uwe Stöhr
4a5247ee7f installer updates
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23208 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-25 01:24:10 +00:00
Uwe Stöhr
9549685b3a delete French mathed.lyx as we did already for the other languages where we have a translation of the new math manual.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23203 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-24 22:52:30 +00:00
Richard Heck
4c6180d209 Try to make the distinction between base classes and text classes clearer in the code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23198 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-24 16:59:49 +00:00
Bo Peng
5f18e5ea81 Fix scons/InseLayout again
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23196 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-24 16:28:46 +00:00
Uwe Stöhr
317c76c0e9 SCons update: revert r23157 due to r23189
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23193 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-24 15:27:45 +00:00
Bo Peng
3c07aff8ef fix scons for InsetLayout
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23174 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-24 05:51:07 +00:00
Uwe Stöhr
4a7b0625b3 SCons update
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23157 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-23 16:40:16 +00:00
Abdelrazak Younes
27de158157 Fix tex2lyx compilation.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23121 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-22 09:23:47 +00:00
Richard Heck
a8317afc4b This is the first of a series of commits that will make InsetLayout a real class.
In this commit, we do the minimal amount of work necessary to protect our data.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23116 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-22 02:32:52 +00:00
Stefan Schimanski
1bf7b59d60 * completion infrastructure
* completion support for mathed
* experimental completion support for text


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23104 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-21 19:42:34 +00:00
Pavel Sanda
b7922f4201 Add hide tab icon.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23101 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-21 15:13:39 +00:00
Richard Heck
4ab6f265e9 Add support for column separation in page margins. Fixes bug 3337.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23059 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-19 05:24:48 +00:00
Uwe Stöhr
31bc8149d3 the missing bits of r23003
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23008 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-14 22:17:54 +00:00
Uwe Stöhr
21c5540c8e adjust SCons according to r23006
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23007 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-14 22:13:30 +00:00
Uwe Stöhr
c3cad57542 French translation of the math manual by Siegfried
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22968 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-12 22:22:36 +00:00
Jean-Marc Lasgouttes
0baeaadd2b trim some grey hair
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22959 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-12 09:58:52 +00:00
Bo Peng
9bd8ffb29c Fix scons
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22912 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-10 01:26:45 +00:00
Pavel Sanda
cc65d1f74d Resurrect trunk make dist from dead.
Some clashes with monolithic build remain.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22900 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-09 17:35:46 +00:00
Uwe Stöhr
f448b1e192 EmbeddedObjects: French translation updates by Siegfried
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22879 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-08 21:48:18 +00:00
Jürgen Spitzmüller
9bdca85f26 *** New Symbols Dialog ***
* src/Encoding.{cpp,h}:
	- new public member getSymbolsList()

* src/frontends/qt4/GuiSymbols.cpp:
* src/frontends/qt4/GuiSymbols.h:
* src/frontends/qt4/ui/SymbolsUi.ui
	- new files

* src/frontends/qt4/GuiView.cpp:
* src/frontends/qt4/Makefile.am:
* development/scons/scons_manifest.py:
	- add new dialog

* lib/ui/classic.ui:
* lib/ui/stdmenus.ui:
	- menu item for symbols dialog.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22832 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 13:18:07 +00:00
Edwin Leuven
344f629629 ensure download dutch dict
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22831 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 10:38:52 +00:00
Abdelrazak Younes
4bc0fdcacf adjust scons.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22829 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 09:13:23 +00:00
Abdelrazak Younes
bbe3815eb8 Adjust scons to FileDialog.h moving.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22822 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 00:07:34 +00:00
Uwe Stöhr
08b4bce85d FORMAT: cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22768 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-03 13:13:03 +00:00
Uwe Stöhr
886db92f82 enable the scrlttr 2 class for serial letters:
- file format change
- new example files and an example address database
- remove ugly hack from scrlttr2.layout and fix bug 4529

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22764 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-03 11:56:44 +00:00
Stefan Schimanski
dd714bfce8 * LinkBack support files, now in pure Objective-C (without any Objective-C++ which is not supported by automake)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22761 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-03 10:41:23 +00:00
Stefan Schimanski
fe348eb8b7 * The gui change for the mouse wheel speed setting. This includes the
renaming of the keyboard preferences pane into a input preferences pane.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22718 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-30 21:20:56 +00:00
Uwe Stöhr
39b9369b82 build_msvc.bat: revert the unwanted change in r22691
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22692 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-27 21:10:14 +00:00
Uwe Stöhr
cfdad9946d I wrote a new manual "LyX's detailed math manual". See the announcement on the list.
The file examples/mathed.lyx is no longer needed as its content is part of the new manual.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22691 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-27 20:58:45 +00:00
Uwe Stöhr
82fba225a5 the missing things of r22635
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22638 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-20 21:44:49 +00:00
Uwe Stöhr
b62f7986dd two new documentation file translations from Ignacio
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22593 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-15 22:56:22 +00:00
Uwe Stöhr
098c808174 forgot to add this in r22566
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22575 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 23:40:23 +00:00
Uwe Stöhr
de20d9ae9a UserGuide.lyx: fix bibliographies
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22528 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-12 16:52:08 +00:00
Uwe Stöhr
635ae3af3b scons_manifest.py: compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22521 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-12 14:06:40 +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
Jürgen Spitzmüller
4b799833e7 *** Support for generic sideways floats ***
* src/Buffer.cpp:
	- format is up to 312.
* src/LaTeXFeatures.cpp:
	- add rotfloat.
* src/Insets/InsetFloat.cpp:
	- handle starred and generic sideways floats.
* src/frontends/qt4/FloatPlacement.{cpp,h}:
	- adjust GUI to the new features.
* lib/chkconfig.ltx:
	- add rotfloat
* lib/lyx2lyx/LyX.py:
* lib/lyx2lyx/lyx_1_6.py:
	- add reversion methods for new floats
* lib/lyx2lyx/lyx_1_4.py:
	- add proper reversion method for sideways floats (this was missing).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22495 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-11 18:56:53 +00:00
Uwe Stöhr
18970a1c69 compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22482 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-10 20:55:52 +00:00
Uwe Stöhr
db088a816d FORMAT: document latest file format change
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22481 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-10 20:46:05 +00:00
Richard Heck
795c729776 Remove layout stuff made obsolete by modularization.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22471 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-10 07:24:53 +00:00
Richard Heck
4aea2f6a73 More tweaks, and some fixes for missing files in the makefiles, while we're at it.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22469 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-10 07:19:07 +00:00
Richard Heck
736418751a AMS module tweaks.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22468 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-10 07:13:01 +00:00
Richard Heck
f5a5be4d18 Modularization of the AMS classes, and the theorem environments generally.
This is Part I: The changes to the layout files and modules. Part II, still
to come, will involve lyx2lyx to help people who were using the older classes.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22461 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-10 04:58:20 +00:00
Bo Peng
06254d11df Embedding: display a pin at the top left corner of embedded figures
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22439 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-08 16:22:05 +00:00
Uwe Stöhr
81f48ded87 add a module for typesetting Braille
(entry for the LaTeXConfig.lyx file follows when bug 4460
http://bugzilla.lyx.org/show_bug.cgi?id=4460
is fixed)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22393 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-06 13:39:58 +00:00
Uwe Stöhr
38ed641598 add linguistics module
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22391 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-05 19:58:47 +00:00
Uwe Stöhr
d915adb996 add linguistics.lyx example file
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22390 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-05 19:47:24 +00:00