Commit Graph

7220 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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