Commit Graph

14186 Commits

Author SHA1 Message Date
Jürgen Spitzmüller
eb0e3ff7b1 * GuiToolbar.cpp (updateContents):
- properly disable layout combo (bug 5054)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25677 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-16 21:35:13 +00:00
Richard Heck
c2a28fa239 Reinstate the commented out check, now that I've figured out how to do it.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25673 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-16 16:05:35 +00:00
Richard Heck
97a9667f6e Clean up the unknown layout stuff some more. Please test to make sure this works with translated layout names, especially when one of them is "unknown". The use of "unknown" with RTL is also wrong, probably, as it will appear on the wrong side. But I'm not sure how to fix that.
BTW, to create a file with an "unknown" layout for testing, just take any LyX file, open it with vi, and replace something like:
\begin_layout Section
with
\begin_layout BlubberStuff
That's probably unknown. ;-)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25671 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-16 15:52:10 +00:00
Richard Heck
741bd1221a Fix for bug 5053. There are still some serious problems here, though, as (a) "unknown" cannot be translated and (b) the way the code was re-written, it will fail if unknown and translated layout names are used. This is because it completely subverts the use of a multicolumn model. I'll try to fix that, too.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25670 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-16 15:29:00 +00:00
Jean-Marc Lasgouttes
81f12d8c85 silence some compiler warnings
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25669 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-16 15:05:34 +00:00
Richard Heck
ab6ecc9fea Clarify comments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25668 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-16 14:49:36 +00:00
Richard Heck
14be46fd4b Comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25667 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-16 14:28:26 +00:00
Richard Heck
a4ed71a212 Try to fix bug 5015---at least the crash is gone---and remove some unused code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25666 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-16 14:23:32 +00:00
Abdelrazak Younes
e1eaea3b4d simplify code by using fontIterator()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25665 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-16 12:40:10 +00:00
Abdelrazak Younes
bef58b3b16 Optimisation: away creation of FontTable for each FontList::fontIterator() call.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25664 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-16 12:09:54 +00:00
Abdelrazak Younes
5013a5cef9 oups!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25660 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-16 09:46:07 +00:00
Abdelrazak Younes
79036bcede fix http://bugzilla.lyx.org/show_bug.cgi?id=5002
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25659 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-16 09:43:46 +00:00
Richard Heck
1ca1c0a326 Add a comment about bug 4812.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25641 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-15 18:09:44 +00:00
Richard Heck
8981e0bad6 Some minor upgrades to r25555. Moved addLayoutIfNeeded() to DocumentClass, most importantly. This should not change any functionality, as the calls were via DocumentClass objects, anyway.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25639 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-15 17:51:57 +00:00
Jürgen Spitzmüller
ce13748eae Restore 1.5.x babel loading order (bug 5024)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25632 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-15 13:08:27 +00:00
Abdelrazak Younes
18e9698f6a Fix http://bugzilla.lyx.org/show_bug.cgi?id=5004
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25630 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-15 11:06:02 +00:00
Pavel Sanda
4813fe32bb Add debug message.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25626 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-15 00:33:37 +00:00
Pavel Sanda
b3cd09dcff We have locale debug level, so put it there.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25625 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 23:54:26 +00:00
Pavel Sanda
9c87bee68d Introduce Debug::SELECTION mainly for copy/paste primary-selection debugging.
Up to now it was hell to debug it, since the selection messages was under different
debug classes and the messages also get completely lost from mouse action events.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25624 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 23:47:54 +00:00
Pavel Sanda
9c638a78ed pasting is more tricky
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25623 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 21:00:11 +00:00
Pavel Sanda
7c1e56508e * doxy bits
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25622 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 20:40:22 +00:00
Jean-Marc Lasgouttes
5be432fb92 Fix bugs 4977 and 2018:
http://bugzilla.lyx.org/show_bug.cgi?id=4977
http://bugzilla.lyx.org/show_bug.cgi?id=2018

	* Text3.cpp (doInsertInset): do not copy selection to clipboard if we 
	do not intend to paste it later (bug 4977); do not remove space at
	start of paragraph (bug 2018); make sure the cursor is at the right
	place after pasting inside inset.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25621 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 19:47:43 +00:00
Pavel Sanda
5e0da19d1b typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25620 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 18:32:49 +00:00
Pavel Sanda
d56e60a1ff * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25619 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 18:30:49 +00:00
Abdelrazak Younes
0f7bae394c Redo 25580 the right way, again :-)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25618 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 17:11:19 +00:00
Richard Heck
a282ef926a I've had to revert r25548 because of:
gdb /home/rgheck/cvs/lyx-devel/trunk/src/lyx --interpreter=mi2 -quiet
Using host libthread_db library "/lib64/libthread_db.so.1".
(gdb) bt
bt
#0  0x000000369a230ec5 in raise () from /lib64/libc.so.6
#1  0x000000369a232970 in abort () from /lib64/libc.so.6
#2  0x000000369a26b0db in __libc_message () from /lib64/libc.so.6
#3  0x000000369a272832 in _int_free () from /lib64/libc.so.6
#4  0x000000369a275f2c in free () from /lib64/libc.so.6
#5  0x00000000004ebbdc in std::_Rb_tree<int, std::pair<int const, lyx::Author>, std::_Select1st<std::pair<int const, lyx::Author> >, std::less<int>, std::allocator<std::pair<int const, lyx::Author> > >::_M_erase (this=0x32c7f68, __x=0x30ece10) at /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/ext/new_allocator.h:94
#6  0x00000000004ebe99 in ~map (this=0x32c7f68) at /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/stl_tree.h:578
#7  0x00000000004df21f in lyx::BufferParams::MemoryTraits::destroy (ptr=0x32c7f60) at Author.h:50
#8  0x00000000004855e4 in ~copied_ptr (this=<value optimized out>) at ../../../src/support/copied_ptr.h:69
#9  0x0000000000488f93 in ~BufferParams (this=0x32c7b30) at ../../../src/BufferParams.h:52
#10 0x0000000000748585 in ~UndoElement (this=0x7fffc1aeebd0) at Undo.cpp:82
#11 0x0000000000745be8 in lyx::Undo::Private::doRecordUndo (this=0x2ef9630, kind=lyx::ATOMIC_UNDO, cell=<value optimized out>, first_pit=<value optimized out>, last_pit=<value optimized out>, cur=<value optimized out>, isFullBuffer=true, isUndoOperation=true) at Undo.cpp:278
#12 0x0000000000745ce7 in lyx::Undo::recordUndoFullDocument (this=0x2ea5620, cur=@0x2f04238) at Undo.cpp:443
#13 0x00000000007a73cc in lyx::Cursor::recordUndoFullDocument (this=0x2f04238) at Cursor.cpp:2139
#14 0x00000000006374e8 in lyx::LyXFunc::dispatch (this=0x2a431a0, cmd=@0x7fffc1af0e20) at LyXFunc.cpp:1426
#15 0x000000000060630c in lyx::dispatch (action=@0x7fffc1af0e20) at LyX.cpp:1131
#16 0x0000000000b1740a in lyx::frontend::Dialog::dispatch (this=<value optimized out>, fr=@0x7fffc1af0e20) at Dialog.cpp:62
#17 0x0000000000b6787b in dispatch_bufferparams (dialog=@0x30e1288, bp=@0x30e1470, lfun=lyx::LFUN_BUFFER_PARAMS_APPLY) at GuiDocument.cpp:2244
#18 0x0000000000b7825b in lyx::frontend::GuiDocument::dispatchParams (this=0x30e1260) at GuiDocument.cpp:2255
#19 0x0000000000b1766e in lyx::frontend::Dialog::apply (this=0x30e1288) at Dialog.cpp:159
#20 0x0000000000b647d8 in lyx::frontend::GuiDialog::slotOK (this=0x30e1260) at GuiDialog.cpp:56
#21 0x0000000000b64871 in lyx::frontend::GuiDialog::qt_metacall (this=0x30e1260, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fffc1af2290) at GuiDialog_moc.cpp:73
#22 0x0000000000b83fed in lyx::frontend::GuiDocument::qt_metacall (this=0x4f17, _c=20247, _id=6, _a=0xffffffffffffffff) at GuiDocument_moc.cpp:90
#23 0x00000034e9cf3d71 in QMetaObject::activate () from /usr/lib64/libQtCore.so.4
#24 0x00000034ea5f3007 in QAbstractButton::clicked () from /usr/lib64/libQtGui.so.4
#25 0x00000034ea416c3b in QAbstractItemModel::sort () from /usr/lib64/libQtGui.so.4
#26 0x00000034ea4182c5 in QAbstractItemModel::sort () from /usr/lib64/libQtGui.so.4
#27 0x00000034ea4184cd in QAbstractButton::mouseReleaseEvent () from /usr/lib64/libQtGui.so.4
#28 0x00000034ea1cf35a in QWidget::event () from /usr/lib64/libQtGui.so.4
#29 0x00000034ea4177df in QAbstractButton::event () from /usr/lib64/libQtGui.so.4
#30 0x00000034ea491778 in QPushButton::event () from /usr/lib64/libQtGui.so.4
#31 0x00000034ea19274c in QApplicationPrivate::notify_helper () from /usr/lib64/libQtGui.so.4
#32 0x00000034ea198c1b in QApplication::notify () from /usr/lib64/libQtGui.so.4
#33 0x0000000000a8084a in lyx::frontend::GuiApplication::notify (this=0x4f17, receiver=0x4f17, event=0x6) at GuiApplication.cpp:1163
#34 0x00000034e9ce3700 in QCoreApplication::notifyInternal () from /usr/lib64/libQtCore.so.4
#35 0x00000034ea1df95d in QAbstractItemModel::sort () from /usr/lib64/libQtGui.so.4
#36 0x00000034ea1de900 in QApplication::x11ProcessEvent () from /usr/lib64/libQtGui.so.4
#37 0x00000034ea200778 in QAbstractItemModel::sort () from /usr/lib64/libQtGui.so.4
#38 0x000000369f62ef53 in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#39 0x000000369f63224d in QAbstractItemModel::sort () from /lib64/libglib-2.0.so.0
#40 0x000000369f63277e in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#41 0x00000034e9d01930 in QEventDispatcherGlib::processEvents () from /usr/lib64/libQtCore.so.4
#42 0x00000034ea20057f in QAbstractItemModel::sort () from /usr/lib64/libQtGui.so.4
#43 0x00000034e9ce2da8 in QEventLoop::processEvents () from /usr/lib64/libQtCore.so.4
#44 0x00000034e9ce2ebd in QEventLoop::exec () from /usr/lib64/libQtCore.so.4
#45 0x00000034e9ce4e71 in QCoreApplication::exec () from /usr/lib64/libQtCore.so.4
#46 0x0000000000a7fb83 in lyx::frontend::GuiApplication::exec (this=<value optimized out>) at GuiApplication.cpp:1032
#47 0x00000000006101e4 in lyx::LyX::exec (this=0x7fffc1af4cf0, argc=@0x7fffc1af4cec, argv=<value optimized out>) at LyX.cpp:342
#48 0x0000000000433aa8 in main (argc=1, argv=0x7fffc1af4df8) at main.cpp:46
^done
I don't know at all what's up here with copied_ptr. Hadn't even heard of it until five minutes ago. ;-) You can cause this crash by opening a new document, opening Document>Settings and changing (say) the Bibliography settings, and then hitting "OK".



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25617 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 16:12:12 +00:00
Jürgen Spitzmüller
1d0bac1144 Fix bug 5040:
* src/support/lstrings.{cpp,h}:
	- new optional param "bool keepemtpy" in getVectorFromString. 
	  By default, empty content between two delimiters was/is not added to the vector.
	  This can be changed with this bool.

* src/insets/InsetIndex.cpp:
	- care for the case when plaintext returns nothing (e.g when ERT is used)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25616 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 16:09:59 +00:00
Jürgen Spitzmüller
b264ae0dc0 * src/insets/InsetBibItem.cpp:
- fix duplicate vheck (bug 5035).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25614 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 12:49:39 +00:00
Jean-Marc Lasgouttes
281035e99a fix compiler warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25612 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 12:41:36 +00:00
Jürgen Spitzmüller
7038f3bd6e compile fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25611 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 12:38:43 +00:00
Abdelrazak Younes
7b1fec8e1e r25604: better fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25610 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 11:49:08 +00:00
Abdelrazak Younes
a9ed4635be Fix Mac gcc warning.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25609 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 11:46:53 +00:00
Abdelrazak Younes
9055871c15 Mac gcc compile fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25608 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 11:40:29 +00:00
Abdelrazak Younes
0915d57aa2 MSVC compile fix :-)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25607 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 11:33:04 +00:00
Abdelrazak Younes
5ec4d80162 gcc compile fixes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25606 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 11:30:51 +00:00
Abdelrazak Younes
10c46e5db8 Fix potential crash.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25604 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 10:14:59 +00:00
Abdelrazak Younes
e8aa9311f4 potentially fix lyxrc.dist isssue with \gui_language
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25602 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 09:57:37 +00:00
Abdelrazak Younes
d6e9c4eec0 Stay on the safe side: prevent filename clashing.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25599 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 09:00:11 +00:00
Abdelrazak Younes
e61643b43b Fix again http://bugzilla.lyx.org/show_bug.cgi?id=5010
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25598 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 08:48:25 +00:00
Abdelrazak Younes
79beb91e3a Sanitize LyX singleton access by getting rid of ref() and cref() methods.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25597 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 08:35:00 +00:00
Jürgen Spitzmüller
f67a9fac2e * src/insets/InsetIndex.cpp (output_latex):
- sanitize the handling of index levels (most of bug 5014).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25596 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 08:20:24 +00:00
Abdelrazak Younes
647ac4a221 safeguards:
- move Previews singleton to LyX
- LyX.cpp: set singleton to zero at destruction.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25594 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 07:16:00 +00:00
Abdelrazak Younes
7b7f95a439 temporarily fix http://bugzilla.lyx.org/show_bug.cgi?id=5026
This will reopen bug 5010 temporarily. Please don't touch this until I am finished.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25593 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 06:29:04 +00:00
Abdelrazak Younes
f04afc6585 reverting the safeguard in 25591. There is an awful lot of things to clean up before we can add this safeguard!!!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25592 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 06:22:41 +00:00
Abdelrazak Younes
10c7f636a6 Add safeguard
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25591 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 06:17:52 +00:00
Abdelrazak Younes
f3f99c354c add const
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25590 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 05:33:14 +00:00
Abdelrazak Younes
e93fd11d41 Fix MSVC warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25589 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 05:19:39 +00:00
Pavel Sanda
a7a31dc392 Remove LFUN_BIBITEM_INSERT.
The last GUI trace for using this lfuns is here: http://www.lyx.org/trac/changeset/9966 .

http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg141812.html



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25588 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 01:28:06 +00:00
Pavel Sanda
bb236cbb0b * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25586 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-13 21:51:46 +00:00
Richard Heck
a24439b154 Redo 25580 the right way. (Failure to initialize bparams had caused constant crashes.)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25584 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-13 19:34:56 +00:00
Richard Heck
a692a56f4c Revert 25580.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25583 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-13 19:33:05 +00:00
Richard Heck
ec86523845 Another small optimization: Don't bother copying the BufferParams unless we need it.
This may speed up repeated undos a bit.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25580 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-13 19:04:44 +00:00
Richard Heck
9c6546fbd2 A small optimization: Don't do a copy here.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25578 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-13 19:00:55 +00:00
Pavel Sanda
44d0356900 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25573 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-13 10:45:46 +00:00
Jean-Marc Lasgouttes
69080628a0 cleanup makefiles after config.h.in has been moved to top_srcdir
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25566 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-11 14:06:04 +00:00
Pavel Sanda
c29bd2ef53 Revert http://www.lyx.org/trac/changeset/25471 /2
This commit hasn't announced in http://bugzilla.lyx.org/show_bug.cgi?id=4749
and bring this bug in a different flavour, see comment 28.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25564 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-11 11:40:47 +00:00
Abdelrazak Younes
33b75ac079 Fix http://bugzilla.lyx.org/show_bug.cgi?id=5011
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25562 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-11 09:35:05 +00:00
Abdelrazak Younes
29253a74d5 Fix http://bugzilla.lyx.org/show_bug.cgi?id=5023
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25560 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-11 09:03:09 +00:00
Jürgen Spitzmüller
dcc4d58b66 *** Implement GUI names for encodings (part of bug 4971) ***
* lib/encodings:
	- add new column "GUI names"

* src/Encoding.{cpp,h}:
	- read in and handle GUI names

* src/frontends/qt4/GuiDocument.cpp:
	- display GUI names instead of LaTeX names

* po/lyx_pot.py:
* po/Rules-lyx:
* development/scons/SConstruct:
	- add encoding GUI names to the po files.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25558 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-11 08:56:17 +00:00
Jürgen Spitzmüller
47e6b74e74 * src/insets/InsetSpace.cpp:
- proper visualization for negative hspaces, in analogy to negative vspaces.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25557 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-11 08:46:05 +00:00
Richard Heck
f854295dab 'Default'-->'Empty' in Bo's recent commit. Default means something else in the code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25556 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-11 03:41:56 +00:00
Bo Peng
763ef015ce Improve the local layout feature by better handling of unknown textclass, unknown layouts, and switch between textclasses.
* src/TextClass.h[.cpp]: add addLayoutIfNeeded() and createDefaultLayout()
	* src/Layout.h[.cpp]: add unknown_ to mark if a layout is a default layout for an unknown one.
	* src/LayoutFile.cpp: add addDefaultClass and change addLayoutFile to addLocalLayout.
	* src/Text.cpp: add unknown layouts that are not recognizable by a new textclass.
	* src/frontends/qt4/GuiToolbar.cpp: display (unknown) for unknown layouts.
	* src/frontends/qt4/GuiDocument.cpp: restore 'browse layout' button.
	* src/frontends/qt4/ui/LaTeXUi.ui: restore 'browse layout' button.
	* src/CutAndPaste.cpp: do not convert unknown layouts from pasted text
	* src/BufferParams.cpp: add a default textclass when a document with unknown textclass is loaded.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25555 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-11 02:43:02 +00:00
Pavel Sanda
8dfd3c5ed4 * Doxy.
I myself don't understand the Notion line taken from the source code.
LFUN_ALL_CHANGES_REJECT is currently broken, so I can't test.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25554 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-11 00:31:41 +00:00
Pavel Sanda
08165a71bb Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=5008 .
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25553 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-10 23:35:12 +00:00
Pavel Sanda
64dd1e4570 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25548 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-10 22:39:29 +00:00
Pavel Sanda
ff705e9b85 Add comment to avoid future clashes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25545 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-10 22:14:29 +00:00
Uwe Stöhr
3ceba1f8e4 InsetSpace.cpp:
- use another color for negative spaces to be able to distinguish it from "normal" positive one
 - don't swap the inset drawing as this inconsistent to the other negative spaces and the ones in math mode

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25544 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-10 22:01:57 +00:00
Richard Heck
780bce0f96 Rename empty layout stuff to plain layout stuff.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25541 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-10 17:41:52 +00:00
Richard Heck
f57a0a5dac Revert r25538.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25540 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-10 16:38:01 +00:00
Abdelrazak Younes
24a94f7254 Saves some more memory.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25538 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-10 16:13:43 +00:00
Abdelrazak Younes
11e1821284 Fix crash when tab group is closed while Outline is opened.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25537 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-10 12:44:50 +00:00
Pavel Sanda
f51305b047 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25535 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-10 12:21:51 +00:00
Abdelrazak Younes
ab5a4d4f0f reverting 25454 and fix http://bugzilla.lyx.org/show_bug.cgi?id=4758; again!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25534 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-10 11:53:57 +00:00
Abdelrazak Younes
7122fd58d8 stupid me...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25533 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-10 11:45:16 +00:00
Abdelrazak Younes
f71ec170f7 Fix http://bugzilla.lyx.org/show_bug.cgi?id=5016
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25532 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-10 11:43:12 +00:00
Jürgen Spitzmüller
f10b67b09f * src/insets/InsetSpace.cpp:
- comment

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25531 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-10 07:45:33 +00:00
Jürgen Spitzmüller
21f3fadbc1 * src/insets/InsetSpace.cpp:
- (simple) visual indication for negative hspaces.
	- minimal metrics width for hspaces.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25530 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-10 07:43:21 +00:00
Pavel Sanda
04397b84f0 typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25528 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-09 23:20:06 +00:00
Pavel Sanda
31ec62658f * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25527 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-09 23:17:28 +00:00
Richard Heck
aee1d2b0f7 Do this check before we start creating things.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25525 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-09 22:59:16 +00:00
Richard Heck
2b70ed0204 Thanks, Abdel.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25524 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-09 21:58:13 +00:00
Richard Heck
663043fd22 Fix the rest of bug 5010.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25523 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-09 21:27:15 +00:00
Richard Heck
9aa5b42262 Fix bug 5010, for the most part. There's no need to construct a default UndoElement,
which involves constructing a default BufferParams (this is expensive), only then to
over-write everything. 


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25522 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-09 18:42:41 +00:00
Pavel Sanda
f0c81b243f * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25521 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-09 18:37:24 +00:00
Pavel Sanda
e2974946f4 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25520 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-09 15:38:13 +00:00
Jürgen Spitzmüller
0160b75b4d * src/insets/InsetSpace.cpp:
- use abs().

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25516 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-09 10:31:16 +00:00
Abdelrazak Younes
9406eb0ff9 Fix crash reported in http://bugzilla.lyx.org/show_bug.cgi?id=4873
I don't think the crash is related to that bug.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25514 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-09 09:48:59 +00:00
Jürgen Spitzmüller
01fb1898ad * src/insets/InsetSpace.cpp:
- correct metrics for negative hspaces (bug 5009).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25512 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-09 08:12:38 +00:00
Jürgen Spitzmüller
612e52b093 Back to CJK sanity I: Fix bug 4698 and 4696.
* lib/encodings:
* src/support/docstream.h:
	- JIS is not a valid iconv name. Rename to ISO-2022-JP

* src/output_latex.cpp:
	- fix wrong encoding switch.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25510 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-09 07:21:02 +00:00
Richard Heck
53c764ed9b More comments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25507 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-08 18:13:47 +00:00
Richard Heck
b53dc7a033 Comments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25506 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-08 17:57:20 +00:00
Jean-Marc Lasgouttes
1f9aaff77b typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25505 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-08 09:24:28 +00:00
Jean-Marc Lasgouttes
67774abaf2 * Text.cpp (cursorForwardOneWord, cursorBackwardOneWord): fix
moving in mac-like mode (a space is not a char)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25504 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-08 09:19:41 +00:00
Pavel Sanda
052b9a8874 Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=4943 .
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25503 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-07 23:41:19 +00:00
Richard Heck
ea5eb8cf85 Update doxy a bit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25500 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-07 21:45:54 +00:00
Pavel Sanda
dd2f66af0f Add comment from Paul Rubin.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25499 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-07 21:25:59 +00:00
Pavel Sanda
59553ea2c7 Finish server lfuns doxyfication.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25494 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-07 19:23:53 +00:00
Pavel Sanda
391c3234ff Removal of LFUN_SERVER_CHAR_AFTER.
This lfun do *nothing*.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25493 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-07 19:16:13 +00:00
Pavel Sanda
8823b29cd5 LFUN_SERVER_GET_NAME -> LFUN_SERVER_GET_FILENAME.
Make the naming unambiguous.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25491 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-07 19:09:06 +00:00
Pavel Sanda
41e45a8977 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25483 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-07 17:26:07 +00:00
Richard Heck
89695eb813 Fix bug 4976.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25481 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-07 16:48:36 +00:00
Pavel Sanda
12c72ac7fb Forgot to remove the files.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25480 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-07 16:37:38 +00:00
Pavel Sanda
20b9e0ba93 Remove InsetEnvironment. This is unfinished decade old stuff.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg141609.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25479 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-07 16:34:55 +00:00
Richard Heck
341e4480df Typo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25476 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-07 15:41:36 +00:00
Jürgen Spitzmüller
939bb2f20c * GraphicsUi.ui: re-save in qt designer 4.1 format.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25473 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-07 10:17:48 +00:00
Abdelrazak Younes
d6ee64599c adjust comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25472 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-07 08:52:21 +00:00
Abdelrazak Younes
2fe39e6a2f Use png as default conversion format.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25471 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-07 08:47:57 +00:00
Pavel Sanda
c077415c87 Next leftover.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25468 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-06 21:22:25 +00:00
Pavel Sanda
064c280f17 Leftover from http://www.lyx.org/trac/changeset/23471
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25467 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-06 21:03:05 +00:00
Uwe Stöhr
12d7a6d952 GraphicsUi.ui: don't open the dialog always with the Options tab but with the Graphics tab, fixes a regression
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25461 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-06 14:54:54 +00:00
André Pönitz
7934e9c224 wrong editor settings from wrong project...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25460 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-06 10:56:47 +00:00
André Pönitz
6ee64a4812 fix crash.
that's not a proper solution, though.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25459 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-06 10:55:47 +00:00
Enrico Forestieri
aabd9d03bb Fix bug 4992
http://bugzilla.lyx.org/show_bug.cgi?id=4992


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25458 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-05 23:29:48 +00:00
Pavel Sanda
f4ed12ee7a * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25457 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-05 21:56:26 +00:00
Peter Kümmel
cb93ae8b61 fix memory leak
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25454 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-05 09:42:30 +00:00
Enrico Forestieri
cfe615d063 Ensure no trailing '/'
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25453 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-05 09:09:50 +00:00
Jürgen Spitzmüller
2c5d1e9ebe * src/frontends/qt4/GuiDocument.cpp:
* src/frontends/qt4/ui/LaTeXUi.ui:
	- hide the "browse local layout" button as discussed on
	  http://bugzilla.lyx.org/show_bug.cgi?id=4812
	  because the local layout feature can result in dataloss.

	  Whether the feature itself should be removed for 1.6.0 has
	  to be discussed.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25452 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-05 08:54:48 +00:00
Pavel Sanda
58de813a30 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25451 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-04 23:38:46 +00:00
Pavel Sanda
d9eaed1672 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25450 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-04 19:25:19 +00:00
Pavel Sanda
eba82d32d7 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25449 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-04 17:41:58 +00:00
Jürgen Spitzmüller
4573ae2261 * src/Paragraph.cpp: correct comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25447 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-04 14:28:13 +00:00
Edwin Leuven
dd6d173082 fix http://bugzilla.lyx.org/show_bug.cgi?id=4998
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25445 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-04 13:18:28 +00:00
Abdelrazak Younes
788893bdea please JMarc
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25444 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-04 13:14:20 +00:00
Abdelrazak Younes
81f63f6670 Remove double slash in system temporary path.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25442 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-04 12:28:55 +00:00
Abdelrazak Younes
979f5211a4 Fix PageDown/Up when at bottom/top of the document. Now the cursor moves to the bottom/top position. This also fixes http://bugzilla.lyx.org/show_bug.cgi?id=4384
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25441 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-04 11:33:28 +00:00
Abdelrazak Younes
639abeae66 Work around bug http://bugzilla.lyx.org/show_bug.cgi?id=4846
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25440 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-04 10:16:54 +00:00
Jürgen Spitzmüller
59390f9d08 * Paragraph.cpp:
- some cleanups and comments.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25438 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-04 06:44:37 +00:00
Jürgen Spitzmüller
05f7926109 * Paragraph.cpp:
- correct the kerning between two subsequent '<' or '>' characters.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25436 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-04 06:01:45 +00:00
Pavel Sanda
46fbb7436b * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25435 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-04 00:03:52 +00:00
Jürgen Spitzmüller
750b9b8fa6 * src/Paragraph.cpp (latexSpecialTypewriter):
- do not assume that typewriter can encode any character (bug 4727).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25433 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-03 14:29:37 +00:00
Jürgen Spitzmüller
01c71419d9 *** Extend preview scripts to also handle PDF output (bug 2165) ***
* src/PreviewLoader.cpp:
	- add conditions for preview with pdf output

* lib/scripts/legacy_lyxpreview2ppm.py:
	- if no dvi preview file is available, check for a PDF file
	  and process that, if found
	- also produce png output, if requested.

* lib/scripts/lyxpreview2bitmap.py:
	- if no dvi preview file is available, check for a PDF file
	  and process that, if found

*  lib/scripts/lyxpreview_tools.py:
	- move some common functions here

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25419 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-02 14:42:04 +00:00
Jürgen Spitzmüller
35e14de706 * src/output_latex.cpp:
- no blank lines before environments (bug 4993).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25416 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-02 08:34:55 +00:00
Jürgen Spitzmüller
5011d7c25f * Paragraph.cpp: fix typo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25415 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-01 15:16:09 +00:00
Jean-Marc Lasgouttes
32ccbb7f58 please Abdel
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25414 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-01 15:12:28 +00:00
Jean-Marc Lasgouttes
5cef8b6887 * LyXRC.cpp:
* development/MacOSX/lyxrc.dist.in: new variable mac_like_word_movement,
	set to true on Mac OS X. There is no GUI for it now.

	* src/Paragraph.cpp (isSpace): new method
	(isChar): return false for a space.

	* src/Text.cpp (cursorForwardOneWord, cursorBackWardOneWord): implement
	mac-like cursor movement.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25413 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-01 14:42:32 +00:00
Enrico Forestieri
1e801d0361 Fix bug 2721
http://bugzilla.lyx.org/show_bug.cgi?id=2721


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25409 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-01 12:46:46 +00:00
Abdelrazak Younes
66bd5be5fc up-port fixes and cleanups from BRANCH.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25408 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-01 07:28:37 +00:00
Abdelrazak Younes
048efafe3c Fix wheel mouse scrolling bug when speed is set to 'one page at a time'.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25406 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-30 17:18:41 +00:00
Jean-Marc Lasgouttes
0bc9149eda one more step towards good word-level movement: let paragraph breaks be word boundaries
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25405 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-30 12:45:27 +00:00
Jean-Marc Lasgouttes
d3bf7155b8 rewrap long lines
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25404 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-30 11:02:21 +00:00
Enrico Forestieri
2477901f07 Fix color of math macros
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25403 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-28 22:49:40 +00:00
André Pönitz
0a24167e51 more robust. I get spurious crashes in this area... maybe c_str()
instead of data() would be in order, too


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25402 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-28 18:34:19 +00:00
Pavel Sanda
e6e83a6272 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25392 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-26 21:42:39 +00:00
Pavel Sanda
2889cda870 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25391 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-25 23:59:19 +00:00
Abdelrazak Younes
a54850d762 GuiApplication::resetGui(): reset as many things as possible, including menus and toolbars (not sure about Mac global menubar yet). This means that except for already opened dialog, all ui rc settings are taken into account without the need to restart.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25390 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-25 18:03:38 +00:00
Abdelrazak Younes
1d109d8c6f microptimisation.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25389 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-25 16:18:27 +00:00
José Matox
1b2b5726be Fix missing include (QMessageBox) and clean extra whitespaces.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25388 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-25 15:02:18 +00:00
Abdelrazak Younes
d748af0299 Add a preference combo box for the preferred user interface language. The rc variable gui_language now require a language name and not its code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25387 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-25 13:32:27 +00:00
Abdelrazak Younes
1c83bf9420 GUI language via RC: some bug corrections.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25386 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-25 11:10:10 +00:00
Abdelrazak Younes
39393bf788 Introduce Debug::LOCALE for locale debugging.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25385 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-25 10:53:34 +00:00
Abdelrazak Younes
162b3b3b30 Fix toc and source-view initial showing.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25384 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-25 07:23:30 +00:00
Pavel Sanda
07af8fecb5 * Doxy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25383 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-24 23:07:38 +00:00
Pavel Sanda
a0918e4fae * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25382 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-24 17:28:35 +00:00
Abdelrazak Younes
ceb43a2d1f revert 25377. That was not doing anything useful!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25381 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-24 13:29:15 +00:00
Abdelrazak Younes
43d9183798 Idea from JMarc:
Merge env_gui_language into gui_language. "auto" now means that the language will be retrieved from the environment.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25380 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-24 13:23:44 +00:00
Abdelrazak Younes
b04c22ba67 Add two RC variables that can be used to set the GUI language:
- env_gui_language: set to true (default) if the language is to be retrieved from current environment variable.
- gui_language: specify language for GUI strings. Only used if env_gui_language is false


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25379 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-24 12:55:40 +00:00
Abdelrazak Younes
928c1daa55 Messages::get(): Add two error messages just in case.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25378 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-24 12:45:57 +00:00
Abdelrazak Younes
bcfedd4112 get_locale_dir(): add a fallback to po/ driectory in source tree in case LyX xas launched with '-sysdir' on a source tree lib/
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25377 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-24 12:43:30 +00:00
Jean-Marc Lasgouttes
2c0f0d3312 stupid off-by-one error in r25373
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25375 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-24 09:57:38 +00:00
Jean-Marc Lasgouttes
71860fbc86 suppress warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25374 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-24 09:52:43 +00:00
Jean-Marc Lasgouttes
cfbe5dd9e1 Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=3580
* Paragraph.cpp (isChar): new method; returns true when pointer is on 
	a character that is not a letter. Note that a footnote inset, for 
	example is neither a letter nor a character.

	* Text.cpp (cursorForwardOneWord, cursorBackwardOneWord): rewrite by
	using 3 character categories: letters, characters and others. 


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25373 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-24 09:19:52 +00:00
Pavel Sanda
f6d0205398 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25372 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-24 08:45:52 +00:00
Pavel Sanda
78356819ea Move LFUN_ALL_INSETS_TOGGLE dispatch to BufferView.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25371 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-24 07:52:49 +00:00
Pavel Sanda
4080b7cc24 Move LFUN_GRAPHICS_GROUPS_UNIFY dispatch to BufferView.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25370 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-24 07:43:47 +00:00
Pavel Sanda
f43129f315 Fix includes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25369 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-24 07:37:14 +00:00
Pavel Sanda
397afb607f Move LFUN_NOTES_MUTATE dispatch to BufferView.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25368 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-24 07:18:06 +00:00
Enrico Forestieri
4fa59cbd9b Fix bug 4320
http://bugzilla.lyx.org/show_bug.cgi?id=4320


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25367 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-24 05:51:15 +00:00
Jürgen Spitzmüller
8cbc28d880 * src/Encoding.{cpp,h}:
- build an exception list of characters that must be output as LaTeX command in any case
	  (except in utf8-plain). I.e., the utf8 encodings now also honour the "force" flag.
* lib/unicodesymbols:
	- add "force" flag to combine characters. Fixes rest of bug 4946.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25361 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-23 18:00:43 +00:00
Uwe Stöhr
e2e78fa20a - support for polytonic Greek, fileformat incremented to 338, fixes bug 4969, patch by me and Jürgen
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25356 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-22 23:21:46 +00:00
Enrico Forestieri
419b5a1551 Fix the new incarnation of bug 4687
http://bugzilla.lyx.org/show_bug.cgi?id=4687


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25355 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-22 22:32:48 +00:00
Jürgen Spitzmüller
49e4763f6b * Paragraph.cpp (latexSurrogatePair):
- do not use braces for combinated characters that are natively output (as unicode glyphs)
	  (fixes part of bug 4946)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25347 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-21 07:12:56 +00:00
Abdelrazak Younes
f033198c3f Avoid any signal/slot communication when the graphic is directly showable on screen. This should complete the fix to http://bugzilla.lyx.org/show_bug.cgi?id=4829
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25340 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-20 16:12:48 +00:00
Abdelrazak Younes
e9e90558db forgot this in prev commit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25339 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-20 13:36:35 +00:00
Abdelrazak Younes
c75ff524bf Fix ScrollBarAsNeeded
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25338 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-20 13:29:25 +00:00
Abdelrazak Younes
2a1b0968cb more sensible value for max scrollbar value. Related to http://www.lyx.org/trac/changeset/24298.
Should fix bug http://bugzilla.lyx.org/show_bug.cgi?id=4901



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25337 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-20 12:52:38 +00:00
Abdelrazak Younes
46cb120300 Fix http://bugzilla.lyx.org/show_bug.cgi?id=4829
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25336 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-20 12:31:03 +00:00
Abdelrazak Younes
c3c49d8a0b Fix http://bugzilla.lyx.org/show_bug.cgi?id=4954
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25335 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-20 11:57:43 +00:00
Jean-Marc Lasgouttes
3e5493ace1 typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25333 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-20 08:26:03 +00:00
Jean-Marc Lasgouttes
25d1e35ff5 rewrite obsolete comment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25332 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-20 08:25:13 +00:00
Abdelrazak Younes
c3727bc147 fix initial outline disabling.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25330 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-20 06:43:43 +00:00
Abdelrazak Younes
efd6dc8a0c One view/doc: more fixes and cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25329 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-20 06:35:42 +00:00
Abdelrazak Younes
2ab92aba67 retro commit a bit. Should hopefully fix the crashes on Mac.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25328 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-19 20:48:49 +00:00
Abdelrazak Younes
65b37dfbb8 Some more fixes to multi-windows.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25327 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-19 17:30:30 +00:00
Abdelrazak Younes
4441cd8a4a GuiView::on_lastWorkAreaRemoved(): the window closing doesn't have to be delayed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25326 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-19 15:55:34 +00:00
Abdelrazak Younes
fb47b716d7 Polish the one window per document user experience.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25325 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-19 15:39:15 +00:00
Abdelrazak Younes
82d467ea6d CreateView(): Simplify id test and add a debug output.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25324 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-19 14:22:32 +00:00
Abdelrazak Younes
ad68145492 Fix http://bugzilla.lyx.org/show_bug.cgi?id=4941
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25323 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-19 13:35:19 +00:00
Abdelrazak Younes
f29a8f54a4 Fix initial cursor visibility problem.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25322 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-19 13:10:25 +00:00
Pavel Sanda
963b2c48d4 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25321 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-19 11:45:20 +00:00
Abdelrazak Younes
26dbfbcf89 Present to Mac users: Session handling per document instead of per window when "open document in tabs" is disabled.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25320 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-19 11:28:11 +00:00
Enrico Forestieri
ab9a074f20 Trust Andre'
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25319 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-19 09:17:57 +00:00
Enrico Forestieri
c691839abe Fix bug 4687
http://bugzilla.lyx.org/show_bug.cgi?id=4687


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25318 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-19 09:16:05 +00:00
Abdelrazak Younes
312bb47dd5 Some more fixes to icon size and session settings.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25317 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-19 07:40:29 +00:00
Abdelrazak Younes
1009aed25a fix http://bugzilla.lyx.org/show_bug.cgi?id=4957
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25316 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-19 06:21:04 +00:00
Pavel Sanda
467281b334 No need to fit cursor here.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25313 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-18 23:26:25 +00:00
Pavel Sanda
be9587f9d9 Comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25312 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-18 23:03:29 +00:00
Pavel Sanda
5d66da8887 markDirty is automatic.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25311 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-18 22:51:12 +00:00
Pavel Sanda
8018bef22b Some hints from JMarc.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25310 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-18 22:37:35 +00:00
Pavel Sanda
dcc50a2454 Fix include orderings.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25309 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-18 18:54:31 +00:00
Pavel Sanda
7267b4bef2 Cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25308 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-18 18:27:45 +00:00
Pavel Sanda
1f1951e210 Add LFUN_NOTES_MUTATE for global change of note insets type.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg141339.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25306 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-18 18:16:50 +00:00
Abdelrazak Younes
a7de101b64 Revert 25234: Even though this is not recommended, using repaint give a much better user experience when dragging the scrollbar slider. So I am changing it back. I've solved the problem leading to rev25234 thanks to the new TocModel anyway.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25305 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-18 14:15:48 +00:00
Abdelrazak Younes
bd569ada80 Local aware sorting of the toc type.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25304 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-18 11:35:24 +00:00
Pavel Sanda
ca1f3d29b5 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25299 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-17 23:44:00 +00:00
Pavel Sanda
faa41bfdf2 Delete LFUN_MATH_IMPORT_SELECTION.
This lfun is just duplicate of LFUN_MATH_MODE now.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25296 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-17 19:44:10 +00:00
André Pönitz
5dd5d98473 make _GLIBCXX_DEBUG_PEDASSERT happy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25295 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-17 16:33:19 +00:00
André Pönitz
61aa683425 compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25294 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-17 16:26:43 +00:00
Abdelrazak Younes
cd877a3919 move a loc to where it's useful.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25293 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-17 15:49:14 +00:00
Abdelrazak Younes
81bc06db34 Navigator:
- some cleanup in TocWidget
- fix Read-only document navigation.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25292 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-17 15:44:14 +00:00
Abdelrazak Younes
56f7a70e48 delete unused interface.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25291 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-17 15:18:34 +00:00
Abdelrazak Younes
6ad1b1cd09 General cleanup of the Outline/Navigator:
- Make use the Qt Model/View separation concept, TocWidget is now really just a view of the current toc model.
- the toc type combo now use a model defined in TocModels.
- the models are not deleted at each reset, they are now just cleared out.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25289 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-17 15:10:03 +00:00
Abdelrazak Younes
b5252b737f Don't close child documents.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25288 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-17 14:53:08 +00:00
Enrico Forestieri
e224ef029b Implement the suggestion by Andre'
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25287 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-17 11:10:43 +00:00
Pavel Sanda
d25aa0ad38 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25286 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-16 23:01:14 +00:00
Enrico Forestieri
01398327df Ops
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25285 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-16 20:39:40 +00:00
Enrico Forestieri
4781794e4e The mode changing math insets already provide the needed info, so
this is definitely better.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25284 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-16 20:25:44 +00:00
Abdelrazak Younes
8db9fcfcb9 revert 25271 which was problematic. Sorry for the delay.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25283 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-16 19:51:00 +00:00
Enrico Forestieri
aace605564 Avoid 11 from_ascii calls
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25282 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-16 18:52:54 +00:00
André Pönitz
6a56be232d save a few allocations in from_ascii.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25281 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-16 18:27:11 +00:00
Jürgen Spitzmüller
c2d1b2ea82 GuiPrefs.cpp: fix signal.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25280 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-16 17:16:15 +00:00
Jürgen Spitzmüller
93ab5a427d * src/frontends/qt4/Menus.cpp:
* po/lyx_pot.py:
	- make flex insets in the menus translatable.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25276 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-16 15:19:31 +00:00
Pavel Sanda
162e176006 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25275 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-16 15:13:47 +00:00
Enrico Forestieri
31713932b2 Use a helper method in order to avoid code repetition.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25273 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-16 14:32:51 +00:00
Abdelrazak Younes
68fbb326af * GuiWorkArea::addWorkArea(): avoid multiple unneeded drawing.
* GuiWorkArea::on_currentTabChanged(): make sure the bufferView has the correct size.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25271 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-16 07:23:08 +00:00
Enrico Forestieri
90837aaf6e Fix bug 1527
http://bugzilla.lyx.org/show_bug.cgi?id=1527

* src/mathed/*.cpp:
	- Track mode (math or text) when outputting latex code and
	  properly wrap commands that are in the wrong mode with
	  either \ensuremath or \lyxmathsym.

* src/mathed/MathParser.cpp:
	- Parse \ensuremath and \lyxmathsym, such that exported latex
	  produces the same result when imported back.
	- Replace latex commands with corresponding unicode symbols.

* src/Encoding.cpp:
	- Implement Encodings::fromLaTeXCommand() for converting either
	  a single or a sequence of latex commands to unicode symbols.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25270 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-16 01:21:17 +00:00
Pavel Sanda
4044737b8d Cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25269 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-15 22:56:45 +00:00
Stefan Schimanski
978a357864 * doxygen for LFUN_MATH_MACRO
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25268 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-15 22:42:45 +00:00
Pavel Sanda
389d2f99c0 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25267 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-15 22:22:47 +00:00
Pavel Sanda
8ab36ddef7 Let LFUN_MATH_SPACE use various spaces we support.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25266 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-15 22:12:40 +00:00
Jürgen Spitzmüller
483e1fcd19 ExternalTemplate.cpp:
- sort Lexer table.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25262 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-15 14:23:45 +00:00
Enrico Forestieri
593e06989a Fix bug 4951
http://bugzilla.lyx.org/show_bug.cgi?id=4951


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25261 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-15 14:21:53 +00:00
Pavel Sanda
61e2044d22 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25258 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-15 10:19:39 +00:00
Pavel Sanda
a4b76f6605 Make Delimiter dialog stretchable.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25257 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-15 10:06:54 +00:00
Pavel Sanda
58ad19a232 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25251 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-15 00:44:17 +00:00
Pavel Sanda
cb5ce8348b Ressurect LFUN_MATH_SIZE, set toolbars accordingly.
http://thread.gmane.org/gmane.editors.lyx.devel/108469


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25250 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-14 18:38:14 +00:00
Pavel Sanda
5e603f5703 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25249 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-14 18:25:21 +00:00
Pavel Sanda
ce2380135b * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25248 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-13 14:15:13 +00:00
Abdelrazak Younes
4a1be58591 - Simplify prefs, graphics and external display options which are now true or false.
- the display combo in the prefs, external and graphics dialogs are gone
- the lyxrc display_graphics option now overrides any local inset display option
- The external template format has a new tag: Preview
- format incremented to 337


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25245 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-13 07:34:55 +00:00
Pavel Sanda
2c44c3d031 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25244 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-13 00:03:36 +00:00
Pavel Sanda
87a64de1e7 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25243 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-12 20:16:51 +00:00
Abdelrazak Younes
d353a6f899 Mac compile fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25241 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-12 17:34:01 +00:00
André Pönitz
5791f8a894 cosmetics; compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25239 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-12 16:46:46 +00:00
Abdelrazak Younes
28b77e4f72 GuiView: Moving updateStatusBar() out of updateDialogs() because this is no end of trouble WRT recursive paintings.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25238 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-12 16:00:36 +00:00
Abdelrazak Younes
825bac4b43 Fix crash on new document.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25237 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-12 15:43:31 +00:00
Abdelrazak Younes
edd117f27a remove unneeded TocModel::clear() method.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25236 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-12 15:34:12 +00:00
Abdelrazak Younes
6876ffa65b Simplify TocModel by using UserRole data.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25235 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-12 15:31:10 +00:00
Abdelrazak Younes
f8110b8b60 Fix another recursive repaint problem with Qt4.4 when erasing a section text with backspace while the Outline is opened.
This should in principle not affect drawing but X11 testing with autorepeat key is required.





git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25234 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-12 15:25:17 +00:00
Abdelrazak Younes
1494e0a687 Fix crash when closing a second lyx window due to a recursive painting (QT4.4 issue). This code was not needed anyway.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25233 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-12 13:04:59 +00:00
Pavel Sanda
dc4f254726 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25232 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-12 11:10:47 +00:00
Pavel Sanda
74fa517035 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25231 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-11 23:24:28 +00:00