Commit Graph

14953 Commits

Author SHA1 Message Date
Enrico Forestieri
7728b5cbb9 Fix bug 5665
http://bugzilla.lyx.org/show_bug.cgi?id=5665


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28058 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-09 16:09:41 +00:00
Pavel Sanda
4ef19a6580 Another round.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28052 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-09 08:44:52 +00:00
Pavel Sanda
42040b7757 Add tooltip to images groupId.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28047 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-09 07:41:31 +00:00
Jürgen Spitzmüller
56f22a330e * GuiView.cpp (insertPlaintextFile):
- set a proper file filter in the file dialog.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28045 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-09 07:35:20 +00:00
Pavel Sanda
c1ca2b89fb Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=5648
Patch from Bo.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28043 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-09 07:32:52 +00:00
Pavel Sanda
b91f9d7d42 Comment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28040 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-08 22:07:22 +00:00
Pavel Sanda
e5767128ec Cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28039 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-08 21:50:11 +00:00
Pavel Sanda
b74d910ffe AdvSearch - regexps fix.
Patch from Tommaso.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg147090.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28038 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-08 21:49:56 +00:00
Jürgen Spitzmüller
4c0dcc4a57 forgot to save ...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28034 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-08 08:00:37 +00:00
Jürgen Spitzmüller
454a2d4832 * GuiDocument.cpp (dispatchParams):
- do not set master buffer and warn if the master does not include child
	- issue warning if the master could not be loaded.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28033 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-08 07:59:37 +00:00
Vincent van Ravesteijn
658cee5ad4 Do not create a new file after 'new from template..' and cancel.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28029 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-08 00:29:06 +00:00
Vincent van Ravesteijn
c53082b6c3 Improved UI for version control:
* the menu-item should also be enabled when the buffer is still unnamed (it will be saved anyway), and
* no buffer-reload after user cancel.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28028 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-08 00:14:55 +00:00
Vincent van Ravesteijn
f48e86dedc Fix disabling of submenus that are empty.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28027 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-07 17:59:10 +00:00
Vincent van Ravesteijn
a16fabfb26 Fix disabling of submenus that have only disabled items.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28026 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-07 17:54:29 +00:00
Jürgen Spitzmüller
72dc5352dd * TocWidget: whitespace only.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28024 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-07 14:49:40 +00:00
Jürgen Spitzmüller
2a4a108e60 * Buffer.cpp:
- prevent potential null pointer.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28023 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-07 11:07:48 +00:00
Jürgen Spitzmüller
bd934ddf3e * Buffer.cpp:
- do not set master_file as master buffer if the document s no real child (bug 5653).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28020 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-07 07:53:28 +00:00
Vincent van Ravesteijn
c51ae2651c Correct enabling of the "Navigate->Bookmarks->Clear Bookmarks" menu item.
* LyXFunc.cpp:

Note that getStatus() always returned true for LFUN_BOOKMARK_CLEAR. This is because bookmarks().size() is hardcoded in the code to be 9 which is always larger than zero, obviously

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28014 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-07 01:48:47 +00:00
Martin Vermeer
823e27f465 Make autocorrect (still disabled) better. Now switched
on/off by !/space.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28008 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-06 09:44:47 +00:00
Vincent van Ravesteijn
78a05e4359 Improved debug message for locating toolbar icons. Patch from Dieter Jurzitza.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28000 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-05 19:05:46 +00:00
Vincent van Ravesteijn
7b659b4ecd Case-insensitive sorting of colors in GuiPrefs.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27995 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-05 13:37:46 +00:00
Vincent van Ravesteijn
bd97d99c9a Add comment about r27991.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27992 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-05 09:56:37 +00:00
Vincent van Ravesteijn
cc3b9c61cf Fix crash when no new document can be created.
This occurs frequently when the temporary directory cannot be created because it already exists. The temporary directory can exist as a result of previous crashes of LyX.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27991 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-05 00:00:19 +00:00
Vincent van Ravesteijn
d57b6f315d Safety measure for r27988.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27990 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-04 23:39:12 +00:00
Richard Heck
9d48ad4f74 Improvements to the parser that extracts the "family name". We now get
the last name, with the "von" part, even when commas are not used in the
BibTeX file.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27989 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-04 23:35:08 +00:00
Vincent van Ravesteijn
89034a543b Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=5560.
Allow users to paste text from e.g. MS Word. This text can be paste from clipboard both as text and as graphics. LyX should prefer to paste it as text.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27988 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-04 23:31:32 +00:00
Richard Heck
a05cc2c93e Fix minor problem with fromLaTeXCommand(): We were missing things like
\"{U}ber, since \"{U} was followed by a letter.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27987 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-04 23:26:04 +00:00
Vincent van Ravesteijn
dd64c572c2 Allow users to specify toolbar icons for commands with a backslash. This is in the same style as the replacements made for math-insert commands.
See the user's list:
http://thread.gmane.org/gmane.editors.lyx.general/52712

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27979 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-03 18:33:09 +00:00
Vincent van Ravesteijn
965fdcb46a Allow users to specify toolbar icons for commands with a backslash. This is in the same style as the replacements made for math-insert commands.
See the user's list:
http://thread.gmane.org/gmane.editors.lyx.general/52712

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27977 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-02 01:52:54 +00:00
Vincent van Ravesteijn
5e860f2344 Prevent empty warning.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27976 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-01 16:35:14 +00:00
Richard Heck
f93e4254ee Convert LaTeX constructs to Unicode when reading BibTeX files.
Also, ignore other LaTeX commands.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27975 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-29 00:10:41 +00:00
Georg Baum
a9f29e6f6c make Pavel happy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27971 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-23 17:25:11 +00:00
Enrico Forestieri
ef65f0e1af Add clarifying comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27969 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-23 12:49:42 +00:00
Abdelrazak Younes
852c5178de FindAndReplace by Tommaso:
- solves some issues related to the dialog set-up
 (overlapping of dialog title with upper sub-widget),
 by "borrowing" the widget structure from
 ViewSource.{h,cpp}
- reduces the default occupation of the dialog (in particular,
 it was "colliding" with the ViewSource itself);
- proposes to introduce a tabbed-panel in the F&R
 dialog, so as to have a "basic" and "advanced" tabs;
 (one option could be to make the dialog even smaller
  by moving all of the replace-related stuff into a separate
  "Replace" tab)

- recovers the eventFilter functionality back, so as to catch
 "Enter" or "Esc" key presses while in the Search Work Area 



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27967 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-23 08:18:11 +00:00
Enrico Forestieri
98114f5a82 Take into account that '\' is always part of a LaTeX command and also
that entries in the unicodesymbols file may not start with '\'.
Maybe the method should be renamed as fromLaTeXCode?


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27957 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-23 02:03:53 +00:00
Georg Baum
030e249d91 fix potential problems detected by gcc
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27956 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-22 18:18:47 +00:00
Georg Baum
07676f2330 fix metrics debugging
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27955 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-22 18:16:05 +00:00
Georg Baum
ac1fd9b37f fix bug 2558: hspace support in math
The basic idea was to reuse the corresponding text space inset in the same
fashion as is already done for references. The dialog displays a different
selection for math than for text. If wanted, the additional spaces could
also be enabled for text, but that would be a file format change.
Constructs like \hspace{\mylengthvariable} that are not supported are
treated by the math parser as ERT as before.

For reasons I don't know the context menu does not work, but this is not so
important IMHO (since a left click opens the dialog).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27954 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-22 18:12:32 +00:00
Jean-Marc Lasgouttes
df8bb4edcd * Encoding.cpp (fromLaTeXCommand): fix bug when the string passed
to the method does not match any of the known unicode symbols.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27953 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-22 15:23:05 +00:00
Pavel Sanda
3135ff4959 Line length
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27950 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-22 10:51:09 +00:00
Jürgen Spitzmüller
739ad5d718 * GuiPrefs.cpp (apply):
- unbind existing shortcuts before binding new ones (bug 5444).
	  Patch submitted and tested by Bennett.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27948 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-22 10:41:37 +00:00
Jürgen Spitzmüller
d60537a844 * Text3.cpp:
- enable LFUN_INSET_DISSOLVE for insets at cursor (bug 4985).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27947 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-22 10:24:43 +00:00
Pavel Sanda
4e4e8afcc2 Sort order
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27940 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-21 01:54:04 +00:00
Pavel Sanda
d9f13a9072 Fix first insert of external material & instant preview.
Bug http://bugzilla.lyx.org/show_bug.cgi?id=5626 .
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg146921.html .


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27939 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-21 01:53:47 +00:00
Pavel Sanda
fd6679bd34 AdvSearch - next patch from Tommaso.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg146966.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27938 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-20 16:00:47 +00:00
Pavel Sanda
d5f2772922 Hopefully better dialog policy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27936 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-20 13:09:36 +00:00
Pavel Sanda
fe5a20a489 Template type can be changed in dialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27933 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-20 10:08:15 +00:00
Pavel Sanda
aee1c6c785 Affect only scale box. Thanks Juergen.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27932 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-20 10:06:31 +00:00
Pavel Sanda
05879ba39f Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=5628 .
Instant preview of external material uses scaling from latex settings.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27928 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-20 01:30:57 +00:00
Martin Vermeer
d6f30aac95 Fix, but keep disabled, mathed autocorrect
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27927 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-19 10:26:33 +00:00