Commit Graph

14649 Commits

Author SHA1 Message Date
Jean-Marc Lasgouttes
a77cd8c0c6 cleanup parser code at least
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24323 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-18 12:26:21 +00:00
Abdelrazak Younes
108bac9798 Fix recursive repaint. QSlider::setRange() didn't used to trigger valueChanged() signal before to Qt4.4.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24322 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-18 11:38:02 +00:00
Bo Peng
f8c19c365d Embedding: clean up InsetInclude (hopefully)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24321 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-18 03:11:06 +00:00
André Pönitz
2c73b5af3c move assert function to a separate file
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24318 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-17 21:11:41 +00:00
Bo Peng
2fd9be2143 Embedding: disinfect GuiInclude.cpp, GuiExternal.cpp, and GuiGraphics.cpp
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24317 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-17 18:19:17 +00:00
Bo Peng
4c92b15528 Embedding: remove embedding checkbox from Graphics, Include and External dialogs
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24316 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-17 18:09:44 +00:00
Edwin Leuven
398d9fdfbb fix http://bugzilla.lyx.org/show_bug.cgi?id=4756
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24315 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-17 15:07:04 +00:00
Richard Heck
36b99d0420 Add an assertion so we don't see that bug again.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24314 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-17 13:15:27 +00:00
Richard Heck
ffa42cb236 Give us some useful tooltips for modules.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24312 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-17 03:27:20 +00:00
Richard Heck
0246d95423 Fix a bug noticed by Stefan: that the module UI was broken. The problem was introduced at r23981. The data() and setData() methods must be kept in sync.
There's also a little cleanup here.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24311 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-17 02:43:57 +00:00
Uwe Stöhr
7ba6ed2654 tex2lyx/Parser.cpp: rename a function since it returns a mandatory argument
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24310 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-17 00:22:16 +00:00
André Pönitz
fa804db4ab fix leak in the undo stack
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24308 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-16 22:02:26 +00:00
André Pönitz
b8c086b363 a leak in DocumentClassBundle.
However, I am not really sure we should care about these. It's not much
difference, except that application shutdown in slower after 'fixing'
them.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24305 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-16 21:23:45 +00:00
André Pönitz
f227ebb021 style
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24303 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-16 20:43:30 +00:00
Peter Kümmel
6beb9f973c replace with simpler fix, thx Andre
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24301 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-16 20:42:33 +00:00
André Pönitz
8d4b7cf4ff squash another valgrind warning. the code was safe, though...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24300 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-16 20:37:23 +00:00
Peter Kümmel
c72634f95e fix some memory leaks
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24299 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-16 19:43:06 +00:00
André Pönitz
bdc6d56cc7 initialize scrollbar parameters to some sensible dummy values.
valgrind reported conditional jumps on uninitialized values
in BufferView.cpp:1920


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24298 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-16 18:18:12 +00:00
Peter Kümmel
2988537f7f there is no trunk/src/intl folder
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24297 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-16 16:51:29 +00:00
Peter Kümmel
ca1d4445b1 cleanup namespace
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24296 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-16 16:48:12 +00:00
Uwe Stöhr
7fa7e2a9d9 languages: support for Mexican Spanish as discussed in http://bugzilla.lyx.org/show_bug.cgi?id=4736
fileformat change

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24288 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-16 00:25:08 +00:00
Uwe Stöhr
82fca3a08d InsetMathNest.cpp: fix bug 4720 for trunk as well
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24287 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-15 23:44:23 +00:00
Pavel Sanda
1735130e8b * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24278 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-15 20:17:06 +00:00
André Pönitz
b66c1499be well... use the liberty we now have
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24277 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-15 18:04:49 +00:00
Abdelrazak Younes
8098065d59 Release compile fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24275 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-15 17:26:19 +00:00
Jürgen Spitzmüller
92b646c4d9 * TocUI: adapt tooltip to new situation.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24274 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-15 17:17:36 +00:00
André Pönitz
22de2326e9 fix crash on application desctruction
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24273 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-15 17:00:53 +00:00
Richard Heck
61354cd3b2 Fix comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24267 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-15 15:32:46 +00:00
Richard Heck
c4f8a516bd This string cannot be translated here, because it is a layout identifier.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24266 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-15 15:32:02 +00:00
Jean-Marc Lasgouttes
ba5c6d5127 add support for a check box in menu for inset-toggle
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24262 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-15 14:25:57 +00:00
Jürgen Spitzmüller
642e28fc61 * src/insets/InsetExternal.cpp (validate):
- bug fix: if no specific PDFLaTeX out format is defined, we have to use
	  the LaTeX requirement tag in pdflatex output

* lib/external_templates:
	- remove unneeded PDFLaTeX format specification.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24255 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-13 12:50:35 +00:00
André Pönitz
8705679ac8 forgot this.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24249 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-12 15:11:59 +00:00
Uwe Stöhr
d3b2f94388 tex2lyx: text.cpp, Parser.h, Parser.cpp:
fix the import of \makebox, fixes http://bugzilla.lyx.org/show_bug.cgi?id=2504

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24244 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-12 12:50:04 +00:00
Jürgen Spitzmüller
c1e8355205 * src/insets/InsetCollapsable.cpp:
* src/insets/InsetFoot.cpp:
	- make button labels translatable

PLEASE, people, do not forget i18n !!!

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24238 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-11 15:11:27 +00:00
Jürgen Spitzmüller
5997d41b38 ** support pdfpages via external inset **
* development/FORMAT:
* src/Buffer.cpp:
	- format incremented to 326

* src/LaTeXFeatures.cpp:
* lib/chkconfig.ltx:
* lib/doc/LaTeXConfig.lyx:
	- support pdfpages

* lib/external_templates:
	- add template for pdfpages

* lib/lyx2lyx/LyX.py:
* lib/lyx2lyx/lyx_1_6.py:
	- add reversion routine.

* lib/configure.py:
	- fix call to "pdftops --eps"

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24237 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-11 14:07:25 +00:00
José Matox
456e922dc1 Add missing include, due to André LASSERT change
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24236 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-11 12:12:57 +00:00
Dov Feldstern
5dfa0c0381 visual mode for bidi cursor movement --- in tables
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24235 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-11 12:02:10 +00:00
Jean-Marc Lasgouttes
7912b3af38 a dummy file while we wait for andre
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24233 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-11 11:04:11 +00:00
André Pönitz
7f461f4392 infrastructure for 'graceful asserts'
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24216 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-10 21:49:34 +00:00
André Pönitz
ca0711969b fix #4667
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24204 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-10 19:53:50 +00:00
Jürgen Spitzmüller
9ad1a3af4f Extended tooltips for footnotes/marginpars:
* src/insets/InsetFoot.{cpp,h}:
* src/insets/InsetMarginal.{cpp,h}:
	- implement tooltip

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24202 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-10 10:05:00 +00:00
Pavel Sanda
64cfc12f39 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24201 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-10 09:36:02 +00:00
Jürgen Spitzmüller
1c33b77bec Extended tooltips for floats:
* src/insets/InsetCaption.{cpp,h}:
	- new member getCaptionText that returns formatted plain text content
* src/insets/InsetFloat.{cpp,h}:
* src/insets/InsetWrap.{cpp,h}:
	- implement tooltip

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24200 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-10 09:22:49 +00:00
Uwe Stöhr
8d6583e9ce tex2lyx/preamble.cpp: change encoding from ascii to auto when importing TeX files, fixes
http://bugzilla.lyx.org/show_bug.cgi?id=4719

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24196 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-09 20:19:47 +00:00
Pavel Sanda
322899e0fc * Doxy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24191 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-09 15:55:56 +00:00
Jean-Marc Lasgouttes
b7dfae478e headers cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24190 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-09 09:36:08 +00:00
André Pönitz
668e38191c canonical clone() also for InsetHyperlink
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24182 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-08 20:19:23 +00:00
André Pönitz
b254178702 fix #4717
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24181 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-08 20:05:26 +00:00
Jürgen Spitzmüller
e624a4176e * GuiToolbar.cpp (sorted_ong_map):
- sort (and prevent assertion).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24177 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-08 15:59:23 +00:00
Edwin Leuven
24130fa0c2 resuscitate Vert.png as vert2.png
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24175 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-08 14:57:06 +00:00
Pavel Sanda
687306fd0f * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24173 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-08 13:51:35 +00:00
Jürgen Spitzmüller
c0529a3f0a * src/support/filetools.cpp (unzippedFileName):
- Fix an assertion with compressed image files 
	   that do not have a zip-extension.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24165 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-08 09:28:15 +00:00
André Pönitz
aac50f83e5 cosmetics, maily s/NULL/0/g as hinted by Joost
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24160 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-07 20:43:02 +00:00
Edwin Leuven
a597483545 more cleanup and fix a crash
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24159 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-07 20:00:23 +00:00
André Pönitz
1d022b19ba fix #4713
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24158 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-07 19:19:03 +00:00
Jürgen Spitzmüller
ab3ffd3a59 * src/frontends/qt4/GuiView.cpp:
- make version string in the banner at least partially translatable.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24152 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-07 15:51:35 +00:00
Edwin Leuven
e60e0a0932 clean-up
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24150 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-07 15:07:30 +00:00
Joost Verburg
e332dbe7fa the last parameter is a null pointer
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24149 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-07 14:13:45 +00:00
Joost Verburg
26763681bb new logo graphics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24148 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-07 12:50:54 +00:00
Pavel Sanda
86f2ce2124 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24146 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-07 12:15:55 +00:00
Enrico Forestieri
40535cb302 Compile fix for cygwin and shut up gcc warning about NULL
used for non-pointer type.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24145 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-07 11:37:50 +00:00
Edwin Leuven
753aa0451d with joost: support for pasting metafiles under windows
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24144 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-07 07:28:03 +00:00
Dov Feldstern
7412bd1fb1 allow extending a selection to outside a math inset (broken since r22930)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24143 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-06 20:11:05 +00:00
Pavel Sanda
3683371d85 * Another doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24142 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-06 18:07:44 +00:00
Pavel Sanda
60ef4c5bd9 Add comment for InsetLayout::lyxtype_.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24140 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-06 16:17:03 +00:00
Pavel Sanda
54c930ca2f Compilation fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24139 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-06 14:43:28 +00:00
André Pönitz
8d52dfee32 A hack to prevents an additional redraw when the scrollbar pops up
when creating/loading a document.
This regularily happens on documents with more than one page.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24138 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-06 11:52:11 +00:00
Pavel Sanda
726fd69fb9 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24137 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-06 11:19:42 +00:00
André Pönitz
3b7b39b614 compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24135 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-05 21:36:26 +00:00
André Pönitz
e1453ef687 lexer cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24134 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-05 21:24:57 +00:00
Pavel Sanda
f4c398c2b5 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24133 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-05 20:53:38 +00:00
André Pönitz
efe09aeb50 if we have a buffer we don't need to pass part of it separately...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24132 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-05 20:24:05 +00:00
André Pönitz
383490dde8 code duplication is fun...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24131 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-05 19:27:02 +00:00
André Pönitz
835d051ae3 more Lexer;
also move tex2lyx specific code to tex2lyx


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24129 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-05 19:01:43 +00:00
André Pönitz
37e0c52f1d more compact code...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24126 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-05 12:56:43 +00:00
André Pönitz
0e5945667a reorganinze language reading a bit
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24125 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-05 12:23:27 +00:00
Jürgen Spitzmüller
2704fa5466 * src/frontends/qt4/GuiPrefs.cpp:
* src/frontends/qt4/ui/PrefShortcutsUi.ui:
	- add/disambiguate key accelerators.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24123 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-05 10:46:48 +00:00
André Pönitz
e7645f2439 use simpler parser interface
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24122 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-05 10:34:29 +00:00
Jürgen Spitzmüller
4846ee98ad * src/frontends/qt4/GuiPrefs.cpp:
- make buttons and items in the Shortcut pane translatable (bug 4710).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24121 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-05 10:33:31 +00:00
Jürgen Spitzmüller
981dedfe6b * src/insets/InsetBox.cpp:
- allow paragraph breaks in Framed boxes.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24117 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-04 15:01:56 +00:00
Jürgen Spitzmüller
a210f17a19 * src/frontends/qt4/GuiBox.cpp:
* src/insets/InsetBox.cpp:
	- assure that framed boxes do not contain an inner box.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24116 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-04 13:33:52 +00:00
Pavel Sanda
8baed10ce1 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24115 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-04 10:50:24 +00:00
Pavel Sanda
9288841931 * Add doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24110 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-03 22:48:40 +00:00
André Pönitz
209bbab00b use "new" Lexer interface...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24109 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-03 22:39:06 +00:00
André Pönitz
193c25946b make Lexer interface a bit more friendly
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24108 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-03 22:38:14 +00:00
André Pönitz
cda83b2a62 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24107 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-03 21:36:57 +00:00
André Pönitz
c88e7a7ef6 simplify Lexer handling a bit more
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24106 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-03 20:55:09 +00:00
André Pönitz
13b5a9e3ce remove 50 lines of duplicated code
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24105 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-03 20:00:04 +00:00
André Pönitz
bd5b4ebd32 make InsetRef parser more robust. I wonder, however, how "empty"
reference insets could have been created to begin with...


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24104 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-03 18:40:46 +00:00
André Pönitz
11a0458d3f next try...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24100 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-02 23:06:22 +00:00
André Pönitz
2012beb58e revert last patch. there's something wrong, possibly unrelated to this
patch, but as this was rather largish...


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24099 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-02 22:44:33 +00:00
André Pönitz
7677e9487c simplify Lexer use a bit
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24098 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-02 22:14:45 +00:00
André Pönitz
e9293e28ac remove unused code; also code cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24097 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-02 19:12:47 +00:00
Jean-Marc Lasgouttes
680a2f39b6 restore line removed by mistake
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24096 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-02 17:08:48 +00:00
Joost Verburg
75896240e4 Use *.* to select all files in the file selection dialog on Windows. Using shortcuts for navigation is now possible.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24093 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-02 12:03:47 +00:00
Pavel Sanda
53efaaee73 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24091 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-02 00:33:10 +00:00
Edwin Leuven
94699b5865 don't draw selection too wide (esp visible in full screen mode)
there is still one issue which is related (or so i think) to the pit is not being updated when extending a selection to a new row with cursor right/left. i left a FIXME in the code

i put this in since it is a uniform improvement on the current situation...

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24089 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-01 17:53:26 +00:00
Jürgen Spitzmüller
c2ebb0b952 * some UI clarification on \enspace vs. \enskip
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24087 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-01 14:53:29 +00:00
Jean-Marc Lasgouttes
73ad1dd688 fix compiler warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24084 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-01 10:29:48 +00:00
Jean-Marc Lasgouttes
6e74e240ff do not use #ifdef in main code; use the lyxrc.dist mechanism to provide defaults for mac osx
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24083 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-01 09:18:03 +00:00
Enrico Forestieri
2ad48f204b Fix bug 4668
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24080 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-01 02:29:41 +00:00
Pavel Sanda
bdcb56dc62 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24079 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-01 00:59:59 +00:00
Richard Heck
eeb3efd5c5 Don't subclass std::vector.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24078 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-31 22:22:34 +00:00
Edwin Leuven
f1cec322f1 fix bug http://bugzilla.lyx.org/show_bug.cgi?id=4688
nest sideways in multicolumn instead of other way around

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24071 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-31 12:09:24 +00:00
Enrico Forestieri
fd0e789dea Only add \makeatletter and \makeatother to the preamble when actually needed
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24068 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-31 01:26:57 +00:00
Enrico Forestieri
b5acd03891 Allow using \binom without amsmath and add support for \brace and \brack
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24067 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-31 01:23:25 +00:00
Pavel Sanda
8a20f27f6e Fullscreen: correct restoring of window state.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24064 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-30 22:27:17 +00:00
Pavel Sanda
84f49dd34d * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24058 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-30 01:35:40 +00:00
Richard Heck
66a94937c3 EmbeddedFile::enable() should take a reference instead of a pointer.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24055 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-29 23:32:52 +00:00
Bo Peng
534b81a5c1 Return the right params[embed] from GuiBibtex.cpp, for safety reasons
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24054 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-29 23:28:49 +00:00
Uwe Stöhr
30663a8019 Fileformat change.
Provide only one Japanese language that is encoding independent, patch partly by Koji Yokata.
This fixes http://bugzilla.lyx.org/show_bug.cgi?id=4597

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24053 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-29 23:25:40 +00:00
Richard Heck
749cbb30ad Cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24052 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-29 23:13:32 +00:00
Uwe Stöhr
bd0301699a Silent a console warning, fixes http://bugzilla.lyx.org/show_bug.cgi?id=4667
Patch initially by Richard.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24051 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-29 23:12:24 +00:00
Richard Heck
16784c49aa I seem to have missed this crucial line before.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24049 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-29 22:13:30 +00:00
Richard Heck
5b90d7a7d5 s/createBibFiles/updateBibFiles/
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24048 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-29 21:53:25 +00:00
Bo Peng
94a347350c Revert the addition of a static calcInzipName function, polish createBibFiles function
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24047 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-29 20:24:49 +00:00
Richard Heck
8555235f68 Cosmetics, and simplify updateEmbeddedFile.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24043 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-29 16:17:30 +00:00
Richard Heck
b9c79778d7 Cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24042 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-29 16:12:38 +00:00
Richard Heck
5287622cfa Enabling should not be done here, and no longer needs to be.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24041 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-29 15:39:19 +00:00
Richard Heck
c811c3a2ad Add calcInzipName.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24040 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-29 15:37:22 +00:00
Richard Heck
54a7f725db Improve createBibFiles so it does not recreate the whole list each time. Adapt other things to new findFile() method.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24039 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-29 15:32:36 +00:00
Richard Heck
f4c88d4f34 Improve these.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24038 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-29 15:22:58 +00:00
Richard Heck
eae4e41141 Introduce findFile() and simplify registerFile().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24037 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-29 15:01:12 +00:00
Richard Heck
2ce335e013 A couple cosmetic changes. Move the unicode problem where it belongs.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24036 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-29 14:49:13 +00:00
Richard Heck
891a62a984 Mostly cosmetic changes., but getBibFilesCache should be done on any parameter change.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24035 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-29 14:41:29 +00:00
Richard Heck
3fd0f8e7fd Mostly cosmetic changes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24034 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-29 14:38:38 +00:00
Edwin Leuven
fdaf744c4a implement separate color for text in selection
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24033 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-29 11:21:36 +00:00
Pavel Sanda
ecc19ca1a8 Fix compilation problems on Mac OSX 10.5.2 Leopard.
( http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg137757.html )


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24024 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-29 01:45:24 +00:00
André Pönitz
0e09045e08 small simplification
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24023 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-28 23:46:47 +00:00
André Pönitz
444dc60b23 one more mistake...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24020 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-28 20:05:33 +00:00
Abdelrazak Younes
53daaabef4 Add tabular context menu. Feel free to enhance/modify Edwin.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24018 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-28 18:50:33 +00:00
André Pönitz
ad4171e679 fix yesterday's bug
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24017 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-28 18:48:01 +00:00
Edwin Leuven
71487ff1ff fix bug http://bugzilla.lyx.org/show_bug.cgi?id=4677
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24016 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-28 12:00:53 +00:00
Abdelrazak Younes
99a6fbfbe7 MSVC warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24015 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-28 09:04:48 +00:00
Abdelrazak Younes
2530fdb9ab FontIterator is only used in TextMetrics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24013 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-28 08:45:33 +00:00
André Pönitz
640ac2650b this feels more natural...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24008 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-27 23:37:59 +00:00
André Pönitz
f9b81e51e9 remove remaining MailInsets.
please check your favourite insets, I am sure I broke _something_...



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24006 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-27 22:26:24 +00:00
Edwin Leuven
0ae4b20a28 clean-up after andré ;-)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24004 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-27 11:14:17 +00:00
André Pönitz
3069acd6de remove InsetBoxMailer.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24001 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-27 07:26:37 +00:00
Richard Heck
09b189e74c Cosmetics. And avoid conversion of EmbeddedFile to FileName. That seems suspicious.
This may change shortly, anyway, though.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23999 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-27 05:05:21 +00:00
Richard Heck
49ddf294a6 Actually, let's use the immediate parent's buffer.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23998 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-27 04:35:26 +00:00
Richard Heck
55910b346a Use the method.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23997 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-27 04:34:19 +00:00
Richard Heck
c769ac08f2 Do not overwrite the parameters, just set the ones we need to set.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23996 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-27 04:06:38 +00:00
André Pönitz
241575ed86 remove InsetVSpaceMailer class
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23992 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-27 00:21:35 +00:00
André Pönitz
209b04eaa9 remove InsetWrapMailer class
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23991 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-27 00:07:54 +00:00
André Pönitz
ba348ede83 this feels good...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23990 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-26 23:41:35 +00:00
Enrico Forestieri
958b6b7069 Fix bug 4665:
http://bugzilla.lyx.org/show_bug.cgi?id=4665


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23989 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-26 22:38:41 +00:00
André Pönitz
d9a3ca2033 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23988 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-26 22:25:43 +00:00
André Pönitz
b305d4c386 Fix crash
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23986 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-26 19:50:20 +00:00
Pavel Sanda
1d41399375 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23984 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-26 19:30:46 +00:00
Pavel Sanda
89a58051e1 Make Richard happy (Find Next via LFUN_WORD_FIND).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23983 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-26 19:20:17 +00:00
Edwin Leuven
2886b49360 use whole with of the dialog to show symbols
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23982 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-26 18:58:33 +00:00
Edwin Leuven
4faa1fe330 * clean-up layout document class settings
* enable tooltips in document class combobox

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23981 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-26 18:57:42 +00:00
André Pönitz
beed264f23 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23980 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-26 18:53:57 +00:00
André Pönitz
22fa3ab061 fix compiler warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23979 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-26 18:53:18 +00:00
Richard Heck
c743f16b7a Revert inadvertent commit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23978 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-26 17:12:24 +00:00
Richard Heck
a9302220c2 Fix my fixme.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23977 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-26 17:11:49 +00:00
Richard Heck
40f58da65a Another buffer pointer fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23976 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-26 17:02:24 +00:00
Richard Heck
e13589ef99 Revert last commit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23975 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-26 16:55:57 +00:00
Richard Heck
5ddb79e2a0 Fix for bug 4670, by JMarc.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23974 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-26 16:43:29 +00:00
Stefan Schimanski
ffaab7d150 * use the buffer's path as the base path when computing the filename of an
include command (like it is done in InsetBibtex).
  This fixes master/child latex output.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23973 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-26 16:02:32 +00:00
Pavel Sanda
1c115ba7cb * doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23972 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-26 15:43:47 +00:00
Stefan Schimanski
98787bbec6 * corrected handling of validation of math macros. The macro instances
will require the needed LaTeXFeatures of their definition and their
  paramenters.
* Require the "xargs" package when there is a macro with optional
  parameters which is prepended to a child document which is rendered alone.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23971 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-26 12:55:36 +00:00
Edwin Leuven
b98a650fa1 don't call cellIndex with invalid columns
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23969 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-26 10:34:48 +00:00
Stefan Schimanski
72068adf9c * infinite loops are not good
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23968 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-26 10:32:20 +00:00
Jürgen Spitzmüller
c876a2e7c7 Merge the two linebreak insets into one.
* src/Buffer.cpp:
	- file format change to 324
* development/FORMAT:
	- document file format change

* src/insets/InsetNewline.{cpp,h}:
	- the former two separate derivates are now merged into one inset
	  with proper Params and Mailer. This simplifies the structure and allows for
	  switching between the two kinds.

* src/Text3.cpp:
	- The newline insets are now being generated with 
	   newline-insert [newline|linebreak]

* src/factory.cpp:
* src/Text.cpp:
	- Newline inset is now a proper inset with opening and closing tag.

* src/FuncCode.h:
* src/LyXAction.cpp:
* src/Text3.cpp:
* src/insets/InsetCollapsable.cpp:
* src/insets/InsetTabular.cpp:
* src/mathed/InsetMathGrid.cpp:
* src/mathed/InsetMathHull.cpp:
	- remove LFUN_NEW_LINE, LFUN_LINE_BREAK,
	  add LFUN_NEWLINE_INSERT

* lib/lyx2lyx/LyX.py:
* lib/lyx2lyx/lyx_1_6.py:
	- conversion and reversion routines for newline insets.

* lib/ui/stdmenus.inc:
* lib/ui/stdcontext.inc
	- adapt menu and add context menu to switch between newpage variants.

* lib/bind/*.bind:
	- adapt to new lfuns.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23966 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-26 08:10:01 +00:00
Richard Heck
30c7f6f019 Revert last commit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23965 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-26 04:08:20 +00:00
Richard Heck
0922e29029 Make InsetText store a Buffer.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23964 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-26 03:54:44 +00:00
Pavel Sanda
024c973d74 Add doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23963 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-26 01:59:46 +00:00
Abdelrazak Younes
8946ff512d Fix some issues with cursor settings with mouse button3 (text3:LFUN_MOUSE_RELEASE), simplify and correct InsetCollapsable mouse events.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23957 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-25 21:44:30 +00:00
Edwin Leuven
cc786534d8 don't know what i am doing here, but removing this doesn't seem to have any side effects
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23956 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-25 21:36:54 +00:00
Edwin Leuven
998787c78b make selecting several rows/col more convenient
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23955 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-25 21:26:03 +00:00
Edwin Leuven
30a290743d more border tweaks
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23954 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-25 20:48:48 +00:00
Richard Heck
2df6a6a378 Require a buffer on construction of InsetGraphics and InsetExternal. Eventually, this idea should probably be extended to all Insets, one or two at a time.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23950 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-25 16:08:39 +00:00
Edwin Leuven
4806c3f4cc rename some methods
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23947 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-25 13:32:38 +00:00
Edwin Leuven
0d8b67e2b7 small layout tweaks
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23946 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-25 13:26:32 +00:00
Edwin Leuven
5e6343c9d1 take care of overlooked contingency
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23945 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-25 11:40:16 +00:00
Abdelrazak Younes
fb25ff1819 Cleanup mouse/selection/context-menu interactions.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23944 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-25 10:54:38 +00:00
Jürgen Spitzmüller
d2a4c97ab8 Merge the diverse newpage insets into one.
* src/Buffer.cpp:
	- file format change to 323
* development/FORMAT:
	- document file format change

* src/insets/InsetNewpage.cpp:
	- the former four separate derivates are now merged into one inset
	  with proper Params and Mailer. This simplifies the structure and allows for
	  switching between the various kinds.

* factory.cpp:
	- The newpage insets are now being generated with 
	   newpage-insert [newpage|pagebreak|clearpage|cleardoublepage]

* src/Text.cpp:
	- Newpage inset is now a proper inset with opening and closing tag.

* src/FuncCode.h:
* src/LyXAction.cpp:
* src/Text3.cpp:
* src/insets/InsetCollapsable.cpp:
	- remove LFUN_PAGEBREAK_INSERT, LFUN_CLEARPAGE_INSERT
	  and LFUN_CLEARDOUBLEPAGE_INSERT

* lib/lyx2lyx/LyX.py:
* lib/lyx2lyx/lyx_1_6.py:
	- conversion and reversion routines for newpage insets.

* lib/ui/stdmenus.inc:
	- adapt menu and add context menu to switch between newpage variants.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23942 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-25 09:26:03 +00:00
Jürgen Spitzmüller
4b1cfb9852 * stdmenus.inc:
* src/insets/InsetCollapsable.inc:
	- specific context menu for conglomerate insets

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23940 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-25 06:17:18 +00:00
Jürgen Spitzmüller
e7e67bb9e9 * src/insets/InsetCaption.cpp:
- better fix for the inset-toggle crash resovled in rev. 23929.
	  Now, collapsing works again as in 1.5.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23939 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-25 05:33:39 +00:00
Richard Heck
7460abc627 Fix bug 4651. Bo, if you read this: Is there a cleaner way to do this, so that we can set parameters the way we used to? i.e., via setParam(p) here? rather than having to go through these hoops in updateParam()?
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23938 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-25 05:13:38 +00:00
Pavel Sanda
5183c380b7 PlainLayout -> Plain Layout
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23934 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-24 21:08:51 +00:00
Richard Heck
0894f32bc6 Fix buffer pointer crash. (Another.)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23932 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-24 20:32:52 +00:00
Richard Heck
82a738b853 Fix branch insets.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23931 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-24 19:18:18 +00:00
Richard Heck
7d57b49746 Minor cleanup.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23930 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-24 18:56:12 +00:00
Jürgen Spitzmüller
499d2a991d * src/BufferView.cpp:
- reintroduce check for dispatch state

* src/insets/InsetCaption.cpp:
	- disable LFUN_INSET_TOGGLE

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23929 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-24 18:22:54 +00:00
Jürgen Spitzmüller
241a8442d7 fix the general collapsable context-menu:
* src/InsetCollapsable.cpp (getStatus):
	- fix the logic

* src/BufferView.cpp:
	- fix next-inset-toggle
	- don't require argument for inset-settings

* lib/stdmenus.inc (context-collapsable):
	- use next-inset-toggle instead of inset-toggle
	- add (optional) inset-settings

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23928 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-24 16:33:56 +00:00
Jürgen Spitzmüller
56a974ac55 * LyXAction.cpp: doxy correction.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23927 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-24 15:30:37 +00:00
Jürgen Spitzmüller
37824d1c5e * LyXAction.cpp: doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23926 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-24 15:26:37 +00:00
Jürgen Spitzmüller
4128d441d9 * LyXAction.cpp: doxy correction.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23925 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-24 15:02:44 +00:00
Jürgen Spitzmüller
bb51488435 * src/BufferView.cpp:
* src/Text3.cpp:
	- fix LFUN_INSET_SETTINGS so that it also works at cursor position.

* LyXAction.cpp:
	- doxy.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23923 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-24 14:12:19 +00:00
Edwin Leuven
8aae2dcd3b remove cruft (simplify code)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23922 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-24 14:03:00 +00:00
Jürgen Spitzmüller
e1ac6d4118 Some context menu work:
* src/BufferView.cpp:
* src/FuncCode.h:
* src/LyXAction.cpp:
	- new LFUN_NEXT_INSET_MODIFY

* src/insets/InsetBox.{cpp, h}:
* src/insets/InsetCommand.{cpp,h}:
* src/insets/InsetNote.{cpp,h}:
* src/insets/InsetSpace.{cpp,h}:
* src/insets/InsetVSpace.{cpp,h}:
	- implement context menu and access to some changes

* lib/ui/stdmenus.ui:
	- new context menus for Box, Space, VSpace, Note.
	- extend the context menu for InsetRef.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23920 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-24 13:33:48 +00:00
Jürgen Spitzmüller
39cf72b803 * src/Text3.cpp:
- disallow comments and greyedout notes inside commands (sections etc.)
	  This fixes bug 4180 partially (the change is still possible via the dialog).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23917 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-24 13:20:06 +00:00
Richard Heck
d252730dff New AddToPreamble tag for layout files. This tag will ADD some information to the document premable rather than completely over-write it, as the Preamble tag does.
Increment layout format to 7.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23916 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-24 13:11:16 +00:00
Richard Heck
700af7e701 Add support for document-local layout information. GUI is to follow.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23913 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-24 12:31:07 +00:00
André Pönitz
bcf91dd85c unneeded #include
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23912 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-24 10:28:35 +00:00
Jürgen Spitzmüller
c6007086b1 * src/frontends/qt4/GuiGraphics.{cpp,h}:
* src/frontends/qt4/ui/GraphicsUi.ui:
	- now that we have a context menu to edit graphics, remove the Edit button
	  from the dialog, as discussed in this thread:
	  http://marc.info/?l=lyx-devel&m=118344997913166&w=2

The same should be done for other insets that have an edit function.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23911 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-24 09:32:34 +00:00
Bo Peng
057dd755f5 Move LFUN_GRAPHICS_EDIT and LFUN_EXTERNAL_EDIT from LyXFunc.cpp to BufferView.cpp so that a valid inset can be retrieved and called upon; add context-menu for InsetGraphics and InsetListings
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23910 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-24 04:27:43 +00:00
Pavel Sanda
136182e4e8 Add doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23908 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-23 23:02:52 +00:00
Jürgen Spitzmüller
48778460a0 * src/insets/InsetSpace.{cpp, h}:
- this inset is now editable. Mark as such and add an editable method (allows for opening the inset dialog with
	  "next-inset-toggle".
	- implement context menu (no actual menu yet).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23907 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-23 15:19:01 +00:00
Richard Heck
4219c529c2 Help us out here.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23906 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-23 14:40:29 +00:00
Richard Heck
6fc256105e Similar fix to last commit for InsetExternal.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23905 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-23 14:27:31 +00:00
Richard Heck
ec5ac0486a Revert 23899 and introduce the correct fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23904 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-23 14:26:13 +00:00
André Pönitz
d8ab0622c5 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23903 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-23 13:59:51 +00:00
Edwin Leuven
41a01648a7 simplify logic
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23901 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-23 11:35:46 +00:00
Bo Peng
46f37cfd3a Fix GRAPHICS_EDIT of InsetGraphics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23899 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-23 04:02:33 +00:00
Jürgen Spitzmüller
fb1f95ff00 * src/frontends/GuiSymbols.cpp:
- make categories translatable. This might slow down the dialog again a bit.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23898 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-22 14:49:03 +00:00
André Pönitz
8a14d5380a cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23897 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-22 09:32:38 +00:00
André Pönitz
821e276407 remove unused code
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23896 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-22 09:05:09 +00:00
Pavel Sanda
b271e3e06d Change string
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23894 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-22 02:19:07 +00:00
André Pönitz
62d5a54ae7 small optimization
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23893 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-21 22:51:36 +00:00
André Pönitz
a7f29a35ee cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23892 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-21 22:31:57 +00:00
André Pönitz
6b28f08ff2 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23891 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-21 21:47:37 +00:00
André Pönitz
f8afb49165 forgot this part...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23890 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-21 21:08:57 +00:00
André Pönitz
f182333311 improved position caching
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23889 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-21 20:47:29 +00:00
Richard Heck
6a2921d119 Needless comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23888 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-21 19:38:02 +00:00
André Pönitz
0011f47885 speed up symbol panel population
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23887 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-21 18:55:26 +00:00
Richard Heck
94e0c24753 Make decoration default to, uh, Default. Flex insets will then default to conglomerate.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23886 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-21 18:49:23 +00:00
Richard Heck
9cdb718aa5 Fix crash.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23885 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-21 18:45:22 +00:00
Abdelrazak Younes
2e9d0f7524 rev 23880: forgot this!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23884 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-21 18:40:27 +00:00
André Pönitz
0d5e1782f0 Use a custom model + QListView instead of QListWidget in the Symbols
dialog. Functionality is unchanged. 
Populating the 'All Symbols' panel for utf8 files is around 5s.
Not nice, but bearable. There's still room for improvement.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23883 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-21 18:32:06 +00:00
Abdelrazak Younes
7f02beb990 temporary fix for http://bugzilla.lyx.org/show_bug.cgi?id=4613
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23882 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-21 18:18:46 +00:00
Abdelrazak Younes
de6f93296f Context menu for collapsing minimalistic insets such as ERT.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23880 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-21 18:02:47 +00:00
Richard Heck
b922cfd3b3 Another attempt at 2178. This is a "minimal" patch designed to fix the bug with the minimum amount of new code. A better fix, suggested by Andre, would merge InsetTableCell and CellData into one class, in which case InsetTableCell::cell_data_ can be removed. A definite plus. I'll do that later if this works. But let's get it right first.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23879 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-21 17:45:14 +00:00
Pavel Sanda
d5ad3f6d7a Next make dist shot.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23878 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-21 17:31:14 +00:00
André Pönitz
b9bee4dd86 small step towards s/QListWidget/QListView/g
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23877 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-21 16:53:15 +00:00
André Pönitz
f23773c8c5 small refactoring
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23876 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-21 16:45:01 +00:00
André Pönitz
1f2cee9589 some un-intrusie changes first...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23875 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-21 16:33:23 +00:00
André Pönitz
2b91a5acbe cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23872 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-21 16:16:43 +00:00
Pavel Sanda
027563eec2 Add doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23871 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-21 16:11:27 +00:00
Pavel Sanda
5e768ab842 Next attempt to sanitize make dist.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23866 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-21 14:05:41 +00:00
José Matox
45d42022f7 Add headers necessary to compile with g++ 4.3 (I am not sure about the typeinfo, the others are clearly correct).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23862 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-21 11:26:20 +00:00
Edwin Leuven
ed58c7dcd9 remove unused code
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23860 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-21 09:53:25 +00:00
André Pönitz
f333b5da5f cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23859 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-21 09:30:19 +00:00
Richard Heck
e995e8556b Prepare for InsetTableCell.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23858 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-21 06:16:05 +00:00
Pavel Sanda
da99ef82e5 Sanitize make dist in trunk.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23856 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-20 23:40:18 +00:00
André Pönitz
6c97761563 even example code should follow the style conventions
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23855 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-20 20:36:30 +00:00
André Pönitz
42fb18c6f8 look up LANGUAGE and LC_ALL only once.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23854 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-20 19:35:53 +00:00
Bo Peng
8753847055 Listings: Move \label{} outside of caption={}
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23853 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-20 16:04:22 +00:00
José Matox
7ef2816cd0 remove lengthcommon.cpp and use it as a link from the upper dir
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23849 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-20 13:20:18 +00:00
José Matox
6180809e9e revert last changes to client Makefile
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23848 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-20 12:42:26 +00:00
Jean-Marc Lasgouttes
8aa1bf1f5c fix the make check machinery. The support/filetools check fails, but the problem is in the test itself
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23847 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-20 10:04:55 +00:00
Edwin Leuven
b7406da7f0 * new function to set border around selection
* add to toolbar + icon
* update border icons to match in size

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23846 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-20 08:45:40 +00:00
Pavel Sanda
01bd0aa6d7 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23845 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-20 02:10:21 +00:00
André Pönitz
6a64982eb5 cleanup/compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23843 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-20 00:19:10 +00:00
André Pönitz
de17493932 simpliofy {Gui}FontLoader architecture a bit
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23842 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-20 00:00:53 +00:00
André Pönitz
bef955a971 save a few more cycles
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23841 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-19 22:28:28 +00:00
André Pönitz
64de7857b4 forgot this
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23839 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-19 22:18:00 +00:00
André Pönitz
1fe1450af9 remove a few conversions.
maybe moving the stringtable into a fuynction makes sens to prevent
initialization on startup...


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23838 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-19 22:17:36 +00:00
André Pönitz
16fa6c5f0f slight speed improvement...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23837 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-19 22:05:54 +00:00
José Matox
2b1859e8f0 Fighting with autotools to have a building system :-(
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23836 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-19 19:37:35 +00:00
Jürgen Spitzmüller
7c7bfce40d revert accidental commit. Sorry.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23835 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-19 18:20:18 +00:00
Jürgen Spitzmüller
ce09085156 * src/frontends/qt4/PanelStack.{cpp, h}:
- fix issues with clicking and keyboard movement

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23834 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-19 18:15:16 +00:00
Pavel Sanda
42eb8a373a Cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23830 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-19 17:31:09 +00:00
Richard Heck
f2cd36e8ad Change the signature of forceEmptyLayout(), so that we can pass a cell index with it. We'll need this to get tables right.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23829 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-19 16:21:33 +00:00
Bo Peng
51ac7d895c Move editing, shortcuts, keyboard/mouse and completion to a separate category in the preference dialog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23828 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-19 14:32:40 +00:00
Pavel Sanda
e204871d35 Add tooltip.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23827 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-19 13:28:47 +00:00
Jürgen Spitzmüller
6fac185d81 * src/frontends/qt4/GuiPrefs.{cpp,h}:
* src/frontends/qt4/PanelStack.cpp:
	- reintroduce panel categorization (bug 4153).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23826 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-19 13:11:14 +00:00
Pavel Sanda
a0f4be8515 Enlarge symbols combo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23822 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-19 09:00:12 +00:00
Pavel Sanda
826d0fc879 Change strings.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23819 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-18 23:35:57 +00:00
Edwin Leuven
e01e14872d Free line setting in tabulars. FILE FORMAT CHANGE.
- gets rid of the M_TOGGLE_LINE_... functions
- allows arbitrary clines without multicol
- sets arbitrary vertical lines through multicol 
- drop row/col line properties, everything is now stored at the cell level

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23812 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-18 18:08:32 +00:00
Jürgen Spitzmüller
2a2c2d8986 Move completion to a pane of its own.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23811 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-18 17:31:17 +00:00
Jürgen Spitzmüller
ffeb40141f PrefLanguageUi.ui:
- fix layout and add some tooltips. 

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23810 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-18 16:49:05 +00:00
Jürgen Spitzmüller
8ba01b4096 LaTeXUi.ui:
- size adjustments.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23809 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-18 14:51:22 +00:00
Jürgen Spitzmüller
bb80a4b1a0 PDFSupportUi.ui: fix enabling of checkboxes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23808 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-18 14:33:22 +00:00
Jürgen Spitzmüller
0f4c89ed66 cosmetics to the document dialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23807 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-18 13:44:35 +00:00
Pavel Sanda
8f7adcbd65 cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23806 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-18 12:21:52 +00:00
Jürgen Spitzmüller
18101eea7b ** add support for protected horizontal fill. FILE FORMAT CHANGE. **
* src/Buffer.cpp:
	- increment file format to 320.

* src/insets(InsetSpace.{cpp, h}:
	- add HFILL_PROTECTED, a protected horizontal fill
	  (LaTeX: \hspace*{\fill})

* src/factory.cpp:
* src/frontends/qt4/GuiHSpace.{cpp, h}:
	- handle the new space type.

* lib/lyx2lyx/LyX.py:
* lib/lyx2lyx/lyx_1_6.py:
	- reversion routine for protected hfill.

* development/FORMAT:
	- document file format change

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23805 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-18 12:11:28 +00:00
Stefan Schimanski
aad4651830 * another try on http://bugzilla.lyx.org/show_bug.cgi?id=4566:
"Eqnarray multiple cells size change erases what they contain"

  We also apply LFUN_MATH_INSERT to every selected cell if a single math inset is inserted.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23804 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-18 10:58:57 +00:00
Stefan Schimanski
224fb0b4b5 * cosmetic
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23803 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-18 10:58:35 +00:00
Uwe Stöhr
b1e077a7d2 compilation fixes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23797 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-17 21:11:17 +00:00
Pavel Sanda
6f102da979 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23796 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-17 19:47:12 +00:00
Pavel Sanda
824ac5f2c8 Add checkbox to fullscreen menu entry.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23793 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-17 14:22:30 +00:00
Jean-Marc Lasgouttes
ad00d81144 use consistent ifdefs for the mac
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23788 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-17 10:23:02 +00:00
Jürgen Spitzmüller
f2e8cd3cd9 *** File Format Change: UI and enhancement for InsetSpace ***
* src/insets/InsetSpace.{cpp,h}:
	- merge in HFill inset, add support for dotfill, hrulefill,
	  hspace and hspace*
* src/insets/InsetHFill.{cpp,h}:
	- remove

* src/frontends/qt4/GuiHSpace.{cpp,h}:
* src/frontends/qt4/ui/HSpaceUi.ui:
* src/frontends/qt4/GuiView:
	- new GUI for Space insets.

* src/insets/Inset.{cpp,h}:
* src/insets/InsetCode.h:
* src/insets/InsetCollapsable.cpp:
* src/insets/InsetCommandParams.cpp:
	- remove HFILL_CODE and LFUN_HFILL_INSERT, add SPACE_CODE where necessary,
	  new Inset member isStretchableSpace() to indicate HFill and friends.

* Buffer.cpp: 
	- increase format to 319
* lib/lyx2lyx/LyX.py:
* lib/lyx2lyx/lyx_1_6.py:
	- conversion/reversion routines
* development/FORMAT:
	- document file format change

* src/Makefile.am:
* src/frontends/qt4/Makefile.am:
* development/scons/scons_manifest.py:
	- deal with UI changes.

* src/LyXAction.cpp:
	- remove LFUN_HFILL_INSERT

* src/LyXFunc.cpp:
	- handle space dialog.

* src/factory.cpp:
* src/Paragraph.cpp (isHFill):
* src/Text.cpp:
* src/Text3.cpp:
* src/TextMetrics.cpp:
	- adapt to changes

* lib/ui/classic.ui:
* lib/ui/stdmenus.ui:
	- add HSpace dialog, remove HFill.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23787 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-17 09:23:43 +00:00
Pavel Sanda
e921847e12 Change strings.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23786 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-17 02:49:47 +00:00
Richard Heck
c17a8122cf Cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23780 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-17 01:10:45 +00:00
Stefan Schimanski
9e499117e3 * possibility to disable the completion cursor in text. All those
"*supported" methods maybe should be merged with a bit-enum as return value.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23776 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-16 17:07:10 +00:00
Stefan Schimanski
a015e133ab * getSpeller create a new speller, so call it create*
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23775 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-16 17:06:26 +00:00
Richard Heck
bfdb31d076 Fix silly mistake uncovered by Helge.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23774 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-16 15:49:41 +00:00
Pavel Sanda
209a0f13e1 * doxy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23773 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-16 13:24:11 +00:00
Pavel Sanda
1e53ac960a Change translation strings.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23772 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-16 13:05:42 +00:00
Bo Peng
ccb09162e5 Embedding: paste an inset with an embedded file may fail, if the source buffer has been closed and the embedded file has been removed. This patch fixes this.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23771 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-16 05:10:41 +00:00
Bo Peng
0f9a8fcad4 Add use_bundled_format rc entry to allow creation of new buffers in bundled format.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23768 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-15 22:41:54 +00:00
Bo Peng
47c5be88e3 Tools->Preference: move editing and fullscreen from user interface to a new panel editing
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23767 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-15 22:12:19 +00:00
Richard Heck
3882a0c759 Comment cleanup.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23766 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-15 19:35:08 +00:00
Edwin Leuven
781c2babeb fix append column when cursor is in multicol cell
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23764 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-15 16:44:00 +00:00
Stefan Schimanski
cdbebdf093 * moved text completion logic into Text class
* added completion support to InsetTabular


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23763 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-15 12:22:28 +00:00
Stefan Schimanski
685970043e * make forward deletion of formula labels/numbers more intuitive:
** We show (Eq:bla,#) for labeled formulas
** The first forward delete removes the label
** The second forward delete removes the number

Fixes http://bugzilla.lyx.org/show_bug.cgi?id=2556


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23762 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-15 11:40:04 +00:00
Stefan Schimanski
c3c58bbb72 * make Qt 4.2 happy. Please complain if it is not.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23760 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-15 10:19:12 +00:00
André Pönitz
5e0121cf58 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23759 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-15 08:43:16 +00:00
Bo Peng
5ffc0d19c1 Embedding: when an inset with an embedded file is copied to another buffer, the embedded file needs to be copied, to an external file or to the temporary directory of that buffer. Otherwise, pasted insets will become invalid when the source buffer is closed and the embedded files are removed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23758 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-15 04:48:31 +00:00
Richard Heck
0a5b3e9a36 More intelligible comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23757 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-15 03:21:17 +00:00
Richard Heck
fc1dc6082e Still trying to fix bug 2178. Will this do it? I do hope so. (Problem reported by Dov.)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23756 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-15 03:19:45 +00:00
Stefan Schimanski
f9f0b26bd3 * make sure the Mac special menu item are only created once per QMenuBar.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23754 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-15 02:58:05 +00:00
Stefan Schimanski
7269440c83 * reset current_view_ when deleting a GuiView.
* check for current_view_ when exiting to avoid segfaults


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23752 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-15 02:42:59 +00:00
Stefan Schimanski
214828d961 * fix drag pixmap
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23751 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-15 02:42:48 +00:00
Stefan Schimanski
cb45bc6a22 * drag'n'drop for tabs
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23750 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-15 02:13:01 +00:00
André Pönitz
a98f82c292 s/kb_action/FuncCode/g
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23749 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-15 01:20:36 +00:00
Stefan Schimanski
b607775ad7 Implementation of the conclusion of the "LyX/Mac 1.6 -- Window issues" thread:
* add tab popup menu to hide and close a buffer.
* remove the very non-standard hide-button on the left of the tabbar.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23748 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-15 01:00:25 +00:00
André Pönitz
f2c9b56fb4 cosmetics/#include cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23747 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-15 00:22:54 +00:00
Stefan Schimanski
f5a02d060a * compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23746 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-15 00:18:48 +00:00
Stefan Schimanski
e46d043034 * fix order
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23745 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-15 00:14:15 +00:00
André Pönitz
0cb39e6f8b earder cleanup; cosmetics;
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23744 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-15 00:02:41 +00:00
Pavel Sanda
97ad52467f Try to deuglify RTL in Language preferences a bit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23743 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-14 23:50:02 +00:00
Stefan Schimanski
09fe21bd11 * QWidget::show is synchronous, hence we see the LyX logo for a moment, even if
in the next moment the new buffer appears. So we first create the buffer and
  then show the view.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23742 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-14 23:33:05 +00:00
Stefan Schimanski
2aff4838f9 * Some work was done in 2007 and 2008 which should deserve a copyright, no?
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23741 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-14 23:32:34 +00:00
Stefan Schimanski
3658d7fe4d * comment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23740 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-14 23:31:44 +00:00
Stefan Schimanski
fc816dba30 * comment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23739 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-14 23:30:28 +00:00
Stefan Schimanski
4e223167ff * activate the view from the constructor. This makes sure that the
special menu item for Mac see the "right" status of the LFUNs.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23738 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-14 23:29:11 +00:00
Stefan Schimanski
25e0113c9c * Use open_buffers_in_tabs instead of single_window. The latter even confused me.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23737 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-14 23:27:31 +00:00
Stefan Schimanski
5496ff053f * only autoclose GuiView on last removed tab if the tab mode is not enabled.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23736 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-14 23:26:47 +00:00
Stefan Schimanski
40144c3f78 * dialog can only be shown via a GuiView up to now. This shouldn't be
the case for GuiView independent dialogs like about or prefs. But
  for now it is.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23735 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-14 23:26:22 +00:00
Stefan Schimanski
83661da26a * When clicking the close button on a background window, it can be that the window does
not get the current view when the closeEvent arrives. So better make sure it is the current
  explicitly.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23734 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-14 23:25:56 +00:00
Stefan Schimanski
cc4955b4a2 * in fact we have more than one menubar at the moment, even on Mac. It
should be possible to only keep one, but then the reference to
  menuBar() in GuiView must go or point to the global one.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23733 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-14 23:25:38 +00:00
Stefan Schimanski
9adb5cef26 * release keyboard grab from global menubar again when a new GuiView is created
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23732 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-14 23:25:24 +00:00
Stefan Schimanski
d63821939c * create global menubar on Mac without a parent. It will be shown if no GuiView exists.
* fill global menubar with the normal actions
* capture the keyboard on the menubar if no GuiView exists. This
  enables the shortcuts on Mac in those cases.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23731 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-14 23:25:11 +00:00
Stefan Schimanski
fda541d46a * on Mac close GuiView when the last tab was closed
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23730 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-14 23:24:59 +00:00
Stefan Schimanski
0ba2a1e6f8 * preference option to open buffers in tabs or new windows
* moved the open/new file dispatches into GuiApplication to make them GuiView independent


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23729 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-14 23:24:45 +00:00
Stefan Schimanski
6f26243e13 * only for Mac
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23728 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-14 23:07:40 +00:00
Pavel Sanda
4f2d2e8fea Distinguish layout and preference string.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23727 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-14 22:19:40 +00:00
Pavel Sanda
ee5f679545 Get rid of minimalistic comboboxes with oversensitive
scrollbars in settings.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23726 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-14 21:59:31 +00:00
Pavel Sanda
50fbaa337e Silence uic warning.
Spellchecker doesn't work anyway.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23725 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-14 20:20:24 +00:00
André Pönitz
90a17377f2 compile fix (missing forward declaration)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23723 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-14 19:51:42 +00:00
Stefan Schimanski
09e90f10ae * compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23721 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-14 16:39:51 +00:00
Stefan Schimanski
dd9a03b910 * copy icon size to new GuiView from the last GuiView
* use small Mac combobox widget for small icon size. Otherwise the combobox is bigger than the icons.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23720 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-14 16:39:34 +00:00
Stefan Schimanski
6688fc1f1e * cosmetic
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23719 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-14 16:35:44 +00:00
Stefan Schimanski
5d112c185c * remove the need of an active GuiView
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23718 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-14 16:33:16 +00:00
Stefan Schimanski
3a7c68d3f7 * we have not only one instance of the menu bar. Hence we better take the right Menu objects of the current buffer. Otherwise we easily get crashes if the last GuiView is closed. The Menu objects are gone then too.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23717 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-14 15:34:31 +00:00
Stefan Schimanski
23b74676a2 * put "group layout list" option into tab list
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23716 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-14 15:31:59 +00:00
Pavel Sanda
798477a8ec * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23715 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-14 12:54:38 +00:00
Edwin Leuven
9f088c828e remove unused variable
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23714 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-13 23:47:29 +00:00
Bo Peng
4ce363fcc6 Embedding: move file validation from InsetExternal to GuiExternal
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23711 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-13 17:27:20 +00:00
Bo Peng
3192307c86 Embedding: move file validation from InsetBibtex to GuiBibtex
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23710 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-13 17:19:36 +00:00
Bo Peng
dc177e2546 Embedding: move file validation from InsetGraphics to GuiGraphics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23709 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-13 16:49:04 +00:00
Bo Peng
ded962802e Embedding: prepare params()[embed] in GuiInclude rather than InsetInclude
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23708 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-13 14:16:47 +00:00
Jean-Marc Lasgouttes
72c26ac6d1 two uninitialized variables uncovered by valgrind, and a gcc warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23707 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-13 10:28:02 +00:00
Enrico Forestieri
0b21465259 Update the description of the bm package in LaTeXConfig.lyx.
Also make sure that bm is loaded after amsmath.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23706 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-13 01:44:49 +00:00
Richard Heck
04af00c98e Comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23703 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-13 01:09:41 +00:00
Bo Peng
bde7e6ef80 Fix loading opened files from last session
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23695 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-12 22:02:22 +00:00
Bo Peng
fd34e3def1 Embedding: adjust how parameters are passed from the graphics dialog to InsetInclude
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23694 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-12 21:42:55 +00:00
Bo Peng
a3c4711b08 Embedding: markDirty should not be called in EmbeddedFiles::enable(), which is handled in BufferView
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23693 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-12 21:29:37 +00:00
André Pönitz
efe96e2ff9 fix monolithic compilation and add usage comment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23690 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-12 19:39:14 +00:00
Jürgen Spitzmüller
ad5ba124be * src/mathed/InsetMathNest.cpp:
- also handle the Color_inherit case.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23688 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-12 18:50:50 +00:00
Bo Peng
26fd7ca164 Adjust format and comments in src/EmbeddedFiles.*
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23687 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-12 18:22:41 +00:00
Pavel Sanda
314b684501 Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=4194 .
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23686 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-12 16:17:25 +00:00
Enrico Forestieri
ba496b94ac Merge InsetMathBoldSymbol and InsetMathBM by providing \boldsymbol
through the bm package.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23684 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-12 14:33:16 +00:00
Stefan Schimanski
bde87d4ce7 * recover the status bar by only showing the layout list hints when the layout list is visible.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23683 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-12 14:07:53 +00:00
Stefan Schimanski
2f67f8c2b3 * handle the multiple-selected-cells case also for color changes in mathed
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23682 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-12 14:04:25 +00:00
Stefan Schimanski
5e2aeffc43 * half of the fix for http://bugzilla.lyx.org/show_bug.cgi?id=4091
"Applying Text-style to math generates \color{ignore}"

Which kind of font changes do we want to support here? After all the
text style dialog is meant for text. So it only really make sense for
\mbox'es. But there we probably cannot store every font change because
it still math up to now.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23681 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-12 13:20:40 +00:00
Richard Heck
72ca0c5b7b Fix Andre.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23680 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-12 03:51:35 +00:00
Bo Peng
1d900def57 Remove another 'Create directory' message
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23679 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-12 03:46:49 +00:00
Pavel Sanda
adaa376fd5 one more doxy move.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23678 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-12 01:38:58 +00:00
Pavel Sanda
aa7c0aee4b Doxy: reorganize structure.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23677 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-12 01:35:13 +00:00
Pavel Sanda
f93258707c Add doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23676 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-12 01:27:53 +00:00
Stefan Schimanski
e01f7e7105 * fix a serious data loss problem: undo did not save the whole
selection in mathed if more than one cell was selected.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23675 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-12 00:59:29 +00:00
Pavel Sanda
69474d4a2b * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23674 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-12 00:26:31 +00:00
Stefan Schimanski
40c4d50c82 * fix for http://bugzilla.lyx.org/show_bug.cgi?id=4566
"Eqnarray multiple cells size change erases what they contain"

  We now loop over the selected cells and change the font in each of them.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23673 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-12 00:19:31 +00:00
Stefan Schimanski
6767da2c65 * or does anybody have this in mind for 1.6?
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23672 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-12 00:19:18 +00:00
Stefan Schimanski
10c974461d * typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23671 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-12 00:19:07 +00:00
Stefan Schimanski
b2e8d557cc * only use selection of current cell when starting a macro (fixes http://bugzilla.lyx.org/show_bug.cgi?id=4566 for macros)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23670 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-12 00:18:39 +00:00
Bo Peng
4461cc2fda fix a typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23669 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-11 19:29:16 +00:00
Bo Peng
d3f33c2106 Embed: fix a bug in initialize embedded file in InsetInclude
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23668 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-11 19:21:34 +00:00
Bo Peng
48f9225e27 Embed: allow the use of embedded layout and class (.cls, .sty) files.
* src/EmbeddedFiles.h|cpp: add validate() function to validate loaded .lyx file.
	* src/LayoutFile.h|cpp: add Layout_Type parameter to addLayoutFile to load an embedded layout.
	* src/BufferParams.h|cpp: read layout from temp directory, then local directory.
	* src/frontends/qt4/GuiDocument.cpp: handle embedded layout type
	* src/LyXFunc.cpp: handle embedded layout when a layout is re-read.
	* src/Buffer.cpp: validate after a buffer is read. handle exceptions properly.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23667 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-11 18:31:38 +00:00
Bo Peng
be73bdd410 suppress unneeded output in minizip/zipunzip.cpp
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23666 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-11 18:24:32 +00:00
Stefan Schimanski
ed4919cd1a * fix for http://bugzilla.lyx.org/show_bug.cgi?id=518
"wrong numbering of multline environment inside LyX"


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23665 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-11 17:54:05 +00:00
Stefan Schimanski
5354a5d592 * fix http://bugzilla.lyx.org/show_bug.cgi?id=4622
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23663 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-11 17:23:14 +00:00
Richard Heck
7a5576c13b Try again to fix bug 2178.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23662 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-11 15:16:58 +00:00
Abdelrazak Younes
94ff60ec7e Navigator: default to table of contents.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23661 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-11 10:34:20 +00:00
Stefan Schimanski
c81e3a0203 * use base color for layout list background. Qt docs say:
QPalette::Base:	Used mostly as the background color for text
entry widgets, but can also be used for other painting - such as the
background of combobox drop down lists and toolbar handles. It is
usually white or another light color.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23660 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-11 10:29:14 +00:00
Abdelrazak Younes
04e46436ad * add "List of Graphics"
* don't append "(embedded)" to embedded list items.
* limit the number of entry to 30 items and offer to open the Navigator if above.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23659 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-11 10:27:33 +00:00
Abdelrazak Younes
f53467871f add "Embedded Files" to Navigator.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23658 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-11 09:04:09 +00:00
Abdelrazak Younes
b1742b5736 * InsetInclude::addToToc(): show embedded status if any in Navigator.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23657 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-11 08:37:30 +00:00
Abdelrazak Younes
4f1d3f2162 * add "Child Documents" navigate submenu.
* move secondary lists to "Other Lists" navigate submenu as the menu started to be crowded.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23656 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-11 08:25:13 +00:00
Bo Peng
99a5b638c3 refine browseRelFile in function addExtraEmbeddedFile
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23655 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-11 02:26:20 +00:00
Stefan Schimanski
361d4d9a16 * simplified layout list a lot by subclassing QItemDelegate instead of
trying to simulate a menu with a QListView (that's what QComboBox does
on some platforms, but not on all).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23654 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 23:00:53 +00:00
André Pönitz
46c83df1cd less pointers...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23653 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 22:23:16 +00:00
Bo Peng
14eeac2e1c Allow selection of a local layout file from the document->settings dialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23652 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 21:31:22 +00:00
Pavel Sanda
297f68bc52 uhrrm.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23651 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 20:27:50 +00:00
Pavel Sanda
6f67ac73fe * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23650 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 20:24:28 +00:00
Stefan Schimanski
9d2654311a * restart cursor not only after mouse- and keyboard events, but also after those from the toolbar, menus, etc.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23648 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 19:08:03 +00:00
Stefan Schimanski
e627e6fb53 * remove style, left from debugging
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23646 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 18:44:28 +00:00
Stefan Schimanski
c6fff07103 * patch by Pavel to make the layout list look like it used to be in 1.5.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23644 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 17:11:14 +00:00
Stefan Schimanski
b1ac3c3e83 * also forward delete numbering in math hull
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23643 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 17:09:02 +00:00
Stefan Schimanski
ae89d2a6b4 * made compatible with Qt 4.2 again.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23642 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 16:20:33 +00:00
Stefan Schimanski
3be96448d5 * use small font for the header metrics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23640 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 15:43:47 +00:00
Stefan Schimanski
3e8e012355 * compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23639 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 15:42:35 +00:00
Stefan Schimanski
06a5803eab * reduce spacing in layout list
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23638 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 15:41:30 +00:00
Abdelrazak Younes
2ab77c16f6 Introduce Inset::isLabeled() in order to avoid reimplementing Inset::initView() everywhere we need a labels update.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23637 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 15:30:32 +00:00
Abdelrazak Younes
346839b59f fix http://bugzilla.lyx.org/show_bug.cgi?id=4608
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23636 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 15:01:57 +00:00
Stefan Schimanski
edf9667025 * center RTF text vertically correctly in layout list
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23635 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 14:44:40 +00:00
Abdelrazak Younes
a723380e3a add missing ctor
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23634 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 14:21:49 +00:00
Stefan Schimanski
0e20c40ad2 * typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23633 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 14:20:27 +00:00
Stefan Schimanski
5e6ffc2549 * split different macro cases
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23631 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 13:43:42 +00:00
Abdelrazak Younes
47076b9dbb Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=4621
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23630 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 13:42:16 +00:00
Abdelrazak Younes
ac5c584bc2 MSVC warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23629 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 13:38:37 +00:00
Stefan Schimanski
286e3a0070 * require at least xargs 1.09.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23628 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 13:26:20 +00:00
Stefan Schimanski
feb96b01aa * draw full line for empty categories
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23627 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 13:10:10 +00:00
Stefan Schimanski
473091fb82 * center the line in the layout category headers in the middle of the lowercase chars
* some messages for the statusbar
    * configuration option for grouping of the layouts
    * put category headers above the first item of each category in the
      layout list.
      To avoid scrolling we have to sneak in space for the headers.
      So we tweak this value accordingly. It's not nice, but the
      only possible way it seems.

    Note 1: Because QComboBox uses the "first row's height * rowCount" to
    estimate the height of the popup, we have to fake some extra pixel
    lines to avoid scrolling because of the extra space taken by the
    headers. This is a hack, but I don't see a better way to establish that.

    Note 2: An alternative implementation is to insert headers as real list
    items. But it seems that QListView cannot skip them in cursor
    navigation then. So we stick to the upper approach.

    * remove checkbox in layout menu


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23626 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 13:02:57 +00:00
Stefan Schimanski
29dca708f7 * comments
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23625 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 12:57:45 +00:00
Stefan Schimanski
c17df2980b * cosmetic and comment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23624 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 12:54:00 +00:00
Stefan Schimanski
97a1fcc721 * \newcommandx parsing for tex2lyx
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23623 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 12:52:37 +00:00
Stefan Schimanski
ed1bd828f0 * remove newlyxcommand
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23622 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 12:51:50 +00:00
Stefan Schimanski
21eddc8fe2 * math macro definition context menu
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23621 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 12:51:14 +00:00
Stefan Schimanski
5d48c7ef6a * \newcommandx support for the math parser
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23619 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 12:50:10 +00:00
Stefan Schimanski
ec1f626284 * small fixes of the temporary change display of macro templates
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23618 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 12:49:50 +00:00
Stefan Schimanski
95f621f000 * comments for macro tables in Buffer
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23617 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 12:49:18 +00:00
Stefan Schimanski
76dc2c0d30 * make macros global. This is conceptionally much easier for the user,
and moreover simplifies the code a lot.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23616 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 12:49:02 +00:00
Stefan Schimanski
c8c5fc65d0 * xargs export support. No parser support yet.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23615 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 12:48:46 +00:00
Jürgen Spitzmüller
d589af0c1a restore Lars.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23612 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 06:40:55 +00:00
Stefan Schimanski
9a9e94bca2 * fix for http://bugzilla.lyx.org/show_bug.cgi?id=2556
"not possible to delete a label of a formula":

  Press forward delete at the end of a row and the label is deleted.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23610 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-09 23:43:05 +00:00
Pavel Sanda
635b2c1cc3 Start some context-edit menu.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23609 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-09 23:30:02 +00:00
Uwe Stöhr
8151dd5852 InsetMathNest.cpp: Ctrl-b uses now \boldsymbol (fixes http://bugzilla.lyx.org/show_bug.cgi?id=499)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23608 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-09 23:23:50 +00:00
Pavel Sanda
ada0cddd58 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23607 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-09 23:08:57 +00:00
Bo Peng
932998494b Embedding: add option \extra_embedded_files to buffer params. This increase
LyX file format to 318. The Embedded files panel of document settings has
been simplied, with working add and remove buttons. Note that bease BufferParams
lacks buffer path information, extraEmbeddedFiles are vector<string>, instead
of EmbeddedFileList (as previously planned).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23606 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-09 23:04:14 +00:00
Pavel Sanda
63e712c8a4 LFUN_TOGGLE_CURSOR_FOLLOWS_SCROLLBAR -> LFUN_CURSOR_FOLLOWS_SCROLLBAR_TOGGLE.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23605 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-09 21:23:37 +00:00
Abdelrazak Younes
4c5f5c6633 Small Menu code reorg:
Menu -> MenuDefinition
GuiPopupMenu -> Menu (definition now in header because of moc).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23604 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-09 20:38:03 +00:00
Jürgen Spitzmüller
3f7d2a66f5 * src/insets/InsetNote.h:
- implement missing noFontChange.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23601 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-09 17:43:16 +00:00
Pavel Sanda
30fdb68ea1 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23598 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-09 16:39:34 +00:00
Uwe Stöhr
43d576447d GuiDocument.cpp: fix linebreak
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23596 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-09 16:29:01 +00:00
Jürgen Spitzmüller
74f5f2a27d fix encoding.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23595 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-09 16:16:39 +00:00
Edwin Leuven
7a14dd740b compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23592 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-09 15:14:59 +00:00
Pavel Sanda
5e79b2ca4f Add math context menu.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23591 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-09 15:07:27 +00:00
Stefan Schimanski
7a924b3771 * mac menus do not handle showEvent, only the aboutToShow signal.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23588 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-09 14:20:16 +00:00
Abdelrazak Younes
0ac93cb524 Add dummy context menu when there is non defined.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23581 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-09 11:39:00 +00:00
Abdelrazak Younes
51a5db7110 General support for InsetCommand context menu. For this to work properly I had to disable all actions triggered by mouse right-clicking. This was bad ui in any case.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23579 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-09 11:22:39 +00:00
Bo Peng
6dc7cbe1e7 Continue working on the embedding feature. An additional parameter updateFile is passed to
EmbeddedFile::enable() and EmbeddedFiles::enable() to differentiate different usages.
A member variable bibfiles_ is added to InsetBibtex because it is not efficient to obtain
EmbeddedFileList each time from params()['bibfiles'] and params()['embed'].


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23576 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-09 06:05:22 +00:00
Stefan Schimanski
db0637f026 * compile fix for mac
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23575 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-08 23:45:25 +00:00
Abdelrazak Younes
22aa0137d3 Transfer general edit context menu from BufferView to InsetText.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23574 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-08 22:57:22 +00:00
Edwin Leuven
a4eba52f9b ...and clean up headers
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23573 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-08 21:55:03 +00:00
Edwin Leuven
ad19114709 fix view file when path is not shown
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23572 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-08 20:18:22 +00:00
Abdelrazak Younes
c57ca0a9f4 restore comment about boost::shared_ptr and dtor.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23571 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-08 17:37:10 +00:00
Abdelrazak Younes
9991539819 * MenuItem::submenu_: it seems that boost::shared_ptr() was necessary for std::vector purpose
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23570 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-08 17:34:54 +00:00
Abdelrazak Younes
fe4b7f4b12 some more cleanups.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23567 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-08 16:45:51 +00:00
Abdelrazak Younes
84622bc642 various cleanup and simplifications
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23565 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-08 16:15:34 +00:00
André Pönitz
69bfaf01a2 make Ctrl+mousewheel change the display font sizes (pretty similar to
what firefox does)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23564 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-08 16:15:10 +00:00
André Pönitz
ff91347e1f seems the temporary copy is needed neverthelesse. it's a 'shallow' one,
though...


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23561 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-08 15:36:29 +00:00
Abdelrazak Younes
f7f67fa95e Encapsulate all menu related stuff inside Menu.cpp and simplify a few things.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23560 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-08 15:33:52 +00:00
André Pönitz
621e1b50a9 shorter code..
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23558 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-08 13:02:52 +00:00
Abdelrazak Younes
6e807d67ec * Inset::buffer(): assert when buffer_ is not set.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23557 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-08 11:56:20 +00:00
Abdelrazak Younes
9398a1495a * Menu:
* general cleanup.
* convert free standing function to private methods.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23556 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-08 10:08:10 +00:00
Edwin Leuven
d1aff33dd5 more fixes (correct filename, and repair view file)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23555 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-08 09:54:48 +00:00
Abdelrazak Younes
8675175492 declaration cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23554 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-08 09:01:41 +00:00
André Pönitz
8be59017cf cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23553 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-08 08:20:36 +00:00
André Pönitz
be624b3de0 less string conversions as long as we stay in the frontend
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23552 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-08 07:59:47 +00:00
Richard Heck
9337d73f1f Comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23551 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-08 03:00:13 +00:00
Pavel Sanda
6a3cdc8420 Add doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23550 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-08 02:34:00 +00:00
Richard Heck
c7a0329a87 Fix crash.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23549 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-08 00:08:03 +00:00
Edwin Leuven
ac20e8e694 fix broken dialog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23548 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-07 23:37:55 +00:00
André Pönitz
1847d3f3e5 add a convienient foreach implementation
code is stolen from Qt, slightly adapted to
avoid a container copy.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23547 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-07 23:05:33 +00:00
Abdelrazak Younes
49c45006ae cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23543 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-07 20:51:56 +00:00
Abdelrazak Younes
095fc3a2a1 Buffer::getLabelList(): Bug fix; only level 0 items are labels.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23542 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-07 19:52:44 +00:00
Abdelrazak Younes
5da55588f2 * Buffer::getLabelList(): Speed up and simplify by using the tocBackend.
* Inset and derived class: get rid of getLabelList()
* BufferView::gotoLabel(): Speed up and simplify by using the tocBackend.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23541 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-07 19:46:04 +00:00
Abdelrazak Younes
f0771cecc2 MSVC Compile fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23540 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-07 19:43:17 +00:00
Abdelrazak Younes
01d218fd0f * Buffer::changeRefsIfUnique(): Only used for CITE_CODE now.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23538 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-07 13:45:48 +00:00
Abdelrazak Younes
af3852b12c fix memory leak
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23537 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-07 13:36:39 +00:00
Abdelrazak Younes
8998dac1a7 InsetInclude: use InsetLabel instead of handling "label" parameter manually.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23536 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-07 13:33:33 +00:00
Abdelrazak Younes
fd16c64b35 add comment about std::vector<bool>
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23535 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-07 13:05:04 +00:00
Abdelrazak Younes
cab2fe4cce MSVC compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23533 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-07 07:21:13 +00:00
Richard Heck
6edb3984bf BaseClassList --> LayoutFileList
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23532 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-07 03:53:21 +00:00
Richard Heck
6fee306f2f Remove comment. This issue no longer seems to exist.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23531 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-07 03:42:39 +00:00
Richard Heck
ac6e5b871c Get rid of the boost::shared_ptr's in TextClass.{h,cpp}. It's not clear what these were really doing here now, and they will cause bugs now that DocumentClass objects are more dynamic.
Abdel suggested it might be worth pimpl'ing the FloatList and Counter objects, to get the header dependencies back down.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23530 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-07 03:41:12 +00:00
Richard Heck
2222b3f367 Did not need to change this.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23529 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-07 01:21:03 +00:00
André Pönitz
6e9980f149 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23528 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-07 00:29:12 +00:00
André Pönitz
4b12782854 merge MenuBackend into frontend/Menus
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23527 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-07 00:21:23 +00:00
Richard Heck
6f1cb456cf Improve performance of TextClass type objects by making BaseClassList and DocumentClassBundle containers of pointers rather than of objects, thus reducing the need to copy. Since these classes are singletons that live the life of the process, there's not much need to worry about memory leaks.
We take the opportunity to make TextClass objects noncopyable, nonassignable, etc.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23526 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 23:31:40 +00:00
Richard Heck
5166d49d2d Abdel is right.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23525 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 22:06:24 +00:00
Richard Heck
926ad3d183 Get rid of LayoutPtr.h.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23524 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 21:55:33 +00:00
André Pönitz
e13cc7e90d start moving MenuBackend to the frontend
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23523 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 21:50:27 +00:00
Richard Heck
a01cb111a0 Change the interface to a paragraph's layout. We still store a LayoutPtr, but now privately, and make a Layout const & available to clients.
The need for a LayoutPtr arises from the fact that (a) we do not want to give our clients a Layout &, since we do not want them to be able to change our Layout; but (b) we also need to be able to change which layout is ours. So we cannot store a Layout const &. Or so it seems to the compiler.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23522 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 21:31:27 +00:00
Abdelrazak Younes
258cca4b3b Delete child buffer at InsetInclude destruction.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23521 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 20:58:59 +00:00
Bernhard Roider
a99c5828f8 Add support for \bm from bm.sty
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23520 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 20:49:59 +00:00
Richard Heck
f401ce5d29 Changes LayoutList from a vector<LayoutPtr> to a vector<Layout>.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23519 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 20:01:30 +00:00
Richard Heck
e7d3e98546 As noted by Andre.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23518 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 19:59:05 +00:00
André Pönitz
56dec68703 more of that...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23517 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 19:51:15 +00:00
André Pönitz
e8f16a9bcb frontend cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23516 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 19:39:52 +00:00
Abdelrazak Younes
1e4f5ba47c Per Andre' advice: No need to check for pointer nullity for delete.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23515 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 19:31:14 +00:00
Richard Heck
89d82d37f4 Do a little better here.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23514 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 18:21:08 +00:00
Abdelrazak Younes
af6e88250a Load child documents unconditionally at updateLabels() time.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23513 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 18:13:04 +00:00
Abdelrazak Younes
a4d5b78430 Transfer and bug fix LFUN_BUFFER_BEGIN/END_SELECT to BufferView.cpp
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23512 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 15:39:30 +00:00
Abdelrazak Younes
5a9653203f Fix PageUp/Down select when at the top/bottom of a document.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23510 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 12:41:38 +00:00
Abdelrazak Younes
3ba3389ede Fix http://bugzilla.lyx.org/show_bug.cgi?id=4494
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23509 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 10:14:36 +00:00
Abdelrazak Younes
a56dec8330 fix the bug fix in 23507
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23508 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 09:47:14 +00:00
Abdelrazak Younes
682f4efd13 compile fixes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23507 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 09:15:53 +00:00
Abdelrazak Younes
902b41c919 compile fixes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23506 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 09:07:41 +00:00
Richard Heck
592f951ba0 Kill indexing into the list of layouts.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23505 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 05:59:21 +00:00
Richard Heck
ac89b178de Simplify the logic a bit here.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23504 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 05:10:04 +00:00
Richard Heck
61e10d5c85 No need to lowercase here.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23503 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 05:04:59 +00:00
Richard Heck
a307f3b9ae Backend support for layout categorization.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23501 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 05:01:44 +00:00
Richard Heck
051d887f33 Fix Lars.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23500 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 04:29:02 +00:00
André Pönitz
990df4924a more of that
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23497 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 00:07:19 +00:00
André Pönitz
88293cbcfb a few more docstring<->QString conversions
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23493 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 23:10:53 +00:00
Uwe Stöhr
32a3ce2546 GuiToolbar.cpp: compile fixes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23492 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 22:41:56 +00:00
André Pönitz
2b7ad27227 extend the idea of the previous patch a bit...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23490 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 20:48:19 +00:00
Stefan Schimanski
e636df4610 * preparation for the layout categories. Now the separator is just
drawn above the "-- Separator --" line. As soon as the category
  information is available the same code will draw the separator at
  every category change in the list.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23489 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 20:43:55 +00:00
Stefan Schimanski
3225232f86 * fix wrong slot name
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23488 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 20:34:09 +00:00
André Pönitz
92900af75d merge qlkey.h into the only .cpp file #including it
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23487 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 20:31:49 +00:00
André Pönitz
a500e62902 do what the FIXME suggested
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23486 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 20:11:47 +00:00
Stefan Schimanski
cdf8979160 * cosmetic
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23485 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 19:00:26 +00:00
Stefan Schimanski
bf96153185 * is.at is const, is[] is a deep non-const copy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23484 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 19:00:11 +00:00
Jürgen Spitzmüller
6488414cf8 * src/insets/InsetMathBox.{cpp,h}:
- add validate method and validate \tag[*] (bug 4586)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23483 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 18:57:08 +00:00
Stefan Schimanski
107faacf0e * clear filter when showing popup of layout list
* show filter hint in status bar


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23481 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 16:02:18 +00:00
Stefan Schimanski
cfac27699a * cosmetic
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23480 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 15:45:43 +00:00
Stefan Schimanski
791b82457d * cosmetic
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23479 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 13:07:01 +00:00
Stefan Schimanski
00bcfe78bd * adjust layout list size to contents
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23478 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 12:26:50 +00:00
Stefan Schimanski
d749ce138d * cosmetic
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23477 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 12:04:46 +00:00
Stefan Schimanski
cafaf075e5 * even when sorted alphabetically keep the separation of standard and module layouts
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23476 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 12:02:18 +00:00
Stefan Schimanski
1247839690 * draw the separator as a menu separator
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23475 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 12:02:00 +00:00
Stefan Schimanski
2280e16db4 * let the cleanlook style show the check mark. It normally ignores it for comboboxes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23474 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 12:01:40 +00:00
Stefan Schimanski
6da3d44268 * Leave page size at it is to avoid strange layout effects on Mac
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23473 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 12:01:27 +00:00
Stefan Schimanski
9c05593876 * rich text item delegate to draw the layout filter as underline
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23472 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 12:00:56 +00:00
Pavel Sanda
701367b4c5 Remove the rest of LFUN_THEOREM_INSERT.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23471 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 08:58:58 +00:00
Pavel Sanda
8f7472ad8f Cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23470 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 08:55:49 +00:00
Pavel Sanda
110090e435 * hyperref: add check for newline chars in user input.
http://bugzilla.lyx.org/show_bug.cgi?id=4611


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23469 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 01:14:15 +00:00
André Pönitz
75999ba650 make code look a bit more uniform
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23468 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 00:21:05 +00:00
Uwe Stöhr
7108582cbf stdinsets.inc: use foreground color also for index insets. Using the latex color would imply that you have to enter there LaTeX code, but since Lyx 1.6this is no longer the case
ColorCode.h: correct a comment

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23467 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 00:06:34 +00:00
André Pönitz
6592d5f199 remove duplicated code (is already in constructor)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23466 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 22:48:40 +00:00
André Pönitz
a694476ac6 try to pass a Buffer & to inset construction if some buffer(param)
access is needed


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23465 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 22:28:18 +00:00
Pavel Sanda
bddf480792 Comments from Andre'.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23463 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 21:45:54 +00:00
Uwe Stöhr
bdd453e4b9 zipunzip.cpp: partly revert r23447 to be able to compile
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23462 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 20:55:24 +00:00
Stefan Schimanski
d8df65532e * make lyx look a bit more like a Mac application by removing frames around the work area.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23459 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 18:53:44 +00:00
Abdelrazak Younes
37b429e347 Add citations to Navigator.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23458 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 17:47:47 +00:00
Abdelrazak Younes
d7ccaedfe0 Invert loadChildDocuments() and updateLabels() calls. This is necessary to avoid potential recursive calls of updateLabels().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23457 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 17:45:23 +00:00
Jean-Marc Lasgouttes
59c298b750 revert more minizip changes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23456 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 15:16:54 +00:00
Jean-Marc Lasgouttes
1da98f9d61 revert minizip changes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23455 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 15:15:40 +00:00
Stefan Schimanski
770b230704 * some more unused buffer parameters
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23454 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 15:05:16 +00:00
Stefan Schimanski
cd63c1380b * remove some garbage from the "buffer in inset" change
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23453 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 14:58:10 +00:00
Stefan Schimanski
be444fafcb * remove parameter here as well
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23452 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 14:57:57 +00:00
Stefan Schimanski
cf15bd840b * cosmetic
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23451 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 14:57:46 +00:00
Stefan Schimanski
8aac28367e * the look does not depent on "editing" anymore as the edit-layout is dynamic.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23450 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 14:57:34 +00:00
Stefan Schimanski
03a1c9192e * store the selection in the InsetMathUnknown and insert it into the
first argument after finalizing the macro. This also works with real
  math macros.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23449 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 14:49:24 +00:00
Stefan Schimanski
501763cafa * add appetite concept to the math macro to restrict the number of parameter which are eaten greedily.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23448 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 14:49:03 +00:00
Jean-Marc Lasgouttes
a84ae5899d nuke compiler warnings in minizip
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23447 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 14:40:17 +00:00
Abdelrazak Younes
da652941d5 factory::readInset(): Set again the buffer for InsetMathHull.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23446 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 14:38:30 +00:00
Abdelrazak Younes
ed5350bae7 Found a cleaner solution for the buffer reference problem in mathed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23445 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 14:18:34 +00:00
Jean-Marc Lasgouttes
0320d29531 fix some compiler warnings
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23443 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 14:04:59 +00:00
Abdelrazak Younes
7d65f6931f compile fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23442 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 13:16:50 +00:00
Abdelrazak Younes
e4f0872233 gcc compile fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23441 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 13:15:02 +00:00
Abdelrazak Younes
4723fa0f2c LateX export must not depend on screen label.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23440 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 13:00:20 +00:00
Abdelrazak Younes
f9662a5591 tentatively fix gcc compilation.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23439 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 12:50:06 +00:00
Stefan Schimanski
de518abff5 * even setModel can trigger focus events. So move also those into
asynchronous handlers.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23438 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 12:44:48 +00:00
Abdelrazak Younes
6e3e2ae19b InsetMathHull: LFUN_INSET_INSERT: Fix label insertion
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23437 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 12:43:20 +00:00
Pavel Sanda
6b2d20c8a6 ToC tree redrawing after resets.
http://bugzilla.lyx.org/show_bug.cgi?id=3740


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23436 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 12:39:03 +00:00
Abdelrazak Younes
de5fb7caf9 Fix and improves labels and references in mathed.
* InsetMathHull:
- label_: now is a vector of InsetLabel instead of docstring
- addToToc() and updateLabels() update the existing labels.
- nonum_ : use bool instead of int



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23435 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 12:22:48 +00:00
Abdelrazak Younes
81a42b82f4 header
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23434 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 12:19:09 +00:00
Abdelrazak Younes
7f8d9a6f87 set the buffer reference for all insets when the file is loaded.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23433 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 12:18:52 +00:00
Abdelrazak Younes
b45b4a0e87 GuiView: Avoid unnecessary GUI updates if it was the current view already.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23431 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 10:43:35 +00:00
Stefan Schimanski
4423a8a6f5 * sorting depends on translated string, i.e. column 0 of the layout model
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23429 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 09:54:53 +00:00
Stefan Schimanski
b36c8ae173 * fix sorting of layout names
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23428 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 09:47:11 +00:00
Stefan Schimanski
cabd59db2c * cosmetic
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23427 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 09:46:49 +00:00
Stefan Schimanski
3931ff3f2e * custom keyboard search/filter which shows only those layouts whose
names include the entered character sequence in the same order. 


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23426 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 09:46:35 +00:00
Stefan Schimanski
a90096d4d5 * cosmetic
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23425 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 09:43:42 +00:00
Stefan Schimanski
b4466b63f6 * fix another crash due to the redraw opti-/minimization during
completion. We have to show and hide the popup asynchronously with a
singleshot timer. Otherwise it might trigger accesses to the coord
cache although the metrics have not been done yet.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23424 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 09:43:32 +00:00
Stefan Schimanski
a4b2404cb1 * work around for the bad memory of the treeview about the column width
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23423 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 09:43:16 +00:00
Abdelrazak Younes
3974c5f230 add missing break, should fix the remaining problem in revision 23420.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23422 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 07:33:43 +00:00
Abdelrazak Younes
9931b0155e typos.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23421 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 06:56:13 +00:00
Jürgen Spitzmüller
5fce07a02b * src/insets/InsetLabel.[cpp,h}:
* src/insets/InsetCommand{.cpp,h}:
	- rename update to updateCommand

* src/CutAndPaste.cpp:
* src/insets/InsetBibitem{cpp,h}:
	- add duplicate check. There's a remaining glitch: the warning message after setting a bibitem
	  key in the dialog to a duplicate pops up twice.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23420 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 06:41:47 +00:00
Abdelrazak Younes
cbb7b9a0a4 remove unused variables.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23419 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-03 18:16:11 +00:00
Abdelrazak Younes
c084b71a9b get rid of LFUN_INSET_REFRESH
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23418 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-03 18:06:27 +00:00
Abdelrazak Younes
017ba3c4c7 Sanitize a bit the way InsetRef and InsetCommand button are drawn.
* Inset::validate(): renamed to initView()

* InsetCommand:
- get rid of unneeded refresh() and updateButtonLabel_
- setParams(): call initView()

* InsetRef:
- implement initView()
- screenLabel(): transfer code to updateLabels()
- addToToc(): prefix name with BROKEN if the reference is broken.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23417 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-03 17:58:26 +00:00
Stefan Schimanski
f847fb64f8 * Hide popup asynchronously because we might be here inside of
LFUN dispatchers. Hiding a popup can trigger a focus event on the
  workarea which then redisplays the cursor. But the metrics are not
  yet up to date such that the coord cache has not all insets yet. The
  cursorPos methods would triggers asserts in the coord cache then.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23416 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-03 15:44:08 +00:00
Stefan Schimanski
d87c5c062b * Update::SinglePar should be enough for most cases. In notifyCursorLeaves though we might need a fullscreen redraw if we don't add more clever checks whether the cursors moved to another paragraph.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23415 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-03 15:21:13 +00:00
Stefan Schimanski
7406991fd4 * fix assert with 4.2.x when setting a null item delegate on an item view.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23414 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-03 15:10:48 +00:00
Jürgen Spitzmüller
45520d7ced * src/insets/InsetLabel.cpp (doDispatch):
- typo.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23413 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-03 13:58:18 +00:00
Abdelrazak Younes
aef2959b26 Add "DUPLICATE:" prefix to screen labels. 1.6 won't allow them now but importing a 1.5 documents can contain duplicate labels.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23412 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-03 13:31:44 +00:00
Abdelrazak Younes
34d15c9150 revert 23410 and fix InsetLabel::update() instead. It seems that the const_iterator used in InsetLabel::update() did not please gcc.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23411 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-03 13:16:23 +00:00
Jürgen Spitzmüller
6f455a916b * src/insets/InsetLabel.cpp (doDispatch):
- restore call to changeRefsIfUnique.

The references were not updated if the label name was changed.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23410 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-03 12:22:17 +00:00
Abdelrazak Younes
f5c54d8b69 * GuiWorkArea::focusInEvent(): avoid unnecessary full redraw if the work area was already current.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23409 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-03 11:04:17 +00:00
Abdelrazak Younes
a837d22ab9 Fix multipar selection drawing. The problem was that the row selection status was only updated for full metrics update. A simple transfer of the relevant code from TextMetrics::redoParagraph() to TextMetrics::drawParagraph() solved the problem.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23408 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-03 11:03:47 +00:00
Jürgen Spitzmüller
ffc4554815 add label/refs validation on pasting.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23407 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-03 09:35:26 +00:00
Jürgen Spitzmüller
eef138f77b * src/insets/InsetLabel.cpp:
- minor fixes to the label validation.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23406 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-03 08:19:36 +00:00
Richard Heck
264ee9f584 Nasty mistake here.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23405 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-03 04:19:50 +00:00
Pavel Sanda
dfd061b5af Add doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23404 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-03 02:03:01 +00:00
Abdelrazak Younes
2cf1154734 Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=4599
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23401 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-02 19:07:15 +00:00
Abdelrazak Younes
7cd9525197 rev 23399: the fix was not fully correct because labels are not editable.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23400 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-02 18:49:49 +00:00
Abdelrazak Younes
00d6906d04 Introduce Inset::validate() for Inset validation purpose upon interactive creation. In this commit this is used to validate a newly inserted label. As an added bonus, broken cross-references will be automatically fixed if the corresponding label is created.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23399 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-02 18:14:12 +00:00
Jürgen Spitzmüller
2a65cd5fca * WrapUI.ui:
- redo with Qt 4.2 designer.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23398 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-02 17:28:41 +00:00
Uwe Stöhr
3db3b9930a fileformat incremented to 317:
support for floating placement settings for wrap floats

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23394 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-02 17:12:22 +00:00
Abdelrazak Younes
132003aac5 Avoid duplicate labels when the user change an InsetLabel.
* InsetLabel:
- update(): new method for changing the label. Uses the Buffer reference cache instead of a lookup.
- LFUN_INSET_MODIFY: use update() instead of Buffer::changeRefIfUnique().




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23393 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-02 17:04:10 +00:00
Jürgen Spitzmüller
ce2a68ce8d * src/insets/InsetWrap.{cpp,h}:
- fix the fix of rev. 23390. Thanks, Abdel.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23392 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-02 16:56:57 +00:00
Jürgen Spitzmüller
4398113ee9 * src/insets/InsetWrap.{cpp,h}:
- button label has to be set before drawing (bug 4602).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23390 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-02 16:34:17 +00:00
Abdelrazak Younes
8e9dc9bd2a Introduce a labels&references cache at buffer level. This cache uses the already existing updateLabels() mechanism and thus speedups labels&references toc generation. As a bonus, duplicates labels and broken references are detected and tagged with "DUPLICATE:" and "BROKEN:" in the outliner (or the navigator).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23389 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-02 15:27:35 +00:00
Abdelrazak Younes
2f0b39a495 Bug fix bis: disconnect and clearParams for GuiDialog based dialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23388 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-02 15:19:03 +00:00
Abdelrazak Younes
ce7e4a4b78 Bug fix: disconnect and clearParams for GuiDialog based dialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23387 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-02 15:06:55 +00:00
Uwe Stöhr
28fb5e3d81 GuiDocument.cpp: add linebreaks to error messages
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23384 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-02 12:36:30 +00:00
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
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
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
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
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
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
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
Abdelrazak Younes
f6e471fc8d Fix InsetQuotes creation. Not very clean but it does the job. Andre, I think we should require the Buffer at construction for all insets that needs it. A base InsetBuffer class comes to mind.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23324 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-28 15:24:37 +00:00
Richard Heck
5854c47a31 Hmm.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23323 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-28 14:58:22 +00:00
Richard Heck
224e6ad0a3 baseclasslist --> BaseClassList singleton. Prep for further type safety.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23322 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-28 14:49:01 +00:00
Stefan Schimanski
5d0e49d4dc * fix a memory corruption due to sligtly different semantics of btree iterators:
// We use the key() method here, and not something like it->first
       // because the btree only returns (iterator-) temporary value pairs.
       // If we returned the first component of those here, we get an
       // invalid reference and therefore strange crashes.
       return it.key();

* This should fix the completion for Windows users hopefully.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23321 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-28 14:46:47 +00:00
Stefan Schimanski
154907af38 * merge InsetMathMakebox and InsetMathFramebox
* only output second parameter if the first is available. That's how LaTeX defines make/framebox.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23320 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-28 12:46:32 +00:00
Stefan Schimanski
a085842f14 * fixing the framebox part of http://bugzilla.lyx.org/show_bug.cgi?id=2461:
"wrong cursor position in \framebox and \makebox environment"

  The drawing and metrics calculations were totally broken.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23319 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-28 12:45:36 +00:00
Stefan Schimanski
0cdf6c006b * corner cases for RTL completions: RTL<->LTR boundaries
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23318 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-28 12:44:42 +00:00
Stefan Schimanski
7ff4b67487 * the longest completion does not depend on the competion.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23317 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-28 12:43:56 +00:00
Stefan Schimanski
93d8667d39 * only remember the last selection if it didn't come by the cursor completion indicator
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23316 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-28 12:43:24 +00:00
Stefan Schimanski
f7cd0928ad * correct color for the unique part of the completion in RTL
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23315 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-28 12:42:58 +00:00
Stefan Schimanski
7271db36c5 * resorted completion options. Now by text and math.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23314 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-28 12:42:34 +00:00
Stefan Schimanski
399ef7f80c * small indicator in the cursor to show that a completion is available by pressing tab
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23313 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-28 12:41:57 +00:00
Stefan Schimanski
7e2c8ea4ff * completion cursor
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23312 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-28 12:41:43 +00:00
Stefan Schimanski
0ca318af55 * cosmetic
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23311 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-28 12:41:33 +00:00
Abdelrazak Younes
cfb2fe0a8f * Inset::buffer(): change to an ErrorException as this can be bad enough to provoke a crash.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23310 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-28 12:29:33 +00:00
Pavel Sanda
180eb073b2 Fullscreen fixes (multiple windows & toolbar visibility).
Workaround for http://bugzilla.lyx.org/show_bug.cgi?id=4588 .


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23309 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-28 11:19:19 +00:00
Enrico Forestieri
268dce39b4 Fix crash on cygwin with completion in text mode.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23308 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-28 10:28:10 +00:00
Abdelrazak Younes
e56e5e213c InsetMathHull::addToToc(): Work around buffer reference in InsetMathHull. This inset is created at too many places (see Parser::parse1() in MathParser.cpp).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23307 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-28 10:04:15 +00:00
Abdelrazak Younes
d4cacf3642 Fix crash on exit because of static dummy Buffer.
* Inset::buffer(): replace dummy buffer with exception throwing.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23306 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-28 07:58:00 +00:00
Richard Heck
77f2d2e7d2 Fix types.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23305 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-28 07:18:54 +00:00
Richard Heck
a6f8f273e9 Cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23304 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-28 04:05:38 +00:00
Richard Heck
49eebd7b08 Minor cleanup.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23303 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-28 04:00:24 +00:00
Richard Heck
87795753e1 Header.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23302 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-28 03:55:08 +00:00
Richard Heck
3ab571a70e Header.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23301 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-28 03:53:22 +00:00
Richard Heck
a6fccccd56 Header.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23300 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-28 03:51:10 +00:00
Richard Heck
d8a6b5bfd0 Remove TextClassPtr without losing the type safety it provided.
See these threads:
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg136112.html
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg136062.html
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg135997.html
for some background.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23299 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-28 01:42:02 +00:00
André Pönitz
768cfbb308 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23296 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-27 23:11:50 +00:00
André Pönitz
1cca0a86bd API cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23295 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-27 23:03:26 +00:00
André Pönitz
3c5f43af7d cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23294 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-27 22:33:10 +00:00
André Pönitz
54e314c826 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23293 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-27 22:23:12 +00:00
André Pönitz
9b39c142b6 remove Buffer & argument in functions realted to embedded files
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23292 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-27 21:51:29 +00:00
Pavel Sanda
f8ba8db758 Fullscreen mode fixes:
- tabbar & frames respect fullscreen mode when adding/removing new tab.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23291 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-27 21:04:33 +00:00
André Pönitz
f3e89bc3c9 s/cellstruct/CellData/g
s/rowstruct/RowData/g
s/columnstruct/ColumnData/g

closer to the current naming convention.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23290 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-27 20:59:44 +00:00
André Pönitz
db8c16d554 progress on buffer-reference-in-insets. beware of instabilities...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23289 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-27 20:43:16 +00:00
Abdelrazak Younes
aede435746 doubly stupid bug fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23288 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-27 18:00:32 +00:00
Abdelrazak Younes
9fb8d72d62 stupid bug fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23287 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-27 17:51:33 +00:00
Abdelrazak Younes
e14a0ad50f InsetRef::addTocToc(): add an entry for the referenced label if not already present. Next step is to rebuild the Toc in InsetLabel::addTocToc() for this case.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23286 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-27 17:02:17 +00:00
Abdelrazak Younes
9b9080c0e9 Bug fix: Adjustment for multiple reference to the same label. The solution is still not optimal as any reference to a label after the reference will not get notice. This is because addToToc() is called iteratively through the document so the toc entry for the label is still not created... any idea to fix this is welcome.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23285 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-27 16:44:57 +00:00
Abdelrazak Younes
c05db366bb He he he, something I've been dreaming of for a long time: label and reference navigator!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23284 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-27 16:23:27 +00:00
Abdelrazak Younes
7307e07108 fix bug: an Inset label is not editable of course.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23283 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-27 15:54:30 +00:00
Abdelrazak Younes
39ccaa2ea7 Add list of labels. If I have the time and energy the next step is to cleanup the cross-reference lookup so that we can integrate the cross references in the tree, hence the name "Labels and References".
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23282 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-27 15:23:22 +00:00
Pavel Sanda
52a6cc6f7d Add doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23281 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-27 13:16:29 +00:00
Abdelrazak Younes
8c8ff137da Get rid of 'quitting' global variable. It is not needed anymore because all windows are closed in order now and the frontend/core is properly separated.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23280 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-27 12:30:41 +00:00
Abdelrazak Younes
3128c45b24 GuiView ctor: wrong property!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23279 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-27 11:56:36 +00:00
Abdelrazak Younes
3ab0bcbf12 typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23278 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-27 11:45:43 +00:00
Abdelrazak Younes
1d163f25d9 Comment out setQuitOnLastWindowClosed() call.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23277 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-27 11:44:37 +00:00
Abdelrazak Younes
b39e9e6c8e * GuiView: Make use of the default settings WRT last window closed and app quiting.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23276 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-27 11:35:12 +00:00
Abdelrazak Younes
7ca1eacac1 Fix http://bugzilla.lyx.org/show_bug.cgi?id=4498
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23275 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-27 11:23:41 +00:00
Abdelrazak Younes
8446d3dbfc Get rid of LyXFunc::closeBuffer()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23274 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-27 11:05:58 +00:00
Stefan Schimanski
c0e2c0cd5c * better fix for * math commands. We allow the * for known math commands and for known math macros which are valid at that point in the buffer.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23273 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-27 10:46:38 +00:00
Stefan Schimanski
dee531e765 * allow macro names with *
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23272 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-27 10:43:29 +00:00
Abdelrazak Younes
9940ca7730 Cleanup app quitting and window closing now that there is a clean separation between the frontend and the core.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23271 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-27 10:35:28 +00:00
Stefan Schimanski
1b0591b28e * fix for http://bugzilla.lyx.org/show_bug.cgi?id=4584:
"not possible to use the command \tag*"


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23263 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-26 22:40:59 +00:00
Richard Heck
3c944f7bf2 Simplify and fix a bug.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23262 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-26 22:35:09 +00:00
Stefan Schimanski
d0de0f53ef * set the column with in the popup before showing it. Then it even works.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23261 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-26 19:20:23 +00:00
Stefan Schimanski
249e6b7ac0 * update the words of a paragraph when the cursor leaves.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23260 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-26 19:20:12 +00:00
Stefan Schimanski
5622f4b560 * make DocIterator::find(Inset(Math) * inset) do what it is supposed to do according to the documentation.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23259 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-26 19:19:59 +00:00
Stefan Schimanski
eb86fb460e * escape hides the completion
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23258 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-26 19:19:34 +00:00
Stefan Schimanski
4413bf3783 * Update::SinglePar is enough, Update::Force is a fullscreen update
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23251 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-26 14:22:56 +00:00
Abdelrazak Younes
d1511fcb47 * GuiView::closeEvent(): adjust buffer closing WRT multi-view and child documents.
- a child document is kept loaded in any case. It is saved if needed before being hidden.
- a document which is not viewed in another window is closed now.
- we do nothing for documents that are also viewed in another window. There is two FIXME related to this last item in the code:

// FIXME 1: should we put an alert box here that the buffer
// is viewed elsewhere?
// FIXME 2: should we try to save this buffer in any case?
//saveBuffer(b);


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23250 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-26 14:15:32 +00:00
Stefan Schimanski
83ae753214 * undeflow fix for i == -1
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23249 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-26 13:46:54 +00:00
Stefan Schimanski
924ed25c61 * factored out hidePopup and hideInline
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23248 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-26 13:10:04 +00:00
Stefan Schimanski
eb2e971f6a * "show popup without delay"-checkbox was missing a connect
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23247 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-26 13:09:44 +00:00
Stefan Schimanski
8b42a021b2 * cur.insert does not set the update flags
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23246 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-26 13:09:06 +00:00
Stefan Schimanski
2c62c9d91c * don't show inline if the user did not want it, even when using the popup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23245 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-26 13:08:52 +00:00
Stefan Schimanski
cd5bad62e0 * paragraph support for the global word list. To make it buffer
dependent, we need the buffer pointer. In fact we already have a
  pointer to the text inset. So as soon as inset know their buffer we
  can easily switch to a buffer local word list.
* there might be missing some more places to update the words from a
  buffer, like for example after backspace or more important when the
  cursor leaves a paragraph.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23244 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-26 13:07:59 +00:00
Stefan Schimanski
23f76cf934 * grey70 does not exist on linux
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23243 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-26 13:05:57 +00:00
Abdelrazak Younes
1f18764d97 Fix warning.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23242 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-26 08:31:00 +00:00
Richard Heck
b0de1dca99 Code rules.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23241 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-26 01:37:05 +00:00
Stefan Schimanski
f496c8cdd6 * method change_weight to change the weight of a entry.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23240 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-26 00:38:55 +00:00
Stefan Schimanski
22d8e780f4 * segfault fix when deleting the last element from the tree
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23239 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-26 00:38:41 +00:00
Stefan Schimanski
2e4848e082 * getWord is const in fact
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23238 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-26 00:38:30 +00:00
Stefan Schimanski
16b17efc9b Now the right patch:
* compile fix


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23237 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-26 00:38:14 +00:00
Richard Heck
98a72aac8a Comments, cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23236 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-25 22:19:59 +00:00
Richard Heck
2fb02d20f1 Per Abdel's suggestion that we focus on bug-fixing at this point, this will be the last patch in this series for a bit. But I wanted to get this done before I forget what it is I was doing, so here it is.
The idea behind this patch is to make real key-value support for InsetCommand parameters possible. This should be particularly useful for the listings version of InsetInclude, though we would need some kind of UI for it before it would really be helpful. (See below for some thoughts.) This doesn't substantially change anything else, though some things do get re-arranged a bit.

Basically, the idea is this. First, we introduce a whole range of parameter types: Normal LaTeX optional and required parameters; ones for LyX's internal use (like embed); and finally, in connection with keyval, ones that represent keys and ones that represent optional and required arguments where the keyval stuff will appear. (I'm assuming here that there will always be exactly one of those, and that it will accept only keyval-type material.) The parameters themselves are stored in a map, so it's really only the output routines that need to care about the different types of parameters.

Regarding the frontend, it seems to me that something like the following would work:
(i) scan the parameter list for LATEX_KEY type parameters
(ii) the dialog will have a series of lines, each of which has a combo box listing the acceptable keys and a QLineEdit for entering its value, as well as a "delete" button of some sort for removing this key and its value
(iii) there should be an "add line" button to add a new line, activated only when all other lines are filled with values
Probably not even too hard.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23235 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-25 22:13:45 +00:00
Stefan Schimanski
f8d516c7af Revert "* compile fix"
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23234 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-25 22:02:48 +00:00
Stefan Schimanski
1669c17c0f * compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23233 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-25 21:53:16 +00:00
Richard Heck
b2475f6625 Replace boost::shared_ptr<TextClass> with a global cache of sorts of the TextClass's used by Buffers---or, more strictly, constructed by BufferParams::makeTextClass(). The action is in TextClass.{h,cpp}.
I've left the typedef in TextClassPtr.h. At the moment, it's kind of silly. But I've left it mostly because it helps to identify where the TextClass's stored in the TextClassBundle are used, and maybe it'd be worth having some sort of strong typedef like the one for BaseClassIndex here.

I need to check whether the textClass_ member of InsetCollapsable is needed now. I think not.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23232 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-25 19:31:31 +00:00
Jürgen Spitzmüller
4d20376360 * src/Makefile.am:
- mend.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23231 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-25 18:42:57 +00:00
Stefan Schimanski
7c5d585c84 * binary search can be tricky. I hope I got it right now.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23230 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-25 15:09:45 +00:00
Stefan Schimanski
b6be7d908f * adapt to the changed signature
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23229 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-25 14:25:49 +00:00
Abdelrazak Younes
962fdc2923 Change CompletionList::data() signature and cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23226 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-25 13:11:09 +00:00
Stefan Schimanski
32f9f03ebc * fix for binary search if string was not found
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23225 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-25 13:08:51 +00:00
Stefan Schimanski
159c18bfb9 * cosmetic
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23224 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-25 13:08:37 +00:00
Abdelrazak Younes
bd7cd85d04 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23222 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-25 09:26:46 +00:00
Abdelrazak Younes
477366d8ee Cleanup header.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23221 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-25 09:02:35 +00:00
Abdelrazak Younes
f658224e5c Fix warnings and svn eol properties.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23220 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-25 08:54:51 +00:00
Abdelrazak Younes
0655e4d78f Should Fix crash on exit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23218 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-25 07:32:02 +00:00
Stefan Schimanski
ff2e0db6c2 * fix longest prefix algorithm for sorted models: commonPrefix(...) returns the length, not the prefix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23217 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-25 02:09:39 +00:00
Stefan Schimanski
9a5aba0877 * copy'n'paste fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23216 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-25 02:01:48 +00:00
Stefan Schimanski
c4a002d94d * this was not meant to be added
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23215 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-25 02:00:22 +00:00
Stefan Schimanski
f211733ef2 * set is not needed anymore here
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23214 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-25 01:57:38 +00:00
Stefan Schimanski
9f21b7f9ad * high performance text completion with weighted btrees to get pseudo
random-access (i.e. O(log n)) to the n-th element in a list/set. Try
  it with 1000000 keys ... no problem.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23213 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-25 01:56:53 +00:00
Stefan Schimanski
b78dbb5999 * special faster algorithms for sorted completion lists
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23212 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-25 01:56:30 +00:00
Stefan Schimanski
ca63ce553c * Timo Bingmann's btree v8.1, extended with weight counting.
See http://idlebox.net/2007/stx-btree/


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23211 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-25 01:56:03 +00:00
Stefan Schimanski
c3bdbe38d7 * implemention of the WordList with iterator caching for a std::set string list.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23210 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-25 01:55:50 +00:00
Richard Heck
6a10c0a9c6 Warning.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23209 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-25 01:50:09 +00:00
Richard Heck
dfd786e6a0 Whoops. Revert last commit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23205 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-24 23:24:20 +00:00
Richard Heck
85408a9e96 Cosmetic.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23204 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-24 23:21:39 +00:00
Richard Heck
5a45ef653b Improve comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23201 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-24 22:42:27 +00:00
Richard Heck
d667f7463e Doxy bit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23200 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-24 22:40:34 +00:00
Richard Heck
4c6180d209 Try to make the distinction between base classes and text classes clearer in the code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23198 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-24 16:59:49 +00:00
Richard Heck
69de04feac Restore Andre's TextClassIndex, but now in the form of BaseClassIndex. It seems worth distinguishing more clearly than we do at the moment between TextClass's and BaseClass's. The latter correspond to *.layout files; the former are based upon *.layout files but may be modified by modules.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23197 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-24 16:29:40 +00:00
Richard Heck
c7afa2d658 More cleanup from Andre.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23194 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-24 15:44:11 +00:00
Richard Heck
6fab0b0804 Cleanup.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23192 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-24 15:18:39 +00:00
Richard Heck
ebd4f002af Andre's s/getBaseClass/baseClass/ cleanup.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23191 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-24 15:12:41 +00:00
Richard Heck
0362c6aae7 Andre's s/getTextClass/textClass/ cleanup.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23190 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-24 15:06:35 +00:00
Richard Heck
2e7d1199df Revert 23154.
Sorry, Andre, but this broke not only the modules stuff but the general handling of TextClasses. I'm not opposed to doing this sort of thing, but it's going to be a little more complicated. I'll do it when I get a bit of time, or I can explain what the issue is here if you want to do it.

I'll separately re-commit some of the cleanup here.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23189 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-24 14:59:23 +00:00
Richard Heck
2d59bf35ec Typo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23188 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-24 14:05:06 +00:00
Bo Peng
1aaa96e6f1 Load local textclass in addTextClass(), reload local layout correctly in LFUN_TEXTCLASS_APPLY and LFUN_TEXTCLASS_LOAD
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23175 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-24 06:14:48 +00:00
Dov Feldstern
4056f0ddb1 fix a visual cursor edge-case:
Only when an LTR paragraph *ends with* an RTL chunk of text, movement was 
incorrect in two ways:

1. After moving into the pargraph from the end, and then trying to move towards
the beginning of the paragraph, the cursor would immediately jump to the 
previous pargraph.

2. If the cursor were placed inside the RTL text, and then we would move left
towards the beginning of the paragraph, upon reaching the end (beginning?) of
the RTL chunk, cursor would jump to the end of the paragraph, and then continue
as in (1).

(Same thing, of course, with the reverse situation, i.e., RTL paragraph ending
with LTR text).

We now deal with both of these cases correctly.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23173 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-24 01:45:51 +00:00
Stefan Schimanski
b313333c1a * setItemDelegate does not free the old delegate. So we better only create one instance and reuse that.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23172 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-24 00:49:57 +00:00
Richard Heck
14b7f34818 Fix drawing error on Linux, apprently caused by creation of static global instance of QItemDelegate. Fix due to STS.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23171 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-24 00:38:54 +00:00
André Pönitz
e05e2b6b19 (temporarily) add a Buffer * Inset::buffer_ membert
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23170 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-23 22:32:33 +00:00
André Pönitz
30fff63257 compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23169 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-23 22:21:03 +00:00
Richard Heck
8e9410b3d0 After a hiatus, I'm returning to the rewrite of InsetCommandParams, the purpose of all of this being to make things more flexible, with the ultimate goal being biblatex support and a kind of InsetCommandFlex that will allow user-definable such things. The next step, really, is to fix up CiteEngine so that we can have different sets of parameters for InsetCitation depending upon what engine is in use. (Something like this also needs doing with InsetInclude.)
This patch reworks the machinery that holds information about what parameters there are and what their values are. There's enough flexibility here that true keyval support ought to be fairly easy at this point. I'll have a peek at that shortly.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23168 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-23 22:01:02 +00:00
Stefan Schimanski
c207a8fe0b * don't forget InsetMathMBox, which is only compiled with cmake
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23167 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-23 21:59:38 +00:00
Bernhard Roider
52ccb98354 Fix crash due to recursive function call when a counter references itself.
e.g.:

Counter
    Name                 Version
    LabelString          "\theVersion.0"
End


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23166 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-23 20:38:57 +00:00
Stefan Schimanski
323e3b0207 * Moved std::sets out of Buffer.h to reduce overall LyX compile time
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23163 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-23 18:11:35 +00:00
Abdelrazak Younes
ee4dcf105a fix crash on quit with Ctr-Q. Patch by Horst Schirmeier (see http://bugzilla.lyx.org/show_bug.cgi?id=4572)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23162 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-23 18:10:52 +00:00
André Pönitz
0fb8f3fba1 mostly s/Paragraph::layout(...)/Paragraph::setLayout(...)/
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23159 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-23 16:45:38 +00:00
André Pönitz
b306e9a2e1 Replace the text class shared ptr by good old index-into-global-list.
Also a few cosmetical changes where I xould not resist.

Would be nice if the 'modules people' could verify that their baby 
is strill alive... 



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23154 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-23 11:36:15 +00:00
Richard Heck
0e48a81cc1 Cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23153 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-23 03:48:57 +00:00
Stefan Schimanski
ab8a1b0e70 * fix backspace at paragraph end. The inline completion should stay on screen.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23152 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-23 03:15:34 +00:00
Stefan Schimanski
b7782d1973 * cleaned up word dimension calculation of completion. There is still a bug with RTL which moves the popup to left when completing.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23151 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-23 03:15:05 +00:00
Stefan Schimanski
919e9a80eb * proper cursor position RTL text with inline completion
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23150 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-23 03:14:33 +00:00
Stefan Schimanski
f2837e7bcb * remove debug output
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23149 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-23 03:13:54 +00:00
Stefan Schimanski
37b79f1039 * allow on position more at the row end for the completion
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23148 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-22 23:40:36 +00:00
Stefan Schimanski
86f6347b77 * Qt does not reverse RTL strings for us. So it's a bit more complicated to get the popup right: we need a QItemDeletate for this.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23147 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-22 23:15:27 +00:00
Stefan Schimanski
5cc36c8c70 * another step for rtl completion: the popup is shown in the right direction. Still the right cursor position is missing. This also causes the popup to use a wrong position.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23146 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-22 21:57:57 +00:00
Stefan Schimanski
3cdfa1708f * the bidi array drives me crazy. It only holds the current row. So better check that our position is in that row.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23145 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-22 21:57:45 +00:00
Stefan Schimanski
0d7ca9cdc3 * inlineCompletionVPos is only used locally. So define it there.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23144 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-22 21:57:33 +00:00
Stefan Schimanski
8c2149d3aa * following Andre's advice to rename the method into
createCompletionList. This makes the ownership of the returned
  object clear.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23143 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-22 21:11:19 +00:00
Stefan Schimanski
426c4bf356 * some more relicts of the unfinished favorite handling for math completion
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23142 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-22 21:11:05 +00:00
Stefan Schimanski
67a9667232 * comments
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23141 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-22 20:45:42 +00:00
Stefan Schimanski
8527a08903 * simplify notifyCursorLeaves logic: We now only call it from strategic
places, i.e.
  - BufferView::setMouseCursor,
  - BufferView::mouseEventDispatch
  - LyXFunc::dispatch
  Before it was called from several dispatch handlers in the middle of the
  dispatch process. Because the cursor might get invalidated, this is
  not a good idea. We had plenty of crashes and odd behaviours because
  of this as nobody really understood those cases.

  This fixes (at least) #2069 and #4163.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23140 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-22 20:45:18 +00:00
Stefan Schimanski
90a88ba87d * correct parsing of unknown math environment (fixes http://bugzilla.lyx.org/show_bug.cgi?id=4573)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23139 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-22 20:04:38 +00:00
Abdelrazak Younes
21489f6a29 GuiView::dispatch(): Fix cut&paste bug.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23138 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-22 17:36:40 +00:00
Richard Heck
3257f3e066 Line length.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23137 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-22 16:26:40 +00:00
Richard Heck
2812202c2b Move the enum into InsetLayout.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23136 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-22 16:24:55 +00:00
Richard Heck
2c357c1d23 This should be the last of the commits refactoring the InsetLayout code.
This one just moves the Decoration enum into InsetLayout, changing the names
to avoid possible conflicts now that it is in the lyx namespace.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23135 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-22 16:15:21 +00:00
Richard Heck
561466d45d Sort table.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23134 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-22 16:12:36 +00:00
Stefan Schimanski
f5fdd7cdab * cosmetic
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23133 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-22 15:38:26 +00:00
Stefan Schimanski
f614d46ca1 * cosmetic
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23132 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-22 15:26:52 +00:00
Stefan Schimanski
7b0ea48d31 * first step to proper RTL support of the completion. The cursor is still wrong.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23130 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-22 14:05:27 +00:00
Stefan Schimanski
aa532e094f * once is enough
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23129 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-22 14:05:06 +00:00
Abdelrazak Younes
a19557baf7 Text::setCursor(): make sure an update is asked if the current cursor is not visible.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23128 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-22 12:27:56 +00:00
Abdelrazak Younes
2ed1153c8c Text::dispatch(): Make sure the cursor is visible before doing anything.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23127 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-22 12:22:28 +00:00
Abdelrazak Younes
6564e9bb4e Fix this bug:
1. scroll a bit so that the cursor is not visible anymore
2. hit the keyboard arrow keys to move the cursor or type something

The problem was that TextMetrics::parMetric() automatically creates a new parmetrics on const access. This was needed in the old architecture but I don't think anymore.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23126 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-22 11:07:41 +00:00
Jean-Marc Lasgouttes
38a1df7cd4 disable annoying debug messages
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23125 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-22 10:30:46 +00:00
Jean-Marc Lasgouttes
e744d0e989 sort lyxrc keywords table
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23124 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-22 10:25:12 +00:00
Jean-Marc Lasgouttes
8b342f0478 compilation fix for tex2lyx
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23123 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-22 10:16:18 +00:00
Stefan Schimanski
4dc36f2380 * no need for QStyleOptionViewItemV3
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23122 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-22 10:15:28 +00:00
Stefan Schimanski
ab6ec965fd * stdlib-debug out of range fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23120 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-22 09:00:22 +00:00
Richard Heck
7889ccc0eb More headers.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23119 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-22 03:39:10 +00:00
Richard Heck
b032a9d7ba Headers.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23118 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-22 03:34:03 +00:00
Richard Heck
20cf42b741 This is the second commit in the process of making InsetLayout a real class.
Here, we move TextClass::readInsetLayout() to InsetLayout::read().


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23117 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-22 03:27:42 +00:00
Richard Heck
a8317afc4b This is the first of a series of commits that will make InsetLayout a real class.
In this commit, we do the minimal amount of work necessary to protect our data.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23116 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-22 02:32:52 +00:00
Stefan Schimanski
7fd88683b9 * typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23115 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-21 23:38:46 +00:00
Stefan Schimanski
6eb72bd1f2 * Reduce compilation time by removing the shared_ptr (which is not
really important because the ownership of the CompletionLists is
  easy enough) and by removing the deque for the half finished
  favorites implemention in InsetMathNest. I think this fits better
  into the GuiCompleter anyway.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23114 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-21 23:36:02 +00:00
Abdelrazak Younes
45bcfce52d compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23113 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-21 22:39:46 +00:00
Pavel Sanda
0602a26c4d Cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23112 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-21 22:19:22 +00:00
Pavel Sanda
900ba80030 * Doxy (people really want to stop the time).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23111 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-21 21:16:31 +00:00
Richard Heck
dde5b63fd5 Cosmetics. And silence some warnings.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23110 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-21 20:04:17 +00:00
Stefan Schimanski
4c5c14ff62 * a MathMacro is like a normal InsetMathNest in folded mode. Hence it should also behave like that concerning completion.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23109 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-21 19:45:36 +00:00
Stefan Schimanski
7794f870f2 * add some space between math inset and popup. This should really come from the font maximal descent in fact.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23108 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-21 19:45:05 +00:00
Stefan Schimanski
b1a754e388 * show popup without delay even when the inline completion is just activated by explicit tab
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23107 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-21 19:44:28 +00:00
Stefan Schimanski
c885205620 * silence warnings with null QPixmap
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23106 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-21 19:43:53 +00:00
Stefan Schimanski
833f0bab52 * minimize redraws during completion
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23105 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-21 19:43:16 +00:00
Stefan Schimanski
1bf7b59d60 * completion infrastructure
* completion support for mathed
* experimental completion support for text


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23104 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-21 19:42:34 +00:00
Richard Heck
a51525c416 Add empty InsetLayout for undefined cases. Should avoid possible bugs caused by empty layout_ pointer in InsetCollapsable.
NOTE: Some cleanup is needed here, and I'll do it shortly. Doing it properly, though, requires making InsetLayout a proper class. (At the moment, it's just a C-style struct.) That should be committed separately.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23103 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-21 16:31:59 +00:00
Pavel Sanda
f9cb8309a3 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23102 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-21 15:15:36 +00:00
Pavel Sanda
b7922f4201 Add hide tab icon.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23101 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-21 15:13:39 +00:00
Abdelrazak Younes
7794aeadf6 LFUN_CLOSE_TAB_GROUP: bug fixes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23100 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-21 15:09:10 +00:00
Abdelrazak Younes
2a725d7c23 Introduce LFUN_CLOSE_TAB_GROUP.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23097 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-21 14:53:09 +00:00
Pavel Sanda
3d87d2f724 Squash RC warnings.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23096 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-21 14:34:41 +00:00
Abdelrazak Younes
7ba37ecf53 Be on the safe side WRT events.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23094 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-21 13:42:49 +00:00
Abdelrazak Younes
234fe61854 * LFUN_SPLIT_VIEW: document.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23090 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-21 12:55:16 +00:00
Abdelrazak Younes
9ae75dddf6 * LFUN_SPLIT_VIEW: add support for vertical split view.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23089 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-21 12:48:05 +00:00
Abdelrazak Younes
f9744033b3 * TabWorkArea: rename 'close tab' button to 'close buffer' and add a 'close tab' button.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23088 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-21 12:29:26 +00:00
Abdelrazak Younes
c607940f5b Fix drawing of multiple views of a same buffer in the *same window* (aka split-view).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23087 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-21 11:56:38 +00:00
Abdelrazak Younes
95b9cbb4c4 Fix buffer-switching in split view.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23086 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-21 11:48:31 +00:00
Abdelrazak Younes
f27c3fde43 * BufferView::resize() Remove showCursor() call when resizing.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23085 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-21 09:23:01 +00:00
Abdelrazak Younes
9d40f89b58 Introducing LFUN_SPLIT_VIEW
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23084 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-20 21:46:49 +00:00
Abdelrazak Younes
f9963f83c8 small tweak for split view.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23083 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-20 20:05:01 +00:00
Richard Heck
0902821097 Fix crash by setting Layout before calling InsetText::read().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23081 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-20 16:56:33 +00:00
Abdelrazak Younes
6069c5ad16 Fix scrollbar/resizing interaction.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23079 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-20 15:37:17 +00:00
Abdelrazak Younes
7d6ee1572e LFUN_UI_TOGGLE: make sure the keyboard focus stays in the work area. Should fix the focus problems under MacOS.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23078 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-20 15:11:47 +00:00
Abdelrazak Younes
9bb7f03835 Work-around scrollbar bug when returning from fullscreen mode.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23077 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-20 15:07:36 +00:00
Abdelrazak Younes
2a42f56b4e following revert of 23068: Better fix for bug 4044
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23076 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-20 14:53:19 +00:00
Abdelrazak Younes
42d707773d Fullscreen support: Small cleanups. Still not sure why the scrollbar is not properly updated...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23075 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-20 14:27:52 +00:00
Edwin Leuven
2a2f4ee163 more tooltip cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23074 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-20 14:12:19 +00:00
Edwin Leuven
91c8518416 cleanup tooltip
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23073 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-20 13:57:54 +00:00
Edwin Leuven
41bc70ae81 fix layout
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23072 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-20 13:50:35 +00:00
Abdelrazak Younes
3d3a55386d revert 23068 as this was causing a recursive repaint.
Warning for the future: *no* painting activity should happen inside a paint event.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23071 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-20 13:32:03 +00:00
Abdelrazak Younes
860547ef1c cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23070 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-20 10:21:00 +00:00
Pavel Sanda
72b270ab4b Improve fullscreen mode (bug 4146).
- added toolbars/tabbar/scrollbar toggling
- added text width control
- added GUI preferences & menu & shortcut

Known problems:
- Outliner in Mac is seeking some Mac devie to fix (see hints here:
  http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg135382.html ) 
- Toolbars visibility is shared between windows (views)
  (needs toolbars overhaul).
- Adding new tab items does not reflect fullscreen mode
  (i.e. margins and tabbar get visible)



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23069 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-19 21:51:55 +00:00
Pavel Sanda
1ab314f8e6 Update cursor and scrollbar after resize.
Fixes bug 4044.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23068 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-19 21:27:18 +00:00
Abdelrazak Younes
7144d5b382 doc update.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23066 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-19 12:42:49 +00:00
Abdelrazak Younes
00af9dcd30 rev 23064: forgot that.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23065 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-19 09:13:58 +00:00
Abdelrazak Younes
f0b51ef8c9 Various small cleanup.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23064 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-19 09:10:59 +00:00
Abdelrazak Younes
c99062a27d Buffer::resetChildDocuments() Check for Buffer emptiness before proceeding.
Abdel.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23063 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-19 07:31:02 +00:00
Richard Heck
bfe96fb61e Disable colsep box when single column.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23060 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-19 05:39:36 +00:00
Richard Heck
4ab6f265e9 Add support for column separation in page margins. Fixes bug 3337.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23059 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-19 05:24:48 +00:00
Richard Heck
a97b6295c4 Clean up a bit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23058 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-19 03:46:11 +00:00
Richard Heck
7dcffe09f4 It used to be that things like InsetFlex, InsetCaption, and the like used the default layout, whatever that is---usually Standard. That gave rise to bug 2178, the solution to which is to define a new empty layout, which insets like these use instead of the default. See r22966.
So, when we have an older LyX file, it will look like this:
\begin_inset ERT
status open

\begin_layout Standard

this that
\end_layout

\end_inset
which is now invalid, because ERT uses only PlainLayout. So I had put some code into Text::readParToken, where the layout for a paragraph gets set as it is read:
       if (par.forceEmptyLayout()) {
           // in this case only the empty layout is allowed
           layoutname = tclass.emptyLayoutName();
       } else if (par.useEmptyLayout()) {
           // in this case, default layout maps to empty layout
           if (layoutname == tclass.defaultLayoutName())
               layoutname = tclass.emptyLayoutName();
       } else {
           // otherwise, the empty layout maps to the default
           if (layoutname == tclass.emptyLayoutName())
               layoutname = tclass.defaultLayoutName();
       }
This turns out not to work, because par.forceEmptyLayout() and par.useEmptyLayout() always return false here, because par.inInset() always returns a null pointer, because the paragraph's inset hasn't yet been set when Text::readParagraph() gets called from Text::read() gets called from InsetText::read(). The solution is to set the paragraph's inset when it is created, which means passing a pointer to the various read() routines along the way.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23057 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-19 02:35:07 +00:00
Jean-Marc Lasgouttes
85c0bf5e16 * CutAndPaste.cpp (eraseSelectionHelper): when the last paragraph that
is cut is completely erased, remove it regardless of its layout (fixes
	bug 3995).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23054 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-18 10:16:43 +00:00
Jean-Marc Lasgouttes
c075a285a0 * TextClass.cpp (read): do not use istrstream (which is deprecated),
but istringstream instead.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23053 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-18 10:03:30 +00:00
Jean-Marc Lasgouttes
6f5e86e065 more compile fixes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23052 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-18 09:55:14 +00:00
Abdelrazak Younes
d4e9968494 Compile fix by Kornel Benko.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23051 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-18 09:44:02 +00:00
Abdelrazak Younes
b09542af9d cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23050 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-18 07:44:07 +00:00
Abdelrazak Younes
2bf1c09376 header cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23049 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-18 07:14:42 +00:00
Abdelrazak Younes
ba76bf5eb8 header cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23048 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-17 20:47:04 +00:00
Abdelrazak Younes
c38f62d71b header cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23047 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-17 20:18:12 +00:00
Abdelrazak Younes
8d5bcad767 header cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23046 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-17 20:17:33 +00:00
Abdelrazak Younes
9f3c7cf1ea Factorize closeEvent() for GuiDialog based dialogs.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23045 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-17 20:16:14 +00:00
Dov Feldstern
deb86513df Fix typing of digits in RTL text, which was broken way back during the Font/Language separation (r21240).
The problem was that when typing a digit in RTL text, the language was being 
switched to LTR, which is wrong.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23037 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-16 18:39:20 +00:00
Uwe Stöhr
f35ff8f60d Color.cpp, ColorCode.h: define new colors for inset labels and insets text
stdinsets: use the new colors to allow the users to customize them

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23029 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-15 23:38:16 +00:00
Abdelrazak Younes
cabae2b079 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23024 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-15 14:30:08 +00:00
Jürgen Spitzmüller
ebc4649508 Fix a crash following the input of an invalid paragraph separation value in the document settings dialog (bug 4556).
* src/frontends/qt4/GuiDocument.cpp:
	- disallow input of defskip length without actual length value.

* src/BufferParams.cpp (readToken):
	- there might be documents with the invalif "\defskip defskip" param. Reset this to "\defskip medskip".

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23022 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-15 14:13:05 +00:00
Jürgen Spitzmüller
fa10443c54 * src/insets/InsetTabular.cpp:
- fix check for top- and bottomlines (rev. 23011).
	  topLine and bottomLine take a cell argument, not a row.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23020 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-15 11:36:05 +00:00
Abdelrazak Younes
c3a8b3a566 * Inset: Prepare for an eventual merge of updateLabels() and addToToc()
* TocBackend: add non const toc() and tocs() access methods.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23018 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-15 10:13:32 +00:00
Abdelrazak Younes
5b7eb343ec InsetFoot::updateLabels(): fix potentially dangerous bug.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23017 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-15 09:41:53 +00:00
Abdelrazak Younes
17efe15322 Outliner: Fix synchronous navigation for all types.
* GuiToc::currentIndex(): remove FIXME


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23016 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-15 08:50:35 +00:00
Abdelrazak Younes
d8ee26ec6c * InsetXXX::addToToc(): properly use passed ParConstIterator.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23015 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-15 08:39:58 +00:00
Abdelrazak Younes
0a64dfa594 * ParConstIterator::push_back(): new method for easier iterative construction.
* InsetCaption::addToToc(): use that.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23014 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-15 08:32:27 +00:00
Abdelrazak Younes
f1c4a07544 Add list of numbered equations.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23013 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-15 08:09:35 +00:00
Uwe Stöhr
82984ec711 InsetTabular.cpp: revert the \bottomline fix from the previous commit because it inly works for certain cases. (I'm running out of ideas to fix this for all case, see http://bugzilla.lyx.org/show_bug.cgi?id=4554#c6 )
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23012 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-15 01:28:46 +00:00
Uwe Stöhr
c9329d272b InsetTabular.cpp: check for top and bottom lines, fixes http://bugzilla.lyx.org/show_bug.cgi?id=4554
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23011 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-15 00:28:42 +00:00
Richard Heck
85deaeb165 Get rid of GuiIndex since we no longer need it. Simplify the remaining code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23006 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-14 18:06:47 +00:00
Richard Heck
b1306a979a Code rules.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23005 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-14 17:00:40 +00:00
Abdelrazak Younes
1a4891dec0 InsetNote::addToToc(): Stupid Bug fix causing crash on Mac.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23004 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-14 15:29:22 +00:00
Abdelrazak Younes
15ff669dd0 factorize code between GuiFontMetrics::rectText() and buttonText().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23000 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-14 09:44:12 +00:00
Abdelrazak Younes
9e4780ffd8 * buttonText(): painting tweaks.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22999 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-14 08:49:45 +00:00
Abdelrazak Younes
b0b7fbad8e InsetText::draw() Painting tweaks; reduce the frame by two pixels.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22998 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-14 08:24:52 +00:00
Abdelrazak Younes
f30f4129e9 * InsetNote::addToToc(): Prefix toc entries with note type.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22997 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-14 07:30:33 +00:00
Richard Heck
14d7b57487 Cleanup.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22996 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-14 07:10:12 +00:00
Richard Heck
10476b2264 Protect our data.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22995 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-14 05:28:59 +00:00
Richard Heck
71c1bd5b2e Do not inherit from std::map here either.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22994 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-14 05:14:22 +00:00
Richard Heck
485478e47c Do not inherit from std::map.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22993 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-14 05:00:54 +00:00
Martin Vermeer
f850b0b281 Improve flex-insert doxy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22992 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-14 04:38:01 +00:00
Richard Heck
369d21f4e2 Fix Layout::read() API.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22991 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-14 04:12:15 +00:00
Richard Heck
b9670d7209 Fix previous commit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22990 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-14 03:49:12 +00:00
Richard Heck
3dc5bc09dd Make sure we write a valid file even if InsetFlex is undefined.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22989 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-14 03:42:54 +00:00
Richard Heck
b76e95b942 Fix TextClass::read API. Also some cleanup.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22988 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-14 03:38:08 +00:00
Richard Heck
ada361baf8 Warnings
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22987 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-14 03:35:03 +00:00
Pavel Sanda
10426cb833 Wrong status of ui-toggle. Spotted by Bennett.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22986 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-14 00:06:39 +00:00
Pavel Sanda
d532c8c074 Add doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22985 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-13 22:28:37 +00:00
Pavel Sanda
b3b47daf9b Another doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22983 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-13 15:41:55 +00:00
Pavel Sanda
b6befcc539 Forgot lfuns renumbering.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22982 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-13 15:11:29 +00:00
Abdelrazak Younes
e30cefeb5f Document Layout::read() and TextClass::read() return value. This should be fixed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22981 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-13 14:46:19 +00:00
Abdelrazak Younes
5ed5e01fd7 *TextClass::readStyle(): return true on success!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22980 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-13 14:39:16 +00:00
Abdelrazak Younes
cae858efc6 Fix crash when deleting outlined insets while the outline panel is open.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22979 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-13 14:16:51 +00:00
Pavel Sanda
c65107ab21 Add doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22978 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-13 14:15:34 +00:00
Pavel Sanda
c6161cfdc6 Remove LFUN_FILE_NEW.
Obsoleted by LFUN_BUFFER_NEW, moreover its was currently buggy.

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


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22977 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-13 14:07:50 +00:00
Abdelrazak Younes
eb8468994f Add list of Marginal Notes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22976 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-13 13:33:56 +00:00
Abdelrazak Younes
6c14a1c406 Add list of Indexes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22975 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-13 13:19:39 +00:00
Abdelrazak Younes
decc411b6b rev 22973: correct fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22974 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-13 12:37:11 +00:00
Abdelrazak Younes
7acb8e3998 Warning fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22973 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-13 12:25:42 +00:00
Abdelrazak Younes
371ed5aff5 * doInsertInset(): cosmetics
* Text::dispatch(): call updateLabels() where it makes sense.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22972 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-13 12:10:18 +00:00
Dov Feldstern
ea3dce8c69 fix r22935, which was an attempt to fix a bug of mine in r22929.
This brings things back to the way they were (semantically) before r22929, 
which is the way they should be (visual mode has not been implemented for
tables, yet, and therefore tables should not be semantically changed here).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22967 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-12 20:58:12 +00:00
Richard Heck
040f3431e7 Fix bug 4037 and related problems. The patch has been cleaned up a bit
from the one posted to the list.

The basic idea has two parts. First, we hard code an "empty layout"
(called PlainLayout, for want of a better name) in TextClass and read it
before doing anything else. It can therefore be customized by classes,
if they want---say, to make it left-aligned. Second, InsetText's are
divided into three types: (i) normal ones, that use the "default" layout
defined by the text class; (ii) highly restrictive ones, such as ERT and
(not quite an inset) table cells, which demand the empty layout; (iii)
middling ones, which default to an empty layout and use the empty layout
in place of the default. (This is so we don't get the same problem we
had with ERT in e.g. footnotes.) The type of inset is signaled by new
methods InsetText::forceEmptyLayout() and InsetText::useEmptyLayout().
(The latter might better be called: useEmptyLayoutInsteadOfDefault(),
but that's silly.) The old InsetText::forceDefaultParagraphs() has been
split into these, plus a new method InsetText::allowParagraphCustomization(). 
A lot of the changes just adapt to this change.

The other big change is in GuiToolbar: We want to show LyXDefault and
the "default" layout only when they're active.

There are a handful of places where I'm not entirely sure whether we
should be using forceEmptyLayout or !allowParagraphCustomization() or
both. The InsetCaption is one of these. These places, and some others,
are marked with FIXMEs, so I'd appreciate it if people would search
through the patch and let me know whether these need changing. If they
don't, the FIXMEs can be deleted.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22966 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-12 17:31:07 +00:00
Richard Heck
969a998f8b Tranlatable strings.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22965 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-12 16:41:49 +00:00
Abdelrazak Younes
0aa490a705 * GuiView::event(): ensure current workarea has the focus on window activation. This prevents document jumps when the outline panel previously had the focus.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22964 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-12 15:44:45 +00:00
Abdelrazak Younes
6a877dfc1a Try to restore current selected type in case of a toc reset.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22963 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-12 15:33:01 +00:00
Abdelrazak Younes
3256dbc78a GuiToc::initialiseParams(): Fix list type parsing
TocWidget::updateGui(): Fix for non existent list.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22957 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-12 09:32:40 +00:00
Martin Vermeer
6820d18e11 Tooltips for collapsables and branches
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22956 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-12 09:11:06 +00:00
Abdelrazak Younes
5c3f36a25e Support for list of Algorithms
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22955 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-12 08:58:32 +00:00
Abdelrazak Younes
2f54e2b75f LFUN_PARAGRAPH_GOTO: break/continue early. Force a full redraw.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22954 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-12 08:04:59 +00:00
Abdelrazak Younes
8c73b3d2ce simplify GuiToc / TocWidget interaction. Much can still be simplified...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22953 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-12 07:47:16 +00:00
Abdelrazak Younes
a464490870 Fix crash with multiple window opening/closing.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22952 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-12 07:23:44 +00:00
Pavel Sanda
a05f041470 ui-toggle lfun tweaks.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22950 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-11 23:52:25 +00:00
Richard Heck
feae27d3ce Better error messages.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22948 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-11 19:42:36 +00:00
Pavel Sanda
bd0c822977 Add doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22947 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-11 18:12:46 +00:00
Abdelrazak Younes
7e026a3d67 Fix Navigate menu for Notes and Foot notes. We should merge the Toc dialog and the Navigate menu someday.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22944 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-11 13:29:02 +00:00
Abdelrazak Younes
4068d50058 Fix List of Figures and Tables in the Outliner and Navigate menu. We should really merge updateLabels() and addToToc() someday...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22943 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-11 13:23:42 +00:00
Abdelrazak Younes
7c38391754 Add list of notes and list of footnotes to the outline pane.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22942 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-11 13:06:01 +00:00
Abdelrazak Younes
0014ca7eee Fix bug introduced in rev 22934.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22941 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-11 12:26:06 +00:00
Abdelrazak Younes
b546fff555 warning fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22939 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-11 08:31:14 +00:00
Abdelrazak Younes
8e831bb602 modify Inset::EntryDirectionType to follow style used in FontEnums.h for enums.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22936 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-11 08:20:13 +00:00
Abdelrazak Younes
4bc9498c7d Fix warning and probably a bug.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22935 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-11 08:10:02 +00:00
Abdelrazak Younes
260acacf1b Cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22934 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-11 08:03:03 +00:00
Abdelrazak Younes
00189c2ebd Fix crash when outline pane is launched while the cursor is within a math matrix within a section. The problem was that DocIterator::backwardPos() does not work inside a math matrix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22933 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-11 07:47:04 +00:00
Abdelrazak Younes
f12126adbd headers.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22932 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-11 07:12:06 +00:00
Dov Feldstern
8f47f5d396 visual mode for bidi cursor movement --- in math
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22930 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-10 19:57:00 +00:00
Dov Feldstern
11a6b3c4c7 visual mode for bidi cursor movement
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22929 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-10 19:52:45 +00:00
Dov Feldstern
a9770a18cd Adding preference for visual mode for bidi cursor movement
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22928 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-10 19:51:23 +00:00
Abdelrazak Younes
76ec27281b * BufferView::putSelectionAt(): Ensure a redraw in any case.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22927 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-10 19:18:57 +00:00
Abdelrazak Younes
149778a0a5 Ensure that the cursor is visible when searching text. Should fix the spellchecker and a few other bugs.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22926 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-10 19:05:09 +00:00
Abdelrazak Younes
02e8322c79 Fix LFUN_WORD_FIND
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22925 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-10 18:52:32 +00:00
Jürgen Spitzmüller
a35ddd3264 * src/frontends/qt4/LyXFileDialog.cpp:
- explicitely set ShowHidden for hidden UNIX directories
	  (workaround for Qt bug, bug 4513).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22917 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-10 11:50:10 +00:00
Abdelrazak Younes
288b939274 More sensible default margins for fullscreen mode.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22913 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-10 10:01:16 +00:00
Stefan Schimanski
66d7479e86 * change the BufferView cursor to avoid later "successful" fixIfBroken calls
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22911 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-09 23:20:11 +00:00
Stefan Schimanski
c4b009a248 * fix segfaults/asserts when clicking outside of any inset when the
cursor is inside of an empty script.
* Do not use the cur parameter of notifyCursorLeaves as a pointer to
  the script inset. It is not. Even worth, it's an empty cursor if the user
  clicks in the grey nirvana of the BufferView.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22910 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-09 22:06:06 +00:00
Stefan Schimanski
59e75f8cb5 * notifyCursorLeaves does not necessarily get a cursor pointing to the inset.
It should only be used to set the update flags. Use the BufferView pointer as
  a pointer to the inset.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22909 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-09 22:05:49 +00:00
Stefan Schimanski
036f97a02e * slice numbers are of type size_t, but here we have to allow -1. idx_type
in any case does not make sense. It's not an index in the sense of DocIterator.
* cosmetics


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22908 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-09 22:05:24 +00:00
Stefan Schimanski
d78b0692e2 * Finally fix the empty-script removal, i.e. remove empty scripts in
any case when leaving the script inset. Before there were cases (like
  when emptying both scripts and then leaving the inset) to leave the
  script inset such that empty script were kept.
* Force a paragraph redraw when removing a script. This will remove
  the space after an inset which got the scripts removed. Moreover
  this fixes some assert because the script body might not be in the
  coordinate cache after the script inset was removed.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22907 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-09 22:04:30 +00:00
Abdelrazak Younes
3e293bb692 Handle full screen mode for all work areas.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22904 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-09 18:29:15 +00:00
Pavel Sanda
f89f724f1d Resurrect trunk make dist from dead #2.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22903 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-09 18:04:14 +00:00
Abdelrazak Younes
b409db5d1c Introduce GuiWorkArea::setFullScreen()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22902 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-09 18:03:53 +00:00
Abdelrazak Younes
1ff60667a6 Put LFUN_UI_TOGGLE in its own method and add FIXMEs WRT multple workareas.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22901 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-09 17:54:28 +00:00
Abdelrazak Younes
6cdf6bd6ab Support full screen in BufferView
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22899 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-09 17:20:23 +00:00
André Pönitz
24fdfc7d5e start work on less-likely-to-misuse iterators.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22898 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-09 15:23:05 +00:00
Pavel Sanda
74632f681e Unneeded headers, doxy cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22894 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-09 12:20:05 +00:00
Pavel Sanda
b9cf09838f Improve fullscreen capabilities ( http://bugzilla.lyx.org/show_bug.cgi?id=4146 ).
- adding frames, adding fullscreen switch.
- LFUN_MENUBAR_TOGGLE, LFUN_STATUSBAR_TOGGLE -> LFUN_UI_TOGGLE.

There are still limitations wrt Outlining in MAC OS - someone could check, 
see http://www.nabble.com/Fullscreen-mode-to15314676.html#a15367830 .




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22893 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-09 11:58:01 +00:00
Abdelrazak Younes
bd8cba506f * doInsertInset(): return early.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22891 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-09 10:45:49 +00:00
André Pönitz
225bf49cf9 some refactoring.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22890 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-09 10:41:49 +00:00
André Pönitz
fb2c00d4bc play with signal/slot.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22889 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-09 10:18:07 +00:00
André Pönitz
4e7e5839bd squash gcc warning, secoind attempt
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22888 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-09 10:16:54 +00:00
André Pönitz
8711df9282 squash gcc warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22887 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-09 10:13:48 +00:00
Abdelrazak Younes
5b2625fdfe Disable alignment doesn't mean it's not possible (egg. readonly mode).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22886 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-09 10:11:11 +00:00
André Pönitz
69d566afea cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22885 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-09 09:08:59 +00:00
Stefan Schimanski
357b4f8603 * show context menu at the right position
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22881 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-08 23:51:30 +00:00
Abdelrazak Younes
1c265688d8 More cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22874 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-08 18:25:10 +00:00
Abdelrazak Younes
3253ee5feb cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22873 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-08 18:12:52 +00:00
Abdelrazak Younes
f3611157e3 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22872 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-08 18:02:27 +00:00
Abdelrazak Younes
c37588d374 simplification.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22871 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-08 17:55:43 +00:00
Abdelrazak Younes
69d755054b Encoding::getSymbolsList(): make it const.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22870 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-08 17:52:07 +00:00
Abdelrazak Younes
cb5859929f update controls upon window activation.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22869 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-08 17:47:32 +00:00
Abdelrazak Younes
a67e5ab02b * Dialog::showView(): call checkStatus() after updateView() as some dialogs may re-enable some controls in updateView() (egg the paragraph dialog).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22868 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-08 17:25:59 +00:00
Jürgen Spitzmüller
9cb6ce57da * GuiSymbols.cpp:
- disable "display all" checkbox for utf8.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22867 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-08 17:13:06 +00:00
Jürgen Spitzmüller
369f14fa8e * GuiSymbols.{cpp,h}:
- cache symbols list (speedup).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22866 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-08 16:43:02 +00:00
Stefan Schimanski
3a5fcb9158 * clear selection when mutating a math inset into an eqnarray. This fixes #4452.
There could be some more clever code to keep the selection. But IMO it's ok like this.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22864 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-08 16:19:58 +00:00
Stefan Schimanski
3d9b98b3de * cosmetic
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22863 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-08 16:19:36 +00:00
Abdelrazak Younes
348bc2c599 Fix typo and remove unused code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22862 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-08 16:14:24 +00:00
Abdelrazak Younes
722023c413 Implement GuiParagraph::enableView() for readonly documents. Does not fully work yet as the paragraph alignment are not updated with cursor position.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22861 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-08 16:08:45 +00:00
Jürgen Spitzmüller
faf2f10824 * GuiSymbols.cpp:
- fix crash due to invalid ListWidgetItem.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22860 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-08 13:06:44 +00:00
Jürgen Spitzmüller
92b41f3f98 * GuiSymbols.{cpp,h}:
- consider non-default document encodings.
	- only refresh categories when needed (speedup)
	- add tooltips.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22859 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-08 11:02:23 +00:00
Abdelrazak Younes
46e6cacfe0 Introduce toqstr(char_type) and use it.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22857 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-08 08:49:22 +00:00
Abdelrazak Younes
e172898430 compil fix for Qt-4.2
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22856 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-08 08:44:52 +00:00
Pavel Sanda
b985659e05 * Add doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22855 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 23:48:59 +00:00
Dov Feldstern
e4a1c73009 compilation fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22854 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 22:46:47 +00:00
Jürgen Spitzmüller
8e6c6e6678 * GuiSymbols.cpp: add another missing unicode block.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22850 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 20:29:14 +00:00
Jürgen Spitzmüller
ea039d6496 * GuiSymbols.cpp:
- fix thinko and ensure visibility on filter toggling.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22849 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 18:29:45 +00:00
Jürgen Spitzmüller
78760c719f * src/frontends/qt4/ui/SymbolsUi.ui:
* src/frontends/qt4/GuiSymbols.{cpp,h}:
	- add an option to only display the glyphs of the selected category (= default)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22848 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 17:42:00 +00:00
Abdelrazak Younes
1cbeb0b244 code simplification by using DocIterator::innerTextSlice().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22847 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 17:07:27 +00:00
José Matox
03fb3b0aec Patch to please gcc 4.3. Less bloat in the include headers means that
we need to include explicitly some header files now.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22846 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 17:04:06 +00:00
Abdelrazak Younes
fadf8ba12e * GuiLayoutBox: fix initial readonly disabled state and small cleanups.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22845 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 16:46:19 +00:00
Abdelrazak Younes
b0349fd8ed Add missing header.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22844 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 16:24:37 +00:00
Abdelrazak Younes
680480d699 Fix initial readonly enabling/disabling.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22843 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 16:14:58 +00:00
Abdelrazak Younes
c43fc027bc * GuiSymbols: implement Dialog::getLfun()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22840 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 15:41:56 +00:00
Abdelrazak Younes
8fd83ab2dc Don't insert symbols in the edit box if the control is disabled.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22839 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 15:03:07 +00:00
Abdelrazak Younes
0d7c79db6d * some cleanups
* some compile fixes on Windows (char_type is not automatically casted to uint)
* take care of higher ucs4 characters.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22838 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 14:44:17 +00:00
Jürgen Spitzmüller
d25c1d1066 * GuiSymbols.cpp: add missing unicode block.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22837 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 14:23:43 +00:00
Abdelrazak Younes
c76df07c4d remove unused macro
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22836 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 14:22:41 +00:00
Jean-Marc Lasgouttes
b21b3b346d * do not pass headers without Q_OBJECT through moc
* make sure Resource.* files are cleaned as needed.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22834 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 13:45:40 +00:00
Abdelrazak Younes
6a082a6d89 Cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22833 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 13:40:31 +00:00
Jürgen Spitzmüller
9bdca85f26 *** New Symbols Dialog ***
* src/Encoding.{cpp,h}:
	- new public member getSymbolsList()

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

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

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

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22832 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 13:18:07 +00:00
Abdelrazak Younes
c3890f1377 small code cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22830 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 09:51:49 +00:00
Abdelrazak Younes
d4068e14e8 The core is now clean enough that we don't need the NoGuiFontLoader/Metrics anymore...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22828 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 09:12:19 +00:00
Abdelrazak Younes
eac609495b header cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22827 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 09:00:49 +00:00
Abdelrazak Younes
28826a461c header cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22826 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 08:58:35 +00:00
Abdelrazak Younes
39e5dc250a Fix crash with command line export
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22825 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 08:57:12 +00:00
Abdelrazak Younes
cb0e41adf7 revert reverted commit, sorry.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22824 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 00:12:48 +00:00
Abdelrazak Younes
6efd9002d5 revert wrong commit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22823 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 00:10:34 +00:00
Abdelrazak Younes
7bfbeee612 Transfer FileDialog.h to qt4/
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22821 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 00:05:18 +00:00
Abdelrazak Younes
e6519eb5f6 Transfer some GUI oriented code from core to frontend.
* lyxFunc:
- doImport(): transfered to GuiView::inportDocument() together with LFUN_BUFFER_IMPORT


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22820 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-06 23:54:13 +00:00
Abdelrazak Younes
91b4c2dfc6 Remove unneeded code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22817 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-06 23:12:32 +00:00
Abdelrazak Younes
8d99df0c93 Transfer some GUI oriented code from core to frontend.
* Application/GuiApplication:
- restoreGuiSession(): new method for session restoration.

* LyXView/GuiView
- loadDocument(): new pure virtual interface

* lyxFunc:
- loadAndViewFile(): transfered to GuiView::loadDocument()
- openDocument(): transfered to GuiView.

* LyX.h
- Impl::files_to_load_ : now a simple vector<string>.
- restoreGuiSession(): removed.
- execBatchCommands(): simplified and make use of Application::restoreGuiSession().



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22816 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-06 23:02:57 +00:00
Stefan Schimanski
5627a35790 * cosmetic
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22815 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-06 21:32:31 +00:00
Pavel Sanda
54352badaf * Doxy add.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22810 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-06 19:23:08 +00:00
Pavel Sanda
c2e397cdee Add LFUN_MENUBAR_TOGGLE and LFUN_STATUSBAR_TOGGLE.
This partly solves the bug http://bugzilla.lyx.org/show_bug.cgi?id=4146 .


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22809 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-06 17:54:04 +00:00
Stefan Schimanski
fae0a30802 * first check if empty, then set the pit. Otherwise we have a segfault before the assert
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22808 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-06 11:26:46 +00:00
Stefan Schimanski
08d9375572 * There are cases where updateLabels is not called because no
paragraph relayout happens (e.g. when inserting a InsetBranch, the
InsetText inside was not processed by any updateLabels call), and
hence the macrocontext is not always set. This should not happen often
in fact. So we update the labels in that case explicitely when we see
an empty macrocontext.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22807 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-06 11:21:42 +00:00
Abdelrazak Younes
270ca445e5 Tex2lyx Compile fix: use Exception Message instead of frontend::Alert. Richard, please verify that the thrown exceptions are correctly caught by the caller in tex2lyx and in lyx.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22806 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-06 09:46:48 +00:00
Abdelrazak Younes
27edbfb4c8 shutup warning.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22805 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-06 09:37:37 +00:00
Richard Heck
a3b3115915 Make right click open minimalistic insets. See bug 4400.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22804 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-05 23:29:15 +00:00
Richard Heck
8fec5f512d Partially fix bug 4532: http://bugzilla.lyx.org/show_bug.cgi?id=4532.
See in particular comment 6.

We forcibly load stdinsets.inc unless the TextClass declares:
  Provides stdinsets 1
There isn't really any such package, of course. We're just using this
(per a suggestion by JMarc) to say we've loaded relevant info about the
standard insets.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22802 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-05 22:57:33 +00:00
Richard Heck
2e82ca7198 Tweaks.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22793 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-05 16:20:18 +00:00
Jean-Marc Lasgouttes
049dea1eb1 compilation fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22792 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-05 15:16:49 +00:00
Jean-Marc Lasgouttes
98104d0e69 silence warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22791 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-05 15:16:20 +00:00
Stefan Schimanski
bfd3a964b3 * show anchor paragraph completely if the whole buffer is visible.
We need some better handling of the case when the cursor is in the
very first line, but the line is not completely visible. If the line
is not heigher than the BufferView we should scroll up to show it
completely.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22790 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-05 14:23:59 +00:00
Abdelrazak Younes
c7a9ddab7a Move debug output to SCROLLING.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22789 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-05 13:26:22 +00:00
Stefan Schimanski
4a6a7fbe55 * GCC: "QString is an incomplete type"
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22788 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-05 13:22:50 +00:00
Stefan Schimanski
ec88eb82f6 * The BufferView sets up its scrollbar data when it first gets its
actual size via a resize event. So make sure the GuiWorkArea also
  updates the GUI scrollbars.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22787 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-05 13:17:05 +00:00
Stefan Schimanski
0364c6c3cb * Make sure the cursor is completely visible when the BufferView get's its initial size.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22786 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-05 13:14:53 +00:00
Abdelrazak Younes
3941b00ec7 Transfer forked process checking from GuiWorkArea to GuiApplication. I got rid of the general timer starting/stopping too. Looking a bit deeper I don't think it was necessary. We'll put them again in case it is needed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22785 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-05 13:10:42 +00:00
Abdelrazak Younes
6bb94129d8 Factorize out the way window titles are handled.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22784 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-05 12:43:19 +00:00
Abdelrazak Younes
8c27d557b9 * Dialog.cpp: whitespace
* DialogView: remove cruft.

* GuiDialog: add cruft and don't depend on DialogView as GuiDialog is meant for extinction eventually.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22783 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-05 10:53:31 +00:00
Stefan Schimanski
2f1699747a * Do not keep pointers to data structures around if you don't know
whether the data structure outlives the pointer:

  InsetLayouts are really owned by the corresponding TextClass. So
  keep the TextClass alive by keeping a TextClassPtr around for the
  pointers lifetime. This fixes Bug #4538.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22782 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-05 10:34:01 +00:00
Richard Heck
b4c37e82c1 Additional fixes related to disentangling the blinking cursor signal from other signals. Thanks to Abdel for pointing out the need for this.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22779 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-05 00:37:30 +00:00
Abdelrazak Younes
dbfa1a6f46 cleanup DialogView based classes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22775 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-04 17:06:34 +00:00
Pavel Sanda
1ccb7f1f8b * Doxy.
(I am not a nit-pick, but my scripts are.)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22774 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-03 19:17:31 +00:00
Jürgen Spitzmüller
efaa509f8b * src/LaTeXFeatures.cpp:
- add tipx to simplefeatures. Tipx is a subpackage of tipa.
* lib/unicodesymbols:
	- correct some glyphs, which are included in tipx, not tipa.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22771 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-03 17:26:46 +00:00
Pavel Sanda
e417336bb2 * Doxy: polish html output #2.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22769 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-03 14:00:18 +00:00
Pavel Sanda
6b651f2ad9 * Doxy: polish html output.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22767 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-03 13:10:53 +00:00
Pavel Sanda
caaf430aec * Doxy tweaks.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22766 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-03 12:40:19 +00:00
Uwe Stöhr
886db92f82 enable the scrlttr 2 class for serial letters:
- file format change
- new example files and an example address database
- remove ugly hack from scrlttr2.layout and fix bug 4529

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22764 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-03 11:56:44 +00:00
Stefan Schimanski
cf333f5ab4 * Support for graphics pasting (with most code in the frontend's GuiClipboard)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22762 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-03 10:43:03 +00:00
Stefan Schimanski
dd714bfce8 * LinkBack support files, now in pure Objective-C (without any Objective-C++ which is not supported by automake)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22761 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-03 10:41:23 +00:00
Richard Heck
d4a87d0dce Some comments about a better way to do things.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22760 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-03 08:51:58 +00:00
Richard Heck
f8e11caef7 Silly mistake.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22759 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-03 07:46:45 +00:00
Richard Heck
cee09578e6 Cosmetic.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22757 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-03 00:32:02 +00:00
Richard Heck
122bbf4122 Clarify meaning of argument.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22756 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-02 23:50:42 +00:00
Richard Heck
86229bd788 Need to go ahead and start this guy....
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22755 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-02 23:42:05 +00:00
Pavel Sanda
8830667e70 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22754 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-02 23:40:11 +00:00
Abdelrazak Younes
4b2c2f3578 header cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22750 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-02 15:48:58 +00:00
Pavel Sanda
65c0ff6e6b Let the cursor blink frequency depend on qt settings.
Move checking of forked processes into independent timer.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22749 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-02 03:05:54 +00:00
Bo Peng
4f16565f2e Improve cursor movement around lines ending with break-lines
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22742 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-01 17:29:31 +00:00
Jean-Marc Lasgouttes
3f1285aa68 abdel likes short code
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22740 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-01 17:04:59 +00:00
Pavel Sanda
65ba33308e * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22739 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-01 17:03:55 +00:00
Jean-Marc Lasgouttes
6154a90fba small code simplification
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22736 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-01 15:54:40 +00:00
Jean-Marc Lasgouttes
9a7999746d Remove unused macros USE_INCLUDED_STRING and STD_STRING_IS_GOOD
Remove a few unused headers


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22735 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-01 15:36:53 +00:00
Jean-Marc Lasgouttes
11bea5a763 Use a set<string> instead of a vecctor<string> for list of features. This
allows to simplify the code to some extent.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22734 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-01 15:12:04 +00:00
Pavel Sanda
18ee04ae44 * Doxy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22732 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-01 00:03:19 +00:00
Pavel Sanda
38a05d5ee3 * Doxy: Unify style.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22731 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-31 23:41:19 +00:00
Dov Feldstern
32fe049333 rewrite comment explaining DocIterator's boundary_
All boundary-related code went through a major rehaul some months ago (mainly
Stefan's work), but this comment was never updated to reflect that.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22730 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-31 22:50:16 +00:00
Dov Feldstern
796092635f Doxy for some cursor movement lfuns.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22729 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-31 22:42:24 +00:00
Pavel Sanda
997e6c6018 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22724 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-30 23:23:40 +00:00
Uwe Stöhr
c39dd88087 Makefile.am: adjust for r22717
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22719 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-30 22:25:25 +00:00
Stefan Schimanski
fe348eb8b7 * The gui change for the mouse wheel speed setting. This includes the
renaming of the keyboard preferences pane into a input preferences pane.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22718 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-30 21:20:56 +00:00
Stefan Schimanski
dd3842505b * a configuration value for the mouse wheel scrolling speed:
lyxrc.mouse_wheel_speed 


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22717 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-30 21:20:29 +00:00
Abdelrazak Younes
ddec18ca01 * BufferView::scrollDocView(): take care of the general case before the particular top and bottom cases as those don't work very well when the document starts or ends with a big inset.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22710 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-29 13:34:18 +00:00
Abdelrazak Younes
e55019967f Simplify scrolling code. Instead of using the actionTriggered() signal we now use valueChanged(). This has the advantage that we can possibly disable scrollbar tracking for low graphical performance systems.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22709 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-29 12:54:23 +00:00
Abdelrazak Younes
b78acb0b9d * BufferView::scrollDocView(): simplify by using showCursor() and add some comments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22708 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-29 10:17:41 +00:00
Abdelrazak Younes
81e06f7bc9 Fix scrolling to top and bottom of the document.
* BufferView
- showCursor(DocIterator): new DocIterator argument.
- showCursor(): use above method.
- scrollDocView(): take care of top and bottom special cases early in the method.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22707 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-29 09:51:12 +00:00
Abdelrazak Younes
1db3eb2113 GuiWorkArea::adjustViewWithScrollBar(): Fix slder to minimum and maximum. The problem was that when QAbstractSlider::actionTriggered() is emitted the scrollbar value is not changed, only its sliderPosition.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22706 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-29 09:37:02 +00:00
Abdelrazak Younes
091ff73403 RowPainter::paintLast(): microptimisation and comments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22705 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-29 07:31:24 +00:00
Pavel Sanda
bb84c5b38c * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22703 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-28 22:31:30 +00:00
Abdelrazak Younes
c9273f13e8 Adjustment to the end box drawing at the end of a proof layout environment (Theorem AMS). Ideas taken from Richard and JMarc.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22702 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-28 21:22:29 +00:00
Jean-Marc Lasgouttes
17e1b2b59d revert erroneous commit
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22696 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-28 11:42:54 +00:00
Jean-Marc Lasgouttes
21ff30cc38 * src/Text.cpp (changeCase): do not set the selection if it was not
already set.

	* src/Paragraph.cpp (changeCase): make sure to update the selection 
	as needed.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22695 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-28 10:50:24 +00:00
Pavel Sanda
a0cf89394c * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22689 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-26 20:43:26 +00:00
Richard Heck
1a7b7f6541 Fix some problems in makeAbsPath():
i.  It didn't handle a leading "~"
ii. It wrongly handled a string of ../../etc when this took us back to the root directory.
Fix for (i) borrowed from expandPath(). The other is just logic.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22687 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-26 20:41:19 +00:00
Richard Heck
6751c8a72f Handle the case where a file exists but is not readable by the current user.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22686 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-26 20:37:54 +00:00
Richard Heck
5bef46157c Add some comments, and change enum terminology to reflect actual purpose.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22685 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-26 20:25:25 +00:00
Richard Heck
20a5e94a86 Fix bug 4517.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22681 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-26 20:02:30 +00:00
Stefan Schimanski
21bf8063a0 * no box around the pixmap option anymore. So we disable the option directly.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22680 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-26 17:44:36 +00:00
Stefan Schimanski
4eaa564c95 * sort lyxrc tag table
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22679 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-26 17:44:15 +00:00
Stefan Schimanski
13a7bdf6b8 * readd the tooltip for the pixmap cache option
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22678 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-26 01:19:11 +00:00
Stefan Schimanski
2d830ab23b * move the Pixmap Cache check box where it belongs: screen fonts
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22677 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-26 01:14:37 +00:00
Stefan Schimanski
ce56adcf1e * Partly reverting r22619 by Bo which broke the loading of documents
with graphics like the user guide and the introduction text. I guess
  this is the intended behaviour. If not (and hence enable should do
  something even though the mode does not change), it is a bad design
  IMO. Without this patch some assert was triggered because extract()
  was called although nothing is embedded.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22676 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-26 00:47:46 +00:00
Stefan Schimanski
ab1a045d10 * fix random jumps when scrolling very fast using a touchpad or mouse wheel.
The problem was this: The value in BufferView::scrollDocView(int value) is
relative to the d->scrollbarParameters_.min/max interval and _not_ absolute.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22675 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-26 00:47:22 +00:00
Pavel Sanda
8c9342ca29 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22674 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-26 00:43:49 +00:00
Stefan Schimanski
5b46cbef1a * On Mac it's common to have tool windows which are always in the
foreground and are hidden when the main window is not
  focused. Moreover they are normally "auto applying".

  This patch implements this for the character and the paragraph
  dialog. These text propertied are implemented in major application like Apple
  Pages, OmniGraffle and others via inspectors or toolbars. Our "auto
  apply"-mode resembles these very well. So why not activate it and
  make LyX a bit more Mac-like.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22673 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-25 22:31:33 +00:00
Stefan Schimanski
9f58157ffd * comment correction
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22672 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-25 22:07:35 +00:00
Stefan Schimanski
de4a5e3a51 * compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22671 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-25 22:05:41 +00:00
Stefan Schimanski
8e212b98b4 * optional old-style editing mode for macros with a parameter list.
* combobox in the preferences dialog to choose the macro editing mode of choice.

The reason for the three choices (inline box, inline without box,
list) is that it seems that there are at least these three groups of
people, and each of them is very strong about their opinion what that
the best mode is. So here there are all of them, pick your favourite.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22670 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-25 22:02:38 +00:00
Stefan Schimanski
7ac601f429 * corrected comment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22669 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-25 21:59:53 +00:00
Jürgen Spitzmüller
cbf599b911 ** Fix language switch issue introduced by the CJK patch **
* src/output_latex.{cpp,h}:
	- (latexParagraphs, TeXEnvironment, TeXOnePar, TeXDeeper): pass Text element 
	   instead of ParagraphList. This is necessary to detect whether we are in the main text.
	- check if we are in the main text for language switches, if needed.
* src/Buffer.cpp:
* src/insets/InsetEnvironment.cpp:
* src/insets/InsetText.cpp:
* src/mathed/InsetMathMBox.cpp:
	- adapt to new latexParagraphs definition.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22666 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-25 13:27:08 +00:00
Jürgen Spitzmüller
f62fbd05d2 * src/BufferParams.{cpp,h}:
- (paperSizeName): add missing paper sizes. Add an argument to the function
	  that returns context-sensitive information (depending on the purpose)
	- (paperSizeName): Do not hardcode "letter" for default paper size (bug 2098).
	- (dvips_options): pass purpose DVIPS to paperSizeName
* src/Converter.cpp:
	- (dvipdfm_options): pass purpose DVIPDFM to paperSizeName.
* src/Format.cpp:
	- (view): pass purpose XDVI to paperSizeName (fix bug 4432).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22664 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-25 12:54:25 +00:00
Stefan Schimanski
06295fef40 * the markers create a 1 pixel margin
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22661 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-24 08:39:23 +00:00
Pavel Sanda
2eb75da023 PDFoptions: improve the functionality in case the hyperrref is
already loaded by the textclass.

Some corner cases still missing (see fixme and link below).
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg134643.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22660 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-24 01:20:51 +00:00
Stefan Schimanski
76cbbc2fb4 * Fix latex output of child documents when rendered alone.
Problem: Before macro redefinitions in a child buffer did not see the
parent original definition because an Buffer::updateMacros() call had
updated the redefinition_ flag to "false" after the parent buffer had
temporarely been set to =0 for latex output of the child.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22656 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-23 00:26:48 +00:00
Stefan Schimanski
135fbe2c1b * add "auto" flag for toolbars
* make macro toolbar automatic

This reverts commit 7d48e270549aa04c34fae9ce9682162c78f57eda.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22655 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-22 22:56:10 +00:00
Stefan Schimanski
0a701fb254 * Option to make macro editing less "noisy" by hiding the grey box with the
macro name when the cursor is inside. The downside of the coin is that
you have to look into the statusbar to see which macro is used. But
some people prefer that than having the slight size change of macros
when the cursor enters.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22650 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-22 21:23:41 +00:00
Stefan Schimanski
daeb335db3 * Support a script also around the ] of an optional parameter
Test case:
"\newcommand{\foo}[2][a]{(#1,#2)} \foo[A]^1b" should give (a,_)^1b

This is implemented for non-optional parameters for long time for
cases like \foo ab^2 


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22646 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-22 17:26:54 +00:00
Jean-Marc Lasgouttes
0df54152bc Move spacing code around (and fix a bug)
* LaTeXFeatures.cpp (getPackages): remove some specific spacing code;
	move listings support to simplefeatures array.

	* src/Spacing.cpp (writeEnvirBegin, writeEnvirEnd): code factorization
	(writePreamble): new method containing former code from LaTeXFeatures;
	use \setSpacing instead of \setSingleSpacing.

	* src/BufferParams.cpp (validate, writeLaTeX): handle spacing here.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22644 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-22 08:41:45 +00:00
Pavel Sanda
75a5c1c7a1 Correct toolbar environment sorting for other locales.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22634 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-19 23:46:03 +00:00
Pavel Sanda
c0414bef66 Environment toolbar is not updated after selection by mouse.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22633 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-19 23:36:03 +00:00
André Pönitz
c151549004 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22632 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-19 12:33:01 +00:00
Jürgen Spitzmüller
6415e84dc4 * src/LaTeXFeatures.cpp:
- tiny correction to rev. 22629

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22631 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-19 11:32:06 +00:00
Jürgen Spitzmüller
804e912910 Fix hyperref-soul conflict and sanitize hyperref management
* src/BufferParams.cpp:
	- always require hyperref if it's used.
	- only call PDFOptions::writeLaTeX if hyperref is required
	  (and not provided by textclass).
* src/PDFOptions.{cpp,h}:
	- (writeLaTeX): remove unneeded hyper_required argument
* src/LaTeXFeatures.cpp:
	- special definition for pdflatex ct markup when hyperref is used
	  (fix bug 4504).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22629 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-19 11:17:12 +00:00
Pavel Sanda
f0f485e40d Get rid of ugly strings in .po file
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22625 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-18 22:50:19 +00:00
Abdelrazak Younes
33b1ab9a9a Fix buffer-next/previous when called with Ctrl-Tab.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22621 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-18 08:26:38 +00:00
Bo Peng
82dfa33276 Embedding: fix enable() logic
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22619 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-18 06:46:06 +00:00
Jürgen Spitzmüller
7d16a9c7ea * src/frontends/GuiView.cpp:
- fix bug 4496 ("Retry" and "Cancel" buttons were swapped in the error dialog)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22616 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-17 19:01:01 +00:00
Abdelrazak Younes
29918a2292 Scrolling works:
* enable ScrollBarAsNeeded.
* small cleanups.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22615 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-17 17:47:01 +00:00
Abdelrazak Younes
ae0667c112 More scrolling work. Now the scrollbar parameters are normalized against the screen geometry and coordinates. This simplifies the logic and the code significantly.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22614 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-17 17:06:55 +00:00
Jürgen Spitzmüller
3352fe5fc8 * src/LaTeX.cpp:
- do a second latex run before bibtex if package clefval requests it.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22612 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-17 10:04:48 +00:00
Abdelrazak Younes
689d5c2b99 add some const.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22611 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-17 09:19:52 +00:00
Abdelrazak Younes
ff588411af Delay IconPalette construction.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22610 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-17 08:42:28 +00:00
Abdelrazak Younes
139802b193 string optimizations.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22609 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-17 08:32:48 +00:00
Abdelrazak Younes
0aead96461 Introduce class MenuButton in order to delay the math menu button initialisation up until it is first shown. This improve the inital loading time by half a second on windows.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22608 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-17 08:20:22 +00:00
Edwin Leuven
4559120e8a don't update parent and make sure the icon sizes on the palette are correct
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22606 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-16 20:51:00 +00:00
Edwin Leuven
9a0570de4a initialize iconpalettes only when the user asks for them
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22605 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-16 20:36:45 +00:00
Abdelrazak Younes
95fe0e16a7 Introduce class PaletteButton in order to delay the icon palette initialisation up until it is first shown. This improve the inital loading time by 2.3 seconds on windows!
I think the same thing should be done for POPUPMENU.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22603 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-16 18:27:24 +00:00
Abdelrazak Younes
c2f57f8cfe Fix delay when applying changed Preferences. The reason was that the "math-panels" initialisation takes too long (hence the FIXME).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22602 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-16 17:26:40 +00:00
Abdelrazak Younes
47f929d48d Fix mac menubar only modifying the Prefs.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22601 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-16 16:50:10 +00:00
Abdelrazak Younes
68d11a0b29 scrolling tweaks...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22600 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-16 15:15:26 +00:00
Abdelrazak Younes
bc3029bcf4 scrolling tweaks... asymptotically tending towards scrolling correctness...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22599 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-16 14:31:00 +00:00
Abdelrazak Younes
2db839d7bb Scrolling fixes...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22598 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-16 09:06:36 +00:00
Abdelrazak Younes
9b06f2fbd5 Allow use of Tab keys when no document's open.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22597 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-16 08:04:49 +00:00
Abdelrazak Younes
5a2231d17b Fix bug 4351 at least on Windows and X11.
http://bugzilla.lyx.org/show_bug.cgi?id=4351

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22596 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-16 07:47:53 +00:00
Pavel Sanda
0caadfe9d1 * Doxy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22595 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-16 02:45:07 +00:00
Pavel Sanda
6279be2e32 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22592 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-15 22:53:30 +00:00
Pavel Sanda
8b6415f308 Fix bug 4493 - countChars assert.
(No need to backport for 1.5, originated in 'polishing readability' in
http://www.lyx.org/trac/changeset/22519)



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22591 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-15 22:30:19 +00:00
Richard Heck
1741c87a4e Fix bug 4463. The crash was due to a call to X from inside a child process.
The main change is to support/ForkedCalls.{h,cpp}. We introduce a static variable IAmAChild and a corresponding accessor. This is set to true in a new fork() method, in the branch taken by the child. (Note: fork() is safe cross-platform, as it just returns -1 if we don't have fork().) This ForkedProcess::iAmAChild() method is then used to protect GuiView::message().

As Abdel has pointed out, there may be other such calls to be protected, e.g., the emission of the Buffer::changed() signal. Those are not addressed here.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22587 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-15 18:26:53 +00:00
Pavel Sanda
2baffdb590 * Doxy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22586 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-15 14:16:23 +00:00
Jürgen Spitzmüller
1acedf11da * src/frontends/GuiDocument.{cpp,h}:
- do not update dialog when clicking in the main window without buffer change
	  (bug 4302).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22583 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-15 10:38:19 +00:00
Abdelrazak Younes
00ef1af08f header cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22579 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 23:45:47 +00:00
Uwe Stöhr
ecde9d6a0f revert r22574 to be able to compile
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22578 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 23:45:04 +00:00
Abdelrazak Younes
12ce8e82cf simplify ucs4 to utf8 conversion.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22577 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 23:44:05 +00:00
Abdelrazak Younes
11f36d2d72 header cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22574 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 23:19:55 +00:00
Abdelrazak Younes
537481ebe5 header cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22573 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 23:18:52 +00:00
Abdelrazak Younes
d7d41ee59d header cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22572 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 23:17:24 +00:00
Abdelrazak Younes
5e7c21490d header cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22571 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 23:16:58 +00:00
Pavel Sanda
57587d80d6 * Doxy: fix \vars
(Beware: syntax needs \var lyx::kb_action lyx::LFUN_ after move to .cpp)



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22570 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 23:01:36 +00:00
Pavel Sanda
be309904a8 * Doxy: lets generate hyperlinks
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22569 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 22:45:03 +00:00
Richard Heck
821ef81154 A little more lfun doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22568 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 22:43:05 +00:00
Richard Heck
1583929922 A little more easy lfun doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22565 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 22:22:07 +00:00
Bernhard Roider
2714d1b8b9 Doxy for LFUN_CALL again
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22564 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 22:20:35 +00:00
Richard Heck
ab6fcd9be5 Some easy lfun doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22563 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 22:02:59 +00:00
Stefan Schimanski
49daeaec29 * fix for buggy cursor logic due to multi bufferview support in MathMacros. It's much simpler now, even for simple single bufferview cases.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22562 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 21:53:49 +00:00
Stefan Schimanski
e0538043e4 * Nearly a proof that there are useful compiler warnings that a variable is not used,
though in this case the warning was "fixed" before it did its job.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22561 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 21:52:57 +00:00
Richard Heck
afa6389644 A little more explanation.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22560 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 21:49:01 +00:00
Pavel Sanda
73f97fa124 * Doxy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22559 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 21:46:20 +00:00
Richard Heck
f03329a19c I18n for modules. This would seem to complete the module implementation. Test away.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22558 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 21:44:06 +00:00
Peter Kümmel
421fa672a7 remove duplicated code, (fix cmake merge)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22557 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 19:52:16 +00:00
Bernhard Roider
29d74c47a8 Add lfuns doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22556 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 19:37:52 +00:00
Pavel Sanda
25c7910e87 Add lfuns doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22555 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 18:53:10 +00:00
Abdelrazak Younes
f643441cf2 Better fix than revision 22553. Transfer the backup to RowPainter::paintInset().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22554 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 16:24:01 +00:00
Abdelrazak Younes
cb83883583 TextMetrics::drawParagraph(): Fix drawing bug reported by Richard by backing up the full repaint flag.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22553 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 16:15:40 +00:00
Jean-Marc Lasgouttes
3d8828fa14 * src/Spacing.cpp (writeBeginEnv, writeEndEnv): add a bool parameter
directing to use memoir's capitalized latex macros.
	* src/LaTeXFeatures.cpp (getPackages): act on feature "SetSpace".
	* src/output_latex.cpp (TeXOnePar): ditto

	* lib/layouts/memoir.layout: provide feature SetSpace, indicating that
	memoir provides the setspace functionality, but with a different syntax.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22551 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 14:53:29 +00:00
Abdelrazak Younes
c15b2f6e1a * Buffer::doExport(): return early.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22550 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 14:09:20 +00:00
Jürgen Spitzmüller
59c8ede0a3 * src/LaTeXFeatures.cpp:
- load xcolor.sty the same way than color.sty, and only load one of them
	  (xcolor, if requested, else color).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22548 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 10:08:08 +00:00
Abdelrazak Younes
c81f5add99 * AutoSaveBuffer::generateChild(): return early.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22546 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 09:04:14 +00:00
Abdelrazak Younes
2c1b8bc472 * AutoSaveBuffer::generateChild(): FileName::moveTo() already tries to remove the file if any so no need to do that again.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22545 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 09:00:32 +00:00
Enrico Forestieri
58a0626e80 Use the currentItemChanged() signal instead of itemSelectionChanged()
because in Qt 4.2 the current item has not been updated yet when
itemSelectionChanged() is emitted.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22544 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-13 21:35:48 +00:00
Uwe Stöhr
a3dfd2f10b InsetBox.cpp: fix the LaTeX-output, fixes bug 2492 http://bugzilla.lyx.org/show_bug.cgi?id=2492
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22540 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-13 14:41:49 +00:00
Jürgen Spitzmüller
9275f580ef * src/LaTeXFeatures.cpp:
- the package "pdfcolmk" must be loaded after [x]color.sty
	  (see package documentation).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22537 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-13 11:49:36 +00:00
Abdelrazak Younes
cf2656e026 fix warning.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22536 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-13 10:48:10 +00:00
Abdelrazak Younes
0ea17620dc fix warning.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22535 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-13 10:44:16 +00:00
André Pönitz
57d2f9c0ad Five more percent.
I'd really prefer if people would not add unused code to critical
paths..


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22534 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-12 23:08:21 +00:00
André Pönitz
f7e4d591dc cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22533 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-12 21:49:48 +00:00
André Pönitz
e69b723bf9 There was a bit too much copying of dociterators gpoing on leading to an
avoidable ~5% overhead when loading the UserGuide. This is an attempt on
rectifying the situation.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22532 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-12 21:38:51 +00:00
André Pönitz
96c21a6ca3 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22527 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-12 16:44:35 +00:00
André Pönitz
560f4336fa cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22526 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-12 16:40:25 +00:00
André Pönitz
f925113312 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22525 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-12 16:34:02 +00:00
Richard Heck
a60b6d90d9 Help from Andre.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22524 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-12 16:11:55 +00:00
Jürgen Spitzmüller
e3699e1a47 * GuiBibtex.cpp:
- some more tweaks.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22522 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-12 15:41:40 +00:00
Pavel Sanda
eb0f59a816 Add temp vars to countChar.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22519 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-12 13:34:10 +00:00
Jürgen Spitzmüller
445bf425a1 * GuiBibtex.cpp:
- nor _really_: yet another tweak to button enabling.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22516 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-12 12:00:11 +00:00
Pavel Sanda
ddff76fd8b Let doxygen recognize us
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22513 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-12 11:50:33 +00:00
Jürgen Spitzmüller
709960ff66 * GuiBibtex.cpp:
- yet another tweak to button enabling.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22512 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-12 11:49:49 +00:00
Pavel Sanda
f78f28f4fc Move all doxy stuff to LyXAction.cpp, so that touching dox won't imply full recompile.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22511 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-12 11:33:03 +00:00
Jürgen Spitzmüller
e94d6b3958 * GuiBibtex.cpp:
- addition to rev. 22507: handle ReadOnly of new buttons.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22510 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-12 11:22:20 +00:00
Jürgen Spitzmüller
fcf47395c5 * src/frontends/qt4/GuiBibtex.{cpp,h}:
* src/frontends/qt4/ui/BibtexUi.ui:
	- add buttons to move databases up and down.
	  Patch from Horst Schirmeier (permission: http://marc.info/?l=lyx-devel&m=120009631506298&w=2)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22507 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-12 09:30:21 +00:00
Bo Peng
efbbf7a31f Fix r22486, which causes an infinite loop when a bibtex file is not available. Reported by Horst
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22505 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-12 06:17:37 +00:00
Richard Heck
d5d665482e This commit changes the way individual LyXModule's are represented, both internally and in the .lyx files. The earlier version represented them by their `descriptive name', e.g., "Endnote" or "Theorems (AMS)", these being the same names used in the UI. This was a mistake, as becomes readily apparent when one starts to think about translating these strings. The modules ought to be represented by their filename, without the extension, just as TextClass's are.
The changes that accomplish this part are in ModuleList.{h,cpp}, configure.py, and the *.module files themselves. This is a format change, and the lyx2lyx is in those files.

By itself, that change would not be major, except for the fact that we do not want the module to be represented in the UI by its filename---e.g., theorems-std---but rather by a descriptive name, such as "Theorems". But that change turns out to be wholly non-trivial. The mechanism for choosing modules was the same as---indeed, was borrowed from---that in GuiCitation: You get a list of modules, and choosing them involves moving strings from one QListView to another. The models underlying these views are just QStringListModels, which means that, when you want to know what modules have been selected, you see what strings are in the "selected" QListView. But these are just the descriptive names, and we can't look up a module by its descriptive name if it's been translated. That, indeed, was the whole point of the change to the new representation.

So, we need a more complicated model underlying the QListView, one that will pair an identifying string---the filename minus the extension, in this case---with each item. This turns out not to be terribly difficult, though it took rather a while for me to understand why it's not difficult. There are two parts:
(i)  GuiSelectionManger gets re-written to use any QAbstractListModel, not just a QStringListModel. This actually seems to improve the code, independently.
(ii) We then subclass QAbstractListModel to get the associated ID string, using the Qt::UserRole slot associated with each item to store its ID. This would be almost completely trivial if QAbstractListItem::itemData() included the QVariant associated with this role, but it doesn't, so there are some additional hoops through which to jump.

The new model, a GuiIdListModel, is defined in the files by that name. The changes in GuiSelectionManger.{h,cpp} make it more abstract; the changes in GuiDocument.{h,cpp} adapt it to the new framework. 

I've also updated the module documenation to accord with this change.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22501 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-12 04:28:12 +00:00
Richard Heck
471cf26b11 New files, anticipating a later commit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22500 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-12 02:31:32 +00:00
Pavel Sanda
4adf77cf7d Synchronize lfun thematical ordering and func_type.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22499 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-12 00:22:15 +00:00
Uwe Stöhr
33c95fc07b rename LFUNs math-nonumber and math-number to what they really do,
fixes bug 2608

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22496 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-11 22:45:19 +00:00
Jürgen Spitzmüller
4b799833e7 *** Support for generic sideways floats ***
* src/Buffer.cpp:
	- format is up to 312.
* src/LaTeXFeatures.cpp:
	- add rotfloat.
* src/Insets/InsetFloat.cpp:
	- handle starred and generic sideways floats.
* src/frontends/qt4/FloatPlacement.{cpp,h}:
	- adjust GUI to the new features.
* lib/chkconfig.ltx:
	- add rotfloat
* lib/lyx2lyx/LyX.py:
* lib/lyx2lyx/lyx_1_6.py:
	- add reversion methods for new floats
* lib/lyx2lyx/lyx_1_4.py:
	- add proper reversion method for sideways floats (this was missing).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22495 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-11 18:56:53 +00:00
Pavel Sanda
ac4b0dd692 Start of lfun reordering
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22493 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-11 12:46:12 +00:00
Pavel Sanda
871b6a7245 Preparing for lfun doxy movement
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22492 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-11 12:43:50 +00:00
Pavel Sanda
60c53dcd1e Renaming leftovers
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22491 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-11 12:40:26 +00:00
Richard Heck
d226da1559 Fix comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22488 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-11 04:44:56 +00:00
Bo Peng
b2278c0736 Make bibtex works with embedded bib file
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22487 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-11 03:57:22 +00:00
Bo Peng
f52b73747f Embedding: saving inzip name to .lyx file so that embedded files can always be found under different operating systems (even lyx versions). yet to be tested under windows
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22486 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-10 23:39:58 +00:00
Jürgen Spitzmüller
63c45ec226 * src/insets/InsetCitation.{cpp,h}:
* src/insets/InsetHyperlink.{cpp,h}:
* src/insets/InsetRef.{cpp,h}:
* src/insets/InsetSpace.{cpp,h}:
* src/insets/InsetSpecialChar.{cpp,h}:
	- fix textString member (bug 4472).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22480 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-10 16:09:01 +00:00
Abdelrazak Younes
a84fa1ce00 Transfer Tab and Shift-Tab keys special handling from GuiView::event() to GuiWorkArea::event(). Add some comments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22477 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-10 09:04:30 +00:00
Abdelrazak Younes
1406a54420 * CursorSlice::lastpos(): check for text emptiness (should fix a crash when releasing an empty buffer).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22474 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-10 08:46:04 +00:00
Abdelrazak Younes
50b994b08f * GuiWorkArea::event():
- case ToolTip: don't forget to accept the event!
- Clean up the method in order to extend to other events.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22473 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-10 08:19:54 +00:00
Richard Heck
9f8bf4c9da Dummy format change for AMS modularization.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22470 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-10 07:22:43 +00:00
Richard Heck
5f91f39309 We do not need to update just because the class has been changed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22466 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-10 06:22:42 +00:00
Richard Heck
34bce8b33e amsthm support.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22460 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-10 04:14:22 +00:00
Richard Heck
5faad9ca68 Additional UI logic related to module requires and excludes.
The logic here is really kind of a mess. If anyone can make it
simpler, I'd be thrilled.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22458 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-10 01:33:24 +00:00
Richard Heck
78cc57cd5a Fix copy-paste errors.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22457 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-09 23:06:16 +00:00
Richard Heck
7c28905b17 This commit adds some new functionality to the modules stuff. In particular, it introduces the concept of "required" and "excluded" modules: A given module may require one of some list of modules, or it may be incompatible with some other modules. (Complex Boolean combinations are not supported!!) These facts can be noted in the module file, and the UI responds appropriately: Required and excluded modules are noted in the description, and the "Add" button is enabled only if at least one of the required modules has already been selected and no excluded module is selected. Getting this to work involved a fair bit of cleanup of the existing code---including ways Angus, I think, had already pointed out were required---and also involved changing the syntax of the headers of the module files, but in ways that are probably best anyway.
None of the extant modules require any other modules, but the Theorem modules all exclude one another. (See the screenshot.) When I modularize the AMS classes---that is the next task---we'll have requires.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22456 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-09 18:51:02 +00:00
Pavel Sanda
6be5a0cf52 Add ParIterator FIXME.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22453 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-09 13:14:14 +00:00
Abdelrazak Younes
a82d158e0c Remove archaeological work around scrollbar insanity.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22452 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-09 09:54:39 +00:00
Richard Heck
85ac3f0dc4 More whitespace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22451 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-09 07:19:26 +00:00
Richard Heck
b84e210719 What happened to the whitespace?
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22450 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-09 07:18:41 +00:00
Bo Peng
7ecfcc9108 Embedding: fix a crash when extracting InsetInclude
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22449 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-09 05:11:16 +00:00
Bo Peng
b5153b3d26 Embedding: merge lyx::EmbeddedFiles to lyx::support::EmbeddedFileList
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22448 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-08 18:55:34 +00:00
Bo Peng
c20f5a64d9 Embedding: simplify the interface of EmbeddedFiles, which will be later merged to EmbeddedFileList
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22444 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-08 18:33:43 +00:00
Bo Peng
52cd35cd5f Embedding: add embedding support for InsetBibtex. (params["embed"] is added, use EmbeddedFileList instead of FileNameList for bibtex handling, use checkable items in GuiBibtex)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22443 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-08 17:02:09 +00:00
Bo Peng
09a6f725d0 Embedding: add embedding support for InsetExternal. (params["embed"] is added)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22442 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-08 16:42:28 +00:00
Bo Peng
c81fd7337d Embedding: add embedding support for InsetInclude. (params["embed"] is added)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22441 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-08 16:35:43 +00:00
Pavel Sanda
569a82cb86 Remove todo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22440 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-08 16:26:25 +00:00
Bo Peng
06254d11df Embedding: display a pin at the top left corner of embedded figures
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22439 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-08 16:22:05 +00:00
Abdelrazak Younes
e40499d5df BufferView::showCursor(): better fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22438 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-08 15:49:03 +00:00
Pavel Sanda
d5f47dc6f7 polish
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22437 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-08 15:48:23 +00:00
Jürgen Spitzmüller
275d05942d hmpf.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22436 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-08 15:41:56 +00:00
Jürgen Spitzmüller
3e539a3a40 * src/lfuns.h:
- minor correction in the doxy comment.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22434 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-08 15:34:09 +00:00
Pavel Sanda
922aa7b1e8 Add characters counting.
Introduce LFUN_STATISTICS.
see http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg134033.html .


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22433 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-08 15:18:00 +00:00
Abdelrazak Younes
8379c2b70f Fix anchor bug.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22432 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-08 14:55:11 +00:00
Stefan Schimanski
c4d85b3f1d * fix a crash during undo: cloned MathMacroTemplates need updated child insets which point back to the correct (cloned) template.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22430 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-08 10:29:47 +00:00
Jürgen Spitzmüller
926e115e6a * src/TextClass.cpp:
- remove superfluous condition.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22429 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-08 09:14:44 +00:00
Jürgen Spitzmüller
2c0eaab164 * src/TextClass.cpp:
- allow for multiple subsequent Requires class tags.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22428 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-08 07:29:47 +00:00
Bo Peng
474979d32d Embedding: simplify code in the handling of embedCB in GuiGraphics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22427 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-08 02:34:17 +00:00
Pavel Sanda
00fcadb88b Add lfuns doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22422 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-07 18:54:23 +00:00
Jürgen Spitzmüller
a5d5a633d9 some more uses of Requires.
The package ifthen needs to be added to LaTeXConfig.lyx. I'll do this when that file can be opened again.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22419 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-07 17:32:47 +00:00
Jean-Marc Lasgouttes
585ba16d62 * src/MenuBackend.cpp (expandFormats): do not add shortcut for
plaintext if it is not correct.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22415 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-07 17:13:38 +00:00
Jürgen Spitzmüller
9e5eebc14c *** Requires tag for classes, layouts and custom insets ***
* src/TextClass{cpp,h}:
	- implement Requires tag for class and InsetLayout.
* src/Layout.{cpp,h}:
	- implement Requires tag for layouts.
	- increase layouts format to 6.
* src/Paragraph.cpp:
	- request required features for paragraph layouts.
* src/LaTeXFeatures.cpp:
	- add some packages needed by modules.
	- remove Preamble method for InsetLayout. This is now done
	  in InsetFlex::validate.
* src/BufferParams.cpp (validate):
	- request required features for the class.
* src/insets/InsetLayout.h:
	- new member "requires".
* src/insets/InsetFlex.{cpp,h}:
	- implement validate method and request required features and preamble snippets.

* lib/layouts/*.{layout,module,inc}:
	- increase layouts format to 6.
	- use Requires tags in some modules (more can be done later).

* lib/doc/Customization.lyx:
	- document Requires tag.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22414 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-07 16:59:10 +00:00
Stefan Schimanski
102638a478 * fix broken default value logic from last cleanup: only show default value if not in edit mode and the given value is empty.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22413 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-07 13:50:21 +00:00
Jean-Marc Lasgouttes
cdb78de525 * MenuBackend.cpp (binding): remove forgui argument
* frontends/qt4/GuiPopupMenu.cpp (addBinding): remove (merge into
	getLabel and remove mac-specific code).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22412 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-07 10:53:04 +00:00
Bo Peng
a63ec64642 Embedding: add embedCB checkboxes to IncludeUi and ExternalUi
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22411 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-07 06:46:32 +00:00
Bo Peng
c9a7e8c416 Embedding: After another round of EmbeddedFiles changes, embedded figures should more or less work now.
* src/insets/InsetExternal.cpp: fix compiling. (Does not work yet)
	* src/insets/InsetGraphics.cpp: use latexFilename to produce output.
	* src/insets/InsetGraphicsParams.cpp: use availableFile to show preview.
	* src/EmbeddedFiles.h|cpp: More things are moved from EmbeddedFiles to EmbeddedFile
	* src/frontends/qt4/GuiGraphics.cpp: remove embeddable-related operations.
	* src/support/FileName.h: make isReadableFile virtual


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22410 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-07 03:34:21 +00:00
Pavel Sanda
53673d6acc Add some lfuns doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22409 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-06 22:15:58 +00:00
Stefan Schimanski
1b56057e1f * lfuns doxification for math macros
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22407 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-06 21:02:10 +00:00
Richard Heck
8d171d97c6 Further LFUN documentation. Just simple cases, for completeness.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22406 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-06 18:24:15 +00:00
Richard Heck
0fce3ff6bd Pass by const reference. Thanks Andre and Peter.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22405 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-06 18:17:25 +00:00
Richard Heck
04192aa3ab Update documentation.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22404 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-06 18:17:07 +00:00
Richard Heck
ef86256c39 Remove commented out code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22402 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-06 17:23:19 +00:00
Richard Heck
012c7f3280 Crash fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22398 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-06 16:52:00 +00:00
Richard Heck
8f1153820a Thanks, Angus.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22397 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-06 16:44:51 +00:00
Bo Peng
06e1d50c7e Minor format fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22395 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-06 16:24:19 +00:00
Bo Peng
2a69b32fa4 Embedding: save checksum of the bundled file, not content.lyx (to avoid file externally modified warnings).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22394 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-06 16:21:57 +00:00
Pavel Sanda
d61b5ce142 Add lfun doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22392 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-05 20:24:54 +00:00
Richard Heck
9a7cd29f5b Rationalize the handling of makeTextClass().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22388 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-05 17:04:56 +00:00
Richard Heck
80e98c5b71 Implement checks for available modules both in BufferParams and in the gui.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22387 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-05 16:56:30 +00:00
Richard Heck
c03c537a8a Minor modification: do not worry about .sty extension.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22386 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-05 16:51:06 +00:00
Richard Heck
4675141344 Implement isAvaiable in ModuleList.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22385 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-05 16:49:49 +00:00
Bo Peng
56a1dfe65f Embedding: adjust how InsetGraphics interacts with EmbeddedFiles, the ?th overhaul of the EmbeddedFile class :-(
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22377 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-05 05:28:39 +00:00
Bo Peng
9073fd6b9f Embedding: proper embedCB actions in the GuiGraphics dialog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22376 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-05 04:48:47 +00:00
Bo Peng
0264dd05b0 Embedding: temporarily disable embedding for include and external insets (focusing on graphics)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22375 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-05 04:44:41 +00:00
Bo Peng
995a1353df Embedding: does not write inzipName option in InsetGraphics because inzipName is now automatically determined
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22374 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-05 04:43:13 +00:00
Bo Peng
1e6d09c7c8 zipunzip.cpp: Replace makedir etc with versions in support::FileName, fix a bug in extracting subdirectories
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22373 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-05 04:39:01 +00:00
Jean-Marc Lasgouttes
d43731fa17 remove extra menu expansion which causes multiple warnings about shortcuts
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22365 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-04 16:54:56 +00:00
Jean-Marc Lasgouttes
b605ba6e8c translating empty strings is not a good idea
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22358 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-04 15:44:51 +00:00
Jean-Marc Lasgouttes
c3ec9ddda0 Disable and check properly the math numbering functions.
* InsetMathHull.cpp (getStatus): disable LFUN_MATH_NUMBER and LFUN_MATH_NONUMBER
	when the equation is not in display mode; add a checkbox as needed.
	(doDispatch): no need to test for dispatch() anymore.

	* InsetMathNest.cpp (getStatus): LFUN_MATH_NUMBER and LFUN_MATH_NONUMBER are not 
	handled by this class.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22350 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-03 17:31:12 +00:00
Bo Peng
ed2b1631db Showing a message box after embedding status is changed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22349 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-03 16:41:06 +00:00
Jean-Marc Lasgouttes
67615fba80 fix compilation warnings: more unused parameters
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22348 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-03 16:10:44 +00:00
Jean-Marc Lasgouttes
d8eaec5c03 fix compilation warnings: unused parameters
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22347 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-03 15:44:05 +00:00
Jürgen Spitzmüller
b0ff3b92d7 * src/frontends/qt4/GuiSendto.cpp:
- add missing pdflatex format.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22346 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-03 09:22:36 +00:00
Enrico Forestieri
62d5000103 Use a less verbose form for warnings in the view source window
and correctly match strings in order to coalesce translations.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22337 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-30 21:28:38 +00:00
Richard Heck
d23ff5f777 More encoding.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22334 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-29 21:18:50 +00:00
Richard Heck
e6cec292c5 Encoding.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22333 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-29 21:15:20 +00:00
Abdelrazak Younes
58729e1117 Following rev 21967: final touch to odocfstream:
- odocfstream: properly fix plaintext output by getting rid of ctor with std::string argument as this can be mixed up with std::ofstream(std::string) ctor where the argument is a file. UTF8 is now the default encoding.
- PreviewLoader::Impl::startLoading(): catch another potential iconv exception.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22332 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-29 18:04:43 +00:00
Jürgen Spitzmüller
31496b4a16 * src/output_plaintext.cpp:
- fix plaintext output. Abdel, you still should have a look at this.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22330 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-29 10:22:01 +00:00
Richard Heck
eb112d0711 Contributions to the LFUN documentation project.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22329 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-28 17:57:43 +00:00
Richard Heck
d4dbefc749 Tiny comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22328 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-28 17:11:39 +00:00
Jürgen Spitzmüller
a229a78dff Support for \nocite* from Berhard Reiter. Increments file format to 210.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22327 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-28 16:56:57 +00:00
Jürgen Spitzmüller
636b655216 Fix multiple cell pasting on Windows and Mac (bug 4436):
* src/Clipboard.h:
* src/frontends/GuiClipboard.{cpp,h}:
	- new member hasInternal() which indicates whether the OS knows
	  the concept of clipboard ownership.

* src/insets/InsetTabular.cpp (doDispatch):
	- consider hasInternal() while pasting.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22325 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-28 15:56:05 +00:00
Abdelrazak Younes
5587709f0e Introduce LFUN_SCROLL.
Santa-clauss.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22324 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-27 11:37:07 +00:00
Abdelrazak Younes
88942bcae4 Fix a crash with depm.
* BufferView::checkDepm(): update d->cursor_ in case of depm.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22322 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-27 10:39:25 +00:00
Abdelrazak Younes
f3326796a1 Fix next-inset-toggle after scrolling work.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22321 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-27 09:44:39 +00:00
Jürgen Spitzmüller
c26050ac83 * src/support/unicode.cpp (convert):
- flush out data at the end of the conversion process (bug 4439).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22319 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-27 07:30:06 +00:00
Abdelrazak Younes
c451018f30 enable context menu for the vertical scrollbar.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22317 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-26 15:04:20 +00:00
Abdelrazak Younes
02fd454216 header cleanup.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22316 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-26 14:21:50 +00:00
Abdelrazak Younes
ebdd03d477 Properly fix undo/redo following scroll work.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22315 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-26 14:10:24 +00:00
Abdelrazak Younes
e1033d4ad6 Fix undo/redo following scroll work.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22314 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-26 14:00:55 +00:00
Abdelrazak Younes
33eb188fb6 Add an RC setting to disable/enable the tooltips in the work area.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22313 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-26 13:52:56 +00:00
Stefan Schimanski
afc761e17b * compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22312 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-26 13:31:17 +00:00
Stefan Schimanski
780556c5d8 * compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22311 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-26 13:29:45 +00:00
Abdelrazak Younes
6b0a396d74 * GuiWorkArea::contextMenuEvent(): accept the event otherwise it is passed down to GuiView after pressing the Esc key.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22310 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-26 12:48:36 +00:00
Abdelrazak Younes
fc2658eff0 initial basic context menu support.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22309 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-26 12:40:58 +00:00
Abdelrazak Younes
722329490b Simplify MenuBackend and menubar interactions.
* GuiMenubar: freed from GuiView and QMenuBar, renamed to 'Menus'
* GuiView: just use the standard QMenuBar.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22308 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-26 10:55:43 +00:00
Jürgen Spitzmüller
cfb1d4027b * src/insets/InsetSpace.cpp:
- further improve appearance of protected space.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22307 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-26 10:38:59 +00:00
Abdelrazak Younes
4803a77708 Transfer global mac menu bar initialization to GuiApplication ctor.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22305 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-26 09:54:48 +00:00
Bo Peng
6f57240133 add missing header file
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22304 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-26 06:44:22 +00:00
Abdelrazak Younes
518871a52b Don't pretend we have multiple menu backends: transfer the singleton to GuiApplication.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22303 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-25 22:27:32 +00:00
Abdelrazak Younes
4959040015 * GuiMenuBar:
- Get rid of unused menuBar() method.
- make sure mac specific code always compile.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22302 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-25 21:34:53 +00:00
Abdelrazak Younes
3ffd3f51a1 Free GuiPopupMenu from GuiMenubar.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22301 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-25 20:51:05 +00:00
Abdelrazak Younes
02110a3d5b Prepare the code for context menu support.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22300 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-25 20:12:07 +00:00
Abdelrazak Younes
2148f86b27 remove debug code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22299 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-25 19:01:10 +00:00
Abdelrazak Younes
7c832d2d84 Implement tooltips for visible insets.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22298 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-25 18:53:38 +00:00
Abdelrazak Younes
6564f8a52a fix warning.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22297 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-25 18:49:55 +00:00
Abdelrazak Younes
44383f5162 Fix graphics file name. It is textrm_O.png, not textrm_Oe.png
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22296 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-25 09:14:00 +00:00
Stefan Schimanski
1c830e744f * some warnings less
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22295 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-24 14:13:10 +00:00
Jürgen Spitzmüller
09f09e2121 * src/Buffer.cpp:
- better translatable error message for uncodable chars, now also
	  displaying the code point value.
* src/Paragraph.cpp:
	- do not throw in View Source mode, but mark up uncodable chars (fix bug 4437).
* src/frontends/qt4/LaTeXHighlighter.{cpp,h}:
	- highlight LyX warnings.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22294 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-24 13:55:01 +00:00
Stefan Schimanski
04537d8664 * make sure the edit mode is the same in math macros and argument proxy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22292 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-24 10:54:39 +00:00
Stefan Schimanski
6a9e5edae3 * setDimCache is superfluous in mathed
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22291 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-24 10:53:53 +00:00
Stefan Schimanski
7150b0caa3 * moved atom_dim_ to coord cache in the buffer view to make it dependent on the buffer view
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22290 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-24 10:52:58 +00:00
Enrico Forestieri
1732e5458b Try to improve maintainability by separately checking for the
gather environment.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22288 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-24 02:36:41 +00:00
Stefan Schimanski
5caf1bb4de * Some dialogs are independent of the lyxview. Moreover it seems that
the Qt Mac application menu is handled differently such that no
  getStatus() is issued anymore later when opening it. Hence we have
  to return the correct (i.e. enable==true) value for those lfuns from
  the beginning.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22286 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-23 19:07:46 +00:00
Stefan Schimanski
a6f3a3c59c * first clear the menubar, then fill it (with mac menu items)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22285 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-23 18:51:11 +00:00
Stefan Schimanski
5636ca5dea * indention fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22284 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-23 16:33:34 +00:00
Stefan Schimanski
455b42f21a * compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22283 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-23 16:33:15 +00:00
Stefan Schimanski
3f5e1c0e27 * tex2lyx support for multiple optional argument using \newlyxcommand
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22282 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-23 16:33:01 +00:00
Stefan Schimanski
f85fccef65 * newlyxcommand support as LaTeX feature
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22281 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-23 16:32:00 +00:00
Stefan Schimanski
ec996ed828 * \newlyxcommand support
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22280 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-23 16:31:37 +00:00
Stefan Schimanski
32c8479e5a * perl -e 'while(<>) {sed s/\s+$//; print "$_\n";}' - Xcode's space/tab behaviour sucks
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22278 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-23 01:28:51 +00:00
Stefan Schimanski
e240dbd5a8 * another monster line
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22277 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-23 01:28:24 +00:00
Stefan Schimanski
b2d70163b8 * cosmetic for loops with deep if nestings
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22276 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-23 01:28:03 +00:00
Stefan Schimanski
9eed503019 * tabs are evil... hopefully I fixed all monster lines now
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22275 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-23 01:27:42 +00:00
Stefan Schimanski
83b46c7573 * tabs are evil
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22274 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-23 01:27:18 +00:00
Stefan Schimanski
926befadd8 * tabs are evil
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22273 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-23 01:27:04 +00:00
Stefan Schimanski
3308ebfbf6 * cellDim_ is not needed anymore
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22272 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-23 01:26:46 +00:00
Stefan Schimanski
dfb41a2744 * proper labels under the holes in macro templates during editing
* The labels can easily be changed. In fact the whole layout can easily be changed because it's modular. So nothing is final yet...


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22271 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-23 01:25:51 +00:00
Stefan Schimanski
e5bd44aadc * first tries to make the math macro template more verbose
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22270 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-23 01:24:34 +00:00
Stefan Schimanski
7fa64792f5 * disable "auto" again until that point is discussed on the mailing list
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22269 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-23 00:50:21 +00:00
Stefan Schimanski
f6cc48c156 * correction of comment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22268 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-23 00:49:44 +00:00
Stefan Schimanski
83980d504c * cosmetic
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22267 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-23 00:49:18 +00:00
Stefan Schimanski
fc11e21486 * cosmetic
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22266 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-23 00:48:41 +00:00
Stefan Schimanski
4267ad00cd * math macro toolbar can be made automatic
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22265 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-23 00:47:37 +00:00
Stefan Schimanski
85e37b01b2 * simplify editing logic of math macros by making it purely dynamic
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22260 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-22 14:39:47 +00:00
Stefan Schimanski
9ac321f28f * kerning may depend on the BufferView because the metrics of some insets (e.g. math macros) depend on the cursor position in the view
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22259 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-22 14:39:22 +00:00
Stefan Schimanski
e32c8c5bad * Inset::editing should be const
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22258 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-22 14:38:43 +00:00
Stefan Schimanski
b79bd1fa65 * make isInside const
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22257 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-22 14:38:20 +00:00
Abdelrazak Younes
2b9153b8bc Fix navigation and bookmarks.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22255 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-22 10:19:26 +00:00
Abdelrazak Younes
66627576fb fix for cursor movement from text into mathed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22253 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-22 09:25:59 +00:00
Abdelrazak Younes
3b368687f9 Another fix for cursor movement up with big insets.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22252 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-22 09:10:49 +00:00
Abdelrazak Younes
62799a6707 Some fixes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22251 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-22 09:04:53 +00:00
Enrico Forestieri
51a365d784 Center rows in the gather environment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22250 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-21 23:15:54 +00:00
Abdelrazak Younes
0a55c924d9 * Buffer::filePath(): add a trailing '/' because the original version used support::onlyPath() which keeps the trailing slash.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22249 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-21 21:38:04 +00:00
Stefan Schimanski
dc9081c208 * first support of multiple BufferViews for macros. There are still problems that somehow the dimension caching is mixed among them.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22245 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-21 20:44:37 +00:00
Stefan Schimanski
69d224eb65 * adapt to MacroType
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22244 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-21 20:44:20 +00:00
Stefan Schimanski
992ae20115 * add \protect in front of macro with optional arguments because they are fragile
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22243 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-21 20:43:50 +00:00
Stefan Schimanski
a5005c8c48 * added debugging flag "macros" for math macros
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22242 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-21 20:43:21 +00:00
Stefan Schimanski
36dbec4506 * Lazy MathData to avoid unneeded interpretation of macro definitions
* DocIterator as MacroPosition
* Iterative search for macro in scope until a visible one is found.
This include the ability to resolve macro inside nested text insets.
* Speed up macro lookups by factor 2: only getMacro(name) call, no
further hasMacro(name) call before
* Both way child/master support
* Correct macro scope for multi-paragraph environments
* Correct macro scope for multi-depth-paragraphs
* Buffer::updateMacros made const
* Update macros when loaded (of master and child)
* Do not remove too many braces when unfolding a macro. This could
lead to a data loss because the relationship between arguments of
macros can be mixed up if nested macros are unfold at once.
* Reduce dependencies to MetricsInfo in MathMacro   
* Update macros when needed. Normally it's done just before doing
metrics. But in cases without a brace around some constructs (like
\left(bla\right)) there is some help needed.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22241 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-21 20:42:46 +00:00
Abdelrazak Younes
93289e8fe1 Fix cursor positionning on new buffer.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22238 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-21 20:01:11 +00:00
Richard Heck
a155d8934e Improve size of spaces.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22236 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-21 19:34:13 +00:00
Abdelrazak Younes
7280d67126 More scrolling tweaks.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22233 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-21 13:38:09 +00:00
Abdelrazak Younes
4fe31abd06 Fixed size line scrolling gives a better user experience.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22232 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-21 13:24:57 +00:00
Abdelrazak Younes
f833ad1d2c scrolling tweaks.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22231 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-21 13:03:45 +00:00
Abdelrazak Younes
ddda272512 bug fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22228 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-21 11:22:17 +00:00
Abdelrazak Younes
96d2d6fc50 * LyXFunc::dispatch(): invert BufferView::dispatch() and cursor::dispatch() calling.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22227 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-21 10:42:59 +00:00
Abdelrazak Younes
b8be6be268 Fix LFUN_BUFFER_END
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22226 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-21 10:11:32 +00:00
Abdelrazak Younes
d3980b14a8 code simplification.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22225 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-21 09:45:04 +00:00
Abdelrazak Younes
717db0a59e add comments
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22224 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-21 09:43:23 +00:00
Stefan Schimanski
c7c1db84bd * compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22223 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-21 09:19:19 +00:00
Abdelrazak Younes
2e8fdbb54b rename BufferView::center() to showCursor().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22222 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-21 08:35:43 +00:00
Abdelrazak Younes
7998dfd948 Close to perfect scrolling. Some bugs fixing and behaviour tweaking remains but we are on a much saner ground.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22221 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-21 08:28:18 +00:00
Abdelrazak Younes
cb2538a52e correctly position new paragraph on up and down movement.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22220 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-21 07:16:50 +00:00
Richard Heck
e285d2a7d8 Support for nocite, provided by Bernhard Reiter.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22217 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-20 15:46:14 +00:00
Stefan Schimanski
ec81fcaddb * compile fix for trunk
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22215 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-19 23:03:26 +00:00
Stefan Schimanski
2495f278ba * at least return a valid template on parse error, but:
FIXME: The macro template does not make sense after this.
  The whole parsing should not be in a constructor which
  has no chance to report failure.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22214 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-19 22:57:22 +00:00
Bo Peng
8d7ea1ceaa Add buffer name/path/class to InsetInfo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22213 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-19 18:09:00 +00:00
Abdelrazak Younes
a84b8ca6be Fix PageDown/Up scrolling.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22212 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-19 08:41:16 +00:00
Abdelrazak Younes
65dc5e8337 Fix some scrolling issues.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22211 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-19 07:47:03 +00:00
Bo Peng
837f7f2b6b Use ErrorList to handle encoding error
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22208 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-18 17:51:20 +00:00
Pavel Sanda
3203595258 Add lfun doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22207 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-18 14:04:13 +00:00
Abdelrazak Younes
19787f2d79 * FileName::onlyPath(): use correct method. I need glasses!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22206 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-18 10:34:53 +00:00
Abdelrazak Younes
5df6a11820 Remove unneeded assertion.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22205 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-18 10:14:01 +00:00
Jürgen Spitzmüller
b8513d13e5 Fix bug 2913: "mark-on" broken.
* src/Cursor.cpp (selHandle):
	- handle mark()
* src/Text.cpp (dissolveInset):
	- switch mark off before using selHandle, just in case.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22204 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-18 07:10:55 +00:00
Abdelrazak Younes
1447a7bf98 Now that exceptions are allowed, handle gracefully the case where a Buffer temp directory could not be created. As a bonus, the user will get an informative message.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22196 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-17 18:37:13 +00:00
Jürgen Spitzmüller
8672364e1e * fix bug 4055, overdue patch from Stefan Schimanski:
"The idea of the beforeDispX/Y_ variables in the Cursor is to hold the position
of the cursor on screen before the lyxfunc is dispatched. But to get this the
metrics must be valid. It's updated in Cursor::dispatch before the dispatch
loop.
After inserting/deleting stuff (like when deleting the selected text before
inserting the alpha) the metrics are invalid. But the handler for the alpha
calls Cursor::dispatch after the deletion and hence the crash with your second
patch.

Here is a patch fixing that:

The beforeDispatchXY variable do not belong into the Cursor::dispatch because
Cursor::dispatch is often called "manually" by many handlers to some followup
action. So this logic must go somewhere else where it is sure that is not
updated after the metrics got invalidated."

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22193 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-17 18:13:02 +00:00
Abdelrazak Younes
b07d4d3e60 * FileName::onlyFileName(): use QFileInfo method.
* FileName::onlyPath(): use QFileInfo method.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22192 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-17 17:09:30 +00:00
Abdelrazak Younes
18389fb6ee * FileName::changePermission(): upon Enrico's advice, don't check file writability, relies on ::chmod() returned error.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22190 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-17 16:52:24 +00:00
Jürgen Spitzmüller
5cad12a696 * src/ASpell.cpp:
- implement lyxrc.isp_accept_compound (bug 4408).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22189 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-17 16:51:23 +00:00
Abdelrazak Younes
9439b6e6e0 * get rid of support::absolutePath()
* remove FileName.h inclusion from filetools.h


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22188 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-17 16:04:46 +00:00
Abdelrazak Younes
96ee270933 transfer os::is_absolute_path() to FileName::isAbsolute().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22187 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-17 15:15:37 +00:00
Jürgen Spitzmüller
908a119973 * src/output_latex.{cpp,h}:
* src/Font.cpp:
* src/Paragraph.cpp:
	- simplify switchEncoding.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22184 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-17 10:53:38 +00:00
Jürgen Spitzmüller
e0b5511d74 compile fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22183 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-17 10:51:39 +00:00
Abdelrazak Younes
2f49534d3d Fix network drive access.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22179 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-17 07:50:35 +00:00
Abdelrazak Younes
e7bb71ff4e header cleanup.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22178 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-16 22:09:28 +00:00
Abdelrazak Younes
17b57a48a4 FileName::checksum(): Don't warn if file exists as this happens for all graphics at first document compilation.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22168 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-16 11:53:52 +00:00
Abdelrazak Younes
f2f7ec1a05 Cleanup the mess I introduced in rev 22165. This happened frequently lately, I am very sorry!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22167 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-16 11:46:34 +00:00
Abdelrazak Younes
efbd1d30cb Sanitize the way we use abort() and exit(). With this commit, we should never crash in release mode, even when assertions are enabled. In debug mode, we crash with abort in order to get a useful backtrace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22165 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-16 11:34:29 +00:00
Abdelrazak Younes
c66e214724 Transfer getcwd() implementation to FileName.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22164 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-16 10:18:00 +00:00
Abdelrazak Younes
86506a80eb Simplify FileName::tempName().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22163 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-16 09:52:36 +00:00
Abdelrazak Younes
4020357dd2 Transfer tempName() implementation to FileName.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22161 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-16 07:52:38 +00:00
Abdelrazak Younes
1948c5812c Change semantics of FileName::copyTo(): we now overwrite the target file unconditionally.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22159 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-15 08:25:53 +00:00
Enrico Forestieri
01a0aabb81 Try to remove the destination without first checking for its existence
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22157 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-14 23:47:59 +00:00
Abdelrazak Younes
48d0007f71 Remove unused code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22156 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-14 22:47:39 +00:00
Abdelrazak Younes
0caa103581 * get rid of lyxlib.h:mkdir() and makedir()
* Introduce FileName::createPath()
* Fix file copying in EmbeddedFile.cpp.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22155 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-14 22:43:39 +00:00
Abdelrazak Younes
e01219bb0c Fix wrong test introduced in rev 22150
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22154 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-14 22:35:23 +00:00
Abdelrazak Younes
2ce8ad5e05 Inverse logic wrongly set in rev 22151.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22153 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-14 22:33:15 +00:00
Abdelrazak Younes
486ac10476 Simplify bind directory creation.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22152 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-14 22:27:47 +00:00
Abdelrazak Younes
d81b5c2994 Use FileName::createDirectory() instead of support::mkdir().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22151 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-14 21:13:38 +00:00
Abdelrazak Younes
15c9510db4 Use FileName::createDirectory() instead of support::mkdir().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22150 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-14 18:36:01 +00:00
Abdelrazak Younes
d1574fec83 The rename() function removed in rev had in fact move() functionality. So we replace all uses of renameTo() with the new FileName::moveTo() method.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22149 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-14 18:16:25 +00:00
Abdelrazak Younes
77ac196f64 The original support::copy() was overwriting the target file by default. This commit put the code in line with pre-rev 22119 and 22129.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22148 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-14 15:32:37 +00:00
Jean-Marc Lasgouttes
e1a2703a79 * fix out-of-vector addressing when typesetting UserGuide.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22147 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-14 14:52:52 +00:00
Jean-Marc Lasgouttes
6376641f4e Move part of Buffer::validate into a new method BufferParams::validate.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22146 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-14 14:51:47 +00:00
Uwe Stöhr
90c14f8c12 support for Serbian with Latin letters
- fileformat change

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22143 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-13 23:29:56 +00:00
Uwe Stöhr
397784e853 factory.cpp: fix wrong call of abort() introduced in r22137
(I got:
 factory.cpp(366) : error C2039: 'abort': Is no element of 'lyx::support')

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22140 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-13 22:55:57 +00:00
Peter Kümmel
78caccb1c5 cmake/merge: fix compile, this split conflicts with the others
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22137 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-13 21:57:37 +00:00
Bernhard Roider
ce30b3a667 Correct func_type for LFUN_MATH_INSERT
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22133 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-13 20:18:51 +00:00
Abdelrazak Younes
6d20abb1b1 get rid of lyxlib.h:copy() and rename().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22129 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-13 12:03:55 +00:00
Abdelrazak Younes
ec49fff94d Fix comments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22128 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-13 11:40:41 +00:00
Abdelrazak Younes
4164f547b2 Compil fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22127 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-13 11:25:45 +00:00
Abdelrazak Younes
2e34b2876a get rid of lyxlib.h:chmod.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22126 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-13 11:24:10 +00:00
Abdelrazak Younes
4752cc8d61 compile fix following undo/redo mixup. Sorry again!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22125 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-13 10:59:31 +00:00
Abdelrazak Younes
9302bd119f compile fix following undo/redo mixup. Sorry.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22124 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-13 10:43:29 +00:00
Abdelrazak Younes
4e364577e3 Introduce FileName::changePermission() and fix ConverterCache.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22123 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-13 10:38:31 +00:00
Abdelrazak Younes
c87b197cd8 Fix copy&paste error round 2.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22121 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-13 09:02:58 +00:00
Abdelrazak Younes
456bc6a829 Fix copy&paste error.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22120 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-13 09:01:35 +00:00
Abdelrazak Younes
0186514631 Simplify Movers API and port to FileName.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22119 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-13 08:20:45 +00:00
Abdelrazak Younes
663b5f4417 Fix typo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22118 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-13 08:02:46 +00:00
Abdelrazak Younes
15fe6b3c53 add FileName::renameTo() method.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22117 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-13 07:36:47 +00:00
André Pönitz
f407442b39 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22114 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-12 22:43:37 +00:00
André Pönitz
c6f8a4ade9 LYX_CXX_GLOBAL_CSTD is not really useful anymore
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22113 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-12 21:49:13 +00:00
Enrico Forestieri
c5ee5edd41 Another compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22111 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-12 21:09:51 +00:00
Abdelrazak Younes
ff1843b847 Fix endless loop. This Mover class is fishy...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22110 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-12 20:45:37 +00:00
André Pönitz
ab3459c410 remove a few toutf8 conversion that are done by lyxerr nowadays
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22109 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-12 20:35:55 +00:00
Enrico Forestieri
832d474dab Compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22108 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-12 20:21:09 +00:00
Abdelrazak Younes
717105bfe7 getting rid of more superfluous lyx::support:: statements.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22107 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-12 20:10:20 +00:00
Abdelrazak Younes
7c392af6ea getting rid of superfluous lyx::support:: statements.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22106 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-12 19:57:42 +00:00
Enrico Forestieri
430a2c1adb Restore scons and autotools support for moc files in src/support
taken out in r22101.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22105 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-12 19:37:40 +00:00
Abdelrazak Younes
9abb7db468 getting rid of superfluous std:: statements.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22104 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-12 19:28:07 +00:00
Abdelrazak Younes
b89cc942eb 'using namespace lyx::support' instead of 'using support::xxx'
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22103 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-12 18:57:56 +00:00
Abdelrazak Younes
2040e10f9d use QClipboard::selectionChanged() signal instead of QClipboard::dataChanged().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22102 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-12 18:46:16 +00:00
Enrico Forestieri
d73f28eec1 Revert qprocess code. Revisions reverted: 22026, 22030, 22044, 22048,
22077, 22078, 22079, 22080, 22081.

Sorry Peter, but this was breaking too many things, see discussions
on lyx-devel.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22101 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-12 18:25:53 +00:00
Abdelrazak Younes
d5dcbe169a compil fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22099 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-12 10:53:44 +00:00
Abdelrazak Younes
503a41ad15 Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=4421
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22098 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-12 10:52:23 +00:00
Abdelrazak Younes
9383f4c3c6 'using namespace std' instead of 'using std::xxx'
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22097 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-12 10:16:00 +00:00
André Pönitz
d3c551915f fix LYXERR0 implementation
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22088 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-11 20:28:00 +00:00
Jürgen Spitzmüller
49497a6803 * src/tex2lyx/text.cpp:
- add space between bounding box arguments (bug 4418).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22086 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-11 17:14:01 +00:00
Jürgen Spitzmüller
02ee7dfb74 * src/support/SystemcallPrivate.cpp:
- QProcess::start and ProgressInterface::appendMessage take a Qstring as an argument.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22081 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-11 10:48:48 +00:00
Jürgen Spitzmüller
0c8e63f887 * src/support/SystemcallPrivate{cpp,h}:
- provide some more information about the processes result.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22080 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-11 10:34:53 +00:00
Abdelrazak Younes
a546950935 GuiProgress is not Buffer dependent.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22079 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-11 09:25:57 +00:00
Abdelrazak Younes
b2d28409fe Change GuiProgress identifier and description.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22077 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-11 08:20:30 +00:00
Pavel Sanda
8a393b1f46 Add selection dbg output.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22076 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-11 01:38:40 +00:00
Uwe Stöhr
b2f965270c preamble.cpp: whitespace only
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22074 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-11 00:45:30 +00:00
André Pönitz
cbaca4a129 fix typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22071 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-10 23:14:09 +00:00
André Pönitz
33967822bb do not unnecessarily crash on shutdown...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22070 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-10 22:52:59 +00:00
Pavel Sanda
fceb0d93ba Add comment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22068 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-10 19:50:12 +00:00
Abdelrazak Younes
2732d4cbf4 fix comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22064 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-10 17:53:11 +00:00
Abdelrazak Younes
41681e7185 Add common session handling infrastructure for dialogs.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22061 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-10 13:05:00 +00:00
Jean-Marc Lasgouttes
15601573d2 * src/Buffer.cpp (validate): require "float" when global float placement option
contains 'H'.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22060 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-10 11:43:22 +00:00
Pavel Sanda
2a0d89b8aa Add cleanfiles for monolithic builds.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22056 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-10 00:53:12 +00:00
Pavel Sanda
3afa79f566 Fix compilation error.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22055 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-10 00:11:22 +00:00
Pavel Sanda
01083a520b Fix warning.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22054 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-09 23:58:47 +00:00
Pavel Sanda
4b37042ad5 Fix warning.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22053 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-09 23:55:13 +00:00
Pavel Sanda
75f3f96529 Add some lfun doc.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22052 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-09 23:33:13 +00:00
Abdelrazak Younes
e5bac2fe88 fix copy&paste bug.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22051 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-09 23:16:07 +00:00
Abdelrazak Younes
604c1148ea Factorize general code out of GuiDialog and into the base Dialog class. This is now possible thanks to the moving of Dialog.{cpp,h} to qt4/. Any dialog must inherit QWidget within Qt so it is safe to use Dialog::asQWidget() method (which is similar to dynamic casting).
* GuiDialog now inherits DialogView. GuiDialog is only there to bring the ButtonController archaeological interface; any new dialog should inherit DialogView and any new dock widget should inherit DockView.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22049 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-09 22:35:04 +00:00
Uwe Stöhr
dc9dcc9c1f set encoding from utf8 back to latin1
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22047 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-09 17:47:41 +00:00
Uwe Stöhr
b3cf152185 preamble.cpp: full babel language support for tex2lyx
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22046 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-09 17:42:05 +00:00
Peter Kümmel
c8c44cc3a1 also check for moc files in src/support
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22044 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-09 17:31:25 +00:00
Uwe Stöhr
a11ae22aa3 preamble.cpp: fix whitespace
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22040 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-09 15:26:31 +00:00
Uwe Stöhr
0667412a89 preamble.cpp: code simplification to r21970 suggested by Angus
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22034 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-09 14:14:34 +00:00
Uwe Stöhr
2ea605f85a tex2lyx/text.cpp: support for all quotation marks (bug2703).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22032 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-09 13:40:03 +00:00
Jürgen Spitzmüller
35e4198e47 fix typos.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22030 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-09 11:40:59 +00:00
Abdelrazak Younes
2bdb10271c Fix Drag&Drop. LFUN_FILE_OPEN is not handled by GuiView::dispatch() (yet).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22029 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-09 08:43:08 +00:00
Uwe Stöhr
a1b9eedee8 preamble.cpp: don't add \makeatother twice
\makeatother and \makeatletter are already added by LyX around the user preamble

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22027 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-08 20:49:01 +00:00
Peter Kümmel
3af56311a7 add progress view of system calls
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22026 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-08 20:46:03 +00:00
Abdelrazak Younes
b95a68d476 Revert 22023 and really fix bug 4410 (http://bugzilla.lyx.org/show_bug.cgi?id=4410).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22024 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-08 16:36:56 +00:00
Abdelrazak Younes
eb7c892f84 Fix bug 4410 (http://bugzilla.lyx.org/show_bug.cgi?id=4410).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22023 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-08 16:22:05 +00:00
Abdelrazak Younes
cfc37ecf8e * fix enabling/disabling of LyXErr.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22017 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-08 15:02:34 +00:00
Uwe Stöhr
e71e663b8e preamble.cpp: remove unused code
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22016 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-08 14:58:53 +00:00
Abdelrazak Younes
8cd46dd3c3 No need to update the prefs dialog if it is not visible.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22015 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-08 14:29:29 +00:00
Abdelrazak Younes
db95e2cb85 * Dialog: name_ is const and is ascii.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22014 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-08 14:24:11 +00:00
Abdelrazak Younes
20e21c1818 Fix bug 4413 (http://bugzilla.lyx.org/show_bug.cgi?id=4413)
The problem was that name_ was a const pointer and the pointer pointed to nothing after leaving the ctor.
Andre': <docstring> is included in every dialog anyway via GuiDialog.h -> InsetCommandParams.h -> docstring.h"; so this change won't affect compilation time.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22012 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-08 13:59:32 +00:00
Jürgen Spitzmüller
dc75c0f793 Sanitize CJK support (fix bug 3561, 4349 and 4337):
* src/output_latex.{cpp, h}:
	- Many changes in order to allow CJK in a mulitlingual context.
* src/Paragraph.cpp:
	- Fix file encoding switch and language nesting with CJK.
* src/Buffer.cpp:
	- Move the opening and closing CJK and lanaguage tags to ouput_latex.cpp.
* src/Font.cpp:
	- switchEncoding call now takes runparams as argument.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22011 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-08 11:21:00 +00:00
Peter Kümmel
a30f67ed98 fix wrong tex2lyx hack
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22009 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-08 11:07:43 +00:00
Peter Kümmel
2944cdd82a fix wrong tex2lyx hack
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22008 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-08 10:50:30 +00:00
Stefan Schimanski
51264f1372 * putenv wants a non-const char *
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22006 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-08 00:17:36 +00:00
Abdelrazak Younes
e19ad69e81 New file is placed in current directory by default.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22005 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-07 22:28:03 +00:00
Abdelrazak Younes
2356bc13ee Partly revert r21987 which caused alignment problems.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22004 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-07 21:57:56 +00:00
Abdelrazak Younes
acbb1c9b8c Split LyXFunc::menuNew() into LyXView::newDocument() and buffer_funcs::newUnnamedFile().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22002 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-07 11:57:13 +00:00
Uwe Stöhr
863aebb177 preamble.cpp: handle the (n)german options correctly
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21998 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-06 22:57:15 +00:00
Uwe Stöhr
d81a3617de preamble.cpp: cleanup the list of supported languages
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21997 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-06 22:49:18 +00:00
Uwe Stöhr
8c6ac457ec document my LFUN changes in the past
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21996 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-06 22:38:46 +00:00
Uwe Stöhr
5cbb164e89 preamble.cpp: correct recognition of all cases of font scalings (fix for method introduced in r21970)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21994 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-06 22:09:31 +00:00
Uwe Stöhr
3fa9187e7c preamble.cpp: addition to r21970: ad support for the two possible font options
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21993 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-06 18:58:32 +00:00
Enrico Forestieri
40dd6a1b08 Shutdown LyX server and socket before trying to remove the tempdir,
otherwise it would not be empty and could not be removed.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21992 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-06 18:52:17 +00:00
Enrico Forestieri
5ae6e67a8b Let's actually warn when a directory could not be removed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21991 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-06 16:54:02 +00:00