Commit Graph

20641 Commits

Author SHA1 Message Date
Vincent van Ravesteijn
8e2babb833 Fix bug 5797: http://bugzilla.lyx.org/show_bug.cgi?id=5797.
GetStatus of an InsetCollapsable asserts for unhandled commands.

When you add a command to the context menu of an InsetCollapsable of which the getStatus method does not handle this command, an assertion will be raised. This happens when getStatus doesn't handle a command it is forwarded to text::getStatus which asserts because cur.text() is the text the inset is in, while this is the text of the inset. So, we only dispatch to text_ if the cursor is inside the text_. This is not the case for e.g. context menus.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28588 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-23 19:00:23 +00:00
Pavel Sanda
a5c0cef5a0 * README.localization
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28586 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-23 16:48:25 +00:00
Vincent van Ravesteijn
92d90a0be3 Fix bug 5799. Warning when opening the document settings dialog. http://bugzilla.lyx.org/show_bug.cgi?id=5799.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28584 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-22 23:02:35 +00:00
Uwe Stöhr
4c44a75311 EmbeddedObjects.lyx: update manual according to http://bugzilla.lyx.org/show_bug.cgi?id=5798
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28582 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-22 22:26:44 +00:00
Peter Kümmel
f0edb3dfb3 fix merge build
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28581 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-22 12:42:10 +00:00
Vincent van Ravesteijn
cc44d6cb0b Hide messages when using cmake-gui.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28580 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-21 22:41:30 +00:00
Vincent van Ravesteijn
a833b6f097 Fix cmake after r28575. Patch from Kornel.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28579 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-21 22:37:25 +00:00
Richard Heck
90c64a5f5e A couple things noticed by Andre.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28578 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-21 21:49:56 +00:00
Uwe Stöhr
bf730bda7c LayoutModuleList.cpp: correct include
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28577 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-21 21:19:12 +00:00
Uwe Stöhr
2bab705f62 LayoutModuleList: - make LyX compile
- fix SCons after r28575
                  - set EOL to native

@ Richard: For new files please always set the EOL flag to native. If possible it would be nice if you can also update SCons manifest file.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28576 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-21 21:04:27 +00:00
Richard Heck
c67c0da43d Whoops.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28575 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-21 19:38:10 +00:00
Richard Heck
f946b6ed0b Move some more code around so as to make module-related routines available
to tex2lyx.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28574 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-21 16:45:37 +00:00
Vincent van Ravesteijn
aedfb81808 Fix bug 4346: http://bugzilla.lyx.org/show_bug.cgi?id=4346.
Synchronizing insets asserts with two views open

It changes the autoOpen_ member of InsetCollapsable into a map, such that an autoOpen value can be specified for each bufferView. Now, the assertion is avoided and insetCollapsable can be open in one bufferview and be closed in the other in very special cases that the cursor end up in a closed inset.

Compare with the MathMacro::editing_ member. 

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28573 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-21 16:27:00 +00:00
Jürgen Spitzmüller
3ccf39a084 * tex2lyx/preamble.cpp:
- fix thinko that caused tex2lyx to silently drop custom preamble entries in non-LyX-generated tex files.
	  (bug 5788). Patch from Jean-Marc.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28567 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-20 09:46:03 +00:00
Richard Heck
5a46619354 Update manual a bit: LyX won't check for arbitrary packages.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28566 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-19 22:28:02 +00:00
Vincent van Ravesteijn
90feb482db Fix bug 5787-part_2 (Labels in Listings Children Don't Update Properly).
It was still possible to set the label of an included Program Listing to an already existing label (if there was no label specified yet).

See also:
	http://www.lyx.org/trac/changeset/28556


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28564 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-19 21:33:07 +00:00
Vincent van Ravesteijn
bc5bc24812 Fix a crash when removing the label of an included Program Listing.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28563 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-19 20:53:35 +00:00
Vincent van Ravesteijn
3373aa588c Cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28562 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-19 19:41:41 +00:00
Vincent van Ravesteijn
90258a0dd3 Remove the GuiRef::sort_ member. It was a relic of the old days.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28561 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-19 19:24:42 +00:00
Richard Heck
084de459fb Make Andre a little happier.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28560 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-19 19:10:59 +00:00
Richard Heck
00f5adcfe3 Rename a routine.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28559 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-19 17:24:37 +00:00
Richard Heck
072ed23ffc Patch from Bo. Fixes problem with labels in child docs of the listings type:
Duplicate labels were not being updated.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28556 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-19 04:50:25 +00:00
Richard Heck
ae6462af96 Fix more of bug 5751.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28555 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-19 04:42:30 +00:00
Richard Heck
e2d20d4386 Fix bug 5751.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28554 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-19 04:18:31 +00:00
Pavel Sanda
45134ce20b gcc compil fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28553 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-19 04:05:44 +00:00
Richard Heck
7ca8f5a5ec Cosmetics, and comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28552 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-19 03:24:51 +00:00
Vincent van Ravesteijn
0aca981637 Fix bug 5699 (crash when using outliner in child document while the master is not opened).
The problem was that, if the master is not opened, no respective guiDelegate exists, and the functions that update the toc do not trigger. The fix is to update the child's toc backend and toc items directly in such cases. 


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28551 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-19 00:29:04 +00:00
Vincent van Ravesteijn
c85e24b066 Fix bug 5785: http://bugzilla.lyx.org/show_bug.cgi?id=5785.
Reference dialog update crash for read-only documents.

Comments:
* -1 is a valid return of bufferCO->currentIndex() so we need to test for it.
* set the correct enabling of the button in case no call to updateContents follows.
* remove unneeded call to setFocusProxy. The widget is either disabled or the focus proxy is set in updateRefs.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28547 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-18 23:45:00 +00:00
Uwe Stöhr
106adc4b42 - *.po-file remerge
- pl.po: remove doubled entries
- de.po: some translations

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28546 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-18 23:38:28 +00:00
Uwe Stöhr
183bd6b4f6 pl.po: translation updates from Michał Fita
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28541 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-18 21:18:49 +00:00
Pavel Sanda
64ac045b2d Customization - revert relevants parts back for translators.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg148048.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28538 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-18 08:52:40 +00:00
Uwe Stöhr
3b399bcb52 EmbeddedObjects.lyx: update the description of Edit externally
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28535 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-18 00:53:29 +00:00
Pavel Sanda
de5dfdd4a2 * Customization.lyx, accept changes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28530 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-17 23:44:51 +00:00
Georg Baum
9aad4bc27f Better fix for bug 1476 (following an idea by Jean-Marc).
Don't go into an endless loop if layout2layout cannot produce the desired file format.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28529 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-17 20:25:56 +00:00
Uwe Stöhr
ce09b10450 Spanish EmbeddedObjects.lyx: update from Ignacio
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28524 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-17 01:12:52 +00:00
Uwe Stöhr
f81c48343e xypic.lyx: - update layout of this file to the one of the other doc files
- cleanup of the preamble
           - a layout fix

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28523 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-17 00:50:37 +00:00
Uwe Stöhr
d7e2736437 Math.lyx: - revert format to LyX 1.6.x but keep the new LyX 2.0.0 specific contents; this makes maintaining much easier
- final cleanups for the new \hspace in formulas feature

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28521 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-17 00:45:52 +00:00
Pavel Sanda
37aefd6f17 fix path
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28517 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-16 23:41:52 +00:00
Uwe Stöhr
11459204d7 Japanese Tutorial.lyx: update by Koji
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28515 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-16 23:39:31 +00:00
Pavel Sanda
0f842e6cc3 * xypic.lyx
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28513 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-16 23:38:01 +00:00
Jean-Marc Lasgouttes
53dc4ae015 compilation warning: add exta braces around assignment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28512 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-16 10:08:18 +00:00
Jean-Marc Lasgouttes
f1c6bfdc9d compilation warning: scale is unsigned
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28511 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-16 10:07:16 +00:00
Jean-Marc Lasgouttes
22e13587b3 compilation warning: comparison of two char *
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28510 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-16 10:06:24 +00:00
Jean-Marc Lasgouttes
29117ed909 compilation warning: unused parameter
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28509 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-16 10:05:40 +00:00
Uwe Stöhr
c6fbe700b9 - Math.lyx: remove unneeded ERT
- UserGuide.lyx: update version number

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28506 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-16 03:07:55 +00:00
Uwe Stöhr
580ac2213d elsarticle.lyx: remove the trouble-making frontmatter environment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28502 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-15 16:43:40 +00:00
Peter Kümmel
56f8b5f3c3 Kornel: cmake, use external files for packaging
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28501 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-15 15:38:32 +00:00
Peter Kümmel
cc9edb643a Kornel really needs write access
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28500 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-15 14:02:26 +00:00
Peter Kümmel
dff3b19aea fix stupid typos
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28499 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-15 13:39:05 +00:00
Peter Kümmel
a478fde5be add readme for packaging
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28497 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-15 13:15:14 +00:00