Commit Graph

26880 Commits

Author SHA1 Message Date
Stephan Witt
64c4ccbeed remove duplicate check for current selection
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37428 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-02 20:36:43 +00:00
Richard Heck
a5b01f8f96 More related to #7224: It's OK for layouts not to provide a ListCommand
if a float writes to the same auxfile as an existing float. E.g., in the
aguplus classes, we have a plate float that writes to lof and so is just
treated as a figure, for TOC purposes.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37427 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-02 17:32:59 +00:00
Jürgen Spitzmüller
c29fdcb0a7 whitespace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37426 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-02 17:26:40 +00:00
Richard Heck
41d858b88c Update all layouts to format 32.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37425 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-02 17:13:37 +00:00
Richard Heck
32ab2ff2b7 Fix bug #7224. This allows two different floats to declare the same
ListCommand without our writing it to the menu twice. There's a minor
annoyance, which is that we always take the list name from the first
declaration of the Float, but it's not clear whether this is a real
issue.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37424 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-02 17:11:56 +00:00
Richard Heck
5dcac0b5c5 Fix #7274.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37423 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-02 16:43:02 +00:00
Jürgen Spitzmüller
c3ed49dd92 * configure.py: check also for xindy, which is a reasonable alternative to texindy and makeindex.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37422 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-02 16:12:35 +00:00
Jean-Marc Lasgouttes
4055006f43 there is no need to install new fonts for LyX
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37419 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-02 15:10:03 +00:00
Jean-Marc Lasgouttes
8886789fc4 typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37418 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-02 14:55:14 +00:00
Jürgen Spitzmüller
4b91536197 * InsetFloat.cpp (getCaption):
- Protect content which has a "]" in subfloat captions.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37416 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-02 11:05:56 +00:00
Stephan Witt
83c06abbc0 apply change of languange to the word under cursor if there is no selection
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37415 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-02 10:55:17 +00:00
Pavel Sanda
e3a8a6342e * fr.po from Jean-Pierre
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37414 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-02 10:40:53 +00:00
Tommaso Cucinotta
fcd769c58c Fixed focusing issue when dialog already open on lyx start,
and added selection of entire find/replace WAs when switching
among them on Tab/Alt+Tab.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37413 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-02 08:55:59 +00:00
Jürgen Spitzmüller
b7d4923fca update tracker link.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37411 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-02 06:50:13 +00:00
Tommaso Cucinotta
ac7572f366 More precise identification of the lyx window (by id, instead of the buggy by title).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37410 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-01 22:57:10 +00:00
Pavel Sanda
82aa99f551 * cs.po
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37409 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-01 22:45:15 +00:00
Tommaso Cucinotta
705759d678 Added the creation of a custom .lyx folder inside pwd/home/.lyx at
the beginning of the tests (which reconfigures LyX and takes some time),
followed by all of the tests using it. This way, we get only the default
configuration of LyX as a base, without being affected by individual users
custom configurations.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37408 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-01 22:08:07 +00:00
Georg Baum
cfc81ea3d7 Disable preview converters that need dv2dt if dv2dt is not available.
This gives a better error message on the console (although it is still
impossible to figure out what went wrong from the GUI).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37407 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-01 20:03:01 +00:00
Jürgen Spitzmüller
50eeed7811 * sv.po: update.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37403 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-01 17:00:08 +00:00
Jürgen Spitzmüller
a37190ee62 * BufferParams.{cpp,h}:
- go back to Maping=tex-text for XeTeX and use Ligatures=TeX only for LuaTeX.
	  This gets users of older distributions (such as TeXLive 2009) back into the XeTeX game.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37402 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-01 14:00:23 +00:00
Pavel Sanda
6d342acf06 Remerge strings
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37400 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-01 11:22:09 +00:00
Pavel Sanda
191de1656b *id.po from Waluyo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37399 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-01 11:21:48 +00:00
Kornel Benko
5212548bbe * sk.po
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37396 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-01 09:53:57 +00:00
Kornel Benko
eb29946546 Remerge sk.po
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37395 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-01 09:53:22 +00:00
Jürgen Spitzmüller
87bad602f4 * de.po: update.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37394 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-01 09:36:44 +00:00
Jürgen Spitzmüller
55a998a7ea * enumitem.module: refer to mirror CTAN address, not to DANTE.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37393 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-01 09:34:37 +00:00
Pavel Sanda
fc1260b0bc Few touches of autotests
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37390 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-31 20:39:35 +00:00
Richard Heck
14f0e15573 Convert converter preferences to use new "latex=flavor" syntax.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37389 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-31 19:42:50 +00:00
Jürgen Spitzmüller
6e9a59841e InsetParamsDialog: update the dialog settings on context change (on user request).
Fixes bug 7271.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37388 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-31 14:48:16 +00:00
Jean-Marc Lasgouttes
0299c0be49 fix --disable-debug in configure; more cleanups to build_type handling
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37386 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-31 10:19:03 +00:00
Enrico Forestieri
b88512ac76 Update it.po
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37382 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-30 23:14:01 +00:00
Enrico Forestieri
6919ddf078 Bump layout format for the new Display tag used in Comments and Greyedout notes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37381 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-30 22:22:18 +00:00
Tommaso Cucinotta
37179bca4b Added test cases for format-aware searching of formatted text.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37380 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-30 19:46:05 +00:00
Tommaso Cucinotta
7e02f60ae6 keytest.py ignores now also whitespaces only lines.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37379 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-30 19:45:17 +00:00
Tommaso Cucinotta
e4df1f08fb Removed stripping of whitespaces from script commands.
Added the capability to ignore empty lines.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37378 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-30 19:44:31 +00:00
Tommaso Cucinotta
090aac89d0 Added Lang command to test cases. Added a couplr of regression tests for Advanced F&R.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37377 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-30 16:01:22 +00:00
Tommaso Cucinotta
cc694943a7 Refined description of syntax.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37376 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-30 16:00:01 +00:00
Tommaso Cucinotta
4d138a9f3d Avoid confusing the window name of a LyX instance with the one of
Thunderbird while displaying LyX mails or Firefox while displaying
LyX web pages.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37375 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-30 15:59:41 +00:00
Tommaso Cucinotta
8ef0abbacc Added Sleep and Assert commands in test scripts.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37374 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-30 15:58:08 +00:00
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