Commit Graph

19363 Commits

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