Commit Graph

26891 Commits

Author SHA1 Message Date
Peter Kümmel
40dcf20b5d cmake: add option to download msvc 10 3rd party libraries
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37370 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-30 10:23:29 +00:00
Stephan Witt
e5f51200a3 isWordSeparator crashes when checking end-of-paragraph
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37369 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-30 07:17:48 +00:00
Enrico Forestieri
ab9548d06d In order to avoid code replication, use a template-based solution for
all types requiring the exact same code, as suggested by Tommaso.
This allows to simply add a single-line instantiation declaration
if there's the need of adding another type requiring the same code.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37366 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-29 19:44:53 +00:00
Pavel Sanda
195d1c681b Update id.po from Waluyo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37365 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-29 14:48:56 +00:00
Tommaso Cucinotta
5f50ae8f08 Added basic automated testing capability, based on the MonKey Test (keytest.py) by McCabe-Dansted.
As of now, I plan to add a few regression tests for the Advanced Find & Replace using this engine.
It can be used for automated testing of other LyX subsystems as well. Just write your own *-in.txt
scripts and add them into the autotests/ folder.

TODOs:
- perhaps simplify keytest.py
- check how this behaves under various types of failure of the test
  (e.g., LyX crashing, hanging, ...) just to be sure it goes on with
  the other tests anyway.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37364 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-29 14:42:53 +00:00
Stephan Witt
5eed97b56b restore the correct behavior of suppression of misspelled marker for word at cursor position - the change r37340 broke it
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37363 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-29 12:28:02 +00:00
Kornel Benko
4a8751f8dd * sk.po
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37362 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-29 11:00:28 +00:00
Kornel Benko
9f362930d4 remerge sk.po
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37361 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-29 10:57:36 +00:00
Enrico Forestieri
1ef605f625 Introduce a wrapper class for odocstream to help ensuring that no
blank lines may be inadvertently output. This is achieved by using two
special iomanip-like variables (breakln and safebreakln) in the lyx::
namespace. When they are inserted in the stream, a newline is output
only if not already at the beginning of a line. The difference between
breakln and safebreakln is that, if needed, the former outputs '\n'
and the latter "%\n".
In future, the new class will also be used for counting the number of
newlines issued. Even if the infractrure for doing that is already in
place, the counting is essentially still done the old way.
There are still places in the code where the functionality of the
class could be used, most probably. ATM, it is used for InsetTabular,
InsetListings, InsetFloat, and InsetText.
The Comment and GreyedOut insets required a special treatment and a
new InsetLayout parameter (Display) has been introduced. The default
for Display is "true", meaning that the corresponding latex
environment is of "display" type, i.e., it stands on its own, whereas
"false" means that the contents appear inline with the text. The
latter is the case for both Comment and GreyedOut insets.
Mostly, the only visible effects on latex exports should be the
disappearing of some redundant % chars and the appearing/disappearing
of null {} latex groups after a comment or lyxgreyedout environments
(they are related to the presence or absence of a space immediately
after those environments), as well as the fact that math environments
are now started on their own lines.
As a last thing, only the latex code between \begin{document} and
\end{document} goes through the new class, the preamble being directly
output through odocstream, as usual.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37360 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-29 02:41:13 +00:00
Pavel Sanda
021618142f Update from Waluyo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37358 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-28 23:45:00 +00:00
Pavel Sanda
ca942c343b Remerge strings
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37357 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-28 23:44:26 +00:00
Pavel Sanda
68393ecd7d Add Tommaso to credits
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37356 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-28 23:06:05 +00:00
Georg Baum
9b4ee44620 Improve roundtrip of Customization.lyx:
The lstlistings environment is no longer be unknown.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37355 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-28 21:20:48 +00:00
Georg Baum
b2e1eb0dda Clean up parsing of optional arguments:
If an optional argument can be followed by another one, we need to use
getFullOpt(). Otherwise it would not be possible to parse \foo[][bar].
Remove getOptContent to avoid confusion (it does exactly the same as
getArg('[', ']') which is used in most places.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37354 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-28 20:29:06 +00:00
Richard Heck
5123774bd1 Fix lyx2lyx problem with sweave files and ParBreakIsNewline.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37353 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-28 19:48:03 +00:00
Pavel Sanda
b2d2fdf1ee Thanks to Jose.
BTW I see some people like Stephan have quite up-to-date entries :)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37352 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-28 14:53:37 +00:00
Pavel Sanda
3b47546b99 Update info in credits.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37351 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-28 14:45:08 +00:00
Edwin Leuven
023c4872c5 update totem correctly (and revert r37349)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37350 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-28 14:28:11 +00:00
Edwin Leuven
bb1c6c1a6a update my totem
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37349 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-28 14:02:52 +00:00
Pavel Sanda
b01f5549f3 .lyx as symlinks killed when saving because of #6587 workarounds.
At the end escape for fsync would be the least hackish solution
but it needs somebody with ext4 to test with.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37348 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-28 12:39:50 +00:00
Pavel Sanda
79b6602190 Add Patrick to credits
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37346 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-28 10:05:01 +00:00
Pavel Sanda
0bdd36fe8f Another glitch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37345 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-28 10:04:59 +00:00
Pavel Sanda
45a6a545e2 Bug in fixltx2e entry
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37344 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-28 10:04:57 +00:00
Pavel Sanda
db7c388b92 Add the rest into LaTeXConfig.lyx.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37343 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-28 10:04:55 +00:00
Pavel Sanda
42785e6219 Bug #7095: Support fix-cm.sty
Patch from Patrick Atamaniuk.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg165122.html

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37342 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-28 10:04:52 +00:00
Tommaso Cucinotta
e70a79fc0b Code simplification (thx Vincent).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37341 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-28 09:52:12 +00:00
Stephan Witt
5ee3c34096 save the correct last position of misspelled words in spell checker state (thanks JMarc)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37340 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-28 07:01:38 +00:00
Jean-Marc Lasgouttes
996079334b Fix default buffer output format for literate documents.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37339 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-27 16:33:00 +00:00
Jean-Marc Lasgouttes
92e708fd6d For the default View and Update actions of the View menu, use the lfuns without parameters.
This paves the way for having a shortcut for buffer-view and buffer-update


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37338 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-27 11:53:51 +00:00
Jean-Marc Lasgouttes
fe54f0c341 Finish fixing bug #6623 (Sweave cannot read local files)
* in converters, make sure that $$p and $$r are slash-terminated paths (like in viwers, BTW)
* pass the full intput path to lyxsweave.R


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37337 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-27 11:14:32 +00:00
Tommaso Cucinotta
917785df71 Completing r37335 (apologies).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37336 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-27 00:43:25 +00:00
Tommaso Cucinotta
e05d115be8 Fixing regression bug after last commit. Couldn't find anything better, however now it apparently works and doesn't crash
(when replacing text which is longer than the replaced contents in math mode and similar).



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37335 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-26 23:54:12 +00:00
Tommaso Cucinotta
b39f4a1de7 Fixes this issue:
with this sequence:

-) C-N (new doc)
-) C-S-f (open advanced find dialog)
-) Alt-Tab (switch to other application)
-) Alt-Tab (switch back to LyX)

the focus now is on the main document WA. I think it should be back on the Find WA where I was before the Alt-Tab.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37334 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-26 23:18:36 +00:00
Tommaso Cucinotta
c005af6749 Puts the selection at the correct position after replacing math contents with Advanced Search.
Fixes crashes reported as #7245 and also #7241.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37333 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-26 23:06:02 +00:00
Pavel Sanda
32a2b7e5df * ANNOUNCE
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37332 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-26 18:35:25 +00:00
Pavel Sanda
58c02a5e5b * LFUNs.lyx
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37331 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-26 18:24:53 +00:00
Pavel Sanda
dc5885986d * RELEASE-NOTES
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37330 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-26 18:20:22 +00:00
Richard Heck
782e68aeb6 Fix thinko from r37328.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37329 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-26 14:27:16 +00:00
Jean-Marc Lasgouttes
370044551c Unify handling of pass thru insets and paragraphs by introducing Paragraph::isPassThru. Many lfuns are now disabled in sweave chunks.
Also, fix #7175 (do not output \noindent in passthru pars)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37328 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-26 11:04:42 +00:00
Stephan Witt
9e16f14464 introduce the lyx_dir() of Package, automatically set LyXDir environment, correct the replaceEnvironmentPath() function (see #4177) and replace environment variables in path_prefix at runtime
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37326 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-25 21:10:49 +00:00
Jean-Marc Lasgouttes
8a84eeb27a forbid spellchecking in code layouts
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37324 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-25 14:17:07 +00:00
Jean-Marc Lasgouttes
98b48a4969 Add and document build types profinling and gprof. Some clean up of build_type code in configure
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37323 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-25 13:49:49 +00:00
Jean-Marc Lasgouttes
3b316bc83f better fix to #7239. Actually the whole switch and kaboodle (see r37229) is needed (otherwise sweave is broken)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37322 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-25 11:22:47 +00:00
Pavel Sanda
297a74b7ad MS Word converter -> HTML (MS Word) converter
Patch from Alex Fernandez.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37321 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-25 10:26:29 +00:00
Enrico Forestieri
e0dfcdbdda Fix bug #7254 (LyX may insert a blank line when ending an environment)
The quick solution is to output a % sign before \n. The better one
would be doing as in mathed, but it is not so straightforward.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37320 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-24 23:58:58 +00:00
Stephan Witt
37d8cbc3a6 adjust distributed default lyxrc for mac, spell_command is outdated (r37255)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37319 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-24 16:30:06 +00:00
Peter Kümmel
9ca53c6af8 fix c&p bug
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37318 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-24 15:06:39 +00:00
Peter Kümmel
8f8aab094d cmake: also add gifs to resources
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37317 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-24 11:50:13 +00:00
Peter Kümmel
4a1a425213 remove obsolete code: we have now a animation to indicate that LyX is busy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37316 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-24 11:38:13 +00:00
Pavel Sanda
85e11a9bb8 Spotted by Jim.
These newlines go directly to about dialog and look weird.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37315 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-24 10:47:01 +00:00