Commit Graph

19351 Commits

Author SHA1 Message Date
Richard Heck
4b1777d2fa Inset::addToToc() can and should be const. It wasn't, I take it, because
of things like:
  pit.push_back(CursorSlice(*this));
which I've had to change to:
  pit.push_back(CursorSlice(const_cast<InsetCaption &>(*this)));
and similarly in a few other places.

If anyone thinks we should instead have:
  explicit CursorSlice(Inset const &);
then we can also do that.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37192 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-12 22:23:27 +00:00
Georg Baum
7c83f74f26 Exclude more conditional commands from preamble parsing:
LyX would output the parsed stuff unconditionally, so we must not translate
it in LyX document settings.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37191 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-12 22:03:15 +00:00
Richard Heck
ee351906e0 Fix bug #7230. Changes at r36974 had not been done properly. But this is
better than what we had, anyway, since we do not calculate the tocstring
unless we need it.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37190 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-12 21:25:45 +00:00
Georg Baum
b8d6c10e6c add list of missing tex2lyx features
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37189 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-12 21:19:01 +00:00
Georg Baum
acd57ccaaf Fix language handling in tex2lyx:
- Add missing babel synonyms (taken from a standard TeXLive 2010 install).
  Some synonyms might still be missing (if they are defined not by babel
  itself, but additional packages). Adding these is now simple: Only
  known_languages and known_coded_languages need to be touched.
- Translate babel language name arguments of \foreignlanguage and
  \selectlanguage to LyX names.
- Translate second argument of \foreignlanguage to LyX.
- Cleanup mixed language names in the preamble parser: Now all checks are
  done with LyX names, not a mix of babel and LyX names. This sets correct
  quotes even if the language as given as an alias.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37188 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-12 21:04:39 +00:00
Georg Baum
c99a8a702c Fix bug #7233: amsthm does not work with the redefined \[ command of fixltx2e.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37187 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-12 19:54:46 +00:00
Richard Heck
645f9fdf6d Fix bug #6894. We save counter information during updateBuffer(), and
then output \setcounter macros during snippet generation, so that we get
the right equation values.

Note: It would be possible to use this same machinery to fix bugs in
instant preview, e.g., that you always get things like (0.3) as equation
numbers, if you use equations numbered by section. I'll perhaps post a
patch for that.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37186 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-12 16:04:59 +00:00
Richard Heck
f1a54ebe18 Complete fix for bug #7225.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37185 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-12 13:50:46 +00:00
Richard Heck
f3c472e769 Remove obsolete comments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37184 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-12 13:40:47 +00:00
Richard Heck
68c43a2b18 XHTML output was a mess for grids output as LaTeX. This will probably
still be a mess in many cases, but hopefully we won't have to go here
very often.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37181 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-11 23:55:20 +00:00
Richard Heck
fe9aabf34a Fix equation number output for MathML+HTML.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37180 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-11 23:34:59 +00:00
Richard Heck
7ef3d12a80 Fix equation number output for XHTML+MathML. HTML to come.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37179 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-11 23:18:56 +00:00
Richard Heck
47ca44e296 Record and use equation numbers. This is towards getting equation
numbering in XHTML output, but it's just as easy to fix this in the LyX
display.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37177 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-11 19:35:52 +00:00
Peter Kümmel
826298831d When getting packages via miktex 3 minutes is to short for
the timeout. 30 minutes should be enough, also for very big documents.
#7228

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37176 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-11 18:46:41 +00:00
Jean-Marc Lasgouttes
5d2cddfaca When hyperref is active, define the \LyX macro in a way that does
not break in PDF table of contents (using texorpdfstring).

Uwe, this should allow you to remove some ERT from the documentation.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37164 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-10 17:27:56 +00:00
Stephan Witt
0e5369dcda #7209 avoid a crash in inMacroMode(): one cannot get the previous atom of an empty math cell
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37162 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-10 10:23:10 +00:00
Stephan Witt
af77fb5186 #7208 reset undo group level in Undo::clear() too
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37161 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-10 09:44:55 +00:00
Vincent van Ravesteijn
6eea764ead Cursor: constify.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37160 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-10 09:38:20 +00:00
Abdelrazak Younes
a07d9f2192 Clear undo/redo stack when reloading buffer. This fixes #7208.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37155 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-09 17:55:16 +00:00
Georg Baum
f49a526afc Parse Flex insets defined in the layout. This is needed e.g. for
lib/doc/Math.lyx, since tex2lyx swallows the LyX part of the preamble, and
thus \shortcut would not be defined.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37149 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-07 21:04:16 +00:00
Georg Baum
f8f69ca920 math macros do not understand \newcommand* and \renewcommand*
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37148 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-07 20:21:10 +00:00
Georg Baum
6ead3daac9 Fix invalid \size output with no active layout before sectioning environments.
Fix missing \size reset after sectioning environments.
Fix invalid \lang default (use english instead, as in the preamble)
Convert hard coded layout output of caption insets to Context class.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37147 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-07 19:58:31 +00:00
Stephan Witt
64d9fed8c3 #7220 correct spell check state ranges for word splits
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37146 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-07 15:20:58 +00:00
Georg Baum
9ac7fa483d Fix misparsing of \usepackage in
\@ifundefined{textcolor}{\usepackage{color}}{}


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37140 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-06 21:38:26 +00:00
Georg Baum
416d19ff84 hyperref support for tex2lyx
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37138 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-06 20:57:16 +00:00
Georg Baum
a89dbd75e6 Fix crash in lyx -e latex lib/doc/Shortcuts.lyx: theApp() is 0 in batch mode.
Unfortunately the commandline export of InsetInfo is still broken for MENU_INFO.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37134 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-06 18:40:39 +00:00
Georg Baum
006a906858 forgot to declare debugToken() in r37117
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37133 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-06 18:36:03 +00:00
Vincent van Ravesteijn
8c61911270 Revert r37092. The fix was wrong.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37127 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-06 13:41:50 +00:00
Vincent van Ravesteijn
68fe13dfa1 Fix bug #7212: Paragraph::forToc has to include the labelString.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37123 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-06 01:12:38 +00:00
Vincent van Ravesteijn
3d08e82957 LyX remembers the state and geometry of the advanced find and replace dockview.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37121 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-06 00:52:46 +00:00
Uwe Stöhr
69232e3632 PDFOptions.cpp: revert r37111 because this broke the compilation of some documentation files
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37118 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-05 23:23:18 +00:00
Georg Baum
0f3c4c2f04 Fix several false errors "stray '}' in text" that were caused by
misinterpreting "\}" as "}" when it occured inside a pair of unescaped
braces, like in "\code{@\{*\}r||p\{1in\}@\{*\}}".
The reason for this bug is that Token::character() behaves differently in
tex2lyx than in mathed. See the comment in Parser.h for a more general fix.
For now I played on the safe side and only changed those places where I
definitely know that the old code was wrong.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37117 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-05 20:32:45 +00:00
Tommaso Cucinotta
78eecdabf8 Avoid crash on exiting LyX while Adv Search is shown in full-screen mode.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37115 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-05 15:08:08 +00:00
Uwe Stöhr
079d159c87 PDFOptions.cpp: revert fix for #7048 for now, see discussion in the bug report
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37111 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-05 00:59:39 +00:00
Vincent van Ravesteijn
bd3d6369c2 Fix bug #7106: iterator out of range while copying multi-row math.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37108 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-04 19:43:52 +00:00
Jürgen Spitzmüller
06b84910e5 * InsetCommand.cpp (decodeInsetParam):
- use correct params for INDEX_CODE and INDEX_PRINT_CODE (bug 7180).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37104 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-04 11:32:04 +00:00
Vincent van Ravesteijn
8ba5c7f886 Better fix for part 3 of bug #7182: LyX truncates file names to about 25 chars.
Now, when hovering the tabs, the full paths are shown as a tooltip.

see r37084.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37101 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-04 09:41:27 +00:00
Pavel Sanda
da24a5ee90 Update doxy for selection-paste.
The whole thing was introduced in r28154.

JMarc, could you improve the description doxies for selection-paste and primary-selection-paste ?


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37097 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-04 01:41:53 +00:00
Vincent van Ravesteijn
cc00b9aaca Fix bug #5600: View source panel isn't updating after restart.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37096 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-04 00:00:20 +00:00
Vincent van Ravesteijn
0faafa47bf Fix bug #5082: Outline visibility not remembered.
When a document with a InsetTOC was closed, the outline was closed. But this shouldn't happen because editedInset("toc") does never return something.

The reason that this happened was that if currentBufferView() is 0, we don't even care wehther inset was specified. If inset is specified, it should match the editedInset.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37094 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-03 23:23:09 +00:00
Vincent van Ravesteijn
dc6b4a332a Typo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37093 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-03 21:38:19 +00:00
Vincent van Ravesteijn
a7c135b9e1 Fix bug #7096: Wrong LaTeX export for layouts with intitle=true in branches.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37092 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-03 21:23:38 +00:00
Vincent van Ravesteijn
996b707a6f Fix bug #7125: Insertion of a math macro cannot be undone.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37088 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-03 20:39:14 +00:00
Vincent van Ravesteijn
d23120b3ba Fix bug 7137: Main WA disappears on wrap-around dialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37085 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-03 20:04:03 +00:00
Vincent van Ravesteijn
a1f8d221c8 Fix part 3 of bug #7182: LyX truncates file names to about 25 chars.
Now, when hovering the tabs, the longer name is shown as a tooltip.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37084 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-03 18:50:37 +00:00
Vincent van Ravesteijn
4579492569 Fix part 2 of bug #7182: LyX truncates file names to about 25 chars.
Now, when hovering the lastfiles menu, the full file names are shown in the statusbar.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37083 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-03 18:44:52 +00:00
Jürgen Spitzmüller
f7334ebfdb Fix UI glitch in the prefs dialog (bug 7190).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37081 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-03 17:21:22 +00:00
Vincent van Ravesteijn
02fb4a784e Fix bug #7099: Fix bug #7099: Math toolbars don't autoshow.
When applying the preference we need to save the full session information, because when this information is not yet saved, we will lose it forever. We can enter the preferences without a saved state when we start LyX with a modified default.ui.

see also: r37075 and r37076.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37077 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-03 16:49:15 +00:00
Vincent van Ravesteijn
46d7462ea7 This comment introduced in r37075 was wrong. We should never end up here!
However, it cannot hurt to warn the user and fall back to the defaults in case.

The real cause of bug #7099 is something else (which I will fix soon).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37076 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-03 15:56:27 +00:00
Vincent van Ravesteijn
94ede89c57 Fix bug #7099: Math toolbars don't autoshow.
In GuiApplication::readUIFile() the settings for views gets removed if the ui file is newer than the saved timestamp in the settings. Later the non existing settings will be used to initialize the visibility. The default value for a non existing setting is 0. The visibility_ variable does never get changed afterwards. And therefore
we will again write 0 to the registry.

We should have read the ui file instead when we can't find the registry value.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37075 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-03 14:39:41 +00:00
Vincent van Ravesteijn
3ac28c69e8 Fix bug #7050: Assert when using DecimalAlignment in tables.
The problem is/was that when copying an InsetTableCell?, the macrocontext_position_ and the buffer_ were not copied. That's why in InsetTabular?@splitCell@521 and in InsetTabular::TeXRow() and in InsetTabular::metrics we manually copy this into the new object.

However, splitCell() returns the object by-value. So, when we call

InsetTableCell tail = splitCell(head, column_info[c].decimal_point, hassep);

the new object is copied into tail and we lose the buffer_ and macro_contextposition. Later we will crash.

What does *nix in this case ? Apparently they don't make buffer and/or macro_contextposition 0.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37072 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-03 14:12:53 +00:00
Vincent van Ravesteijn
6e53e4e5d3 Remove unused member variable GuiToolbar::name_.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37070 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-03 12:39:56 +00:00
Vincent van Ravesteijn
9b1b65665d Fix another instance of "visibility >= MATH". This was forgotten in r37068.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37069 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-03 12:14:44 +00:00
Vincent van Ravesteijn
e38c604887 Remove GuiToolbar::allowauto_ and define this property in the Toolbars.h::Visibility enum.
Now, there is the bug that autoallow is incorrectly set to true when visibility_ has the Visibility::SAMEROW flag. One shouldn't use >= on an enum (GuiToolbar::setVisibility), as newly added items will exhibit unexpected behaviour.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37068 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-03 11:42:01 +00:00
Georg Baum
8b2ea705df Fix wrong setting of bibinset options if \cite{*} was found.
Improve heuristic for outputting \bibliographystyle: Now it is suppressed
if \bibliography follows immediately, since LyX adds it automatically in that
case.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37066 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-02 18:16:23 +00:00
Georg Baum
5c53dcf88f tex2lyx: Do not swallow a user defined \parindent
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37065 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-02 16:54:58 +00:00
Georg Baum
812c27d793 Improve tex2lyx roundtrip of test-insets.tex:
- Replace special verbatim commands by standard LaTeX, since it would be
  extremely difficult to make tex2lyx understand them)
- Comment duplicated \bibliography{xampl}, since LaTeX cannot handle two
  \bibliography calls
- Fix a regression with spaces after commands, introduced in r36943
- Parse \multicolumn with space/comments between two arguments correctly
- Parse optional arguments correctly if there are space or comments between
  the command and the argument
- Remove duplicate "LyX" phrase handling (I overlooked that in r37052)
- Add new commands created with \let to the list of known commands. This is
  needed to parse the arguments correctly


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37064 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-02 15:39:48 +00:00
Vincent van Ravesteijn
a3a7c046be Fix bug #7200: Crash when replacing newline by InsetQuote.
We have to call cap::replaceSelection before determining whether we can insert an InsetQuote or a normal quote.

At least we should have updated the par variable after calling cap::replaceSelection, because the paragraph might have been deleted.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37063 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-02 12:07:33 +00:00
Stephan Witt
8d5acc2235 #7201 return "correct" wrong spelled word when before a dot - exclude the dot from spell checker result
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37062 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-02 11:31:28 +00:00
Enrico Forestieri
9687f9beb6 Correctly show in italic shape the uppercase greek letters inserted in
a \mathit inset.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37060 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-01 19:24:16 +00:00
Enrico Forestieri
36ee8cdd52 Revert r36465 and r36467. Soon to be replaced by proper code for correctly
show on screen italic uppercase greek letters.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37059 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-01 19:19:32 +00:00
Tommaso Cucinotta
dbb3f12aa5 Also copying the document language to the find/replace WA cursors' current language. This avoids typing in the replace WA results in underscored text while editing non-English documents.
This addresses (and hopefully closes) #6171.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37058 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-31 15:07:03 +00:00
Tommaso Cucinotta
426c5671d5 Copy document params (including language settings) to find and replace WAs buffers on activation of Advanced Search.
This hopefully fixes #6171, i.e., when copying from main document with non-English language to find/replace WAs,
the pasted text is not underlined anymore.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37057 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-31 14:35:16 +00:00
Georg Baum
ef10797f59 Also prevent replacement of LyX => \LyX{} if it is part of a word.
The automatic replacement in LyX is pretty broken (see bug 4752).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37055 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-31 11:59:33 +00:00
Georg Baum
bce18bacfc partial man page update (it is still horribly outdated)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37054 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-31 11:57:25 +00:00
Uwe Stöhr
73cdd2547e tex2lyx/preamble.cpp: support for
- polytonic Greek
- Mongolian
- Mexican Spanish

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37053 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-31 07:31:59 +00:00
Georg Baum
3403727940 Translate "\LyX{}" and "LyX" correctly in tex2lyx
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37052 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-30 21:56:55 +00:00
Georg Baum
05bd78904a Fix translation of \pagebreak and \linebreak with optional arguments.
Please don't add new features to tex2lyx without testing.
In this case, the test case was even provided in test-insets.tex.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37051 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-30 21:03:36 +00:00
Georg Baum
d6ccb86f15 fix translation of \nobreakdash in tex2lyx
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37050 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-30 20:38:47 +00:00
Georg Baum
90f795a29e Add -roundtrip argument to tex2lyx for tex->lyx->tex roundtrip testing.
The reasons for doing this in tex2lyx instead of an external script are:
- Correct choice of latex/pdflatex export
- Using the correct LyX executable regardless of running inplace or from an
  installation, or with or without version suffix


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37049 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-30 20:29:33 +00:00
Tommaso Cucinotta
22d245312a Addressing #6560.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37048 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-30 17:59:59 +00:00
Tommaso Cucinotta
fa0e638b95 Fix of #4388 also for non advanced find.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37047 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-30 15:34:09 +00:00
Stephan Witt
fca5a8ce2a fix typo: double semicolon at line end of code
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37044 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-29 21:34:33 +00:00
Tommaso Cucinotta
fab8c264aa Applying (variation of) fix by stwitt to solve #7172.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37043 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-29 19:59:41 +00:00
Jürgen Spitzmüller
0a34b1e047 fix some typos. Patch by Yuri Chornoivan.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37039 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-29 16:57:04 +00:00
Jürgen Spitzmüller
a2b087e75f * GuiPrefs.{cpp,h}:
- update screen font sizes in dialog after prefs change, since the localization of float values might have changed.
	  (fixes bug 6771).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37035 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-29 13:50:22 +00:00
Vincent van Ravesteijn
693bdf8447 Fix bug #7198: Assertion when calling inset-modify for a InsetSpace with a different argument than "space"
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37032 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-29 06:00:22 +00:00
Vincent van Ravesteijn
fbd84bc185 Add some extra information about bug #3684.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37031 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-29 05:50:50 +00:00
Vincent van Ravesteijn
1f5c77ec65 Fix bug #7187: Font painting problems with emulated scaling.
When creating the QFontMetrics object, we should specify a QPaintDevice. 0 is a paint device which is screen-compatible or pixmap-compatible. This makes sure that the correct DPI is used in font metrics calculations.

see also:
http://bugreports.qt.nokia.com/browse/QTBUG-16331.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37030 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-29 05:35:03 +00:00
Enrico Forestieri
432e32cd3a lyx_pot.py cannot deal with raw newlines in ui files. So, use the
html entity "&#x0a;" and then transform it to "\n".


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37026 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-28 23:29:51 +00:00
Enrico Forestieri
c203112890 Fix bug #7194 (Crash closing master while child documents are opened)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37021 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-28 15:47:05 +00:00
Stephan Witt
29d849f251 more careful check for mathed to normal text change and vice versa for correct display of misspelled markers
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37020 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-28 13:20:20 +00:00
Stephan Witt
ef1561665c revert change 37018 for PersonalWordList.cpp, commiting it was a mistake
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37019 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-27 22:05:37 +00:00
Stephan Witt
6be43c24f4 fix a crash when moving cursor from text to a math inset with spellcheck_continuously on
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37018 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-27 21:59:17 +00:00
Georg Baum
3cdb7d3062 fix parsing of test document
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37017 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-27 21:12:40 +00:00
Georg Baum
84be0a0db4 fix parsing of \let: tex2lyx must not enclose the arguments with {}.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37016 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-27 20:15:24 +00:00
Georg Baum
8f037c8e91 Increase tex2lyx output format to 345 (LyX 1.6.x).
344: Remove pdf_pagebackref header flag
345: Nothing to do (this is a docbook-only change)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37015 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-27 18:19:19 +00:00
Georg Baum
32d435e150 Increase tex2lyx output format to 343.
343: Write the use_default_options header flag


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37014 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-27 18:16:22 +00:00
Georg Baum
4a54c581a2 Increase tex2lyx output format to 342.
335:     Create space inset in new syntax
336:     Nothing to do (empty lyx2lyx conversion)
337:     Nothing to do (tex2lyx does use the display flag)
338-339: Nothing to do (empty lyx2lyx conversion)
340:     Nothing to do (tex2lyx does not output empty layout names)
341-342: Nothing to do (empty lyx2lyx conversion)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37013 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-27 18:14:55 +00:00
Georg Baum
5247a0ed1c Increase tex2lyx output format to 334.
331:     Set the caption flag for longtable caption rows
332:     Nothing to do (empty lyx2lyx conversion)
333:     Nothing to do (tex2lyx did already use the new style names because it
         uses the current layout files)
334:     Nothing to do (tex2lyx did already produce the new format, since it
         used the LaTeX paper names also in the output and did not suffer from
	 bug 4868)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37012 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-27 18:10:23 +00:00
Georg Baum
6da25359f0 Increase tex2lyx output format to 330.
324:     Create newline inset in new syntax
325:     Nothing to do (tex2lyx does not support the japanese language)
326-327: Nothing to do (empty lyx2lyx conversion)
328:     Nothing to do (tex2lyx did never support embedding of files)
329-330: Nothing to do (empty lyx2lyx conversion)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37011 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-27 18:03:26 +00:00
Georg Baum
6639d78601 Increase tex2lyx output format to 323.
323: Create newpage inset in new syntax


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37010 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-27 17:58:36 +00:00
Georg Baum
e4efa00f8c Increase tex2lyx output format to 322.
321: Move leftlines/rightlines from column headers to cells
322: Nothing to do (tex2lyx does not produce plain layouts)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37009 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-27 17:56:48 +00:00
Pavel Sanda
eeeb14915a Change message, section number can easily change.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37003 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-26 23:42:22 +00:00
Pavel Sanda
285a41066b Whitespace
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37001 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-26 23:33:28 +00:00
Pavel Sanda
d4c52f54e1 Kill unneeded string
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37000 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-26 23:33:27 +00:00
Pavel Sanda
80570c5b8e Resave spellcheck ui in older designer
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36999 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-26 23:33:23 +00:00
Pavel Sanda
705ba90d7b Make outliner delays again more invisible in some cases.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36997 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-26 23:23:48 +00:00
Stephan Witt
a5b960cdd2 cheaper empty range for getRange result on mismatch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36991 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-22 17:09:51 +00:00
Stephan Witt
fab1507221 fix for #7081: the painting of misspelled marker is suppressed for the word at cursor position
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36990 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-22 07:29:16 +00:00
Richard Heck
1f44b8a5c0 Mini-optimization: We do not need really long tooltips for the TOC.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36989 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-22 01:29:17 +00:00
Richard Heck
4aead1ffde Improve the wrapParas routine. Previously, we had "..." as the last
line, if we were too big. Now, we put "..." at the end of the last line.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36988 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-22 01:28:32 +00:00
Enrico Forestieri
4e8cc18554 Fix bug #7193 (Math macro template painting problem)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36987 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-22 00:16:51 +00:00
Stephan Witt
ab9de435b4 fix typo: double semicolon at line end of code
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36985 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-21 15:28:55 +00:00
Enrico Forestieri
89c1d25250 Avoid const casts by making mutable the usermacros member.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36984 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-21 14:52:18 +00:00
Stephan Witt
12cc8a301d correct a cut-and-paste typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36983 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-21 11:55:31 +00:00
Jean-Marc Lasgouttes
12cd531f66 somehow I forgot that in r36772
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36980 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-21 08:45:48 +00:00
Richard Heck
a2111a1c50 Simplify InsetRef::forToc().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36978 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-20 22:47:09 +00:00
Richard Heck
2b39534042 Greyed out notes do produce output, which means that their counters need
to be treated as part of the document. For example, the footnote numbers
in LyX are wrong prior to this patch.

This will also affect word and character count, but should not affect
anything else. If that seems wrong, we can either (a) explicitly exclude
notes from the word count or else (b) introduce 
  bool countWordsInInset() const;
and call that, instead.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36976 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-20 22:33:12 +00:00
Richard Heck
68aa0b5b91 Add comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36975 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-20 22:29:41 +00:00
Richard Heck
9e9c96035c Finish disentangling tocString(). We introduce a new method, forToc(),
that also makes sure it doesn't do more work than it needs to do, by
limiting the size to 40 characters. Previously, InsetBranch::addToToc()
would have added a string representing the entire contents of the
branch! It's hard to imagine that having to recalculate that sort of
thing doesn't cause some problems with speed, especially in documents
with lots of notes and branches and such.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36974 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-20 21:55:09 +00:00
Stephan Witt
ac86039473 non-system languages from cocoAspell are enumerated with long names - therefore a mapping from lang code to name is needed
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36973 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-20 21:45:41 +00:00
Georg Baum
94160f97c0 adjust xfig conversion to newer xfig as suggested by Jean-Pierre at
http://www.lyx.org/trac/ticket/3016#comment:6


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36972 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-20 21:35:08 +00:00
Georg Baum
77a8eb9288 fix bug #7189 (this worked originally, but after fixing protected \hfill I
forgot to recheck \hspace)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36971 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-20 20:45:18 +00:00
Stephan Witt
c95d441818 non-system languages from cocoAspell are enumerated with long names - therefore a mapping from lang code to name is needed
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36970 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-20 20:40:32 +00:00
Vincent van Ravesteijn
8adcffff0c Fix bug #7166: Insets that shouldn't appear in the TOC were included. From now on use AS_STR_INTOC as an option for Paragraph::asString() for insets that should not be included in the strings for the TOC, like IndexInset.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36969 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-20 19:18:56 +00:00
Enrico Forestieri
8b88c3edde Refine fix for bug #7183.
Using updateMacros() entails a performance hit when loading a document
with really a lot of macros. So, revert to the original strategy of
tracking macros at creation time. In order to also account for macros
defined in a child document, the child is now loaded by the include inset
at construction time instead of after the master has finished loading.
This strategy mimics what updateMacros() was accomplishing without
incurring in its drawbacks, such that loading time is practically
unchanged even with a thousand macros.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36968 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-20 18:15:39 +00:00
Pavel Sanda
01677a6577 Unneeded quotes in ui title
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36966 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-20 14:31:38 +00:00
Stephan Witt
c12ab2f090 fix typo: duplicate semicolon at line end of code
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36964 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-20 12:01:12 +00:00
Stephan Witt
3bb4d6559d little optimization: avoid a duplicate cursor get from buffer
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36963 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-20 07:10:05 +00:00
Uwe Stöhr
bea8c9ef8d tex2lyx/preamble.cpp: prerequisites for further language support
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36962 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-20 03:34:00 +00:00
Uwe Stöhr
79f5a4a396 tex2lyx/text.cpp: support \nocite{*} (since format 310)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36961 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-20 02:47:58 +00:00
Uwe Stöhr
54cee82fb6 tex2lyx:
- support for \nocite (since format 309)
- add \nocite{*} option to testfile

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36960 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-20 02:08:22 +00:00
Uwe Stöhr
a0ff0a15cf tex2lyx/preamble.cpp: support Vietnamese (since format 291)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36959 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-20 01:47:34 +00:00
Uwe Stöhr
fd3bd1a06a tex2lyx/preamble.cpp: add some further missing things from r36947: support for Latin and North Sami
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36958 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-20 01:36:27 +00:00
Uwe Stöhr
3d75bdc035 tex2lyx/text.cpp: add some further missing things from r36947
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36957 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-20 01:29:48 +00:00
Uwe Stöhr
cc1710e943 tex2lyx/preamble.cpp: whitespace only
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36956 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-20 01:14:18 +00:00
Uwe Stöhr
2385086972 tex2lyx/text.cpp: fix other missing issues from r36947
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36955 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-20 01:12:35 +00:00
Uwe Stöhr
3fa2875355 tex2lyx/preamble.cpp: add missing things from r36947
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36954 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-20 01:11:02 +00:00
Richard Heck
e328ed52c2 Squash warnings. The latter might matter.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36953 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-20 00:57:16 +00:00
Pavel Sanda
121fdba366 Attempt to workaround movement and editation slowness.
If it turns out to be too annoying for other we can disable it again.
Hopefully fix #7138.

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



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36951 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-19 22:27:21 +00:00
Pavel Sanda
5007ee4dad Let filenames to be longer in window title.
Fixes first part of #7182


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36950 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-19 22:05:48 +00:00
Georg Baum
300cd0dedd Increase tex2lyx output format to 320.
320: Support protected hfill
Detect other horizontal spaces that are already part of format 319
Add forgotton use_parbox tag to boxes (confuses lyx2lyx, but no lyx)



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36949 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-19 21:24:24 +00:00
Georg Baum
58fde18a9f Increase tex2lyx output format to 319.
311:     Nothing to do (tex2lyx produced already the new format, because it
         uses the current layout files. This is also a reason why it should
	 not lag behind too much with the format.)
312:     Nothing to do (empty lyx2lyx conversion)
313:     Nothing to do (tex2lyx does not know about modules)
314-315: Nothing to do (empty lyx2lyx conversion)
316:     Nothing to do (tex2lyx does not know subfigures)
317-318: Nothing to do (empty lyx2lyx conversion)
319:     Convert horizontal spaces to new format (and convert some newly
         supported spaces)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36948 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-19 20:23:55 +00:00
Georg Baum
d1be0d2af7 Increase tex2lyx output format to 310.
299-302: Nothing to do (empty lyx2lyx conversion)
303:     Nothing to do (tex2lyx did not use the serbocroation language)
304:     Convert framed and greyed out notes to box insets
305-310: Nothing to do (empty lyx2lyx conversion)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36947 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-19 19:29:07 +00:00
Georg Baum
2d5e1123d1 Increase tex2lyx output format to 298.
298: All math macros are exported with \\global to LaTeX now, so a \\global
     in front of a math macro has to be recognized. Since the math macros do
     no longer use the same syntax in .lyx and .tex (which is a mistake IMHO)
     an exact match is no longer possible except for \global\long\def.
Bugfix this time: \\providecommand was errornously recognized as math macro


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36946 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-19 19:21:53 +00:00
Georg Baum
ec22820cbf Increase tex2lyx output format to 297.
297: new name for upper sorbian language, new languages albanian and lower
sorbian (actually lower sorbias was (incorrectly) already recognized)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36945 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-19 15:21:01 +00:00
Georg Baum
ac85b252cb Increase tex2lyx output format to 296.
296: new syntax of include inset


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36944 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-19 15:08:35 +00:00
Georg Baum
93232c3ad6 Improve roundtrip of tex2lyx test documents:
- Make test-insets.tex and test-structure.tex compilable
- Avoid duplicate definition of \lyxarrow in test-insets.lyx
- Prevent subscript package from being ignored in test-insets.lyx
- Prevent commands listed with optional arg in syntax.default from being
  concatenated with the next word if no optional arg is given
- Handle spaces and comments inbetween a command an "{}" consistently


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36943 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-19 14:54:23 +00:00
Georg Baum
e5fd128200 Increase tex2lyx output format to 295.
294: Nothing needed, but add some placeholders to the preamble for documentation
295: Convert URL command inset to Flex inset


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36941 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-18 20:41:41 +00:00
Abdelrazak Younes
065483dae3 Small Timer helper class useful for performance investigation in src/.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36940 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-18 18:40:21 +00:00
Abdelrazak Younes
2ab1601311 Coding style/de-indent
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36939 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-18 16:32:29 +00:00
Abdelrazak Younes
41aa051d22 Coding style.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36938 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-18 16:19:05 +00:00
Abdelrazak Younes
3626b46109 Coding style.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36937 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-18 16:11:38 +00:00
Abdelrazak Younes
1614a64e15 TeXOnePar() simplification: use pit_type instead of iterator
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36936 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-18 15:57:27 +00:00
Abdelrazak Younes
fd73107054 TeXOnePar() Be on the safe side and reinitialize runparam.par_begin and par_end
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36935 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-18 14:04:02 +00:00
Abdelrazak Younes
8e092e6ca6 greatly simplify and comment TeXEnvironment():
* only one for loop
* uses runparams.par_end

InsetInclude and InsetIext: initialize runparams.par_begin and runparams.par_end

Except for a few additonal empty lines the LateX exports are identical for all help files. The reason for the additional empty lines is the more consistent TeXEnvironment() call.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36934 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-18 13:49:39 +00:00
Abdelrazak Younes
ffea94c5e6 latexParagraphs(): code polish.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36933 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-18 08:31:34 +00:00
Abdelrazak Younes
f48f0ad0bf latexParagraphs(): cleanup a bit and switch to a 'for' loop. Hopefully this should fix the performance problem when exporting very big document to latex.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36932 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-18 08:23:14 +00:00
Abdelrazak Younes
ca91d508b2 LaTeX export small speedup: Introduce RandomAccessList::position() and use it.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36931 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-18 07:37:12 +00:00
Enrico Forestieri
280f7a7ced Fix bug #7183 (User math macros defined in child documents are shadowed on loading)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36930 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-18 02:27:25 +00:00
Georg Baum
1d03cfa8c0 Increase tex2lyx output format to 293.
289:     Use new syntax for index inset
290-291: Nothing to do (empty lyx2lyx conversion)
292:     Nothing to do, tex2lyx does not know japanese yet
293:     Nothing to do (empty lyx2lyx conversion)



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36929 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-17 21:41:15 +00:00
Georg Baum
86f320f6e0 fix halfway converted bibtex inset
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36928 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-17 21:35:27 +00:00
Georg Baum
7610b9add5 Increase tex2lyx output format to 288.
278:     Nothing to do, tex2lyx writes already an \end_deeper for each \begin_deeper
279-280: Nothing to do, tex2lyx does not produce character styles yet
281-282: Nothing to do (empty lyx2lyx conversion)
283:     Nothing to do, tex2lyx does not produce character styles yet
284-286: Nothing to do (empty lyx2lyx conversion)
287:     Nothing to do, tex2lyx does not produce wrapped figures yet
288:     Use new syntax for command inset
This time, the (not format related) bug fix is to parse the starred jurabib
and natbib citation commands correctly.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36927 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-17 21:02:39 +00:00
Stephan Witt
d2c3a5c727 fix compiler warnings in pedantic mode: remove trailing comma after last enum member
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36925 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-17 20:51:44 +00:00
Stephan Witt
22c88a38c4 fix compiler warnings in pedantic mode: remove trailing comma after last enum member
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36924 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-17 19:57:55 +00:00
Stephan Witt
c7e6a677c4 fix compiler warnings in pedantic mode: remove trailing comma after last enum member
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36923 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-17 19:56:51 +00:00
Vincent van Ravesteijn
b90de3dc5c Fix bug #7176: Clicking TOC doesn't bring up outline
Previously LFUN_INSET_SETTINGS was misused to show the outliner. As a TOC doesn't have settings, it was no longer showed after a refactorization of LFUN_INSET_SETTINGS/LFUN_MOUSE_RELEASE because InsetToc::hasSettings() returns false.

As this is a special case, we should handle this special case in InsetTOC itself.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36907 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-17 13:12:43 +00:00
Jean-Marc Lasgouttes
bbea06a0c6 fix comment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36905 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-16 17:51:30 +00:00
Enrico Forestieri
cf85f9ce69 Fix bugs #7165 (Auto-complete does not disappear after using it)
and      #7174 (Math selection broken)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36902 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-16 08:14:27 +00:00
Stephan Witt
5179e2f4d8 remove superfluous semicolons at the end of namespaces
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36901 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-16 08:06:00 +00:00
Stephan Witt
7a537da7c0 correct use of NSNumber constructor for NSTimeInterval;remove superfluous semicolons;fix data type conversion related compiler warnings
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36900 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-16 08:03:24 +00:00
Stephan Witt
e7da6a6bc9 fix data type conversion related compiler warnings
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36899 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-16 07:58:38 +00:00
Abdelrazak Younes
b730b1c8f8 Cleanup: TeXEnvironment doesn't need data.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36897 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-15 23:46:02 +00:00
Abdelrazak Younes
67e782190a Split TeXEnvironment() in three functions. The real optimisation is yet to come.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36896 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-15 23:39:38 +00:00
Abdelrazak Younes
1ff5754a1b get rid of TeXDeeper: this was hiding the recursiveness of TeXEnvironment without any real benefits. This will allow further simplification of the code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36895 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-15 21:48:00 +00:00
Abdelrazak Younes
811335b50c a microptimisation and a FIXME.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36894 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-15 21:11:12 +00:00
Abdelrazak Younes
fbcbeb5130 latex export optimisation step 1: There is no need for TeXOnePar to return a par iterator and to depend on that.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36893 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-15 20:51:25 +00:00
Stephan Witt
ad76c66e33 #7120 the painter expects a float as line_thickness_, simplify initial computation of line_thickness_ and line_offset_
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36890 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-15 07:12:42 +00:00
Richard Heck
832d6cd7e1 Begin undoing the tocString() mess by renaming that routine.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36889 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-15 01:34:04 +00:00
Richard Heck
de1655f92b Use the layout defined label for the TOC, too.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36888 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-14 23:50:50 +00:00
Richard Heck
7bc133b0a2 Abdel thinks we should just get rid of this.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36887 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-14 23:43:45 +00:00
Richard Heck
807fc94597 Trivial cleanup.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36885 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-14 23:18:48 +00:00
Richard Heck
d1e0a0e4ed Allow customization of label string for note insets. We actually had
strings in the layout file, but they were not used.

Question: Should we just remove InsetNote::setButtonLabel() now? The
only purpose it is serving is to provide a backup in case no label is
defined.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36884 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-14 23:16:19 +00:00
Pavel Sanda
e1636b9f24 Report disabled BREAK_PARAGRAPH in MathHull getStatus so we can use command-alternatives.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36882 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-14 17:33:38 +00:00
Enrico Forestieri
116c20a203 Trying to be too smart by reducing the number of regenerated previews, may
cause to miss some regeneration. So, better too much than less.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36872 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-13 22:20:29 +00:00
Stephan Witt
48b071d983 #7120 adjust the line thickness to mark changes, foreign language and misspelled text to zoom factor in user preferences
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36869 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-13 16:18:37 +00:00
Jürgen Spitzmüller
0f2cfd957e Load the package breakurl with hyperref in DVI output (fix bug 7033).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36860 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-13 07:58:07 +00:00
Enrico Forestieri
f3e3655091 Really fix bug #7090.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36857 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-13 04:46:39 +00:00
Pavel Sanda
3998065582 Follow Vincent's advice
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36855 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-13 00:51:30 +00:00
Pavel Sanda
3451601447 Fix #7057
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36853 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-12 23:57:21 +00:00
Vincent van Ravesteijn
1f76d67c66 Fix bug #7164: Text in tables not painted immediately.
Fixes the regression introduces in r36630. I already fixed this, but forgot to commit apparently.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36848 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-12 20:56:01 +00:00
Georg Baum
5e5a078503 Increase tex2lyx output format to 277.
Nothing to do, since tex2lyx does not produce the invalid tables.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36847 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-12 20:01:53 +00:00
Georg Baum
6f951a9821 Fix bug #6051 by applying the patch from Pelle.
I could reproduce the warnings, and comparing the man output with and without
patch verified that the quotes were completely missing in the old version
while they are OK in the new one.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36846 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-12 19:39:21 +00:00
Georg Baum
5aedfc6b9f Increase tex2lyx output format to 276 (LyX 1.5.x).
Add support for arabic (arabi package), and two languages that are already
avaiilable in previous formats, but have been forgotten: latvian and lithuanian.
Again, the previous format was not handled correctly:
arabic (arabi) was parsed as arabic (arabtex).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36845 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-12 18:47:02 +00:00
Georg Baum
04233bf5eb Increase tex2lyx output format to 275.
Nothing to do for 274: tex2lyx did not implement the special whitespace
handling that would have been needed for the old format.
Use the scaleBeforeRotation keyword for graphics (275).
This fixes actually a bug with the old version, that implicitly converted
all graphics to scale before rotation.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36843 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-12 17:47:36 +00:00
Georg Baum
19c27cba66 Increase tex2lyx output format to 273.
Nothing to do, since lyx2lyx conversions are empty except for version 271,
and tex2lyx already outputs the new format for 271.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36842 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-12 14:55:14 +00:00
Georg Baum
c0b20c1c92 increase tex2lyx output format to 265
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36841 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-12 14:33:34 +00:00
Georg Baum
1b04aa7301 Do not use math commands from unicodesymbols in tex2lyx text mode,
since they are usually invalid in text mode (partial fix of bug 6797).
Also, prepare proper translation of \\slash{} and \nobreakdash.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36840 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-12 13:23:05 +00:00
Georg Baum
a4a7502769 textsubscript and textsuperscript for tex2lyx
(deactivated until format is recent enough)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36839 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-12 12:16:18 +00:00
Georg Baum
e693a60c34 Fix bug #5716.
Since separators are not allowed by the current .lyx version written by
tex2lyx, an empty note is used instead.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36838 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-12 11:45:09 +00:00
Jürgen Spitzmüller
aec686905b * Buffer.cpp (doExport): rebuild the Graph to fix a crash due to an invalid pointer.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36837 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-12 10:56:55 +00:00
Jürgen Spitzmüller
04bfd58a3a * BufferParams.cpp (loadFonts):
- replace the fontspec option "mapping=text-tex" with "Ligatures=TeX" as recommended in the fontspec manual.
	  The two options are equivalent, but only the latter is recognized by LuaTeX.
	- do not use TeX ligatures with typewriter fonts (this is the same in standard LaTeX).
	- add a bit of documentation.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36836 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-12 10:15:44 +00:00
Enrico Forestieri
573694da5f Fix bug #6538 (Figure: relative path changed to absolute on copy/paste)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36835 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-11 23:04:24 +00:00
Stephan Witt
937984898a #7084 provide spelling suggestions only when replacement is possible - if there is no selection or the misspelled word is selected; use the replace2string to construct the LFUN arguments
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36834 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-11 19:10:44 +00:00
Georg Baum
cb1fc51b9c Fix bug #3016: tex2lyx fails to convert xfig figures to Xfig insets
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36833 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-11 18:22:47 +00:00
Enrico Forestieri
14cbb6cb3d Fix bug #7090 (Segfault in refreshing instant preview when math macro changes)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36832 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-11 18:15:34 +00:00
Jürgen Spitzmüller
10a4b5f872 * BufferParams.cpp: fix cut'n'paste error.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36830 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-11 17:17:47 +00:00
Enrico Forestieri
f5cd2ebe71 No tabs in ui files.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36829 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-11 15:44:54 +00:00
Jürgen Spitzmüller
53250a1269 * GuiDocument.cpp (paramsToDialog):
- stupid thinko! (bug 7076).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36828 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-11 15:28:02 +00:00
Enrico Forestieri
51aa20b3ed Disable the "Single instance" check box if the lyxpipe has not been set up.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36827 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-11 15:21:23 +00:00
Stephan Witt
5d531c0a9e rename selectionAsString parameter in header to match the implementation
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36822 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-11 11:45:19 +00:00
Pavel Sanda
d0ba83d814 Fix #7057
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36817 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-10 17:22:12 +00:00
Pavel Sanda
5ce8c4d36b Simplify tooltips
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36808 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-10 15:43:00 +00:00
Jürgen Spitzmüller
1e98a4f240 Add the option to select the output format in Source View.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36806 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-10 10:34:24 +00:00
Uwe Stöhr
ab883f647f GuiTabular.cpp: typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36805 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-10 06:25:52 +00:00
Georg Baum
f2cc066c49 improve fix for #6303 as suggested by Richard
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36799 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-09 22:35:44 +00:00
Richard Heck
a7de5bc8b3 This routine does not need to take a pointer to a WorkArea. Also, remove
some dead code.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36798 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-09 22:29:12 +00:00
Georg Baum
d0933f4bd9 fix another crash like bug #6303
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36796 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-09 21:35:39 +00:00
Pavel Sanda
a03d15bbdd Default decimal point mask is not translatable string
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36795 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-09 20:31:56 +00:00
Pavel Sanda
34c26f89bb Resave in older designer
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36794 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-09 20:31:54 +00:00
Pavel Sanda
17196a24f4 Kill another &quot;
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36792 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-09 20:05:30 +00:00
Richard Heck
18da8d44c1 Add some comments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36791 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-09 18:10:44 +00:00
Richard Heck
c0bb9707cb Remove support for viewing URLs from hyperlinks. This is a security
risk, due to our lack of control over the links and the program used to
view them.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36789 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-09 17:55:11 +00:00
Jürgen Spitzmüller
b88a8d1427 * LaTeXFeatures.cpp: do not use polyglossia if the texclass provides babel.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36787 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-09 10:00:10 +00:00
Pavel Sanda
a978795215 After more attempts add gnumeric support.
Patch from Helge Hafting.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg164180.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36786 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-09 01:19:13 +00:00
Pavel Sanda
0fcab2dece Fix &quot
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36784 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-09 00:44:12 +00:00
Pavel Sanda
b442ca019d No more wavy lines
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36783 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-09 00:33:33 +00:00
Richard Heck
ea23ded591 Georg's fix for my crash moved too much inside the inTexted() crash: We
never update the buffer if we're not in text!!


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36782 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-08 21:46:57 +00:00
Richard Heck
51de359770 Committed wrong thing.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36781 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-08 21:02:28 +00:00
Richard Heck
3f40bb1432 At least prevent the crash in #7152. Patch by John McCabe-Dansted, more
or less.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36780 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-08 20:55:24 +00:00
Jürgen Spitzmüller
3518419a33 * resolve conflicts of XeTeX with AMS by loading all AMS packages before fontspec. See
http://www.macfreek.nl/mindmaster/LaTeX_package_conflicts#Amssymb_with_Xunicode

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36777 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-08 18:42:10 +00:00
Jürgen Spitzmüller
1e8bd43a70 * output_latex.cpp: fix language nesting (with polyglossia).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36775 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-08 18:25:21 +00:00
Jürgen Spitzmüller
089927dd6f make i18npreamble work with polyglossia.
We might want to rename the babelpreamble tokens to something more general.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36773 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-08 12:10:22 +00:00
Jean-Marc Lasgouttes
3370b1d2fa Fix the last part of #3733:
- In GuiApplication::dispatch, do not call markDirty() for lfuns that are not ReadOnly
- In Undo::Private::recordUndo, call markDirty(). The indicator of dirtyness is now the existence of an undo element.
- In lyxfind, remove several markDirty calls that are not needed anymore.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36772 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-08 10:30:45 +00:00
Jean-Marc Lasgouttes
2661b9b22e Some Undo cleanup. Functionality should be unchanged
- whitespace and typos in comments
- make sure that the Undo::recordUndoXXX functions all go through
  Undo::Private::recordUndo


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36771 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-08 10:04:07 +00:00
Jean-Marc Lasgouttes
838af80834 Try to finally fix #6930. All the paths that did not come from context
menus were (intentionally) missing, and it turns out they were needed.

Normally all invocations of INSET_MODIFY should trigger a recordUndo now.
Of course all cases have not been tested, but it should be working.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36770 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-08 09:24:04 +00:00
Enrico Forestieri
4457cd44e8 Compile fix for those platforms using the locale facets implemented
in docstring.cpp (this was an oversight in r36748).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36767 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-07 22:53:07 +00:00
Georg Baum
c24f8ae84e Fix bug #6603.
The problem was that the child buffers were closed,
and therefore the TOC contained dangling pointers.
The fix is simple: Reopen all child docs and create a new TOC.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36766 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-07 21:31:31 +00:00
Jürgen Spitzmüller
f255f93b9e * Follow Vincent's advice to keep constness. Thanks Vincent.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36759 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-07 09:00:50 +00:00
Jürgen Spitzmüller
2653011613 * Use default output flavor for View Source.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36758 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-07 08:36:42 +00:00
Pavel Sanda
c420c81ec2 Replay r36748
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36757 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-07 00:13:19 +00:00
Pavel Sanda
571663dcf8 Replay r36747
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36756 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-07 00:13:18 +00:00
Pavel Sanda
72f91cb394 Replay r36745
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36754 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-07 00:13:14 +00:00
Pavel Sanda
c68d754a74 Revert commits from 36745
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36749 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-07 00:05:40 +00:00
Stephan Witt
430d03811e #7026 substitute isDigit() by isDigitASCII() and ditch isDigit(); introduce isNumber() and use it in spell checker; change isdigit() to isDigitASCII() otherwise
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36748 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-06 22:35:15 +00:00
Peter Kümmel
256b236675 use tabs
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36747 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-06 20:57:48 +00:00
Peter Kümmel
099059758d don't show errors when auto saving, #7132
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36745 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-06 20:54:03 +00:00
Vincent van Ravesteijn
07534d147d Remove leftover of r36485.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36740 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-06 00:25:45 +00:00
Stephan Witt
627c118d5e avoid recursive check calls triggered by updateView(); show summary and close window when forward move not possible anymore
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36736 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-05 06:51:32 +00:00
Abdelrazak Younes
9cf9f86b8f Move buffer dispatching code from GuiView::dispatchToBufferView() to BufferView::dispatch().
The execution order bv -> doc_bv -> buffer -> doc_buffer was artificial and not important AFAIU.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36734 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-05 01:18:32 +00:00
Abdelrazak Younes
ae7bcd3312 GuiView::dispatchToBufferView(): simplify code and move some to Cursor::dispatch().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36733 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-05 00:57:04 +00:00
Abdelrazak Younes
2a11b8347c Correct grammar in comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36732 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-04 23:29:51 +00:00
Abdelrazak Younes
25fb104d74 Fix bug #7071 in cutSelection:
After a cut operation, we need to make sure that the Buffer is updated
because some further operation will need updated label information for
example. So we cannot just use "cur.forceBufferUpdate()" here.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36731 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-04 23:21:47 +00:00
Abdelrazak Younes
9fa93b2ea8 revert r36721, this was not needed after all... chasing a wrong track.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36729 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-04 23:19:42 +00:00
Vincent van Ravesteijn
9cce351940 No need for a deque here.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36728 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-04 23:18:52 +00:00
Pavel Sanda
82b712c1fc Revert r36654.
I'm not going to wait more, since we want to freeze trunk.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg163934.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36727 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-04 23:01:59 +00:00
Abdelrazak Younes
6a500079e5 Move code from GuiApplication::dispatch() to GuiView::dispatch().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36726 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-04 22:48:08 +00:00
Pavel Sanda
723160f7c0 String correction
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg164054.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36725 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-04 22:43:37 +00:00
Pavel Sanda
5f08562026 Removal of this color was forgotten.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg163890.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36724 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-04 22:41:50 +00:00