Commit Graph

16687 Commits

Author SHA1 Message Date
Pavel Sanda
ade97dac7d Add doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23382 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-02 12:07:47 +00:00
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
Abdelrazak Younes
bced544674 Hopefully fix monolithic build.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23380 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-02 10:20:13 +00:00
Abdelrazak Younes
6bf2052227 * Outline(): fix undo/redo for promote/demote
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23379 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-02 09:17:10 +00:00
Abdelrazak Younes
6b10b7fd33 * outline(): demote/promote all subsections for outline in/out.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23378 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-02 08:53:34 +00:00
Uwe Stöhr
f2543ccf9c only cosmetics
Color.cpp: - clarify that this is the label color (to be uniform with the other label colors)
           - greyedout label color slightly changed from red to red with a bit blue (as we already have red for other stuff)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23377 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-01 23:50:08 +00:00
Richard Heck
ea2c38bbcc Fix bug 4594.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23376 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-01 22:08:16 +00:00
Jürgen Spitzmüller
f2c06b5d9e * lib/default.ui:
- revert accidental commit in revision 23370.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23374 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-01 17:47:04 +00:00
Pavel Sanda
9180cf6e7b * monolithic-core fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23373 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-01 17:22:19 +00:00
Richard Heck
9dfbadcb2c Improve handling of local layout files. There are two bugs here that still need fixing, though: 4593 and 4594.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23372 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-01 16:32:16 +00:00
Richard Heck
c3e4e47fb7 Improve documentation.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23371 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-01 16:27:56 +00:00
Uwe Stöhr
ab62620666 default.ui: let the toolbars appear when needed
This was often requested by users so that I already implemented this in the alternative installer.
This furthermore avoids questions on the lyx-users list (we had several times questions about "Where is the math toolbar when I'm in math?" etc.)
(This toolbar behavior is also used e.g. by OpenOffice or Word.)

As this topic now arises again with the macro toolbar
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg136267.html
and nobody objected, I implemented this now.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23370 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-01 15:20:43 +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
Abdelrazak Younes
f600486a37 Cursor::insert(): Fix crash with math. Problem was that the inset pointer was released by MathAthom
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23363 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-29 20:55:56 +00:00
Abdelrazak Younes
7a6971bb28 We don't want a buffer_ member in InsetMathChar.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23362 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-29 20:52:24 +00:00
Richard Heck
6234e09063 More clone safety.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23361 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-29 20:17:28 +00:00
Richard Heck
1becd75946 These don't seem to be causing crashes at the moment, but as a matter of long-term stability, it seems worth cloning them the "canonical" way.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23360 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-29 20:16:04 +00:00
Richard Heck
7b09292cb0 Fix InsetBibitem::clone.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23359 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-29 20:12:35 +00:00
Richard Heck
991154992f Fix InsetLabel::clone.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23358 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-29 20:03:58 +00:00
Richard Heck
69191c005f Fix InsetCitation::clone.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23357 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-29 20:00:39 +00:00
Richard Heck
3431ea8753 Fix numbering.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23356 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-29 19:32:44 +00:00
Stefan Schimanski
76c3424680 * grey20 is not available on all platforms.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23355 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-29 15:49:13 +00:00
Stefan Schimanski
a74871baa8 * when going backwards and entering a cell/paragraph, there is no
inset yet. The lastpos() position is only virtual to place the cursor
  at a cell/paragraph end
* cleanups, documentation


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23354 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-29 15:29:58 +00:00
Jürgen Spitzmüller
0b721a0b8c * lib/configure.py:
- add checks for pdf2ps and pdftops (bug 3968).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23353 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-29 10:34:43 +00:00
Stefan Schimanski
9a56c45a7b * insertParam assumes that the cursor has the macro template in the top slice.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23351 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-29 10:02:40 +00:00
Stefan Schimanski
e59560a1fa * the automatic arity changing proposed by Uwe: you go into a macro and type \#9. The arity is visually adapted right away. The real change though takes place when you leave the macro with the cursor.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23350 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-29 10:02:25 +00:00
Stefan Schimanski
8c4b08920e * bug fix to only do paragraph redraws, not fullscreen
* avoid an extra redraw due to completion when typing


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23349 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-29 09:18:46 +00:00
Stefan Schimanski
e936a451da * enable auto again. See r22655. The three flags math, table, mathmacrotemplate only specify when the toolbar is shown in auto mode. But you still have to enable "auto" explicitly.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23348 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-29 09:18:21 +00:00
Stefan Schimanski
d1c74a4cd2 * boundary is false implicitely for all slices below the top slice
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23347 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-29 08:27:22 +00:00
Abdelrazak Younes
72b0b23590 Introduce BufferException so that we don't crash if a problem affects only current Buffer. Instead we now just do an emergency save and we close it.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23346 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-29 08:10:51 +00:00
Richard Heck
0bd0fbf2e3 Cleanup.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23345 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-29 02:50:12 +00:00
Richard Heck
8ed7f04793 Clean up comments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23344 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-29 02:49:34 +00:00
Richard Heck
2b3bd7b5f4 This is the last of the commits that hopes to enforce the distinction between "layout files" and "document classes" that was introduced by the modules code. For the most part, these changes just refactor code from TextClass between: (a) a TextClass base class; (b) a LayoutFile subclass, which represents the information in a .layout file; and (c) a DocumentClass subclass, which represents the layout information associated with a Buffer---a LayoutFile plus Modules. Methods from TextClass have been apportioned between the three classes depending upon what is needed where, and signatures have been changed where necessary so that the right kind of class is required.
At this point, there are no simple TextClass objects in the main LyX code, and it is impossible to create them, since the TextClass constructor is protected. Only LayoutFile and DocumentClass objects can be constructed, and for the most part these are constructed only by their respective containers: BaseClassList and DocumentClassBundle. There is an exception: LayoutFile does have a public default constructor, but if anyone knows how to make it go away, please do.

There will be one or two more commits along these lines, but these will be simple renamings. For example, BaseClassList should be LayoutFileList.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23343 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-29 02:45:33 +00:00
Pavel Sanda
8f3599f00d * INSTALL.MacOSX (from Anders Ekberg)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23342 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-29 01:20:59 +00:00
Uwe Stöhr
11c71616f0 default.ui: delete a spurious parameter
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23341 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-28 22:23:15 +00:00
Uwe Stöhr
ee3fbb68fb - move po files from branch to trunk to start the translations begin
- remerge
- some more German translations

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23340 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-28 21:36:45 +00:00
Richard Heck
cef5f40f47 Fix oddity in bibtotoc handling.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23339 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-28 21:25:57 +00:00
Uwe Stöhr
5e853c1803 Richard, I have to revert r23332 to be able to compile trunk
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23338 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-28 21:09:18 +00:00
Bernhard Roider
a8708a5e9a fix bug 4583: crash when processing colored box
LaTeXFeatures::getPackages() assumes that lcolor.getX11Name(Color_shadedbg) returns a hex color.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23336 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-28 21:06:00 +00:00
Uwe Stöhr
7cfb26c367 Math.lyx: two more bugfixes spotted by Ignacio
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23335 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-28 21:05:50 +00:00
Richard Heck
2c382f2f47 More work towards type safety regarding TextClass's. A couple bugs have been fixed here, too, discovered along the way.
Note that we no longer rely upon BaseClassList to be sorted. This would allow layout descriptions---such as "article (AMS)"---to be translated, and the ordering of the list in Document>Settings will then follow the translations.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23334 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-28 21:04:55 +00:00
Abdelrazak Younes
0e67e8423f GuiApplication::notify(): fine tune ErrorException handling; close all windows before showing the alert. This should get rid of the recursive alert box when an the exception is caught.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23333 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-28 20:40:55 +00:00
Richard Heck
265434519e Type safety sure will be nice.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23332 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-28 19:21:20 +00:00
André Pönitz
36ec5a880f uses canonical foprm of clone()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23331 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-28 19:04:13 +00:00
Richard Heck
058933bb94 Missed this when fixing the TextClass::read() API.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23330 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-28 18:17:59 +00:00
Richard Heck
80500c426a Comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23329 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-28 18:16:36 +00:00
Stefan Schimanski
34639d7491 * some warnings less
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23328 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-28 17:52:15 +00:00
Edwin Leuven
eb84ab1af9 set parent
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23327 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-28 16:14:26 +00:00
Abdelrazak Younes
380ffa0c76 Cursor::insert(): no reason to exclude mathed. Non willing math insets (MathChar) should provide a stub method for setBuffer().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23326 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-28 15:40:50 +00:00
Abdelrazak Younes
78d63575ca revert revision 23324 and implement a better more general fix in Cursor::insert().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23325 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-28 15:36:48 +00:00