Commit Graph

20096 Commits

Author SHA1 Message Date
Juergen Spitzmueller
7d08836de6 Fixes to the language package call
* Assure that really no language package is called when none is selected.
* Only call global custom package if global is desired.
This is a candidate for branch as well.
2012-07-23 16:24:51 +02:00
Juergen Spitzmueller
d10927c6f2 Suppress babel RTL commands when using polyglossia (part of #8251) 2012-07-23 16:17:43 +02:00
Richard Heck
1a830a6b1c Squash warning. 2012-07-22 10:47:20 -04:00
Richard Heck
ecb65e7038 Fix a long-standing FIXME by resetting only the counter for top-level
sectioning when we see an appendix. This fixes bug #8271, whose root
cause was the fact that we were resetting all the counters inside ERT.

Conflicts:
	src/TextClass.h
2012-07-22 10:44:18 -04:00
Richard Heck
e5b0444bbb Fix crash reported on list when renaming a child buffer and
then trying to compile.

    There are really two problems here. One is that the renamed
    buffer needs to be reloaded. All kinds of files, etc, may not
    exist any more, if we've been saved to a new directory; our
    children e.g. may not be in the right place. And, in this case,
    we may no longer be a child of our old parent. Reloading will
    fix all of that.

    On reload, though, we need to clear our parent, since we may
    not have one any more. It will get reset if need be.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40609 a592a061-630c-0410-9148-cb99ea01b6c8
(cherry picked from commit 9283cbdbcb)
2012-07-21 10:06:44 -04:00
Jean-Marc Lasgouttes
b674c190e7 Make the toolbar code less noisy when the session file is not found
Conflicts:

	src/frontends/qt4/GuiToolbar.cpp
2012-07-19 23:44:43 +02:00
Jean-Marc Lasgouttes
7b93cc5fc4 Make sure that undo is recorded when magic tricks are played with InsetBibitem.
Fixes bug #7111: Assertion with undo and InsetBibitem

  * add Paragraph::brokenBiblio(), with tells whether there is something to fix.
  * rename Paragraph::checkBiblio to fixBiblio; simplify it greatly by using
    InsetList methods
  * In TextMetrics::redoParagraph, call recordUndo before fixBiblio (only when
    there is something to fix obviously)

Special care is taken to update cursor only when it makes sense. Note
that there are cases where undo information is not recorded (current
cursor not in the slice where action happens)
2012-07-18 21:16:45 +02:00
Juergen Spitzmueller
03c9e5a758 Add \makeat switches to babel settings if necessary.
Babel settings might contain @ characters. Check for this and wrap the settings into \makeatletter ... \makeatother switches if necessary (see discussion at #8265).
2012-07-18 17:24:45 +02:00
Richard Heck
4eab9d49a4 Allow LyX format to be shown in View>Source.
Cherry-picked from b7ac2d69e7.
2012-07-11 11:39:07 -04:00
Richard Heck
1e8f537481 Math output flavor was not set when viewing source code.
Cherry-picked from e7877f6fee.
2012-07-11 11:35:12 -04:00
Richard Heck
55fb01c7bb Fix bug #8160 by updating the dtd for MathML.
(cherry picked from commit 5400ae0720)
2012-07-10 18:08:40 -04:00
Uwe Stöhr
08cd5a80ca backport a tex2lyx testfile 2012-07-06 23:55:11 +02:00
Uwe Stöhr
c0ebff8617 tex2lyx: support for syncTeX
backport enhancement bug #8217
2012-07-03 00:21:39 +02:00
Pavel Sanda
7fa9017f0f Another attempt to fix #8203.
Get rid of updateDialogs() altogether as in r39880.
2012-07-01 23:01:18 +02:00
Uwe Stöhr
e516a9f9e5 make tex2lyx in branch compilable again
- Preamble.cpp/:
 - move list definition out of anon namespace
 - declare lists and a function in the class
 - remove ancientgreek since this is LyX 2.1-only

- XeTeX-polyglossia.tex: remove ancientgreek
2012-07-01 01:42:32 +02:00
Uwe Stöhr
87d912dbae tex2lyx: remove LyX 2.1-only languages
Preamble.cpp:
- newzealand and australian are only supported by LyX 2.1
- update a comment
2012-06-30 15:48:18 +02:00
Uwe Stöhr
d75457604f tex2lyx: remove LyX 2.1-only languages
Preamble.cpp:
- newzealand and australian are only supported by LyX 2.1
- update a comment
2012-06-30 15:44:55 +02:00
Uwe Stöhr
6e10237b1d tex2lyx: remove LyX 2.1-only languages
Preamble.cpp: newzealand and australian are only supported by LyX 2.1
2012-06-30 15:42:33 +02:00
Uwe Stöhr
2af09e2e0e backport fix for bug #8215
Font.cpp: CJK parts must not have a closing brace because they are within an environment
2012-06-30 03:48:34 +02:00
Uwe Stöhr
2eb4a46d0b tex2lyx: backport fix for bug #8210 2012-06-30 03:40:40 +02:00
Uwe Stöhr
530c2ca7a3 backport [85ef627e/lyxgit]
- XeTeX-polyglossia.tex: Hebrew is used in the file and so it must be declared
2012-06-30 02:23:17 +02:00
Uwe Stöhr
90d8f3adcb polyglossia tex2lyx support also for branch 2012-06-30 02:18:18 +02:00
Juergen Spitzmueller
8470e31355 fix bug #8209: polyglossia commands ignored partial source preview 2012-06-29 18:37:50 +02:00
Juergen Spitzmueller
622b0f9151 Let getOutputFlavor return the correct flavors for the latex varieties
(cherry picked from commit 4698ebd2b7)

Conflicts:

	src/BufferParams.cpp
2012-06-29 12:24:47 -04:00
Richard Heck
7e4a2ae1e8 Backport fix for #7652, so that we show backends, not formats, in the
View>Source combo.
2012-06-29 11:13:07 -04:00
Jean-Marc Lasgouttes
20f1285821 Fix bug #8159: Undo doesn't restore environment depth correctly
(backported from master)

The idea is to record undo at the place where the document is modified:

1/ in Buffer::updateBuffer, add a recordUndo, with the caveat that a
   const_cast has to be used (because updateBuffer is const but
   modifies the document, go figure).

2/ in GuiApplication::dispatch, add an extra undo group that
   encompasses the updateBuffer call. Some other undo groups may be
   redundant now, but it is not a problem since they do not cost
   anything.
2012-06-29 15:33:02 +02:00
Jean-Marc Lasgouttes
111f15f335 Fix bug #8027: Edit->Paste Special->... does not replace selected text
Delete the selection before all paste-like lfuns. This was previoulsy done
only for LFUN_PASTE, the others at best unset the selection.
2012-06-29 15:18:20 +02:00
Pavel Sanda
a31a9d9ba5 Fix #8203: remove window updating optimization leading to various crashes.
This is already fixed in trunk.
2012-06-28 21:03:14 +02:00
Juergen Spitzmueller
e4b5af90b9 do not output empty language switch commands (bug #8216, the actual fix) 2012-06-28 16:52:13 +02:00
Uwe Stöhr
371d2dd461 XeTeX-polyglossia.tex: partly ported from trunk: simplifications, added some more testcases 2012-06-23 04:33:36 +02:00
Uwe Stöhr
b835e6e03b tex2lyx/table.cpp: fix bug #8204 also for branch (prevent crash if TeX files define wrong table column numbers) 2012-06-23 01:13:43 +02:00
Uwe Stöhr
5d0d73e8a1 XeTeX-polyglossia.tex: porting from trunk with testcases for features available in branch 2012-06-22 15:43:37 +02:00
Jean-Marc Lasgouttes
fb80ce20ca Handle sending a FuncRequest object to lyxerr
* Implement the corresponding operator<<

  * Use it in a couple new places
2012-06-22 10:45:46 +02:00
Pavel Sanda
ef173f22a5 Backport 35e4c1c9a6. 2012-06-14 15:57:44 +02:00
Juergen Spitzmueller
54ac0bb970 Restore default output format after tex fonts switch (#8191) 2012-06-08 20:24:09 +02:00
Uwe Stöhr
d6835864c8 Preamble.cpp: whitespace only 2012-06-08 00:56:05 +02:00
Jean-Marc Lasgouttes
18c887f2db Fix bug #7956: Assertion When Trying to Paste Into Table
For some unknown reason, the paste code likes to call Cursor::setSelection(), which is not appropriate here since we are not trying to set a selection at this point.
2012-06-05 11:36:45 +02:00
Juergen Spitzmueller
9df0a930d4 Add missing undo recording.
This adds a change of the printindex type (with multiple indices) to the undo stack and marks the buffer dirty on that action (bug #8182)
2012-06-04 19:13:31 +02:00
Pavel Sanda
99ada23d97 Backport f6921819. 2012-05-31 14:02:40 +02:00
Juergen Spitzmueller
026f53f41c Fix crash when removing last converter (bug 8178) 2012-05-29 15:40:07 +02:00
Juergen Spitzmueller
daf44909c0 Load bibtopic after hyperref (bug #8005) 2012-05-29 13:23:08 +02:00
Richard Heck
7740226c9f A few more small optimizations noted along the way.
(cherry picked from commit c1e3d795f6)

Conflicts:

	src/tex2lyx/text.cpp
2012-05-28 18:22:50 -04:00
Jean-Marc Lasgouttes
3a09afa985 Backport "Performance" fixes suggested by cppcheck.
These are completely safe, and it seems best to me to keep trunk
and branch in sync whenever possible, as it makes backporting
easier.

(cherry picked from commit a756403301)

Conflicts:

	src/BufferParams.cpp
	src/tex2lyx/Preamble.cpp
	src/tex2lyx/text.cpp
2012-05-28 18:14:15 -04:00
Vincent van Ravesteijn
dacab5cf7b Fix bug #8166: Crash on clicking away from empty last paragraph
We always have to call 'notifyCursorLeaves', but we only have to make sure
that we call the 'fixIfBroken()' functions first.
(cherry picked from commit d20cb73b87)
2012-05-23 08:16:03 +02:00
Lars Gullik Bjønnes
d581412353 TextMetrics.cpp: comment out addressBreakPoint function
Only user of this function is code that has been commented out, comment
out this function as well.

Signed-off-by: Lars Gullik Bjønnes <larsbj@gullik.org>
(cherry picked from commit fb3ecca01c)
2012-05-20 20:41:42 +02:00
Juergen Spitzmueller
993fa89009 If a file is saved as, reset its master if it has any, thus preventing a crash (bug 8161) 2012-05-19 14:03:50 +02:00
Vincent van Ravesteijn
7dfca01f48 Allow an unnamed buffer to be saved with the same name
The check whether fname != oldname does not work for unnamed buffers.
Therefore, we check explicitly whether the Buffer that already exists with
the same name isn't really the buffer we are trying to save.
(cherry picked from commit 30475664d3)
2012-05-14 15:43:24 +02:00
Vincent van Ravesteijn
d475caf278 Fix bug #7641: Freeze when removing itemized first paragraph
Text::outerFont looks recursively for paragraphs before the current one
which has a lower depth. If such a paragraph cannot be found, depthHook
and outerHook return the current paragraph. As such, we end up in an
infinite loop. So, if we find a par_depth that was the same as the
previous one, we apparently can't find a suitable paragraph and we should
quit the loop.
(cherry picked from commit b17250d7eb)
2012-05-14 15:09:21 +02:00
Enrico Forestieri
3a3f6c838c Backport fix for bug #7982: LyX does not work if working directory a
hard disk drive like D:\.

In this case, the working dir has already a slash at the end.
Appending another one would result in a path ending with a double slash,
which has a special meaning when used in TEXINPUTS (all subdirs would
be recursively scanned). So, avoid doing that.

(cherry picked from commit 93ebb7a863)
2012-05-14 08:56:35 -04:00
Vincent van Ravesteijn
86d8e5cfc5 Fix bug #8152: Uneditable long rows for 'Right addresses'
As long as leftMargin() is not correctly implemented for
MARGIN_RIGHT_ADDRESS_BOX, we should also not do this here. Otherwise, long
rows will be painted off the screen and will not be editable.
(cherry picked from commit 92ac678715)
2012-05-13 20:51:37 +02:00
Vincent van Ravesteijn
c9cbd538b8 New function BufferList::newInternalBuffer
This solves the problem that newBuffer() already use Buffer::isInternal
but there was no chance to set it yet.

(cherry picked from commit 6cf1847b31)
2012-05-13 20:50:57 +02:00
Richard Heck
3192dc16a9 Fix bug #8156.
We want the key as id, not the label (which is optional).
We also need a kind of namespace for the citation ids.
We should also clean the id tag before using it.

(cherry picked from commit 207d7e4ada)
2012-05-13 14:02:10 -04:00
Georg Baum
30219ffc37 Forgot the test case for bug #8116. 2012-05-13 19:42:53 +02:00
Georg Baum
72023030d9 Fix bug #8116.
The string we parse as name may contain backslashes if \csname ... \endcsname
is used. Therefore we have to output it using asInput() instead of cs().
2012-05-13 19:42:41 +02:00
Jean-Marc Lasgouttes
dbcfbe5b76 In replaceSelectionWithString, do not select the new string
This is a patch from Scott Kostyshak. The problem it solves is as follows:

1. enable continuous spell check.
2. type a misspelled word and press space so that it has a wavy red underline.
3. right-click and choose a suggested replacement word.
4. press the backspace button.

Result: nothing happens. If you press the backspace button again, then it works as normal.

The selection code was added for the benefit of the spellchecker, but the code has been rewritten since then.
2012-05-11 17:37:41 +02:00
Richard Heck
57e5eba4c1 Backport fix for bug #8087: Include children in plaintext export.
(cherry picked from commit 98a810c9d8)

Forgot the return value.
(cherry picked from commit 0459c43769)
2012-05-10 16:10:22 -04:00
Vincent van Ravesteijn
b59496c70d Properly mark a buffer as internal
Checking the extension of the temporary filename doesn't work anymore
since the naming of temporary files was corrected.

(cherry picked from commit 5279d5a8a5)
2012-05-06 23:12:49 +02:00
Vincent van Ravesteijn
17c6bb42e5 Factor out painting of text decorations
(cherry picked from commit 53b75399e7)
2012-05-06 17:55:20 +02:00
Vincent van Ravesteijn
cf27d693d8 Fix bug #953: Paint text decorations for spaces
(cherry picked from commit c671703f05)
2012-05-06 17:23:23 +02:00
Vincent van Ravesteijn
abce7966e6 Fix bug #5167: Correctly paint special characters in InsetMathFont
When using, e.g., a 'mathcal' inset in math, the inline completion and
other special characters like '\#', '{..}' are are painted in the
'mathcal' font as well. This is overcome by setting the mathnormal font
before painted these characters.

(cherry picked from commit 6377296492)
2012-05-06 17:23:21 +02:00
Vincent van Ravesteijn
58946a2996 Always require a mask to get a temporary filename
If no mask is supplied or the mask is attached to the end of the filename, we end up with unexpected names like
  <system-temp-dir>\lyx_tmpdir.qHp780.vcr780_<mask>
instead of a temporary file in the lyx temporary directory like
  <system-temp-dir>\lyx_tmpdir.qHp780\<mask>.vcr780.

(cherry picked from commit 5e4e4b674c)
2012-05-06 17:23:20 +02:00
Georg Baum
1be371baae Fix bug #8104 (\date argument was eaten)
I introduced this bug in r40091 where support for empty dates was added.
I also noticed that the title_layout_found flag was not properly passed down
to all variants of parse_text*. Since this is rather a global variable I
placed it into the preamble class.

The test case of bug #8104 shows other problems as well, but those are no
regressions and will be fixed separately.

OK for branch?
2012-05-06 12:42:11 +02:00
Richard Heck
264948348e Fix bug 8124. We enable LFUN_INSET_MODIFY in InsetBox if it
is intended for us, i.e., if the first argument is "box". Maybe we
should also check to make sure that the rest of the arguments are
good, but we used just to return true no matter what the argument
was, so this is an improvement.

LFUN_INSET_MODIFY is really kind of a mess.
2012-05-02 17:43:18 -04:00
Vincent van Ravesteijn
3a53a52b1c Fix bug #7914: Freeze on docbook export of lists and bibliography
The LATEX_LIST_ENVIRONMENT and LATEX_BIB_ENVIRONMENT type paragraphs are
not yet implemented in DocBook export. However, we need to actively skip
these paragraphs in order not to end up in an endless loop.

(cherry picked from commit fa9bd04ea4)
2012-05-02 18:27:13 +02:00
Vincent van Ravesteijn
2e771bf78d Fix bug #8089: Handle spaces at the end of the stream
If the stream is good (i.e. there are still tokens) and we expect an
argument, we call getArg(). However, if there are only spaces, the stream
suddenly isn't good anymore after 'skipSpaces' and we would get an error
when calling 'getChar'. Therefore we have to check whether the stream is
still good.

MathParser: Do not rewind the stream if we can't read from it

If the stream is not good, we don't need to 'putback', because we didn't
read anything yet. If we now do rewind the stream, we are asking for
problems as in bug #8089.

This was introduced in [3cafb856\lyxgit] to fix bug #4318.

(cherry picked from commit 26dcfcd343)
(cherry picked from commit 1ef930c058)
2012-05-02 18:24:24 +02:00
Vincent van Ravesteijn
39f06f37c3 Fix bug #7518: Assert when selecting in RTL text
If we are in rtl text, we *need* to check whether the first character is a
space. We can't use the rtl variable for this because this is only
computed on the last row.

This bug was introduced in [0a137e31/lyxgit] to fix the computation for
freespacing paragraphs. We better can just check whether the paragraph is
freespacing or not.

(cherry picked from commit d7f68078cf)
2012-05-01 11:45:58 +02:00
Vincent van Ravesteijn
0665673d03 Fix bug #8078: Assertions in xhtml output on Windows
(cherry picked from commit 3c0e3c16c8)
2012-05-01 11:42:52 +02:00
Enrico Forestieri
124bc762a7 Fix bug #8140: Crash with math macros and input completion
When clicking away in the same math inset after hitting '\', the
cursor may be broken and all of its instances have to be fixed.

(cherry picked from commit 9825621798)
2012-05-01 01:01:03 +02:00
Vincent van Ravesteijn
013dc6cb3a Fix bug #7653: Quotation marks have wrong color
Quotation marks had the wrong color when using change tracking, or when
selecting.

(cherry picked from commit 14ef7d2b82)
2012-04-29 17:00:14 +02:00
Vincent van Ravesteijn
d4238397b9 Fix bug #7667: Pixmap cache and CT lead to random colors
The signature of the character in cache should take into account the
change tracking baseColor (author) and mergeColor (added/deleted). If not,
we will mixup different cached pixmaps.

(cherry picked from commit 6327993867)
2012-04-29 17:00:13 +02:00
Vincent van Ravesteijn
a102ba7564 Reset the (running) change in PainterInfo
When an InsetText is deleted, all lines in the inset are painted as
deleted. This status should be restored afterwards. If not, insets will be
painted in the wrong color afterwards (e.g. tables).

(cherry picked from commit af4e31ec28)
2012-04-29 17:00:12 +02:00
Vincent van Ravesteijn
76bff4cc04 BufferView::dispatch(): add a missing break
(cherry picked from commit 3a395ca0f5)
2012-04-29 17:00:11 +02:00
Vincent van Ravesteijn
921445239a Do not show deleted text in the html title
(cherry picked from commit 77c8c15947)
2012-04-29 17:00:10 +02:00
Enrico Forestieri
7a605c4535 Fix bug #8139 and a thinko in [737e9b2c/lyxgit].
No status.20x entry needed, as this should have been part
of [3285ce1d5/lygit].

(cherry picked from commit 66a95b9c1b)
2012-04-26 17:20:23 +02:00
Pavel Sanda
7cea9372d5 Backport 217ef5bf3 (#81380 2012-04-26 14:19:05 +02:00
Pavel Sanda
ca0434c0df Attempt to fix #8137 (arrived at r40862).
1) Revert to designer compilable by older Qt's
2) Remove spacer in right part of dialog
3) Decrease height.
Richard, please check.
2012-04-24 01:32:45 +02:00
Richard Heck
ddee4f872b Don't output extra body tags with included files. 2012-04-23 14:14:01 -04:00
Richard Heck
650ab1783a Use InsetLayout to style the XHTML output.
Note that we have also changed the layout name to uppercase, but
this should be fine, since it was so far unused.

Conflicts:

	src/insets/InsetScript.cpp
2012-04-17 09:28:28 -04:00
Enrico Forestieri
482355e7b4 Fix bugs #6871 and #8119.
Both bugs above were due to a missing screen update. This patch
updates the current view after dispatching a lyxserver command
and thus solves both.

The patch is quite strightforward and the only difficulty was due
to the fact that the lyxserver needs the result of the dispatched
command. Now, GuiApplication::dispatch(FuncRequest const &)
does update the view, but does not return any result, while
GuiApplication::dispatch(FuncRequest const &, DispatchResult &),
which is also called by the former, does not update the view.
So, I split the first one, isolating the code performing the update,
such that the second one can also update the current view when
the caller is the lyx server. When the action is initiated by
anything different from the lyx server, the behavior is unchanged.

(cherry picked from commit ea31541848)
2012-04-16 00:19:22 +02:00
Enrico Forestieri
fe47997587 Fix bug #8105: Crash when deleting math macro from the inside
It seems that parameterless macros are not wrapped into a MathAtom.
Rather than touching the macro code (which is tantamount to opening
a can of worms, IMHO), I prefer this solution.

(cherry picked from commit d07f9eec20)
2012-04-15 23:59:18 +02:00
Pavel Sanda
e67f402cec Compile fix 2012-04-11 21:11:06 +02:00
Enrico Forestieri
99fe8ef2ba Use the right latex backend when a converter needs aux files.
If a converter specifies the needaux flag, latex (or xelatex) is
always run to produce the needed auxiliary files. This is wrong
because there are documents that can only be compiled with a specific
backend and thus the conversion may fail. On the other hand, even if
the document specifies the backend to be used, LyX ignores this info.

This commit rectifies this behavior by letting LyX run the same flavor
of the latex backend that shall be used for previewing the document
also for producing the auxiliary files.

(cherry picked from commit 3285ce1d5c)

Conflicts:

	src/Converter.cpp
2012-04-11 20:32:27 +02:00
Peter Kümmel
229fa2cd88 clang: std::string is used here, fwd is not enough
(cherry picked from commit f41057cae6)
2012-04-09 15:17:17 +02:00
Vincent van Ravesteijn
036e0c2abd Fix bug #8114: LyX does not retrieve negative bbox parameters
LyX fails to read the bounding box from an EPS file if it has
negative values. Adjusting the regex will overcome this problem.
Negative values do not pose big problems later on, but the GUI
doesn't handle it correctly yet (see bug #5718).

(cherry picked from commit f0754582b8)
2012-04-09 15:17:07 +02:00
Vincent van Ravesteijn
a6399dcd84 Fix a copy-paste error introduced in b754fb02
(cherry picked from commit 91bc04946f)
2012-04-08 23:33:29 +02:00
Richard Heck
25246819de Backport the following from trunk:
29cf7af6d3
		8dd436b7dc
		7c5f28ad26
This fixes issues with empty paragraphs in XHTML output.
2012-04-08 10:20:11 -04:00
Richard Heck
b82a856a32 Make index comparisons for XHTML output case insensitive. 2012-04-03 17:57:01 -04:00
Richard Heck
8558d84d4d Clear local layout before reading BufferParams. Otherwise, you can't
delete the local layout.
2012-04-03 15:58:06 -04:00
Richard Heck
6b5e8b3e83 Sorry, I didn't mean to include this change from trunk.
That said, Julien, if you see this, is that something we
should think about backporting?
2012-04-01 18:32:10 -04:00
Richard Heck
858ccc413f Backport fix for bug #8107. We need to invalidate the file
cache, not just the BibInfo cache, when we create a new BibTeX
inset.

Conflicts:

	src/insets/InsetBibtex.cpp
2012-04-01 18:28:55 -04:00
Jean-Marc Lasgouttes
f98bb89227 Better support for (Lua|Xe)TeX files in tex2lyx
When one of the packages specific to these engines are used in the TeX file:
* set default encoding to utf-8
* set \use_non_tex_fonts to true

This is a hand-made backport of svn commit r40765.
2012-03-26 16:10:31 +02:00
Vincent van Ravesteijn
c32c85c140 Fix monolithic build (bug #8079) 2012-03-24 15:33:34 +01:00
Vincent van Ravesteijn
87d97322ef Fix more possible crashes due to asInsetRef()
InsetMathHull has no method asInsetRef() and returns therefore 0.

See also 5bd68605.
2012-03-24 11:12:42 +01:00
Richard Heck
5bd68605df Backport fix for bug #8095.
The crash was due to the otherwise innocent looking 07924ac300. The cast
Vincent replaced was already wrong---it seems to have been a thinko in
7bbd67eb2679---but it worked kind of by accident before. Now it crashes.
2012-03-23 14:43:41 -04:00
Lars Gullik Bjønnes
862060f041 Setup .gitignore for generated files, now for branch. 2012-03-23 14:14:34 -04:00
Uwe Stöhr
5a2447ceda GuiTabular.cpp, InsetTabular.cpp: remaining issues I forgot in previous commit 2012-03-21 22:38:02 +01:00
Uwe Stöhr
6f5ea2ae47 GuiTabular.cpp: fix bug #8092 also for branch 2012-03-21 21:50:34 +01:00
Vincent van Ravesteijn
cddd90dfdf Fix bug #8083: Fix the selection of cells below multirows
Multirows were introduced in 8bb69f24 (Uwe Stoehr, 11 Feb 2010). In the
computation of the nearest cell, it was forgotten to account for the
vertical offset. tabular.cellHeight is the full height of the cell, while
the point that comes from the coordCache is offsetted by VOffset.
Therefore, we have to subtract the VOffset from o.y_.
2012-03-19 19:29:37 +01:00
Vincent van Ravesteijn
b754fb0253 Clear the error list from previous errors
We only copied the error list to the cloned buffer when makeLatexfile
failed. This means that a second try will never clear the error list and
the user will be presented the same list again.

Therefore, we unconditionally copy the error list such that we also clear
the list on success.
2012-03-19 19:29:36 +01:00
Juergen Spitzmueller
f50edc8673 Fix bug #8069: View/Update other formats button disabled with non-TeX fonts 2012-03-16 15:53:45 +01:00
Uwe Stöhr
7d200f302d GuiTabular.cpp: fix bug #8084 2012-03-15 02:29:47 +01:00
Uwe Stöhr
1b62b21fcc port from master: - test/test-insets.tex 2012-03-15 02:16:16 +01:00
Enrico Forestieri
92c92effa4 First timeout after 3 mins, not 30.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40882 a592a061-630c-0410-9148-cb99ea01b6c8
2012-03-07 00:34:32 +00:00
Enrico Forestieri
b067c04309 Fix bug #8032 (timeout when using the Sweave module)
After the timeout elapses, the user is notified that a command is taking
a long time to complete and is given the choice to stop it. If the user
decides to let the command run, the timeout is increased, otherwise the
command is killed. One is prompted a first time after 3 mins, a second
time after 9 mins, a third time after 27 mins, and so on, i.e., the n-th
prompt occurs after 3^n minutes.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40881 a592a061-630c-0410-9148-cb99ea01b6c8
2012-03-07 00:26:17 +00:00
Pavel Sanda
8bdd1082fa Squash warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40880 a592a061-630c-0410-9148-cb99ea01b6c8
2012-03-07 00:05:46 +00:00
Enrico Forestieri
b7cc97e2d0 Since version 1.9 SumatraPDF supports forward search without DDE commands.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40879 a592a061-630c-0410-9148-cb99ea01b6c8
2012-03-06 23:30:23 +00:00
Richard Heck
dc7fd33b84 Backport JMarc's fix for bug #6367.
* Undo.cpp:
 - rename cur member of UndoElement to cur_before
 - add new member cur_after, which is set by Undo::endUndoGroup
 - create a new Undo::endUndoGroup variant that takes a Cursor as parameter. We cannot get rid of the old one because it is used for LFUN_COMMAND_SEQUENCE.
* Cursor.cpp:
 - use endUndoGroup(Dociterator const &) for dispatch
 - update Cursor::endUndoGroup to pass cursor.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40876 a592a061-630c-0410-9148-cb99ea01b6c8
2012-03-06 23:12:36 +00:00
Richard Heck
8d3e242755 Backport fix for #7997.
The View->Source pane resets the format every time you click into
a new paragraph, which is very annoying. This commit fixes this bug.

If anyone has a better idea, please let me know. I posted to devel
about it but got no response.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40864 a592a061-630c-0410-9148-cb99ea01b6c8
2012-03-05 22:51:53 +00:00
Richard Heck
922726faae Backport fix for #7916.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40863 a592a061-630c-0410-9148-cb99ea01b6c8
2012-03-05 22:38:21 +00:00
Richard Heck
1b74e82b9c Add option to view only preamble when viewing source.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40862 a592a061-630c-0410-9148-cb99ea01b6c8
2012-03-05 22:36:27 +00:00
Richard Heck
ec5a0965d3 Backport fix for #7787.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40861 a592a061-630c-0410-9148-cb99ea01b6c8
2012-03-05 22:30:19 +00:00
Uwe Stöhr
874e1b5299 tex2lyx/text.cpp: some whitespace fixes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40851 a592a061-630c-0410-9148-cb99ea01b6c8
2012-03-04 13:48:49 +00:00
Vincent van Ravesteijn
436ab3a2c2 branch: Fix handling of the add branch textfield in GuiBranches
- Enter in the textfield adds the branch,
- Make sure the dialog is not closed when pressing enter, 
- Pressing Ctrl+Enter or the Enter on the numpad closes the dialog.

Patch based on a patch from Scott Kostyshak.

see r40839.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40847 a592a061-630c-0410-9148-cb99ea01b6c8
2012-03-03 15:55:00 +00:00
Vincent van Ravesteijn
9a5c01acb8 branch: GuiCitation: Do not allow to add entries by pressing Enter when the Add button is disabled.
see r40835.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40846 a592a061-630c-0410-9148-cb99ea01b6c8
2012-03-03 15:52:21 +00:00
Jürgen Spitzmüller
d2b87f4706 Work around qt bug that prevents the glyph LATIN CAPITAL LETTER SHARP S from being pasted (bug #8057).
Backport of r40829.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40831 a592a061-630c-0410-9148-cb99ea01b6c8
2012-03-02 14:59:53 +00:00
Georg Baum
3655600dce backport r40826.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40827 a592a061-630c-0410-9148-cb99ea01b6c8
2012-03-01 20:39:46 +00:00
Pavel Sanda
435dce17c0 Backport graphics tooltip
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40812 a592a061-630c-0410-9148-cb99ea01b6c8
2012-02-29 18:54:26 +00:00
Georg Baum
4b77821d96 backport r40804
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40806 a592a061-630c-0410-9148-cb99ea01b6c8
2012-02-28 20:46:20 +00:00
Enrico Forestieri
6a9c9f620b Call lyxpak.py using the original (not mangled) document file name.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40774 a592a061-630c-0410-9148-cb99ea01b6c8
2012-02-18 14:00:41 +00:00
Jean-Marc Lasgouttes
b0721c5c2f backport 40700
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40704 a592a061-630c-0410-9148-cb99ea01b6c8
2012-02-02 22:39:26 +00:00
Jürgen Spitzmüller
29f9a3094b Fix bug #8013: updateDefaultFormat() checks the osFontsCB state, so the fonts UI needs to be set in advance of the output UI.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40696 a592a061-630c-0410-9148-cb99ea01b6c8
2012-02-01 06:33:51 +00:00
Vincent van Ravesteijn
8016aebdf1 branch: Fix bug #7644: Crash when copying table column or row
see r40656.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40683 a592a061-630c-0410-9148-cb99ea01b6c8
2012-01-27 21:44:30 +00:00
Stephan Witt
7391a872ca #7789 correct buffer statistics when change tracking is on; LyX incorrectly counts the words in deleted notes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40673 a592a061-630c-0410-9148-cb99ea01b6c8
2012-01-24 06:20:25 +00:00
Georg Baum
9c3c9806a9 Backport fix for bug #5906
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40654 a592a061-630c-0410-9148-cb99ea01b6c8
2012-01-22 20:00:19 +00:00
Vincent van Ravesteijn
17370a9462 branch: Fix bug #7755: Unknown tabular feature "from-dialog"
"from-dialog" is added to the LFUN_INSET_MODIFY function when it is issued from the table settings dialog. This is done to prevent the checking of the individual parameters, because it has to consider all parameters alltogether. Besides, when issued from the dialog it is already guaranteed that the parameters are valid.

This parameter should not be passed onto tabularfeatures.

see r40376.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40653 a592a061-630c-0410-9148-cb99ea01b6c8
2012-01-22 15:31:44 +00:00
Richard Heck
441e7f6c03 Backport Vincent's fix for #7004.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40652 a592a061-630c-0410-9148-cb99ea01b6c8
2012-01-22 14:37:13 +00:00
Richard Heck
88fe65bf0c Backport Tommaso's fix for #7410: Weird stale selection leads
to assertion after replace all.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40651 a592a061-630c-0410-9148-cb99ea01b6c8
2012-01-22 14:23:43 +00:00
Georg Baum
4158734a2e Backport partial fix for bug #7811
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40645 a592a061-630c-0410-9148-cb99ea01b6c8
2012-01-22 10:34:07 +00:00
Jürgen Spitzmüller
9cb532913b Fix crash when putting a float around multiple display maths (bug #7974).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40644 a592a061-630c-0410-9148-cb99ea01b6c8
2012-01-21 17:16:56 +00:00
Jürgen Spitzmüller
8fe2cecbdb Fix crash due to the attempt to access paragraph() from within mathed while doing forward-search (bug #7992).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40638 a592a061-630c-0410-9148-cb99ea01b6c8
2012-01-20 13:08:33 +00:00
Jürgen Spitzmüller
25746dc622 Do not load font packages with encoding "utf8-plain" (bug #7766, #7782).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40637 a592a061-630c-0410-9148-cb99ea01b6c8
2012-01-20 13:02:19 +00:00
Georg Baum
902608c331 backport fix for bug #7973
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40631 a592a061-630c-0410-9148-cb99ea01b6c8
2012-01-19 20:21:53 +00:00
Richard Heck
885084fea8 If we don't have a tooltip in the TOC, then use the display string
as the tooltip. This isn't redundant, since the TOC itself might
truncate the display string.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40628 a592a061-630c-0410-9148-cb99ea01b6c8
2012-01-16 15:13:26 +00:00
Richard Heck
af5938cb6c Fix bug #7774. It should be fine to show the complete index entry
in the TOC, as these generally aren't that long.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40627 a592a061-630c-0410-9148-cb99ea01b6c8
2012-01-16 15:08:55 +00:00
Enrico Forestieri
7149006dca Properly account for output redirection with QProcess.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40620 a592a061-630c-0410-9148-cb99ea01b6c8
2012-01-16 00:36:13 +00:00
Enrico Forestieri
3ae401e5bc Detect the correct version of python at runtime and store the result
for later calls. The check is only performed on the major version
number, such as to avoid using python 3.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40619 a592a061-630c-0410-9148-cb99ea01b6c8
2012-01-16 00:23:09 +00:00
Richard Heck
bed648d0b5 Fix bug #7983: Do not modify params before we know we have
something valid!

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40616 a592a061-630c-0410-9148-cb99ea01b6c8
2012-01-15 16:47:50 +00:00
Enrico Forestieri
dac462c96b Refine fix for bug #7800. Don't use \inputencoding if the strings can be
encoded in the current buffer encoding.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40614 a592a061-630c-0410-9148-cb99ea01b6c8
2012-01-14 15:06:40 +00:00
Georg Baum
923e3c1a3a backport fix for bug #7013
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40606 a592a061-630c-0410-9148-cb99ea01b6c8
2012-01-12 20:12:03 +00:00
Stephan Witt
12e0991465 backport changes to fix #7884: detect missing dictionaries, add default dictionary location for hunspell, act on preference changes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40599 a592a061-630c-0410-9148-cb99ea01b6c8
2012-01-11 17:05:18 +00:00
Richard Heck
d8b68d84f1 Backport Lars's fix for bug removal in GCC 4.7
A long standing bug has been fixed in GCC 4.7, the bug was a non-
sactioned extra lookup. This caused some code to work that really
shouldn't.

The fixes are: add this->, Class::, or move functions about
as required to fullfill the rules.

In this case some template instantiations were movee to after what
they reference.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40583 a592a061-630c-0410-9148-cb99ea01b6c8
2012-01-07 16:00:56 +00:00
Pavel Sanda
c4ca05114c Backport fix for #7963, fullscreen corner case for tabbar visibility.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40561 a592a061-630c-0410-9148-cb99ea01b6c8
2012-01-03 15:23:35 +00:00
Stephan Witt
4a16880406 #5585 (backport) disable spell checker dialog for empty documents
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40553 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-31 17:55:20 +00:00
Jürgen Spitzmüller
a3671ef1c4 In recent biber versions, the log message that tells us which bib files are used has been changed. Adapt the parser, so that bib files are tracked again.
(backport of r40542)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40547 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-26 08:47:40 +00:00
Jean-Marc Lasgouttes
2a03c77dbc Improve fix to bug #7909 (backport of r40505).
No status entry necessary.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40543 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-23 09:44:44 +00:00
Richard Heck
66afdc5b4a Warnings.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40537 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-21 15:08:30 +00:00
Richard Heck
c9dab05dc9 Backport fix for #7923: Don't clone all the children on autosave.
We split Buffer::clone() into various routines that know whether
to clone the children.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40536 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-21 15:08:26 +00:00
Richard Heck
c59c8ad9f0 Add assertion to check for memory leaks and remove the list when
we are done.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40535 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-21 15:08:21 +00:00
Richard Heck
fd07a7753c Backport fix for bug #7941 (Translation of theorem-like environment names fails if language and buffer encoding differ)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40514 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-17 21:07:02 +00:00
Jean-Marc Lasgouttes
dc1f50008f Backport r40372 in order to fix bug #7909
#7909: mark-on selection is lost during screen-down and screen-up


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40504 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-16 14:13:31 +00:00
Pavel Sanda
ee9699ce39 Backport fix for 7945.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40503 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-15 22:06:04 +00:00
Richard Heck
e9c9c8f45c Backport r40489.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40490 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-13 19:23:31 +00:00
Uwe Stöhr
d2eefdb889 tex2lyx/text.cpp: backport fixes from trunk (no status entry necessary)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40482 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-11 23:24:44 +00:00
Richard Heck
911606be66 Fix bug #7256. Reduce space around inset buttons by a pixel on each side.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40455 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-09 15:52:18 +00:00
Uwe Stöhr
d9788beac8 tex2lyx Preamble.cpp, text.cpp: fix #7845 also for spreadsheet template
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40425 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-07 21:21:41 +00:00
Richard Heck
cbc62641e5 Fix bug #6293 as suggested there: We change the title of the PDF
options pane if hyperref is already provided.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40423 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-07 21:15:37 +00:00
Richard Heck
bcca9bb6b7 Fix bug #7921. We should not allow the user to save a file thereby
over-writing a file that is already open. So we issue a warning and
ask if they'd like to try a different name.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40421 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-07 20:45:35 +00:00
Richard Heck
a79aac7acf Improve output of XHTML comments.
(i)  Validate even for comments when outputting XHTML.
(ii) Output comments as divs hidden by default. Then people
     can display them other ways if they wish.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40401 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-06 20:46:40 +00:00
Uwe Stöhr
fd2ff50b69 tex2lyx: support for pdfpages
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40370 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-05 01:12:41 +00:00
Georg Baum
159875f201 Mass backport tex2lyx bug fixes.
tex2lyx is no identical with the version in trunk (except for cosmetic changes
and file formats > 413).
The output of the test cases is either unchanged or improved.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40364 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-04 16:16:32 +00:00
Richard Heck
0b945c43ed Simple fix for #7673. We need to update the Buffer before we emit
the changed() signal.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40353 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-03 22:43:12 +00:00
Richard Heck
9f61659c00 Backport fix for #7872.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40335 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-02 21:30:40 +00:00
Richard Heck
fdd31a75a5 Fix crash when outputting XHTML. Not resetting the paragraphs
was an oversight here. (This was r40068 in trunk, but never got
to branch for some reason.)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40330 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-02 19:19:16 +00:00
Jean-Marc Lasgouttes
d45fdbc3c6 Fix linking on Mac OS X when using autotools without the fancy mac build script.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40322 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-30 11:19:57 +00:00
Richard Heck
6a2083cedf Backport fix for bug #7906.
Check the widgets after creating the dialog.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40312 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-29 20:00:28 +00:00
Richard Heck
936cee5b9f Fix bug #7709. Seems we need to reset the source model here.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40310 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-29 19:54:48 +00:00
Richard Heck
5d8a291767 Kill warning.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40308 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-29 19:45:32 +00:00
Richard Heck
d7799bb5cc Fix bug #7499. The problem here is that there was no way for the
inset to know that the BibTeX data had changed. So we introduce a
Buffer-wide variable that we can query for that information.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40307 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-29 19:45:27 +00:00
Richard Heck
b367640290 Backport fix for bug #7905. We don't want to move out of the inset unless
we've put something into it. (We also don't need to copy an empty string
into it.)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40242 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-22 18:49:59 +00:00
Richard Heck
bd826dae67 New attempt to fix Pavel's crash, this modifies r40206.
The global list of cloned buffers was a bad idea. We don't have multiple
export threads, but we can have multiple autosave threads. So now we keep
more than one of these lists at the same time, and each cloned buffer has
a pointer to the relevant list. Note that this would make multiple export
possible, if we wanted to do that at some time.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40229 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-20 18:56:36 +00:00
Richard Heck
2e21676cb2 Backport fix for bug #7873.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40213 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-18 21:37:03 +00:00
Richard Heck
f01103ec22 Backport fix for crash reported by Pavel.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40206 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-17 18:06:06 +00:00
Georg Baum
b6eb513d94 Fix bug #7895: Do not output lines with only a single space.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40194 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-14 21:04:00 +00:00
Georg Baum
044565f535 Fix bug #7663: Misparsing of description \item with spaces
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40183 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-13 10:43:30 +00:00
Georg Baum
b79cde1dfd Fix "stray '}' in text" warnings: When parsing with FLAG_ITEM the braces need
to occur in pairs.
If you change something in tex2lyx please don't commit without running the
tests and ensuring that no warnings or errors are written on stderr.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40178 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-12 18:43:13 +00:00
Uwe Stöhr
ec3b686f8e backporting tex2lyx:
- support for \makebox
- fix import of boxes without an inner box (the on-screen display was broken because of wrong default width setting)
- fix parsing of \framebox{content}, which LyX does not support yet - we have to use ERT

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40157 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-07 21:57:49 +00:00
Georg Baum
f3a833ca7e Import optional argument of tabular (vertical alignment)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40148 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-06 18:56:26 +00:00
Georg Baum
191b561026 Must not output anything between p.pushPosition() and p.popPosition().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40142 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-06 17:34:42 +00:00
Uwe Stöhr
14ee3de872 backporting tex2lyx: fix remaining part of bug #7846 (no status entry necessary)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40138 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-06 15:22:00 +00:00
Uwe Stöhr
2c0c8fc41f backporting tex2lyx: fix bug #7843
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40137 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-06 15:15:13 +00:00
Richard Heck
f78ada8345 Fix bug reported on user list: <title> not escaped.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40132 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-02 18:57:14 +00:00
Uwe Stöhr
120d030a89 backporting tex2lyx: fix bug #7863
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40109 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-31 01:58:58 +00:00
Enrico Forestieri
3f691d1f55 Fix bug #7800 (Lyx cannot create dvi with Russian)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40107 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-30 22:40:03 +00:00
Richard Heck
61e539a488 Backport fix for #7764: Sort the file lists under
Document>Settings>Output.

It turns out that we always want this list to be sorted when we get it,
so we can sort it in BufferParams rather than in three different places.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40102 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-30 20:07:46 +00:00
Richard Heck
8416cc3307 Backport fix for #7764.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40098 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-30 19:48:17 +00:00
Uwe Stöhr
75ade33280 backporting tex2lyx: fix bug #7862
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40072 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-29 20:34:31 +00:00
Uwe Stöhr
38a6341d1c backporting tex2lyx: the support for subfloats
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40070 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-29 20:26:50 +00:00
Uwe Stöhr
25ea525d9b backporting tex2lyx: the support for wrap floats
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40055 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-28 18:28:28 +00:00
Uwe Stöhr
57a0b232fd backporting tex2lyx: the support for \date{} in the preamble
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40054 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-28 18:00:56 +00:00
Uwe Stöhr
62486d95e3 tex2lyx/preamble.cpp: prevent bug #7858 (that I accidentally introduced in r39988) and this way fix bug #7861 as side-effect
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40051 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-28 12:46:53 +00:00
Jürgen Spitzmüller
65ce2748eb Fix #7816: Edit->Table incorrectly activated inside index entries
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40046 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-28 06:33:39 +00:00
Vincent van Ravesteijn
3c8f3c934d branch: Fix a crash in adv F&R when a manual could not be loaded
see r40027.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40039 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-27 13:58:53 +00:00
Uwe Stöhr
11e727b977 backporting tex2lyx: forgot this in r40036
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40038 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-27 13:17:40 +00:00
Uwe Stöhr
0041e6e301 backporting tex2lyx: updates testfile
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40037 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-27 13:14:32 +00:00
Uwe Stöhr
5fc564c469 backporting tex2lyx: the support for rotated floats
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40036 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-27 13:13:43 +00:00
Uwe Stöhr
04eb1d59a2 backporting tex2lyx: the support for \href
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40033 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-27 12:49:29 +00:00
Uwe Stöhr
8472702349 backporting tex2lyx: some simplifications
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40032 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-27 12:43:07 +00:00
Stephan Witt
7de601b63e #7778 backport of fix in trunk
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40026 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-27 09:05:55 +00:00
Uwe Stöhr
7439464374 backporting tex2lyx: the support for strike out and underlined (by Georg)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40022 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-26 21:47:27 +00:00
Uwe Stöhr
0c684343a7 backporting tex2lyx: the example files
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40021 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-26 21:43:08 +00:00