Commit Graph

19765 Commits

Author SHA1 Message Date
Richard Heck
ff782f993a Style.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38186 a592a061-630c-0410-9148-cb99ea01b6c8
2011-04-01 19:27:30 +00:00
Richard Heck
461c973d62 Clean up XHTML output a bit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38185 a592a061-630c-0410-9148-cb99ea01b6c8
2011-04-01 19:18:25 +00:00
Richard Heck
2378db75c1 Prettify tabular output.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38184 a592a061-630c-0410-9148-cb99ea01b6c8
2011-04-01 18:36:13 +00:00
Richard Heck
eceefd3d31 Remove debugging code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38183 a592a061-630c-0410-9148-cb99ea01b6c8
2011-04-01 18:35:06 +00:00
Enrico Forestieri
b413c58e78 Make the libreoffice icons the default set, add some missing icons,
and improve the appearance of some other ones.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38182 a592a061-630c-0410-9148-cb99ea01b6c8
2011-04-01 17:51:12 +00:00
Stephan Witt
934cadd381 improve the method naming for "mark new word position", move the mark operation out of bookmarkEditPosition up one level to LFUN_SELF_INSERT of the text inset dispatch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38181 a592a061-630c-0410-9148-cb99ea01b6c8
2011-04-01 05:49:04 +00:00
Richard Heck
4685a3e5a8 Given how we are using this exclusion list, it makes more sense for it
to be a set. Not that speed will really be an issue here, but....


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38178 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-31 13:03:29 +00:00
Richard Heck
1d255a8da5 We always call this function with the argument now, but it should be
defaulted anyway.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38177 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-31 12:57:05 +00:00
Richard Heck
bfd5abac4c Remove unused code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38176 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-31 12:54:49 +00:00
Richard Heck
f2bfbfa975 Simplify public API by using default argument. More to come.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38175 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-31 12:51:48 +00:00
Julien Rioux
6946111727 with nonTeXFonts, use xelatex to produce the requested .aux file,
since plain old latex will likely choke on the generated .tex file

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38168 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-30 22:37:51 +00:00
Julien Rioux
bdc2dc042f exclude latex and pdflatex formats from the converter
graph when using nonTeXFonts

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38167 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-30 22:25:39 +00:00
Julien Rioux
1a0852630a optionally allow to exclude certain formats, by name, from the converter graph
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38166 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-30 22:24:30 +00:00
Julien Rioux
adc6d258f9 we want XeTeX as the backend for previews when using nonTeXFonts
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38160 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-30 13:50:47 +00:00
Julien Rioux
efe93782fe allow proper preview when using literate in combination with nonTeXFonts
(we can't rely on bufferFormat for this)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38147 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-30 00:34:09 +00:00
Julien Rioux
618c1b6eb1 fix inclusion of literate child documents after r38118
(isLatex is unreliable)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38140 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-30 00:23:32 +00:00
Peter Kümmel
97a5c0882d Messages::init(); needs Package. this fixes a crash on windows which presents parsing of the argument
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38139 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-29 22:18:21 +00:00
Peter Kümmel
b391929ece undo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38136 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-29 21:38:52 +00:00
Enrico Forestieri
89b4af1653 The original icon set was thought for a normal size of 20x20.
New icon sets declare the normal size through an iconsize.png file.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38135 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-29 21:07:46 +00:00
Peter Kümmel
774d215750 don't just crash when it couldn't find chkconfig.ltx
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38134 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-29 20:53:53 +00:00
Tommaso Cucinotta
8fd06ad27c Fixed overlapping of both Find Advanced and Spellchecker Dockwidgets (addressing #7375).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38133 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-29 20:51:40 +00:00
Vincent van Ravesteijn
7e566747fd Fix bug #7351 (oart 2). Missing update.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38131 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-29 17:09:46 +00:00
Stephan Witt
40ed86b416 #6776 Remove cached misspelled marker for word delimiters
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38124 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-29 10:37:21 +00:00
Jürgen Spitzmüller
717c4176f5 * InsetInclude.cpp: another follow-up to r38025: do not attempt to convert a child document to LaTeX if it is already LaTeX.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38118 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-29 08:35:37 +00:00
Pavel Sanda
29fc2f60be InsetInfo - on VCS error we don't want localized output in .tex output.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38117 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-29 01:43:06 +00:00
Richard Heck
aff04ce265 Refine previous commit: Forgot the break.
Also, if we're "undefined", then we should just continue reading.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38116 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-29 01:01:24 +00:00
Richard Heck
2a39fbb430 Continuing fix of #7080. Since we now demand "Flex:Whatever" as the name
of a flex InsetLayout, let's check for it when we hit a LyXType tag, and
refuse to honor it unless we have the right sort of name.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38115 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-29 00:57:07 +00:00
Richard Heck
ebe6c9287f Fix bug #7080.
- Have InsetFlex::layoutName() report "Flex:" + the inset name.
- Do some layout2layout work so that user insets that do not have
  the "Flex:" prefix get it.

Note that this will break some CopyStyle stuff, but we do not have any
decent way to do that, so users will have to make that change for
themselves. I guess we should add that to the release notes.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38112 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-28 23:11:54 +00:00
Richard Heck
2777c336cb This "#if 0" code is very old, and obsolete.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38110 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-28 22:34:41 +00:00
Richard Heck
3f27f951cb This is intended to be a pure renaming of the Inset::name() routine,
preparatory to fixing #7080. Note that mathed uses the same routine, but
for a completely different purpose, so I did not rename it there. I have
seen no difference in behavior after testing, e.g., opening and
exporting Math.lyx, and also re-saving it and looking at the diff.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38109 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-28 22:33:04 +00:00
Pavel Sanda
9c9abe843f Push r38098 again in
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38108 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-28 22:20:41 +00:00
Pavel Sanda
8a53cc7bea revert r38098
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38099 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-28 21:06:46 +00:00
Richard Heck
98e317ef1d Improve conversion error message.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38098 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-28 20:25:35 +00:00
Richard Heck
a72642a174 Remove obsolete layout tags.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38096 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-28 15:11:57 +00:00
Peter Kümmel
1bd35e75f7 just to be sure: don't know if other compilers mangle the access
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38093 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-28 07:10:40 +00:00
Peter Kümmel
2874889b9b fix msvc linker error: for the linker struct and class isn't the same here
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38092 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-28 07:06:20 +00:00
Enrico Forestieri
ca15005193 Smash compiler warning.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38089 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-28 05:49:35 +00:00
Enrico Forestieri
b1c7450f73 Fix make check
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38088 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-27 23:47:58 +00:00
Pavel Sanda
59923085b9 * doxy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38079 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-27 22:50:19 +00:00
Enrico Forestieri
12baf18cfa Automatically set the normal icon size on restart if the the icon set changed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38076 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-27 19:07:09 +00:00
Enrico Forestieri
25fe275430 Replace raw newlines with the html entity "
" otherwise lyx_pot.py
won't collect these strings.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38060 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-26 00:57:00 +00:00
Jürgen Spitzmüller
76ec475e87 * GuiPrefs.cpp: default means empty string.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38051 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-25 15:21:35 +00:00
Jürgen Spitzmüller
6e03eb57fa GuiPrefs.{cpp,h}: use text/data interface for icon set ui.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38049 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-25 15:14:52 +00:00
Enrico Forestieri
7a9250df6a Fix compiler warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38048 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-25 14:53:20 +00:00
Enrico Forestieri
36bf758ed9 Move to PrefUi the icon set choice and solve problem with translation
of icon set names.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38046 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-25 14:21:28 +00:00
Jürgen Spitzmüller
68beae862f * correctly handle childs with pdflatex.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38044 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-25 10:11:02 +00:00
Enrico Forestieri
c6564028f0 Preferences for choosing the icon set to use. It works on the fly, but
the size of icons may be wrong when switching between sets with different
normal icon size. One needs to save the preferences, restart LyX and choose
"Normal-sized icons" from the toolbar menu to have the real normal size.
A minor glitch is that the name of the icon sets is translatable, but
currently only the translation for "Default" works. The problem is that I
don't know how to ask gettext for an inverse translation when saving the
preferences. Another possibility would be hardcoding the order of the names
in the combo box (such that to not rely on their names), but that is ugly
and prone to errors if/when other sets are added.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38041 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-25 05:01:06 +00:00
Enrico Forestieri
a99340cd10 Infrastructure for choosing different icon sets. This currently works
through the rc setting \icon_set. Preferences dialog will follow shortly.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38038 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-25 01:59:34 +00:00
Georg Baum
5bf72d6dca support language variants like german (old spelling) or british english
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38029 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-24 19:40:54 +00:00
Julien Rioux
474f19876c handle 'literate' lyx child documents (lilypond and sweave)
- don't assume that the exported file extension is .tex
   - use converter tool chain to produce a latex file for input or include

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38025 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-24 15:47:40 +00:00
Stephan Witt
e6f46dd08c #7379 avoid the wrap spell check question when buffer is empty
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38023 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-24 11:49:34 +00:00
Pavel Sanda
c664b63949 Better handling checksum on samba - allow fallback to ifstream.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38022 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-24 10:12:55 +00:00
Abdelrazak Younes
70c603a1b2 Cleanup the SpellChecker dialog (fixes #7375 and #7379):
* Transform Spellchecker.ui into a simple QWidget
* Pimpl all we can
* Remove progress bar
* Remove Close button (as for all other dock widgets)
* Allow the dialog to stay even for empty document
* Disable the dialog when closing all documents
* always work against the current document Bufferview (as opposed to embedded bufferview).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38018 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-23 23:10:12 +00:00
Georg Baum
dd23151da9 Fix part 1 of bug #7351
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38017 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-23 21:05:44 +00:00
Georg Baum
55ef7b50b5 First version of separate translation machinery for strings that go into
exported documents.
To update the translations from the .po files, run
make ../lib/layouttranslations
from po.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38016 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-23 19:17:15 +00:00
Vincent van Ravesteijn
4fcbb93e39 Do not give access to the actual data of the CoordCache. This prevents the use of the stored pointers which might be invalid.
See also r38011.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38012 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-23 17:43:13 +00:00
Vincent van Ravesteijn
f4767138de Fix bug #7376. After deleting an inset, we try to update the screen using the singlePar optimization. One of the consequences is that the coordcache is not refreshed. Therefore, it is possible that the pointers to the insets in the coordcache are invalid and we should not access inset->name().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38011 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-23 16:25:43 +00:00
Pavel Sanda
40ad67e5f1 comment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38006 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-23 14:52:18 +00:00
Pavel Sanda
44c0b9d7da Fix samba related crashes
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg166543.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38003 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-23 14:28:23 +00:00
Jürgen Spitzmüller
a671dc5851 try to clarify a comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38002 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-23 14:15:46 +00:00
Enrico Forestieri
64bdffbac4 Let the icon set decide what the normal size is, but bound it to the
range between the hardcoded small and large sizes.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38000 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-22 23:41:26 +00:00
Jean-Marc Lasgouttes
30d9ea948b whitespace
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37987 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-21 22:30:17 +00:00
Jean-Marc Lasgouttes
5b2b94fe95 Do not forget to save menu=export format flag to LyXRC.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37986 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-21 22:25:47 +00:00
Abdelrazak Younes
c0c7729a83 coding style
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37977 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-20 15:44:40 +00:00
Georg Baum
85df237aff fix bug 7351 part 3: Do not count inline formulas for eqn number counter
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37976 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-20 12:12:08 +00:00
Jürgen Spitzmüller
729ac126be * LaTeXFeatures.cpp (getI18nPreamble):
addition to r37974: if English is used as a secondary language, we have to propose an English translation,
	since the original string is in the document's main language!

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37975 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-20 11:39:02 +00:00
Jürgen Spitzmüller
a9878d52ed * LaTeXFeatures.cpp (getI18nPreamble):
- do not propose translations for bultin floats (they are translated anyway)
	- only propose translations for floats if we have something different to the English source

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37974 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-20 10:50:43 +00:00
Vincent van Ravesteijn
19263a634b Fix bug #7314: Workareas not redrawn. This is caused because the current_workarea doesn't get updated anymore while LyX is busy. However, when LyX stops being busy, the current workarea might have changed, and we are missing out on an update.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37969 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-19 19:20:42 +00:00
Vincent van Ravesteijn
c07bd1ab52 Fix bug #7261: Assertion when moving up
There are two possibilities to add an Inset to the CoordCache:
- 1), use CoordCache::add(Inset * p, int x, int y),
- 2), use CoordCache::add(Inset * p, Dimension dim).

In the latter case, the x and y are happily initialized as 0.
Also, when one call CoordCache::has(Inset * p), it will happily
return true because the cache knows something about this inset.

In #7261, LyX asked for the (x,y) position of an Inset and
received (0,0) as an answer, although that is not the position
of the Inset.

By adding some defaults for x,y in case of initializing with
dim only will give an extra check whether the cache really
"has" the position object.

In the long run, we might want to split the cache for
dimensions and positions.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37968 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-19 17:54:21 +00:00
Jürgen Spitzmüller
a360fcd220 whitespace only.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37967 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-19 17:52:00 +00:00
Jürgen Spitzmüller
900b896fdc * Menus.cpp: fix accelerator
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37966 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-19 16:16:49 +00:00
Vincent van Ravesteijn
75f45e3912 Add mnemonic.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37964 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-19 14:56:54 +00:00
Vincent van Ravesteijn
2b689dd834 Fix bug #7275: Overcrowding of context menus.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37963 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-19 14:55:32 +00:00
Vincent van Ravesteijn
49459f6fc4 Fix bug #7345: Crash when right clicking on displayed math with selection
Two things have been fixed here:
1) the selection should not be cleared when the user right clicks a math inset that is part of the selection,
2) the type of context menu should be determined at mouse-press, because that is the moment when the cursor is set. However, we should do it after setting the cursor, because setting the cursor might change the selection status and this influences the choice for the type of context menu.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37961 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-19 13:14:13 +00:00
Vincent van Ravesteijn
72ad0bdfbf Simplify logic in InsetRef::latex().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37960 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-19 10:37:24 +00:00
Vincent van Ravesteijn
eec88b7e5e Revert wrong previous commit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37959 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-19 10:34:59 +00:00
Vincent van Ravesteijn
e52af5f897 Simplify logic in InsetRef::latex().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37958 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-19 10:31:43 +00:00
Georg Baum
d40c9f0548 Fix the reset buttom for the greyed out text color:
Reset to the default greyed out text color, not to the note background color


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37956 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-18 21:13:05 +00:00
Richard Heck
8eaed90043 Style.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37955 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-18 18:56:05 +00:00
Enrico Forestieri
397c03b433 Fix bug #7361 (Assertion when a latex error occurs in the first (empty) paragraph)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37954 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-18 17:26:17 +00:00
Jürgen Spitzmüller
d999c98bad * GuiPrefs.cpp: no need to exclude greyedouttext and shaded colors from prefs.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37952 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-18 15:12:03 +00:00
Jürgen Spitzmüller
45b6349139 * GuiDocument.cpp: do not hardcode colors that can be redefined in prefs..
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37949 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-18 14:40:38 +00:00
Jürgen Spitzmüller
b7ac0ee143 * GuiDocument.cpp: make strings translatable.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37948 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-18 14:11:36 +00:00
Stephan Witt
291c5c91ec #7357 correct the numbers by introducing two modes of word count
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37947 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-18 12:50:09 +00:00
Jürgen Spitzmüller
85f486f259 * InsetSpecialChar.cpp:
make NOBREAKDASH isLetter()

* Paragraph.cpp (isWord separator):
	handle composites with hyphens as one word (i.e., "-" is not a word separator).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37946 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-18 09:17:09 +00:00
Richard Heck
2ae247285c Initialize variable. Possibly related to Jurgen's weird crashes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37945 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-18 01:28:52 +00:00
Tommaso Cucinotta
62411b7c0f Fixes a weird bug found while playing with #7363.
Indeed, unchecking ignore format in that scenario was not matching anyway while searching.
This patch fixes that behavior.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37943 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-18 00:47:42 +00:00
Stephan Witt
0afeabb969 #7357 avoid an endless loop in countWords() when the "to" position is inside skipped text (e. g. note inset)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37940 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-16 17:58:27 +00:00
Stephan Witt
07ef381914 correct shift of spell results when erasing the last character in range
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37939 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-16 13:54:36 +00:00
Edwin Leuven
571b779b23 fitcursor in r37929 was not enough for side scrolling tables
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37938 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-15 18:43:09 +00:00
Jürgen Spitzmüller
101cabc355 thinko.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37936 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-15 13:36:48 +00:00
Jürgen Spitzmüller
266399ef83 typos in comments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37935 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-15 13:27:08 +00:00
Jürgen Spitzmüller
ff829bd92b Follow-up to r37932: We do not need a skipOnSearch variable, since we know the conditions anyway.
Thanks, JMarc,

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37934 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-15 13:19:55 +00:00
Jürgen Spitzmüller
ee6e5b784d * Inset.h: try to clarify isLetter() and isChar() a bit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37933 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-15 11:26:14 +00:00
Jürgen Spitzmüller
8fa96ceec8 Do not hardcode specific insets, but use a variable instead.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37932 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-15 10:46:14 +00:00
Stephan Witt
5866504aba #7350 more checks to validate the DocIterator before calling locateWord() in checkNewWordPosition()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37931 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-15 10:27:41 +00:00
Edwin Leuven
9d4678b663 update when cursor leaves screen while navigating large tables using the arrows
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37929 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-15 08:54:46 +00:00
Peter Kümmel
6a6706ca67 add link about msvc10 bug
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37927 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-14 23:26:55 +00:00
Pavel Sanda
ed38744b09 Add unused string into tooltip
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37923 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-13 23:14:12 +00:00
Pavel Sanda
d83c44d0f2 Resave in older designer
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37922 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-13 23:14:11 +00:00
Vincent van Ravesteijn
6cb775b134 *rowpainter.cpp: Squeeze warnings.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37919 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-13 21:06:16 +00:00
Richard Heck
69ab57ab89 What is output as \eqref under prettyref needs to be handled differently
under refstyle, since (a) the default refstyle.cfg defines \eqref itself
and (b) does NOT define it the way AMS does. So we simply output:
	(\ref{label})
in this case, to match what we say in the UI.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37918 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-13 20:29:52 +00:00
Abdelrazak Younes
c9e4d86b4c Temporally fix #7321 until a better solution is found. The auto scrolling is very bad but at least it does not crash nor assert.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37916 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-13 16:41:47 +00:00
Abdelrazak Younes
8d06c1ebda TextMetrics::editXY(): don't continue executing code when asserting.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37915 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-13 16:38:36 +00:00
Abdelrazak Younes
076151f508 Trying to fix #7321: add some assertions.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37914 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-13 16:26:57 +00:00
Abdelrazak Younes
00a10facd2 Trying to fix #7321: SyntheticMouseEvent() only works within text.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37913 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-13 16:26:03 +00:00
Jürgen Spitzmüller
82eee13e42 * LyXRC.cpp: fix typo. although these strings are not used at all.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37910 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-13 12:06:54 +00:00
Jürgen Spitzmüller
34651dfd6b * LaTeX.cpp: fix another variant of bug #7344 (delete aux files and rerun LaTeX if hyperref has been toggled)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37909 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-13 11:57:01 +00:00
Vincent van Ravesteijn
aed9e6c3f1 Fix bug #7352: Statusbar of Compare dialog is wrongly placed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37904 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-12 17:02:03 +00:00
Enrico Forestieri
6d425078a7 When an error occurs, don't highlight more than necessary.
Currently, if an inset outputs a newline, the new latex row is still
associated with a previous id/pos. Now, if a latex error occurs before
this newline, we would still highlight everything associated to that
id/pos, even if it is extraneous to the error.
This is avoided by associating the new latex row with the id/pos in
effect right before entering the inset. If an inset does not output
a newline, it is not excluded from the selection, consistent with the
fact that the text of the inset does appear in the error description.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37903 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-12 01:40:01 +00:00
Stephan Witt
ad1dc2fd6b now the user has control over the width of the text cursor
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37901 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-11 06:11:55 +00:00
Enrico Forestieri
c4d1c0943b When an error occurs inside an inset, the content rather than the inset
as a whole gets highlighted. Now, the error list carries information
about the starting id/pos and ending pos, but not about the ending id.
So, when computing the range to be highlighted as range = pos_end - pos_start,
if id_start != id_end, the result 1 means one inset and only the first
character in the inset would be highlighted. Thus, when id_start != id_end,
let pos_end = 0, such that the whole content will be highlighted.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37900 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-10 22:11:34 +00:00
Stephan Witt
6118beae8d better fix for regression introduced by r37463: crash when dissolving an inset. then the saved cursor slices of new_word_ are out of sync, add a check for count of nested insets
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37899 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-10 20:15:34 +00:00
Enrico Forestieri
32ea651007 Revert r37801 and r37870. They are superseded by r37894.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37895 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-10 04:10:21 +00:00
Enrico Forestieri
732212f233 Make sure to associate each line of the exported latex code to the id/pos
of the first call of TexRow::start(), rather than the last before a newline.
This is what was causing some recent grief (bug #7325, for example).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37894 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-10 04:05:49 +00:00
Stephan Witt
c530a2d1a2 avoid the automatic word selection for language change when at the word boundaries, this will stop the automatic selection for words with length of one character
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37886 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-09 14:15:34 +00:00
Jürgen Spitzmüller
cf6c0c8192 * Inset.h: fix typo in comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37885 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-08 16:12:35 +00:00
Stephan Witt
1c58de4cc7 #7266 drawing of dotted lines with QPen and line width of 0.5 does not work well - restore line width 0 for thin line
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37884 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-08 15:35:24 +00:00
Jürgen Spitzmüller
427b8e3f97 * LaTeX.cpp: fix bug #7344 (delete aux files and rerun LaTeX if hyperref has been toggled)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37883 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-08 15:14:13 +00:00
Jean-Marc Lasgouttes
53e8746b47 In the case of non-null paragraph separation, replace the hardcoded test for ERT and LISTINGS insets by proper check for newLineIsParBreak.
This fixes the display of sweave Chunks in sweave.lyx example, which uses parskip instead of indent.

The rest of the changes are just white space


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37881 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-08 14:41:01 +00:00
Jürgen Spitzmüller
d3d4d31880 PDFOptions.cpp: correct fix for bug #7048.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37880 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-08 13:15:26 +00:00
Jürgen Spitzmüller
0bb6e39ef1 PDFOptions.cpp: whitespace only.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37879 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-08 13:00:48 +00:00
Enrico Forestieri
d5f56e67e0 Each line of the exported latex code is associated to a particular par.id()
of a lyx document. What par.id() is associated to the line depends on the
last call of TexRow::start() before a newline is actually issued.
If the par.id() of an ert is the one associated to the exported line,
when an error occurs, that ert is always returned by Buffer::getParFromID()
(and thus would be highlighted) whether the error actually occurred there
or elsewhere in the same paragraph.
So, better highlighting the whole paragraph when the error seems to have
occurred in ert.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37870 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-07 20:15:04 +00:00
Enrico Forestieri
c0437db8e9 Fix bug #7343 (No warning for missing child documents)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37869 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-07 14:36:22 +00:00
Pavel Sanda
02dbb905ee Fix bug #7338
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37866 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-07 00:37:26 +00:00
Tommaso Cucinotta
e1d4a68904 Commit r37853 was missing FindAndReplace.h.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37860 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-05 16:06:54 +00:00
Peter Kümmel
b1d043e915 compile. TODO: review default parameter for replace_all
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37859 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-05 13:45:39 +00:00
Tommaso Cucinotta
a17d3460f6 Implements functionality of the replaceAll button on Advanced F&R.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37853 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-04 22:19:19 +00:00
Tommaso Cucinotta
aa431bf8bf Fix bug when retrieving allRelatives() of a buffer (when invoked from a
child, the returned list had no master and twice the child itself).
(was causing misbehavior in Advanced Find & Replace with scope=Document).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37852 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-04 22:14:52 +00:00
Enrico Forestieri
299745b635 Force a paragraph update after lyxserver communication (part of bug #6871)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37851 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-04 21:57:42 +00:00
Pavel Sanda
f8d1586364 Glitch with new line breaking from Qt.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37847 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-04 18:30:40 +00:00
Enrico Forestieri
655a99f8c2 As improbable as it may be, an error could occur in both master and child
at the same line. Given that we know where the error occurred, don't
unnecessarily check the master first.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37846 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-04 13:52:01 +00:00
Enrico Forestieri
2e18f6a671 Fix bug #7331 (No error highlighting in child documents)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37845 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-04 13:37:14 +00:00
Enrico Forestieri
33d853d1aa Fix bug #7330 (No error notification with 'View master document')
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37843 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-03 16:00:40 +00:00
Enrico Forestieri
b8cdbc7be8 Partial fix for bug #7330 (No error notification with 'View master document')
With this patch, the bug is fixed when export-in-thread is disabled.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37842 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-03 13:57:46 +00:00
Pavel Sanda
78e483710d * doxy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37841 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-03 12:15:35 +00:00
Pavel Sanda
e15d8a850f FloatPlacementUi was broken elsewhere.
At document prefs there was undeleted first empty line.
This was due to the spacer which has no visibility property.
However, removing spacer breaks alignment in float dialog
so we need to set up stretch of combo box to full width.

I have no better idea.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37838 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-02 23:15:04 +00:00
Pavel Sanda
c0a426ee7d Resave FloatPlacementUi.ui in older designer
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37837 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-02 23:15:02 +00:00
Pavel Sanda
ac105fadc1 Current float settings dialog is really ugly.
This makes it little bit more narrow, bit it still remains ugly.
Hopefully other dialogs are not worse (tried some;)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37836 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-02 22:38:33 +00:00
Pavel Sanda
19838cea26 Add tooltips for InsetParamsUi buttons. I guess some users will
be little bit shocked what are all these buttons and checkboxes about...

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37835 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-02 22:38:32 +00:00
Pavel Sanda
8aaf3593f6 Resave InsetParamsUi.ui in older dialog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37834 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-02 22:38:30 +00:00
Peter Kümmel
4620034eda Fix crash when using msvc10's regex, seems boost's regex couldn't replaced by msvc's in ECMAScrip mode.
Solution: use boost also for msvc10

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37832 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-02 21:28:36 +00:00
Jean-Marc Lasgouttes
d2720fa200 In InsetText::fixParagraphsFont, differentiate the case of pass thru paragraphs for which fonts should be reset, and paragraph that disable paragraph customization. In the later case, only paragraph parameters are reset.
This improves the fix in r37328 and allows centered sweave chunks, for example (although this does not work yet for other reasons)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37831 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-02 14:43:50 +00:00
Pavel Sanda
f098abd832 Make colors pane consistent with others
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37830 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-02 10:27:51 +00:00
Pavel Sanda
e40e402170 Resave ColorUi in older designer
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37829 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-02 10:27:50 +00:00
Pavel Sanda
4d8d962a62 Fix ugly resize on second dialog show.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37828 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-02 10:10:30 +00:00
Pavel Sanda
95f5ab04eb Resave PrefFileformatsUi.ui in older designer
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37827 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-02 10:10:28 +00:00
Enrico Forestieri
55dccca79f Qt performs its own formatting to assure a maximum line length of the
descriptive text in alerts. Thus, doing it by ourselves is both unnecessary
and counterproductive.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37825 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-02 00:26:34 +00:00
Pavel Sanda
e16f7142e3 * doxy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37822 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-01 23:49:42 +00:00
Pavel Sanda
76c588d532 Fix #7311. And all my fun is gone...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37820 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-01 23:49:39 +00:00
Pavel Sanda
d2873b4bc6 Add comment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37819 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-01 22:21:03 +00:00
Peter Kümmel
ca3395ec88 #7163: don't delete objects which a thread needs later on
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37818 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-01 19:39:47 +00:00
Jürgen Spitzmüller
5f96251222 * GuiPrefs.cpp: fix forward search command for Okular
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37817 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-01 12:42:14 +00:00
Enrico Forestieri
25e98edd00 Please Abdel
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37802 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-28 15:45:53 +00:00
Enrico Forestieri
2761cd67bb Fix bug #7325 (ASSERTION when moving paragraph down in info inset)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37801 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-28 15:35:29 +00:00
Enrico Forestieri
a079d95038 Initializing the gui_ member of the cloned buffer has strange side effects
with Qt/X11 (obscure X errors). Better avoiding it.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37797 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-28 03:39:43 +00:00
Enrico Forestieri
2969cb53e2 Fix bug #7324 (Latex export silently fails with uncodable characters)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37796 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-28 01:50:13 +00:00
Enrico Forestieri
a889fd0438 Fix #7326 (Latex export of child docs silently fails with uncodable characters)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37795 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-28 01:14:19 +00:00
Enrico Forestieri
7edf2691ae Fix bug #7310 (Greek symbols inside ERT cause unreported compile failure)
Note that View->Source now shows that a character cannot be encoded.
However, the error is still unreported due to bug #7324.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37791 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-27 12:16:17 +00:00
Stephan Witt
f6e7fbefce #6920 paint single characters only when Qt4.7 or better, otherwise automatic kerning breaks cursor positioning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37781 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-24 21:38:12 +00:00
Enrico Forestieri
f8446ecd41 Improve comment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37780 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-24 02:01:31 +00:00
Enrico Forestieri
3891b7ae06 If a paragraph has zero size, highlight the previous one.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37779 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-24 01:31:20 +00:00
Peter Kümmel
4397faba8f fix wrong preprocessor
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37778 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-23 21:06:15 +00:00
Stephan Witt
e9d943aeb8 #7292 make the modifiers Option and Control act on there own on mac - adjust the key bindings to apple standards where possible
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37770 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-23 14:30:41 +00:00
Georg Baum
f176a18434 Fix bug #6919 by splitting Inset::noFontChange() into inheritFont() and
resetFontEdit(). The former is used for on-screen and export formatting,
and the latter is used for interactive editing.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37761 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-22 19:41:04 +00:00
Enrico Forestieri
bdf4a016f7 Increase normal toolbar icon size to 16x16 pixels, as this seems uncontroversial
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37755 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-22 00:40:47 +00:00
Enrico Forestieri
9866d2a097 Compile fix for those systems where pos_type is not typedef'd to int.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37751 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-21 16:08:02 +00:00
Enrico Forestieri
624f725acb Fix bug #7316 (Crash editing commands in math mode)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37750 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-21 15:26:28 +00:00
Enrico Forestieri
a6ed69049d If the latex log points to an error at the end of a paragraph, we highlight
the last thing in the paragraph (an inset, generally), as the end of
paragraph cannot be highlighted.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37749 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-21 10:27:50 +00:00
Stephan Witt
587337ae5e use unique LyX language name for map to apple spell checker language
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37747 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-21 06:22:37 +00:00
Georg Baum
a750126b54 prevent endless loop
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37744 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-20 18:57:13 +00:00
Stephan Witt
aedbdb6ce4 native spell checker of Mac OSX Tiger does not support language enumerate - assume true to get some spell check going
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37743 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-20 18:28:12 +00:00
Stephan Witt
269450b2e0 make it compilable for Mac OSX Tiger (again)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37738 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-20 11:12:35 +00:00
Stephan Witt
66d0d61b0c #7299 correct Buffer::saveCheckSum() method for new created files
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37737 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-20 10:53:07 +00:00
Stephan Witt
9754d5e2cd #7120 use separate line thickness for solid and dotted lines to mark foreign, changed and misspelled text parts
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37735 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-20 07:50:28 +00:00
Georg Baum
4ec822909f Fix bug #7306
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37731 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-18 20:55:50 +00:00
Georg Baum
29ee44e84c LyX does not support optional arguments of ref commands
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37730 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-18 20:39:58 +00:00
Pavel Sanda
2bb88c63e0 Better naming for FindAdv dialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37729 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-18 18:34:51 +00:00
Joost Verburg
0cfbcf6d57 increase normal toolbar icon size to 22x22 pixels
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37728 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-18 13:12:18 +00:00
Stephan Witt
e755729f68 #7170 simplify the hunspell dictionary lookup; use Language::lang() instead of Language::id() as speller index
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37727 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-18 11:54:14 +00:00
Joost Verburg
1e190a2af2 use return value of regex_match to check whether a match was found
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37722 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-17 19:39:07 +00:00
Stephan Witt
4ba2c362cb #7170 add id() method for language; add variety of language to hunspell dictionary lookup; use dicts as subdirectory to search for in system_support and user_support directories
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37716 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-17 17:09:06 +00:00
Jürgen Spitzmüller
2d7cf03935 * InsetTabular.cpp:
- (getLastCellInRow): fix crash when in first multirow row
	- (TeXRow): do not output row separator in in last row (bug #7294).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37709 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-17 10:42:13 +00:00
Stephan Witt
26e7593a8b #7292 revert the use MetaModifier for AltModifier on mac - we have to look for a proper solution to make the keyboard navigation (Option-Arrow) and the input of accented characters possible. For now the working standard keyboard navigation has higher priority.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37707 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-17 07:49:16 +00:00
Vincent van Ravesteijn
9bebb8945d Fix bug #7308: Table settings dialog broken.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37706 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-16 23:09:29 +00:00
Vincent van Ravesteijn
21992716e5 Revert r37704. It enabled SET_TABULAR_WIDTH for all longtables (new fix coming soon)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37705 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-16 23:06:43 +00:00
Enrico Forestieri
4c44ddad01 Don't disable apply button if one (or more) of vertical alignment, rotation,
or long table settings are changed. Fixes bug #7308.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37704 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-16 22:19:49 +00:00
Joost Verburg
75218491f9 fix replacement of multiple environment variables (result was not cleared for next iteration)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37699 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-16 18:59:19 +00:00
Jürgen Spitzmüller
c020978d18 * PreviewLoader.cpp:
- use pdflatex route for preview snippet generation if hyperref is used.

This works around a bug in hyperref and/or preview-latex via DVI route (bug #7303).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37696 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-16 16:59:22 +00:00
Jürgen Spitzmüller
7a7676e3fe Menus.cpp: use proper ifdefs.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37693 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-16 15:56:07 +00:00
Jürgen Spitzmüller
f450acaefe Menus.cpp: QProyStyle was introduced in Qt 4.6.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37692 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-16 15:50:39 +00:00
Richard Heck
a4e42fe8e7 Fix typo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37691 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-16 14:54:06 +00:00
Richard Heck
6127141d4b Introduce BufferParam to control whether CSS is output in the header of
the XHTML file or to a separate style file.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37682 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-15 17:44:17 +00:00
Vincent van Ravesteijn
d77fc1668c Fix bug #7263: Instant Preview crash.
I guess this deserves to be sorted out better, because we are doing tricky things by deleted the object from itself.

Problem:
 
PreviewImage? has a member PreviewLoader?. PreviewImage::Impl::statusChanged() calls PreviewLoader::remove. PreviewLoader::Impl::remove removes a snippet from the cache. In the cache is a map of the snippet and a shared pointer to PreviewImage?. This means that removing the snippet from the cache, destroys the PreviewImage?. When we get back to PreviewImage::Impl::statusChanged() this will start to crash.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37681 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-15 17:11:03 +00:00
Vincent van Ravesteijn
66ca99798b Squeeze warning.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37680 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-15 17:09:15 +00:00
Peter Kümmel
1a363f80e6 try a autosave next time even when currently no buffer is open
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37679 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-15 17:07:01 +00:00
Vincent van Ravesteijn
b9e7a9b269 Fix bug #5414: Show context menu accelerators when the context menu is shown after pressing the keyboard context menu key.
This should have been done by qt, but we can override qt by adapting the style on the windows platform.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37678 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-15 16:53:37 +00:00
Peter Kümmel
8486940675 use more common millisecond notation
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37677 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-15 15:25:16 +00:00
Jürgen Spitzmüller
1f21f0f2dc * src/InsetTabular.cpp: revert r36415.
This went in without discussion and is IMHO wrong (bug #7055 is invalid).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37676 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-15 11:43:04 +00:00
Peter Kümmel
ed4bebf698 suppress abbreviated descriptions in document dialog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37674 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-15 09:37:19 +00:00
Vincent van Ravesteijn
fbaba7782a Fix bug #7209: Crash when clicking on unfinished command in math.
This was a similar problem as for bug #5796 in r30807. There I made sure that the position that is used for the context menu is set at mousepress. That was because also the cursor was set at mousepress and we want to get the context menu at the place where the mousebutton was pressed, and not where the mousebutton was released.

However, in this case, the position of the context menu is stored on mousepress, but we don't take into account that the cursor might move afterwards due to the DEPM.

So, the solution is not to save the position of the mouseclick, but to save the name of the context menu we requested.

PS. Perhaps we could save the cursor position, but this seems to work too.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37669 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-14 21:30:12 +00:00
Peter Kümmel
6b24870ab5 fix msvc warning, somehow msvc thinks !line[0] is a boolean
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37662 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-14 19:54:04 +00:00
Stephan Witt
2c7d38a55c #7292 use MetaModifier for AltModifier on mac - alt is used to reach many special symbols, now they are usable for regular text input. Note: with swapped Command/Ctrl keys Ctrl is the MetaModifier.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37659 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-14 19:41:23 +00:00
Enrico Forestieri
05491c58cc Also catch the endl manipulator for automatic line counting.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37657 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-14 17:09:39 +00:00
Richard Heck
5d774518c6 Remove obsolete comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37648 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-14 12:43:56 +00:00
Enrico Forestieri
46028a6914 Due to the increased accuracy of line counting and registering, when a
latex error occurs inside a table, the exact faulty table row is spotted.
However, if all cells of a table row are output on the same line, lyx is
not able to tell what cell caused the error and highlights the last cell
of the row. This patch allows to output each cell of a table on its own
line, such that the exact point where the error occurred can be highlighted.
Note that this is only done when exporting for preview, and in normal (nice)
exports everything goes as usual.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37643 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-14 01:02:12 +00:00
Richard Heck
13126b8060 Fix bug #6302: Allow setting of on-screen paragraph indentation when
alignment is LEFT.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37642 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-14 00:58:44 +00:00
Enrico Forestieri
c6648aaeb9 Complete integration of texrow with otexstream and allow automatic line
counting also when outputting the latex preamble.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37641 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-13 21:41:44 +00:00
Vincent van Ravesteijn
f6a3b37d18 Do not compile unused code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37634 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-13 10:08:52 +00:00
Vincent van Ravesteijn
5036ca8500 Constify InsetMathNest::setMouseHover and remove the const_cast from BufferView.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37632 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-13 10:07:00 +00:00
Vincent van Ravesteijn
1b6f1ee810 Remove an include an reorder.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37631 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-13 10:03:05 +00:00
Vincent van Ravesteijn
77292f028d Remove unimplemented function declaration.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37630 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-13 10:02:00 +00:00
Vincent van Ravesteijn
57cc26305a GuiView: Small simplification.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37629 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-13 10:00:42 +00:00
Vincent van Ravesteijn
a80599aa4d Typos in the comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37626 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-13 09:59:14 +00:00
Vincent van Ravesteijn
a5be70af87 GuiWorkArea: coding style.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37625 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-13 09:58:31 +00:00
Vincent van Ravesteijn
1f99db08a9 Correct the return and parameter types to match the type of RenderBase::state_.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37623 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-13 09:56:54 +00:00
Vincent van Ravesteijn
99ff27e1b8 Fix tabstops in the preference dialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37622 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-13 09:54:55 +00:00
Vincent van Ravesteijn
8e6e9d3782 Add comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37621 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-13 09:49:50 +00:00
Vincent van Ravesteijn
9f21c23633 String tweaks.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37620 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-13 09:43:06 +00:00
Vincent van Ravesteijn
bc2dd1c50c Remove unused funcion Inset::scroll().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37617 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-13 09:41:13 +00:00
Jürgen Spitzmüller
0489d3c496 Introduce new file format flag "menu=export" to define which document formats the File > Export menu should list. All other formats are available via the "More Formats & Options ..." (former "Custom ...") dialog.
The actual selection of formats needs to be audited.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37616 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-13 09:34:10 +00:00
Pavel Sanda
ab8645bc3f Few typos
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37611 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-13 01:34:00 +00:00
Enrico Forestieri
a2d1092ecd Trial and error shows that this works for yap (what a poor documentation it has)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37607 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-12 22:54:52 +00:00
Pavel Sanda
2f572f7a28 Rest of gcc 4.6 issues from Orion Poplawski.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37604 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-12 22:10:56 +00:00
Pavel Sanda
e5677802b2 Fix gcc 4.6 compilation.
If no initializer is specified for an object, and the object is of (possibly
cv-qualified) non-POD class type (or array thereof), the object shall be
default-initialized; if the object is of const-qualified type, the underlying
class type shall have a user-declared default constructor.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37603 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-12 22:08:32 +00:00
Enrico Forestieri
4460f32dfd Fix bug #7186 (Forward Search not working for Child Documents)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37602 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-12 20:24:09 +00:00
Tommaso Cucinotta
c31d6acf65 When exporting to latex with a length that does not include entirely
a special phrase, simply export the segment as normal text. For other
uses of these methods, end_pos is -1, so the original behavior is unaltered.
This allows for finding properly the LyX, LaTeX and other special phrases
with Advanced Find, when ignore format is off.
This complements the other changes made to latex export methods, for
exporting to latex with a given final end position.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37599 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-12 11:03:24 +00:00
Jürgen Spitzmüller
e9cfa82c9f * InsetTabular.cpp: multirow does not allow paragraph breaks (bug 7051).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37597 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-11 09:42:33 +00:00
Peter Kümmel
176315dffc seems the other have different compilers ;)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37595 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-11 02:09:22 +00:00
Enrico Forestieri
5321a41fe1 So, let's constify all globals in version.cpp...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37594 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-11 00:46:49 +00:00
Pavel Sanda
e2d0553f3e 3rd attempt on lyx_version_major/minor.
An object or reference that is explicitly declared const
and neither explicitly declared extern nor previously declared
to have external linkage has internal linkage.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37593 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-11 00:24:06 +00:00
Peter Kümmel
c87247ed39 compile. we don't need a const here
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37592 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-10 23:43:09 +00:00
Peter Kümmel
b9b6c12782 compile.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37591 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-10 22:57:41 +00:00
Enrico Forestieri
7569903af6 For some reason, when a latex error occurs, it may happen that
err.pos_start > err.pos_end such that range == 0 and nothing
gets highlighted, even if the paragraph id is correct.
In this case, it is better to highlight everything.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37586 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-10 21:28:43 +00:00
Georg Baum
f792fe8037 fix bug #7288: add configure option for external mythes library
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37585 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-10 20:31:07 +00:00
Enrico Forestieri
d866717ef7 Integrate texrow with otexstream in order to perform automatic line
counting when exporting to latex. This is done for the code comprised
between \begin{document} and \end{document}, while the preamble code
still needs manual calls to TexRow::newline() for registering new lines.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37584 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-10 20:02:48 +00:00
Jürgen Spitzmüller
149ceafa77 * GuiSendto: allow to simply export from this dialog if no command is given.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37582 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-10 14:06:53 +00:00
Jürgen Spitzmüller
14146a43fe * LaTeX.{cpp,h}:
- refine biber support: parse blg file to get the bib file into the dependency table with biber.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37581 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-10 10:09:59 +00:00
Pavel Sanda
7251551084 Cosmetic change of .lyx headers. We output now only major and minor version,
not release level. File format does not change for a single minor (branch), so
this info has small value.

On the other hand the first line of header is causing unnecessary merge
conflicts for users of LyX VCS.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37579 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-09 22:19:14 +00:00
Jürgen Spitzmüller
58fd91390c * BufferParams.cpp: do not load luainputenc if inputenc has explicitly being disabled.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37578 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-09 18:21:43 +00:00
Pavel Sanda
1b3c9e54c5 We have lyx_version, for PACKAGE_VERSION.
(Introduced in r34186.)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37577 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-09 17:23:20 +00:00
Jürgen Spitzmüller
064e74011d * Menus.cpp: fix comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37571 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-09 10:45:59 +00:00
Jürgen Spitzmüller
2ce1e6783a Fix typo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37569 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-09 08:31:18 +00:00
Jürgen Spitzmüller
ff13ada543 forgot this in previous revision.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37568 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-09 08:25:24 +00:00
Jürgen Spitzmüller
5a2121f77e Check for fontspec an configure the GUI accordingly.
If fontspec is not found, the "Use non-TeX fonts" checkbox is disabled, and the tooltip hints at installing the package.
Also add fontspec to LaTeXConfig.lyx, documenting that v2 of the package is needed for LuaTeX support.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37567 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-09 08:23:11 +00:00
Stephan Witt
b6340b83c4 #7170 Disable hunspell dict path in prefs when hunspell is not compiled in
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37564 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-08 14:48:46 +00:00
Stephan Witt
e1a685fcb1 fix a crash when the inset containing the new word at cursor is deleted
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37563 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-08 09:42:00 +00:00
Tommaso Cucinotta
dc4abad361 Removing dependency on longOperationCancelled() patch.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37562 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-08 09:11:58 +00:00
Tommaso Cucinotta
7500590c89 Completing r37549.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37556 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-07 23:55:02 +00:00
Richard Heck
2bb01af413 Output width and height parameters for XHTML images. Thanks to Rob Oakes
for the patch.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37554 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-07 23:47:43 +00:00
Richard Heck
4c55d02ec6 Fix a couple of compilation issues with gcc 4.6. See bug #7285.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37550 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-07 22:47:02 +00:00
Tommaso Cucinotta
fcae022192 Search and replace buffers are now passed from the GUI to the Model
just by their file-name, and directly accessed there.
All string/latex exporting of those buffers is handled on the Model
side (lyxfind.cpp) according to the selected options.
Fixed bugs when searching with ignore-format disabled material
in the middle of a paragraph, and when using regular expressions.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37549 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-07 20:36:40 +00:00
Tommaso Cucinotta
edc94a578f Added possibility to retrieve internal buffers (by their tmp file-name) from the Model.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37548 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-07 20:31:09 +00:00
Jürgen Spitzmüller
f434f947dd * LaTeX.{cpp,h}: run biber if necessary (bug 7281).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37538 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-07 07:03:31 +00:00
Enrico Forestieri
2b0bbbc7e9 In the tabular dialog, associate label with the correct field.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37510 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-06 16:25:36 +00:00
Edwin Leuven
7d7b96be78 attempt at consistency in widget naming in tabular dialog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37489 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-04 13:11:48 +00:00
Edwin Leuven
0a369db7b0 forgot to initialize the tabular width length validator
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37487 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-04 09:58:55 +00:00
Edwin Leuven
93c5d5922a update tabular width fields in dialog correctly
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37486 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-04 09:32:14 +00:00
Jürgen Spitzmüller
13739f37d5 revert r37459 and add a note to the sources:
This was no oversight but a security concern. We do not want the LyX document to define arbitrary index and bibtex converters.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37478 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-04 07:37:12 +00:00
Pavel Sanda
4224a6606e Repair tooltip so it can be translated, spotted by Jim.
New designers are evil.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37474 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-03 23:55:26 +00:00
Pavel Sanda
2b42eddafb Resave ExternalUi in Qt 4.4 designer
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37473 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-03 23:55:21 +00:00
Edwin Leuven
119ea9cd24 support for tabular*
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37471 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-03 23:11:26 +00:00
Enrico Forestieri
c0a727a9d4 Don't pass the letterpaper option to the geometry package when using
default paper format and margins are explicitly set.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37470 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-03 23:03:18 +00:00
Stephan Witt
761f05a37e prepare for LyX personal dictionary file format with comment markers
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37469 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-03 21:47:15 +00:00
Georg Baum
e2982037d9 add busy.gif to resources (in line with cmake)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37468 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-03 21:16:41 +00:00
Stephan Witt
f361c26a05 suppress the misspelled marker only when typing in a word the first time
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37463 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-03 17:27:13 +00:00
Jürgen Spitzmüller
73ab3e8b9c * GuiDocument.cpp:
* GuiIndices.cpp:
	- allow custom processor setting per document. The missing UI was an oversight.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37459 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-03 15:03:38 +00:00
Pavel Sanda
728d664367 Spotted by Jim Rotmalm.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37458 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-03 14:56:47 +00:00
Jürgen Spitzmüller
f27d5aa9ae * Allow to set language package on a per-document basis (fixes bug 2909).
File format change. Commit approved by Pavel on trac.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37457 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-03 14:17:31 +00:00
Enrico Forestieri
0c581e8cea Help avoiding shortcut clashes by discriminating strings.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37450 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-03 10:22:10 +00:00
Richard Heck
636440b8a8 Finally, disentangle IsPredefined and UsesFloatPkg. Now achemso gives us
the option to insert a List of Schemes, etc.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37436 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-02 22:57:00 +00:00
Richard Heck
d4db266a68 Forgot this.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37433 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-02 22:34:23 +00:00
Richard Heck
4c95238626 Change NeedsFloatPkg to UsesFloatPkg and introduce a new float tag
IsPredefined.

The point of this is that the current tag is doing both of these jobs,
and they are different. The achemso class shows this, since it uses
float.sty to define three different kinds of floats internally. We have
to set NeedsFloatPkg to false to prevent LyX from trying to redefine
them, but then we complain that there is no list command defined and so
do not enter it in Insert>List/TOC.

The new tag is not yet functional, just there.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37430 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-02 22:28:47 +00:00
Richard Heck
57deff6c3d Just some renaming, preparatory to disentangling two jobs the current
NeedsFloatPkg tag does.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37429 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-02 22:15:52 +00:00
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
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
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
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
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
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
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
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
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
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
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
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
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