Commit Graph

19211 Commits

Author SHA1 Message Date
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 "
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
Abdelrazak Younes
28896d1bdd revert previous commit, it did not compile of course...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36723 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-04 22:19:53 +00:00
Abdelrazak Younes
7916b0dc68 GuiApplication::dispatch(): decrease indentation at the end.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36722 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-04 22:15:51 +00:00
Abdelrazak Younes
1376c39ae6 Make sure the current view is set to busy in order to avoid a crash due to a screen redraw in the middle of a dispatch operation just because a warning or an error was displayed and the focus came back.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36721 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-04 22:07:39 +00:00
Stephan Witt
fefb5e7f71 without NLS dummy available() should return false
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36720 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-04 17:42:38 +00:00
Georg Baum
4736356bf9 fix remaining bits of bug #6709
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36718 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-04 16:43:41 +00:00
Abdelrazak Younes
ecc492a3ce Fix #7021: the problem was that activating the border combo was triggering dialogToParams() and thus disallowed because of the empty value.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36712 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-04 10:55:03 +00:00
Stephan Witt
58f1126355 attempt to make LyX linkable without NLS, assuming dummy available() should return true without NLS
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36711 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-04 08:28:10 +00:00
Richard Heck
3fffe51506 Revert r36696: We can't collect BibTeX information during the
updateBuffer() traversal. The reason is simple: InsetCitation needs
access to the BibTeX info to calculate its label. But we won't have it
until we get to the bibliography.
I don't think there is any way around that.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36710 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-04 03:15:53 +00:00
Richard Heck
7e33edc3c3 Apparently deques aren't so cool.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36709 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-03 22:42:22 +00:00
Richard Heck
5ef35803e4 Rearrange headers.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36708 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-03 22:39:18 +00:00
Richard Heck
0114564eff Mark the cache valid once we have been through updateBuffer().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36702 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-03 21:22:18 +00:00
Abdelrazak Younes
dc5ade6436 typos
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36701 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-03 21:03:36 +00:00
Abdelrazak Younes
92bfa2b82d Work around bugs #6814 and #6949:
The issue is that RenderGraphics calls updateFrontend() even if within a CutAndPaste stask.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36699 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-03 21:00:15 +00:00
Richard Heck
840f2baf91 Simplify some of the bibliography update code. There is really no reason
to be passing the BiblioInfo structure around this way. (That's an old
holdover.) That lets us get rid of the non-const masterBibInfo() again.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36697 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-03 20:08:04 +00:00
Richard Heck
66be58b074 Proper fix now for bug #6846. The idea, due to JMarc, is to collect
bibliography information in updateBuffer(), rather than doing a wholly
separate traversal. We still do a separate traversal in two cases, as a
full updateBuffer() call just isn't needed there.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36696 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-03 19:29:46 +00:00
Richard Heck
ab47822680 Towards a proper fix for bug #6846, this just disentangles a couple
things we will ultimately want to do separately.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36694 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-03 19:00:55 +00:00
Richard Heck
7f5c037df3 Slight re-organization.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36688 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-03 18:01:37 +00:00
Georg Baum
53a72a4526 fix bug #6584
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36687 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-03 17:48:06 +00:00
Vincent van Ravesteijn
bbbd0d6597 *rowpainter.cpp: Squeeze some warnings and reduce linelength.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36683 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-03 15:40:23 +00:00
Pavel Sanda
840fa81104 Abdel wants to transliterate
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36682 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-03 15:14:00 +00:00
Vincent van Ravesteijn
328e8b2627 Fix bug #2100: No display equations allowed in a non-fixed width tabular cell.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36673 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-03 02:44:16 +00:00
Vincent van Ravesteijn
5846e0eb7b Compile fix for r36670.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36672 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-03 02:42:25 +00:00
Richard Heck
ec1a541a6c No need for two different containers here.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36670 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-02 22:11:52 +00:00
Richard Heck
31fcb5c97e Save a header: We don't really need a vector here.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36667 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-02 21:11:08 +00:00
Richard Heck
59760159e2 Typo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36666 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-02 21:05:45 +00:00
Richard Heck
445cb9970c Stupid implicit conversion.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36665 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-02 21:04:01 +00:00
Richard Heck
09466ad2db Some cleanup of the counters code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36663 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-02 20:22:10 +00:00
Pavel Sanda
0464d83ce0 Nothing to translate here.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36662 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-02 20:13:50 +00:00
Stephan Witt
a2287675d2 #7043 add the implementation of a persistent personal word list for LyX spell checker, aspell and hunspell backend
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36661 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-02 18:52:31 +00:00
Vincent van Ravesteijn
663029f55a Fix bug #7130: Painting problem with closed Phantom Inset. The label is now updated when the type is changed, and the arrows are correctly painted.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36660 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-02 18:00:33 +00:00
Stephan Witt
7f9d85e285 detect end of paragraph and use it as word separator to correct the word count in tables - thanks, JMarc
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36659 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-02 16:50:12 +00:00
Stephan Witt
1ed5b98873 add missing debug message
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36658 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-02 16:33:57 +00:00
Richard Heck
65192d6cf8 Fix crash reported by keytest.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36657 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-02 15:14:44 +00:00
Uwe Stöhr
0838992dcd ExternalSupport.cpp: fix #4398 (omit the newline in the LaTeX output behind the ExternalInset inset if the inset type is a date)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36654 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-02 04:05:35 +00:00
Pavel Sanda
8677d02527 Doxy convertor knows nothing about multiple Sample fields
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36652 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-02 02:46:24 +00:00
Pavel Sanda
e8d0eaa180 Doxy whitespacing
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36651 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-02 02:36:18 +00:00
Pavel Sanda
0a34788bba Update doc about forward search.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36650 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-02 01:56:45 +00:00
Pavel Sanda
f01e1e202f Better doxy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36649 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-02 00:58:32 +00:00
Pavel Sanda
b83e477ca2 * doxy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36648 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-02 00:22:50 +00:00
Pavel Sanda
a831d1bf36 Another shortcut
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36646 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-01 17:10:37 +00:00