Commit Graph

22533 Commits

Author SHA1 Message Date
Richard Heck
22ba8256b2 So we do, sometimes, need the setBuffer calls that were removed in r28720.
This patch encapsulates the needed call in Buffer::setBuffersForInsets(),
and calls it from Undo::Private::textUndoOrRedo(). As noted in the FIXME,
this is still a bit of a "hammer" and ought to be replaced with the sort of
more refined approach taken in r28709. But I don't at the moment see how to
do that. The place to do it, though, is in doTextUndoOrRed().
 


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28757 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-12 20:10:46 +00:00
Richard Heck
3aecc2c4ff Use an enum to make things a little clearer here.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28756 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-12 20:02:12 +00:00
Vincent van Ravesteijn
d757c34e79 gcc compile fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28755 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-12 19:44:40 +00:00
Vincent van Ravesteijn
26529a1732 Fix a few peculiarities wrt graphics. E.g., an InsetGraphic with a non-existing image showed the message that the image was loaded, instead of "No file found!".
* CacheItem::Impl::tryDisplayFormat

- Enhance description of the return value.
- Negate the return values to match the description.

* CacheItem::tryDisplayFormat

- Impl::tryDisplayFormat returns whether a conversion is needed, not whether the try was successful. Therefore, we should check the status as well.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28754 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-12 19:25:07 +00:00
Richard Heck
376853cd7a Fix problem with conversion of empty insets. Also, fix problem with error message.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28753 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-11 18:58:38 +00:00
Pavel Sanda
d1a00c53b3 * doxy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28752 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-11 11:58:16 +00:00
Uwe Stöhr
662846f227 preamble.cpp: fix http://bugzilla.lyx.org/show_bug.cgi?id=5846
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28751 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-10 23:55:25 +00:00
Kornel Benko
184cbb6825 Remove "share" from default installation prefix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28750 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-10 07:14:41 +00:00
Uwe Stöhr
5825531628 fix SCons: autogeneration of lyxclient.1 now from lyxclient.1in
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28749 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-10 01:05:09 +00:00
Vincent van Ravesteijn
83dc36d66c Fix an infinite loop with Qt4.5 when creating two unnamed files.
In Qt4.5, QFileInfo::operator==() compares the file locations instead of the files themselves. Therefore, an extra check is needed.

see Qt4.5 documentation:
http://doc.trolltech.com/4.5/qfileinfo.html

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28748 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-09 23:30:08 +00:00
Vincent van Ravesteijn
8988dffe7c Remove black box around GuiWorkarea which is visible with Qt4.5.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28747 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-09 22:29:02 +00:00
Vincent van Ravesteijn
8768fa7251 Proper fix to avoid an infinite loop with Qt4.5.
see: 
http://www.qtsoftware.com/developer/faqs/why-does-qstring-indexof-qregexp-cause-a-crash-or-hang-in-qt-4.5

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28746 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-09 19:54:47 +00:00
Vincent van Ravesteijn
e7e4f9fd55 Revert cs 28742:28744 to prepare for a proper fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28745 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-09 19:47:46 +00:00
Richard Heck
ea0ed17421 Whitespace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28744 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-09 19:12:02 +00:00
Abdelrazak Younes
500add162b Stupid me.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28743 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-09 17:59:17 +00:00
Abdelrazak Younes
2cefb12b22 Avoid infinite loop with Qt4.5 (asserts instead).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28742 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-09 17:38:35 +00:00
Kornel Benko
aff87ada93 autogeneration of lyxclient.1 now from lyxclient.1in
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28741 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-09 15:09:47 +00:00
Jean-Marc Lasgouttes
76d0ead2b6 make the lyxclient man page autogenerated
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28740 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-09 14:49:40 +00:00
Jean-Marc Lasgouttes
9d46b2efc8 more autogenerated strings in lyx man page
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28739 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-09 14:48:17 +00:00
Kornel Benko
9fb1b3aa00 Add variable program_suffix to handle manuals properly
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28738 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-09 14:30:28 +00:00
Jean-Marc Lasgouttes
9c0b6cf700 really reset the LANGUAGE variable to its old value, instead of some other guessed value
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28737 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-09 13:49:53 +00:00
Jean-Marc Lasgouttes
fc1fb61336 allow to read Flex insets with a space in their name
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28736 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-09 13:48:09 +00:00
Jean-Marc Lasgouttes
5c5e7da7b1 change the manual page to reflect build-time program suffix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28735 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-09 13:45:41 +00:00
Enrico Forestieri
bd8788f377 Fix bug 5802 (http://bugzilla.lyx.org/show_bug.cgi?id=5802)
Japanese char between math insets becomes wrong in TeX output


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28732 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-09 06:47:26 +00:00
Enrico Forestieri
3175a28893 Fix bug 5836 (http://bugzilla.lyx.org/show_bug.cgi?id=5836)
Cyrillic formatted text in mathmode

If some other letters from some script need to be typeset in italic,
it will suffice adding the flag "mathalpha" to the unicodesymbols file.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28731 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-09 06:34:00 +00:00
Vincent van Ravesteijn
1827aeda46 Fix scrolling regression (http://www.lyx.org/trac/changeset/28397).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28730 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-08 21:23:31 +00:00
Jürgen Spitzmüller
c4f0fb88f1 * tex2lyx/Makefile.am:
- add tex2lyx.1 to the distribution.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28728 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-08 10:49:06 +00:00
Vincent van Ravesteijn
8e633570bf Fix bug 5357: Close tab possible without close tab icon
http://bugzilla.lyx.org/show_bug.cgi?id=5357

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28727 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-08 10:21:33 +00:00
Vincent van Ravesteijn
8bb4c7bfe9 Fix bug 5695: Default button in GuiHyperlink must be "OK"
http://bugzilla.lyx.org/show_bug.cgi?id=5695

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28726 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-08 09:42:16 +00:00
Pavel Sanda
1486fb5d64 Add open/close to context menus, solve some shortcut conflicts
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28721 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-07 21:44:21 +00:00
Richard Heck
80c7326663 Remove setBuffer() calls that are no longer needed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28720 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-07 21:09:41 +00:00
Jürgen Spitzmüller
d7601a684b fix bug 5833
* Buffer.{cpp, h}:
	- new method getChildren() that returns included (and sub-included) files

* GuiView.cpp (closeEvent):
	- do not just close dirty child documents.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28712 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-07 16:33:03 +00:00
Jürgen Spitzmüller
0bee8a3b56 * CutAndPaste.cpp:
- correctly set buffer on paste. This fixes a crash on pasting branches 
	   within child documents (bug 5813)

(patch by rgheck)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28711 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-07 11:45:41 +00:00
Uwe Stöhr
1f09a2b3b8 new Spanish translation of the linguistics.lyx file
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28707 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-06 22:53:52 +00:00
José Matox
b8ce87578f Use logging module instead of homebrew python class (Patch from Bo Peng)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28704 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-04 18:54:08 +00:00
Jean-Marc Lasgouttes
f24870ea9b In math matrices, make sure that only the align-type tablar-feature can get a check box in menus (with some themes, empty check boxes are visible)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28703 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-04 17:07:05 +00:00
Jean-Marc Lasgouttes
7bd971ff32 isAvailable is static
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28702 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-04 17:02:22 +00:00
Uwe Stöhr
fd051070a1 InsetMathCases.cpp: fix http://bugzilla.lyx.org/show_bug.cgi?id=4141
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28700 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-04 01:30:08 +00:00
Uwe Stöhr
69968b2138 de.po: fix doubled accelerator key
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28699 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-04 01:28:41 +00:00
Uwe Stöhr
e390bdafe3 Math.lyx: updates from Siegfried and some bugfixes spotted by him
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28696 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-04 00:00:31 +00:00
Uwe Stöhr
64bc864a5b uk.po: updates from Yuri for trunk
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28693 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-03 22:48:08 +00:00
Uwe Stöhr
c1e6722a2a new Ukrainian translation of the splash.lyx file from Yuri
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28691 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-03 22:45:50 +00:00
Uwe Stöhr
81d2cf93bb Tutorial.lyx, Spanish UserGuide.lyx: updates and bugfixes by Ignacio
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28689 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-03 22:31:22 +00:00
Pavel Sanda
d1883196ca * generate_contributions.py
(CREDITS is just generated file, one needs to change this script)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28686 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-03 11:16:42 +00:00
Uwe Stöhr
6a1e63c96c docs: a correction
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28684 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-02 22:33:44 +00:00
Uwe Stöhr
b32e623c90 CREDITS: fix typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28680 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-02 21:13:07 +00:00
Pavel Sanda
dcc38928fa * README.localization
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28679 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-02 19:08:41 +00:00
Pavel Sanda
1faf4f660b * Extended.lyx
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28678 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-02 18:52:09 +00:00
Pavel Sanda
1b279c7e5c * CREDITS
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28676 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-02 16:20:46 +00:00
Pavel Sanda
b232e4f354 * generate_contributions.py
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28673 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-02 10:57:24 +00:00