Commit Graph

18981 Commits

Author SHA1 Message Date
Jean-Marc Lasgouttes
3589a75a11 clearSelection invokes resetAnchor
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26145 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-13 15:13:37 +00:00
Jean-Marc Lasgouttes
3d9f151e00 set cursor correctly when right clicking on inset button
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26144 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-13 15:01:12 +00:00
Richard Heck
419642ad9e Fix citation bug: In certain circumstances, attempts to insert a new citation
would instead change an old one. The problem was that we were hiding the dialog
with hide(), which does not trigger closeEvent(). So we have to implement
hideEvent().

http://marc.info/?l=lyx-devel&m=121278861019829&w=2



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26143 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-13 14:32:30 +00:00
Richard Heck
1c5003c4ef Make sure that in_show_ is reset to false, even if an exception is thrown
when we're trying to show a dialog.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26142 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-13 14:25:56 +00:00
Jean-Marc Lasgouttes
4d63bd347b constification without any code change. This is part of and effort to see whether BufferView::cursor() could be made const
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26141 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-13 13:46:19 +00:00
Jean-Marc Lasgouttes
c52b80d6e0 fix warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26140 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-13 13:25:36 +00:00
Jean-Marc Lasgouttes
ce454c9a75 remove some uses of $(doc_files)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26138 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-13 10:54:22 +00:00
Stefan Schimanski
520b760891 * make sure that the reference cache, buffer_ pointers and macros are updated
in child documents.

  Fixes:
    http://bugzilla.lyx.org/show_bug.cgi?id=5153
    http://bugzilla.lyx.org/show_bug.cgi?id=5032
    http://bugzilla.lyx.org/show_bug.cgi?id=5159

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26137 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-13 10:36:43 +00:00
Uwe Stöhr
c1e56e7a22 SCons: revert r26134 and fix SCons correctly
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26136 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-12 23:48:38 +00:00
Uwe Stöhr
9796fa9cbc po-file update
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26135 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-12 23:30:15 +00:00
Uwe Stöhr
e0f2957d4c fix SCons after the removal of lyx.man
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26134 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-12 23:24:25 +00:00
Uwe Stöhr
b56c1b9abc French EmbeddedObjects.lyx: updates for LyX 1.6 by Siegfried
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26133 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-12 23:14:08 +00:00
Uwe Stöhr
8f180737f6 German UserGuide.lyx: updates for LyX 1.6 by Hartmut
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26131 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-12 23:02:09 +00:00
Uwe Stöhr
8be71ab8e2 German docs: updates and fixes by Hartmut
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26130 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-12 22:48:29 +00:00
Uwe Stöhr
51c28dafce UserGuide.lyx: typos and style fixes by Hartmut and me
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26129 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-12 22:47:33 +00:00
Uwe Stöhr
e91fda3ffb ro.po: updates by Marius Ionescu, Liviu Andronic, and me
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26127 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-12 22:27:45 +00:00
Richard Heck
481c24c8eb Remove unintelligible comment. (This seems to have been copied over from Dialog.h.)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26126 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-12 22:18:21 +00:00
Richard Heck
ea6aed5b8b Remove invalid comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26125 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-12 21:56:07 +00:00
Jean-Marc Lasgouttes
063ecfc64c autogenerated file
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26124 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-12 21:20:44 +00:00
Jean-Marc Lasgouttes
ac620455d1 let autoconf generate lyx.1; add information on LIBDIR there (not sure it is actully useful)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26123 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-12 21:18:49 +00:00
Jean-Marc Lasgouttes
45312b5f49 Fix bug 4166: Crash when middle button click on inset label
http://bugzilla.lyx.org/show_bug.cgi?id=4662

	* InsetCollapsable.cpp (doDispatch): cleanup the handling of mouse-
	related lfuns. The new behavior is as follows:
	- everything that does not touch the button is sent to the insettext,
	if it is visible, and delegated to enclosing inset instead
	- mouse1-press is delegated to enclosing inset (which will set the
	cursor)
	- the rest is either acted upon or results on a mere cur.noUpdate().


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26122 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-12 14:13:16 +00:00
Jean-Marc Lasgouttes
2d76d3a0c6 Fix bug 5161: Context menu does not respect selection
http://bugzilla.lyx.org/show_bug.cgi?id=5161

	* Text3.cpp (dispatch/LFUN_MOUSE_PRESS): compare the mouse position to
	the bufferview cursor, since cur is already set to the place we
	want; reverse the test for being inside of the selection.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26121 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-12 10:17:31 +00:00
Jean-Marc Lasgouttes
8602143775 Add missing operator>= to DocIterator
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26120 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-12 09:51:00 +00:00
Enrico Forestieri
e5e65c031c Update LYX_DIR_XXx and LYX_USERDIR_XXx environment variable names
in docs and manpages at install time.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26119 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-12 09:05:30 +00:00
Enrico Forestieri
9e5b5746e4 Spare a few cpu cycles
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26118 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-12 09:02:46 +00:00
Jean-Marc Lasgouttes
5a5ec02829 Better compatibility with autoconf 2.62.
* config/*: update files to libtool 1.5.26 (latest 1.x version)
	* configure.ac: use AC_USE_SYSTEM_EXTENSIONS instead of AC_AIX and
	friends (available since 2.59c, which is now required); work around
	a bug with gettext.m4 and autoconf 2.62.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26117 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-11 23:27:08 +00:00
Jean-Marc Lasgouttes
9bda5aa44d we require at least autoconf 2.59c (objc support for mac os x)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26116 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-11 21:46:38 +00:00
Richard Heck
8c6ba1dd6c Patch from Vincent. This resets the window title appropriately, after
the last BufferView has been closed.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26115 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-11 12:57:02 +00:00
Richard Heck
4af444926a Fix silly bug that makes it impossible to change bibitem keys.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26114 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-10 20:32:51 +00:00
Richard Heck
7bff1e62b5 More sensible shortcuts on the help menu.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26113 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-09 17:01:20 +00:00
Richard Heck
b3c5c1ca89 Fix crash noticed by Vincent. We don't know that insetText is non-null here!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26112 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-09 16:56:30 +00:00
Richard Heck
4e2d14a363 Disable nomencl-insert with inappropriate selections.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26111 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-09 16:31:22 +00:00
Richard Heck
ebfe9d60d7 The previous commit inadvertently contained some of this one, which is just a renaming.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26110 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-09 16:29:25 +00:00
Richard Heck
bcedd63443 OK, let's actually get this nomencl-insert thing right.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26109 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-09 16:15:49 +00:00
Richard Heck
efbf10c5ad Fix my fix for nomencl-insert. The previous one was just a thinko.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26108 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-09 15:26:06 +00:00
Richard Heck
3d03620a91 Convert LFUN_NOMENCL_INSERT to the newer style, fixing bug 5151.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26107 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-09 03:11:53 +00:00
Richard Heck
b074fd86d2 Fix bug 5150: Hyperlink makes no sense with multi-paragraph selection, let alone a multicell one.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26106 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-09 02:09:38 +00:00
Richard Heck
8498a50c64 Don't allow new pages within tables!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26105 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-09 02:02:16 +00:00
Richard Heck
a457ab321f Move isMultiCell() to Cursor, and use it.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26104 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-09 01:58:57 +00:00
Richard Heck
6f77b93572 Fix cursor movement with multicell selections. There's no point allowing character by character selection in this case.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26103 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-09 00:43:15 +00:00
Richard Heck
939503ee85 Fix crash reported on the list involving multicell selections. We have to
be careful to check for that!


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26102 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-08 21:26:18 +00:00
Richard Heck
510174ba17 Set the cursor to the start of the cell when doing multicell selections,
since it doesn't make sense to select two and a half cells.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26101 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-08 19:34:47 +00:00
Richard Heck
b2f5782253 Fix bug 5145. InsetTabular was resetting cur.idx() but not cur.pit() or cur.pos(),
leaving them possibly invalid.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26100 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-08 19:21:06 +00:00
Richard Heck
9374e68bfd Fix bug 5146. The problem arose when attempting to paste normal text into
a multicell selection. But the more I thought about this, the more it seemed
that pasting into multicell selections shouldn't be allowed. What exactly
ought to happen if the user selects a 2x3 grid of cells and then tries to
paste a 5x5 group of cells? LyX, anyway, just ignores the selection in this 
case, which is not what the user will expect. So let's just not go there.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26099 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-08 17:28:25 +00:00
Richard Heck
2455bc258f Fix layout bug. Pasting text into a cell tried to set Standard layout, because
cur.inset() returns InsetTabular as the inset the cursor is in, not InsetTableCell.
It still does that, but now we return the right thing.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26098 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-08 16:19:28 +00:00
Richard Heck
67f5bf85da Another patch from Vincent. This one fixing the very annoying bug 5138.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26097 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-08 15:41:32 +00:00
Richard Heck
dc9146d250 Patch from Vincent van Ravesteijn.
I noticed that for instance the Hyperlink Dialog loses all information when clicking on the main buffer. The same occurs with the Include Child Document Dialog and probably also others.
Do you agree on this being less intuitive ? If so, I included a small patch that will fix this for the two dialogs mentioned. I just adapted them to the design of the GuiGraphics Dialog. 



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26096 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-08 15:29:26 +00:00
Richard Heck
87d4bd72b3 Don't use '\n'.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26095 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-08 15:22:43 +00:00
Uwe Stöhr
0b115f57db lyx2lyx/lyx_1_6.py: fix bug 5137 and another bug
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26094 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-07 22:37:27 +00:00
Richard Heck
5a91890cc1 Make sure temporary files are created, by default, in LyX's temporary directory, rather than in the system tempdir.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26093 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-07 13:57:25 +00:00