Commit Graph

18974 Commits

Author SHA1 Message Date
Jean-Marc Lasgouttes
574931dcdb Fix bug #6930: no undo for inset type changing
THis is a consequence of the new AtPoint mechanism. In the old
world, recordUndoInset was called before INSET_MODIFY. I reintroduced
manual recordUndoInset calls in all places that matter. I suspect
that this issue should be revisited later.

Note that recordUndoInset can now take an optional parameter that tells
what inset is concerned. This is useful because the cursor can be
either just inside the inset or in front of it.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36580 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-29 09:47:46 +00:00
Jürgen Spitzmüller
baaceb10c2 * PDFOptions.cpp:
- omit \inputencoding changes with XeTeX/LuaTeX.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36579 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-29 09:03:55 +00:00
Jürgen Spitzmüller
5c02ca57d4 * BufferParams.cpp: use polyglossia only with nonTeXFonts.
Now the UG compiles with XeTeX and tex fonts.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36578 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-29 07:52:58 +00:00
Uwe Stöhr
5524485856 InsetMathSubstack.cpp: fix #2498
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36567 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-29 03:18:02 +00:00
Uwe Stöhr
d80053cda8 GuiTabular.cpp: fix #3517
- disable column alignment and width if there is a LaTeX argument
- use also for the LaTeX argument the editingFinished method (as for all other edit fields in the dialog)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36566 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-29 02:38:29 +00:00
Uwe Stöhr
aa69852341 TabularUi.ui: fix spacing of column width unitCB
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36565 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-29 02:36:25 +00:00
Richard Heck
a61899ffe7 Allow InPreamble to be used with Paragraph-type environments. There is
no reason not to permit this, and using it with PassThru 1 allows for a
very simple Preamble layout-type that acts as ERT for the premable. Of
course, we do have the preamble in Document>Settings, but that allows
the embedding of preamble code in branches.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36562 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-28 22:08:11 +00:00
Jürgen Spitzmüller
3d1226b4f2 * Use the package luainputenc if LuaTeX is used as output format _with_ tex fonts. With this, the UG compiles with LuaTeX if "Unse non-TeX fonts" is not selected.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36559 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-28 17:51:21 +00:00
Jürgen Spitzmüller
7538a23c15 * Buffer.cpp (makeLaTeXFile):
- With XeTeX/LuaTeX and tex fonts, we need to force the encoding to utf8-plain manually.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36558 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-28 17:43:22 +00:00
Georg Baum
c8ec2c0a03 Fix bug #7088
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36557 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-28 17:16:11 +00:00
Georg Baum
c5799b7019 Fix bug #7091 and bug #7094
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36556 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-28 17:02:10 +00:00
Jürgen Spitzmüller
72f24353fa * InsetInclude.cpp:
- if a master is compiled with XeteX or LuaTeX, all children must have plain utf8 encoding
	  (bug #6774).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36554 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-28 14:20:45 +00:00
Jürgen Spitzmüller
e14b6a280d whitespace only.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36553 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-28 13:49:14 +00:00
Georg Baum
e2309ca098 Fix bug #6853 (Short titles ignored when InPreamble is set to 1 in layout file)
The fix includes required arguments and LaTeXParam, too.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36552 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-28 12:27:52 +00:00
Georg Baum
36698a933c Add fixltx2e module which simply loads fixltx2e.sty.
This module can be used instead of \usepackage{fixltx2e} in the preamble
to avoid duplicate definitions of \textsubscript.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36550 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-28 10:46:47 +00:00
Jürgen Spitzmüller
ff20f7ebe9 Allow to use XeTeX and LuaTeX with tex fonts.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36537 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-27 13:43:13 +00:00
Stephan Witt
0ff09a4e49 #7082 add submenu for suggestions only when not empty
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36535 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-27 10:53:27 +00:00
Pavel Sanda
8435660410 This string composition badly fails on some languages since as a translator
you have no clue about the context for the proper grammatical case.

I'm not particularly happy about the fix, but didn't see much better alternatives.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36532 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-27 03:04:56 +00:00
Pavel Sanda
f5ad7f949e Kill leading blankspaces in new strings, its weird to encounter them in .po.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36531 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-27 03:04:53 +00:00
Pavel Sanda
6d40196285 * Doxy. This function was probably meant as something more powerful in the begining.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36529 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-27 00:15:55 +00:00
Richard Heck
4540c4a18e Final batch of BufferParam renaming.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36525 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-26 18:42:53 +00:00
Richard Heck
fc3b06eac8 Rename a bunch of BufferParams to conform to our usual style.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36524 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-26 18:32:29 +00:00
Richard Heck
58978d7bb5 Begin renaming some BufferParams to conform to our usual style.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36523 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-26 18:20:48 +00:00
Richard Heck
ab7a5bc382 Comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36522 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-26 18:09:03 +00:00
Richard Heck
c981018111 Fix bug #2743.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36521 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-26 17:30:45 +00:00
Richard Heck
7f8b868f4a Fix bug #2607.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36520 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-26 17:21:17 +00:00
Georg Baum
e57084c140 fix bug 6698
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36519 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-26 17:14:21 +00:00
Richard Heck
b8b971cdd5 Fix bug #7045.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36518 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-26 17:11:02 +00:00
Richard Heck
c9f9cb88c0 Not sure why I introduced this test at r28378, but it causes pasting to
fail e.g., of URLs in math, since tocString() is called by
Paragraph::asString() to give us the contents of insets. Probably, I was
misled by the name, and the comment in Inset.h. That means, at least,
that this method is misnamed, but it probably means we do the wrong
thing in other cases.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36517 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-26 17:08:40 +00:00
Richard Heck
9a272ec26d We need to do the sanity check here, too, as we do in
Inset::getLayout(). Fixes the crash in bug #7069. My bad.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36515 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-26 16:45:58 +00:00
Richard Heck
a3e8adde24 Remove obsolete comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36513 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-26 16:35:08 +00:00
Jürgen Spitzmüller
2dc2e4770b Implement GUI for LuaTeX. File format change due to the renaming of the \use_xetex buffer param.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36500 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-26 09:42:03 +00:00
Vincent van Ravesteijn
7073502308 Do not overwrite read-only files. We now move the file to the backup directory and write a new file. However, when the file is read-only it now appears as the file is overwritten anyway. Therefore we check wether the file is read-only before moving it.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36499 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-26 04:17:20 +00:00
Vincent van Ravesteijn
3508aaf2db Fix bug #7035: Read-only status and compressed status not set correctly when an autosave or emergency file is loaded, or when the file is been converted by lyx2lyx.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36497 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-26 02:01:04 +00:00
Vincent van Ravesteijn
73a1a11018 Fix bug #7077: Listings validator doesn't recognize 'breakatwhitespace'
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36496 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-26 00:08:07 +00:00
Uwe Stöhr
dc182537b4 InsetTabular.cpp: fine-tune vertical table alignment to get exactly the result of the latex output
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36494 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-25 22:49:05 +00:00
Uwe Stöhr
f11a0d3eaa InsetTabular.cpp: comments
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36493 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-25 22:06:31 +00:00
Vincent van Ravesteijn
f27853ad41 Cosmetics, typos and comments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36492 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-25 16:53:56 +00:00
Vincent van Ravesteijn
3f6e6aff90 Fix also the other occurence of the strange language that was corrected in r36489. Also fix the english.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36491 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-25 14:55:21 +00:00
Pavel Sanda
4d0e8cb5f0 This message looked strange.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36489 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-25 14:37:10 +00:00
Vincent van Ravesteijn
9fe6d655f3 Reuse some code and simplify InsetTabular::cursorPos()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36487 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-25 13:22:04 +00:00
Vincent van Ravesteijn
0fd75fefc4 Fix bug #7059: Display the vertical alignment of tables.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36486 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-25 13:20:56 +00:00
Vincent van Ravesteijn
2b44b0ef4d Move TextMetrics::drawRowSelection to RowPainter::paintSelection(). RowPainter knows about a possible offset in the y-coordinate, while drawSelection uses the cached value. Instead of adding another parameter to TextMetrics::drawRowSelection, we can as weel move it to RowPainter and lose all parameters at all.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36485 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-25 13:16:30 +00:00
Vincent van Ravesteijn
3c5b30a8ea Disentangle InsetTabular::drawSelection and InsetTabular::drawBackground().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36484 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-25 13:08:26 +00:00
Vincent van Ravesteijn
340b1b0473 Comment out code that does nothing. InsetTableCell does not handle drawSelection. Now it raises the impression that this causes the selection of the cells to be painted but that is done somewhere else.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36483 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-25 13:02:30 +00:00
Vincent van Ravesteijn
8279da6e20 Move SCRIPT_CODE to the end to make sure the numbering is still correct.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36482 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-25 13:01:24 +00:00
Vincent van Ravesteijn
40b0f2f6b0 Reorder InsetScript.h and add member groups.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36481 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-25 13:00:31 +00:00
Jürgen Spitzmüller
00ad4d65cb LaTeXFeatures.cpp (useBabel):
- readd accidentally removed parentheses.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36479 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-25 10:31:58 +00:00
Jürgen Spitzmüller
873772d8ab LaTeXFeatures.cpp (usePolyglossia):
- readd accidentally removed parentheses.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36478 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-25 10:30:09 +00:00
Jürgen Spitzmüller
f2e38b021a LaTeXFeatures.cpp (useBabel, usePolyglossia):
- thinko (bug #7074)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36477 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-25 10:25:29 +00:00
Uwe Stöhr
f69929850d InsetMathGrid.cpp: whitespace
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36471 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-25 05:04:38 +00:00
Pavel Sanda
d121ec8037 * doxy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36469 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-25 02:26:05 +00:00
Uwe Stöhr
e16ee11f18 fix #1983 (rest of #4606): add missing \var*** characters (gig Greek math letters)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36465 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-25 01:27:53 +00:00
Pavel Sanda
4c39b9d84e Transition to QTreeView in module list was not finished.
Hide the tree decoration from users now, visually we are back at QListView.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36462 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-25 00:09:49 +00:00
Richard Heck
a81bf77314 Change the escaping mechanism for XHTML output and so allow a fix for
bug #7061.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36455 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-24 15:27:36 +00:00
Richard Heck
f3ff65f4df Fix bug #7066.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36454 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-24 14:45:27 +00:00
Pavel Sanda
d2e13311cd Synchroniza names in lfuns
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36453 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-23 20:35:55 +00:00
Georg Baum
7edd656f21 Fix inserting subscript/superscript with nonempty selection by creating a dedicated lfun:
inset-insert simply swallows the selection, while box-insert, note-insert etc.
put the selection inside the new inset.
As a side effect the toolbar icons get better names, as requested by Uwe.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36451 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-23 20:09:08 +00:00
Jürgen Spitzmüller
1899bf04fa * PreviewLoader: add comment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36449 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-23 16:09:05 +00:00
Jürgen Spitzmüller
2868ff7a52 add basic LuaTeX backend.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36448 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-23 16:07:42 +00:00
Enrico Forestieri
d43cdfa5ef Fix bug #7058 (Crash when invoking CAS on a multiline AMS context)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36447 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-23 15:36:58 +00:00
Jürgen Spitzmüller
79514a3fcd PreviewLoader: use bufferFormat() here, even if this also relies on useXetex.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36446 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-23 13:18:28 +00:00
Jürgen Spitzmüller
fc9c1494ce further xetex disambiguation: use the flavor where the flavor is apt.
This introduces an isFullUnicode() function to OutputParams that currently only contains XETEX, but later can also contain other fully unicode-aware backends (LUATEX for instance).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36445 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-23 12:23:36 +00:00
Jürgen Spitzmüller
d165b5ea51 * Buffer.cpp: correctly set the flavor.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36444 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-23 11:53:27 +00:00
Jürgen Spitzmüller
44aef91ea6 more xetex-disambibuation: here, the flavor really matters.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36443 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-23 11:49:04 +00:00
Jürgen Spitzmüller
fa8dae4201 Try to disambibuate the use of "xetex". Here, we actually require polyglossia.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36442 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-23 11:44:40 +00:00
Jürgen Spitzmüller
0cd51c41a8 * Font.cpp: let's compare the lyx name here. Polyglossia name can be ambigouos (cf. "german" [german] vs. "german" [ngerman]).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36439 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-23 10:18:46 +00:00
Jürgen Spitzmüller
bd3dcea835 * fix bug #7062. How stupid of me!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36438 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-23 09:59:31 +00:00
Jürgen Spitzmüller
7cbeed2e40 * Introduce polyglossia support (bug 6576).
Please test this.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36433 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-22 12:10:16 +00:00
Pavel Sanda
3ffbab3bca typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36432 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-22 11:44:36 +00:00
Abdelrazak Younes
da3d4e681b Fix previous commit: previous_char was not updated at all!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36431 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-22 09:06:36 +00:00
Abdelrazak Younes
90ac66e7d1 Work around bug #6920. This disables ligatures with involving 'f'
character.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36430 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-22 08:57:33 +00:00
Abdelrazak Younes
55f761b6ae whitescape
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36429 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-22 08:35:12 +00:00
Tommaso Cucinotta
5e5122699d Ignore ligature breaks and hyphenations during simple search (fixes #1468).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36427 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-22 07:50:34 +00:00
Georg Baum
d89bde0652 Load mhchem if it is requested unconditionally, fix some typos
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36425 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-21 18:07:04 +00:00
Georg Baum
dea050cb93 fix bug 3008: Add subscript/superscript inset for text
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36424 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-21 17:00:12 +00:00
Tommaso Cucinotta
f8e4f97b67 Finalize macros that are being typed (both in main document WA and in search/replace one), right before starting an advanced search/replace operation.
Fixes #6887.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36423 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-21 15:45:35 +00:00
Uwe Stöhr
934e013505 InsetTabular.cpp: typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36420 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-21 04:45:07 +00:00
Uwe Stöhr
6cbbec8236 InsetTabular.cpp: fix #7055
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36415 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-20 18:59:16 +00:00
Uwe Stöhr
ce2ca9bd7e lyxfind.cpp: squash compiler warnings
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36414 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-20 18:28:28 +00:00
Uwe Stöhr
518dc69f48 HyperlinkUi.ui:
- one link type must be the default (type Web) (as in LyX 1.6.x)
- add spacer as link type radiobox was too wide

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36412 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-20 17:03:51 +00:00
Tommaso Cucinotta
630953e613 Finds formatted matches in the middle of paragraphs, when no regular expressions are involved (fixes #6891).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36411 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-20 15:57:54 +00:00
Jürgen Spitzmüller
7a27ce678d * XeTeX: OldStyleNumbers argument must be specified as \setmainfont option (bug 7041).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36408 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-20 14:53:34 +00:00
Jürgen Spitzmüller
ef79a1fe8a * UI changes in anticipation of polyglossia support:
- rename \language_package to \language_custom_package
     - the bool \language_use_babel is replaced by a more fine-grained selection:
        * chose language package automatically (later: babel or polyglossia)
        * always use babel (also with XeTeX)
        * custom (i.e. use \language_custom_package)
        * none (equivalent to former \language_use_babel false)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36407 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-20 13:34:14 +00:00
Tommaso Cucinotta
df8e614237 Fix update of document buffer on last replace operation.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36405 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-20 11:04:40 +00:00
Tommaso Cucinotta
55641a1a74 Some more debugging stuff.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36404 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-20 11:03:24 +00:00
Uwe Stöhr
08f49bc27a InsetTabular.cpp: correct alignment for multirows:
- if column of multirow has no width, the alignment is that of the column
- otherwise multirows are fix left-aligned

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36403 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-20 07:57:35 +00:00
Uwe Stöhr
9672f432f2 InsetTabular.cpp: really fix #7007 this time
(the onlycolumn flag is not necessary in setAlignment (but in getAlignment) because it is in every case the same as !IsMultiColumn)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36402 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-20 04:53:34 +00:00
Uwe Stöhr
266b87357b InsetTabular.cpp: fix #7007
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36401 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-20 04:19:13 +00:00
Vincent van Ravesteijn
bc05bc2c59 Let LyX compile when there is no session manager.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36399 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-20 01:43:18 +00:00
Richard Heck
ff79d11bb7 Style.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36398 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-19 13:27:51 +00:00
Stephan Witt
44d0829586 back to a version broken for Mac but working on other platforms
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36397 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-19 09:15:25 +00:00
Uwe Stöhr
8b83daaef0 PDFOptions.cpp:
- fix #4078
- fix #7052
- update/clarify a FIXME notice

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36396 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-19 04:21:24 +00:00
Vincent van Ravesteijn
a3c01d2e25 Fix bug #7007: Horizontal table alignment display broken.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36395 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-19 03:31:13 +00:00
Richard Heck
2be835f925 Line length, better grammar.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36391 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-18 23:12:46 +00:00
Vincent van Ravesteijn
2b26246d0d Support the new Indian Rupee currency symbol.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36390 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-18 22:30:28 +00:00
Richard Heck
352db52859 Line length.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36389 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-18 22:19:39 +00:00
Vincent van Ravesteijn
518c8974a6 Add error message when using a Qt compiled with QT_NO_SESSIONMANAGER defined. The error message that QSessionManager is incomplete is not very useful to find out the problem.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36388 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-18 22:14:49 +00:00
Richard Heck
b9e83e76ca Another warning.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36387 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-18 22:02:46 +00:00
Richard Heck
60da156ffd Squash some warnings.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36386 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-18 22:01:54 +00:00
Richard Heck
db5713332a Immediate but dumb partial fix for #7044.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36385 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-18 22:01:34 +00:00
Enrico Forestieri
a1927c00d2 Correctly set the breakline guard.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36381 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-18 21:15:59 +00:00
Pavel Sanda
8fa5778221 typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36380 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-18 21:00:34 +00:00
Vincent van Ravesteijn
7222ce9e31 set eol-style
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36379 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-18 19:50:29 +00:00
Vincent van Ravesteijn
cc84d35ed4 Buffer::saveCheckSum() can be private.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36377 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-18 18:37:17 +00:00
Vincent van Ravesteijn
b3d7a10410 Call Buffer::saveCheckSum() from Buffer::setFileName(). This fixes the bug that if the user wants to overwrite an already existing file, LyX asks whether he want to overwrite the existing file _and_ whether he wants to overwrite an externally modified file.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36376 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-18 17:56:00 +00:00
Vincent van Ravesteijn
1f38406536 Buffer::setFileName() can now be private. The only way to change the filename of a buffer is to save it as a different file using Buffer::saveAs().
Change its parameter type to support::FileName for convenience.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36375 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-18 17:50:33 +00:00
Vincent van Ravesteijn
4e394eb9c5 Remove unnecessary call to Buffer::setFileName. The buffer already knows its name.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36374 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-18 17:35:49 +00:00
Stephan Witt
89f5c437a8 Fix for the spellchecker dialog on OS X and Linux too
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36373 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-18 17:08:17 +00:00
Enrico Forestieri
6e41d3006d Output end of math environments at the beginning of a new line,
as now this should be blank line safe.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36372 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-18 14:20:19 +00:00
Enrico Forestieri
8cd4ef18c8 Make sure that no blank line can (unintentionally) slip in when exporting
math to latex. This also fixes bug #6733.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36371 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-18 14:05:50 +00:00
Stephan Witt
7eff534df7 Fix for the spellchecker dialog on OS X
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36369 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-18 10:41:37 +00:00
Enrico Forestieri
04fb3f0d06 Remove a MathStream and HtmlStream member which is used nowhere.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36368 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-18 09:58:35 +00:00
Enrico Forestieri
4c1d8f5f96 Possible fix for the spellchecker dialog on OS X.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36367 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-18 09:30:20 +00:00
Uwe Stöhr
ff77ea6a63 SpellcheckerUi.ui: set button policy to maximum because the Ignore buttons were much to large, depending on the size of LyX's main window
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36363 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-18 04:32:32 +00:00
Richard Heck
0940cd77d4 Better way of doing these checks, suggested by Enrico.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36356 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-17 22:17:53 +00:00
Richard Heck
d764a97cf4 Hadn't see this empty_docstring() thing before. Very useful.
Add a comment to strfwd.h.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36355 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-17 22:11:33 +00:00
Richard Heck
67a4b590aa We don't generally use "static" this way in the LyX code any more. (Just
a bit of cleanup while studying other things....)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36354 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-17 22:00:42 +00:00
Richard Heck
e54afe6367 Remove redundant code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36353 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-17 21:41:23 +00:00
Richard Heck
01ec30ca86 One more isalpha issue. Original routine also removed too much, I think.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36352 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-17 21:36:03 +00:00
Richard Heck
4bf281106b Be more careful here about isalpha and isalnum. Per Enrico's suggestion,
we first do a range test, then check the status. I think this is right
in both cases.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36351 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-17 21:19:01 +00:00
Richard Heck
897404e34d Simplify more of the tooltips. There will be some speed improvements
here, but not very noticeable, I think, as these ones aren't called by
the addToToc stuff.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36347 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-17 17:25:22 +00:00
Richard Heck
4133f627b2 Simplify some of the tooltip stuff now.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36346 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-17 16:55:58 +00:00
Richard Heck
7d0b98a858 Optimize InsetText::toolTipText() a bit. The old version was doing
plaintext() on the entire inset, even though the tooltip is only going
to show the first few lines. This could make things slow when you had a
lot of branches, because this is called by InsetBranch::addToToc().


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36345 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-17 16:35:37 +00:00
Vincent van Ravesteijn
a7629d2bfc Squeeze warnings on msvc express 2010.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36344 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-17 16:15:01 +00:00
Vincent van Ravesteijn
710b7549ea Remove unneeded include.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36343 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-17 16:14:26 +00:00
Vincent van Ravesteijn
e1398a66d8 Author: more cosmetics. Forgot these in previous commit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36342 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-17 16:13:59 +00:00
Vincent van Ravesteijn
74a3786dc5 Author: cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36341 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-17 16:12:43 +00:00
Richard Heck
13fa0dda1b Fixed bug #7037. Don't need these updateBuffer() calls.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36339 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-17 15:54:51 +00:00
Vincent van Ravesteijn
c1a728d8f1 Buffer::moveAutosaveFile can be private.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36330 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-17 03:47:14 +00:00
Vincent van Ravesteijn
7bf7fabb13 Correct bug number and typo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36329 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-17 03:22:37 +00:00
Vincent van Ravesteijn
c701342593 Reset the autosave timers also for the threaded case. This fixes the bug that autosave doesn't work in beta-1.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36328 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-17 02:27:02 +00:00
Vincent van Ravesteijn
ce0304e6f4 Buffer::getAutosaveFileName() can now be private as it should.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36327 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-17 02:25:12 +00:00
Vincent van Ravesteijn
ae852848fa Let GuiViewPrivate::autosaveAndDestroy use Buffer::autoSave() and remove the now unneeded parameter filename.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36326 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-17 02:23:39 +00:00
Vincent van Ravesteijn
208acbc728 Generalize Buffer::autoSave() for both the threaded as the forked process call. Also move out the resetAutosaveTimers as this is the task of the frontend as the core shouldn't know about any timer.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36325 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-17 02:18:12 +00:00
Vincent van Ravesteijn
a0916d4fef Rename GuiViewPrivate::saveAndDestroy to autosaveAndDestroy (because that's what it actually does according to the return string).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36324 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-17 02:07:54 +00:00
Pavel Sanda
630f72ed6c UI naming synchro.
Actually, I wonder how is this dialog triggered.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36321 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-16 19:39:44 +00:00
Pavel Sanda
29849a143c tooltip
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36320 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-16 19:20:28 +00:00
Richard Heck
b8d207901b Fix crash reported by Enrico. Thinko or something in r35856.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36317 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-16 18:26:21 +00:00
Jürgen Spitzmüller
1aa5a0d1f1 Introduce PolyglossiaName and PolyglossiaOpts.
Not yet functional.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36312 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-16 11:07:43 +00:00
Pavel Sanda
13d63e5ce6 ui tooltip
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36305 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-15 15:50:30 +00:00
Pavel Sanda
058c815515 Fix order of return value
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36299 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-14 23:23:20 +00:00
Vincent van Ravesteijn
ff8ac45920 Compile fix for windows for r36278.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36297 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-14 16:27:08 +00:00
Jürgen Spitzmüller
cc5dd37a2a Introduce a new Language option "AsBabelOptions" that specifies whether a language requires to be passed to babel itself (instead of globally to the class).
This allows us to remove some ugly hardcoding of languages in the source.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36292 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-14 10:35:35 +00:00
Jürgen Spitzmüller
12c7e7dde3 * add PreBabelPreamble to Language definition (fixes #4786).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36291 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-14 09:54:24 +00:00
Pavel Sanda
4c952c612b Clash of accelerators
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36289 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-13 23:28:24 +00:00
Pavel Sanda
b197c99449 This should be fixed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36288 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-13 23:01:30 +00:00
Jürgen Spitzmüller
148f2d648c The languages file rewrite.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36285 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-13 17:25:03 +00:00
Jürgen Spitzmüller
a85ae19bf8 * GuiView: puzzle-constructions like this will make proper translations impossible (and it was not even correct English).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36284 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-13 15:47:42 +00:00
Tommaso Cucinotta
d5eb8c0968 (finishing patch -- question was restored, but there were still problems)
Restore the wrap-around question when no more hits found while searching with Advanced Search.
The dispatched() flag is used currently in FindAndReplace.cpp in order to discriminate between
match found and not found and, in the latter case, pop-up the wrap-around question dialog.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36279 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-13 12:02:04 +00:00
Enrico Forestieri
22ffc93467 The "single instance" patch.
By default, if the lyxpipe is set up and working, loading of documents
is deferred to an already running instance. Note that an already running
instance is only used for loading, such that export from command line
still works as usual.

The default behavior can be changed through a preference setting, and,
whatever the default is, it can be overridden by command line options.
Unticking the "Single instance" check box in the preferences, LyX behaves
exactly as before the introduction of this feature.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36278 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-13 11:55:05 +00:00
Tommaso Cucinotta
112246ae9f Restore the wrap-around question when no more hits found while searching with Advanced Search.
The dispatched() flag is used currently in FindAndReplace.cpp in order to discriminate between
match found and not found and, in the latter case, pop-up the wrap-around question dialog.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36277 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-13 11:35:37 +00:00
Pavel Sanda
0dd3ea40f1 Add accelerators to Line UI
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36274 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-13 01:44:07 +00:00
Pavel Sanda
018029e248 ui glitch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36273 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-13 00:37:43 +00:00
Pavel Sanda
19d0eea9c0 Reintroduce expandMacrosCB, code partially knows it. Sorry.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36272 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-13 00:25:09 +00:00
Pavel Sanda
ae4df32c25 Kill disabled items of advanced search, they won't be implemented any time soon.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36271 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-12 20:55:33 +00:00
Pavel Sanda
71501eb543 Next indices
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36268 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-12 20:15:25 +00:00
Jürgen Spitzmüller
56faf7474c * Author.cpp:
- to_ascii is a bad idea if your name contains two umlauts. 
	  (LyX asserted on my for any document).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36258 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-12 09:41:41 +00:00
Jürgen Spitzmüller
2afa7eabd0 * revert r36189, since there is no consensus for this change.
Happy Friday, everybody!

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36257 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-12 09:31:55 +00:00
Pavel Sanda
87db71a61a Return title back, I was too fast.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36250 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-11 20:06:08 +00:00
Pavel Sanda
4e8e58cc14 Synchro for index strings
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36248 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-11 19:53:21 +00:00
Pavel Sanda
0070191c4e Kill title never used
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36247 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-11 19:49:02 +00:00
Pavel Sanda
7923b74d1d propset eoln
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36246 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-11 19:47:45 +00:00
Pavel Sanda
9ad45aa03d Tooltip string
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36245 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-11 19:09:06 +00:00
Vincent van Ravesteijn
98f07840fc Fix bug #6561: Crash when using Spellchecker's language box when cursor is in math.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36242 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-10 20:06:21 +00:00
Richard Heck
6f76593069 Fix a bug in getFormattedReference().
Also, change from using the "cha" prefix for chapters, a la prettyref,
to the "chap" prefix, a la refstyle. We alias \pr@chap to \pr@cha for
prettyref users.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36238 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-10 16:45:55 +00:00
Enrico Forestieri
91208a2f79 Fix the 100% cpu load problem when previewing with Qt 4.2 and 4.3.
Now it works fine again with those Qt versions.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36235 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-10 15:35:56 +00:00
Enrico Forestieri
74a3fa9cf1 Correct style and squash compiler warnings.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36234 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-10 14:36:35 +00:00
Enrico Forestieri
06e963f73e Fix export for Qt < 4.4.0.
The 100% cpu problem is still there and the culprit turns out to be r35795.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36231 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-10 13:45:33 +00:00
Pavel Sanda
b71e606b94 Standard button label
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36217 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-09 01:54:28 +00:00
Enrico Forestieri
1f6370dfd7 Fix bug #6939 (Using math-insert to input math macros overwrites math expressions)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36216 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-09 00:03:32 +00:00
Richard Heck
1b46ff6989 Refstyle doesn't (yet) provide a default "subsection" reference. Nor,
actually, does prettyref, but we should do something here.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36212 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-08 17:52:43 +00:00
Richard Heck
19aa16756c Fix bug in fallback reference output with refstyle. Based on idea by
Jean-Pierre Chretien.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36211 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-08 17:50:02 +00:00
Peter Kümmel
433f4621cc don't eat a CPU core when using Qt < 4.4 or EXPORT_in_THREAD == 1
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36208 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-08 08:40:12 +00:00
Uwe Stöhr
0a6f607c81 GuiTabular.cpp: workaround fix for #7022
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36207 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-08 04:36:11 +00:00
Peter Kümmel
6513556867 fix linker errors when using Qt 4.2
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36205 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-08 00:37:58 +00:00
Vincent van Ravesteijn
8e7d7e4295 Move the buffer related part from GuiView::renameBuffer to Buffer::saveAs.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36202 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-07 21:26:02 +00:00
Pavel Sanda
a83995b2c6 Squash warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36195 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-07 18:45:26 +00:00
Abdelrazak Younes
7ff3e84c5d Fix assert in all InsetParamsWidget's for unicode characters (bug #7017)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36194 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-07 17:38:39 +00:00
Uwe Stöhr
e94a9732b1 stdinsets.inc, InsetERT.cpp: change "ERT" to "TeX" to be consistent - the documentation and all other menus use consequently since LyX 1.6.0 "TeX-code" because it turned out that ERT is a meaningless abbreviation for new users
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36189 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-07 15:31:05 +00:00
Uwe Stöhr
86b99f8f32 GuiTabular: support for multirow offset; fileformat change
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36182 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-07 05:32:28 +00:00
Uwe Stöhr
930729048f GuiTabular.cpp:
- apply our naming scheme to unit comboboxes
- set default units

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36180 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-07 03:01:26 +00:00
Jean-Marc Lasgouttes
b9b619641b This patch implements proper ERT behaviour for normal layouts.
In particular, it makes paragraph breaks generate single \n in latex output
when ParbreakIsNewline is true

This means that it is not necessary anymore to use newlines to break lines. 
Plain paragraph breaks can be used instead, like is done now in ERT/Listings. 
This is mainly aimed at sweave support.

lyx2lyx support courtesy of Richard Heck



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36163 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-06 15:06:19 +00:00
Pavel Sanda
04e6076ebb Comment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36162 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-06 12:32:47 +00:00
Stephan Witt
2c7a7e72c2 implementation for "Compare with older revision" for CVS, correct return value of SVN::prepareFileRevision for failure to create tmp file
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36161 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-06 12:18:09 +00:00
Stephan Witt
ba00acbd65 check for user cancel or errors on vcs revert before reload of buffer in LFUN_VC_REVERT
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36160 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-06 11:54:08 +00:00
Richard Heck
da1e7e14ce Squash warning.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36159 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-06 03:17:23 +00:00
Enrico Forestieri
79ef98205d Fix bug #7019 (Math labels should not be escaped on saving)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36156 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-06 02:53:29 +00:00
Pavel Sanda
c9332413e5 Quickfix closing #6396.
sleep sleep


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36154 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-06 02:38:35 +00:00
Pavel Sanda
69520456e0 Fix RCS part of #6396. Btw revert is slightly broken now...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36153 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-06 02:21:04 +00:00
Pavel Sanda
0586a14d63 Compil fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36150 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-06 00:34:03 +00:00
Vincent van Ravesteijn
4397cef1f8 src/support/debug.h/cpp:
- rename the private member dt to dt_,
- rename second_ and second_used_ to second_stream and second_enabled_ to have the same terminology as the stream_ and enabled_ member,
- remove FIXME because now we have a Qt pane showing the messages,
- adjust some comments.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36149 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-06 00:22:47 +00:00
Stephan Witt
69dd56d6c4 CVS implementation for buffer-info vcs-author, cvs-date and cvs-time
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36148 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-06 00:20:42 +00:00
Pavel Sanda
badbd3dcc3 Compil fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36147 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-06 00:04:21 +00:00
Vincent van Ravesteijn
38e43ce4ca Clarify comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36146 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-05 21:23:26 +00:00
Vincent van Ravesteijn
afa873dc5f Remove the FileName parameter of Buffer::loadLyXFile and friends. Now, getAutosaveFileNameFor and getEmergencyFileNamefor can be removed too. Last, the call to lyxvc.file_found_hook can now be centralized and can be given the correct parameter (d->filename instead of the name of the emergency/autosave file).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36145 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-05 21:21:01 +00:00
Vincent van Ravesteijn
ab8d87f26a Allow for nested setBusy calls.
Before, LyX could crash when calling setBusy(false) while LyX is still in a busy state due to a surrounding setBusy(true)/setBusy(false) construction.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36140 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-05 20:24:58 +00:00
Vincent van Ravesteijn
f226c9d3fc Fix bug #6058: Change tracking and versioning.
Computes a hash value for the authors when using change tracking.

Text.cpp, BufferParams.h, Author.h:
  Change unsigned int to int because the hash values can be negative.

lyx2lyx:
  Allow to convert negative author_ids.

See also: r30756.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36134 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-05 18:25:29 +00:00
Vincent van Ravesteijn
a4fd294373 Add a static assert to prevent compilation on platforms where int/usigned int are not 32-bits/4-bytes.
This is added to be sure that the to-be-added author hash is always 32-bit.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36126 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-05 16:51:09 +00:00
Vincent van Ravesteijn
2810b7aef7 typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36062 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-04 15:35:12 +00:00