Commit Graph

3121 Commits

Author SHA1 Message Date
Richard Heck
2807761e65 Fix a bug that allowed setting of layouts inside optional arguments.
There is more that could be done here.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26303 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-04 21:50:14 +00:00
Uwe Stöhr
ed5fcd95ac InsetHyperlink.cpp: coding style change according to André's advice
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26269 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-30 14:52:56 +00:00
Uwe Stöhr
ac3f391b46 InsetHyperlink.cpp: fix a bug I introduced in r26218
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26262 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-29 22:44:48 +00:00
Pavel Sanda
2d811e48e2 Get rid of annoying tooltips. ERT tooltip survived for the time being.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg142984.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26250 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-29 00:38:51 +00:00
Jürgen Spitzmüller
c0ff4f48e5 * src/insets/InsetNewline.cpp:
- revert accidental commit.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26228 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-23 15:07:31 +00:00
Jürgen Spitzmüller
fb12b282f1 * src/inset/InsetNomencl.cpp:
- implemet inset tooltip.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26227 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-23 15:02:44 +00:00
Jürgen Spitzmüller
b556fe1bcb * src/inset/InsetNomencl.cpp:
- indicate content of nomencl inset (bug 5183).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26223 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-22 16:12:29 +00:00
Uwe Stöhr
a258a932d9 InsetHyperlink.cpp: add "http://" when the hyperlink type is web and no protocol is specified (as requested on the lyx-devel list)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26218 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-19 22:06:10 +00:00
Jürgen Spitzmüller
0d63bbae14 * src/insets/InsetFloat{.cpp,h}:
- subfloat labelling fixes from Vincent.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26214 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-19 14:56:12 +00:00
Peter Kümmel
1da756723a fix merged build
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26152 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-13 21:39:59 +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
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
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
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
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
Abdelrazak Younes
0a342b3be1 Tentatively fix http://bugzilla.lyx.org/show_bug.cgi?id=4873
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26090 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-07 07:45:52 +00:00
Richard Heck
4d506d21b6 Fix bug 5113.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26065 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-05 14:25:32 +00:00
Bo Peng
e8979d2f13 InsetInfo: use Portable instead of Gui mode to output shortcut
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26060 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-05 13:49:59 +00:00
Bo Peng
bdfcd5f16a InsetInfo: implement InsetInfo::validate
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26042 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-03 22:14:04 +00:00
Bo Peng
d145c2dc9f InsetInfo: Output 'undefined' instead of an error message for undefined shortcut
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26040 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-03 21:31:06 +00:00
Richard Heck
cca78e3c8a Change the "empty layout" to the "plain layout", to try to avoid confusion.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26025 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-01 20:57:27 +00:00
Abdelrazak Younes
fa1305ccd3 InsetText: remove InsetText default ctor and make text_ member private.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25974 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-29 12:07:08 +00:00
Abdelrazak Younes
64e1fc3bf4 BufferList::bufferNum() and getFileNames(): migrate to FileName/FileNameList
Inset.h : fix erroneous forward declaration.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25959 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-29 08:52:25 +00:00
Abdelrazak Younes
d56faa70c4 BufferList::getBuffer(): migrate to FileName.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25958 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-29 08:16:09 +00:00
Richard Heck
5d95df6e39 Add CopyStyle tag for InsetLayout, per request of Steve Litt.
Update documentation for new tag.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25933 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-28 15:14:37 +00:00
Abdelrazak Younes
b4f4a5c245 God damn tabular dual head :-/
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25851 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-23 13:25:03 +00:00
Abdelrazak Younes
e182d5b98d Stupid bug fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25848 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-23 13:10:18 +00:00
Abdelrazak Younes
68d50628c1 Forgot this in previous commit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25845 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-23 12:55:24 +00:00
Abdelrazak Younes
4bc7feaa96 * Inset: ensure that the Buffer pointer is not copied. This was the cause of very weird bugs with copy and paste within table.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25837 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-23 12:13:41 +00:00
Abdelrazak Younes
8195925175 Replace home made temp file creation with safer (and cleaner) Qt' solution. Should fix http://bugzilla.lyx.org/show_bug.cgi?id=4693
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25822 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-23 05:17:31 +00:00
Jürgen Spitzmüller
b896fa110d * src/insets/InsetTabular.h:
- implement hasFixedWidth() (fixes part of bug 3484).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25805 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-22 16:13:59 +00:00
Abdelrazak Younes
4ecd231549 fix MSVC warning.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25804 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-22 16:09:18 +00:00
Jürgen Spitzmüller
7e3ebd9864 * src/insets/InsetTabular.h:
- make neverIndent() non-virtual and const, fixing bug 4641
	- also make neverIndent(), usePlainLayout(), forcePlainLayout() and
	  allowParagraphCustomization() private.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25802 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-22 14:31:16 +00:00
Richard Heck
951d0dc28d Try to fix a problem noted by Dov. There are design problems that prevent a really good solution. Please see the FIXME in InsetTabular.h for a description of the problem and a plea for a better solution.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25752 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-21 02:07:54 +00:00
Abdelrazak Younes
d861ab947f Move child document closing from InsetInclude dtor to Buffer parent dtor. Fix http://bugzilla.lyx.org/show_bug.cgi?id=5047
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25731 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-20 17:52:55 +00:00
Jürgen Spitzmüller
af9305f4ac *** sanitize listing's encoding handling ***
* src/Encoding.h:
	- new member hasFixedWidth()
* src/output_latex.{cpp,h} (switchEncoding):
	- add option to force encoding switch
* src/insets/InsetListing.cpp (latex):
	- force encoding switch only in multibyte context, switch the encoding properly,
	  and add some error messages.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25730 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-20 17:14:10 +00:00
Pavel Sanda
f01c52da7d Revert http://www.lyx.org/trac/changeset/25553 and try better fix for bug
http://bugzilla.lyx.org/show_bug.cgi?id=5008



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25719 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-19 18:35:48 +00:00
Jean-Marc Lasgouttes
81f12d8c85 silence some compiler warnings
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25669 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-16 15:05:34 +00:00
Richard Heck
14be46fd4b Comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25667 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-16 14:28:26 +00:00
Richard Heck
a4ed71a212 Try to fix bug 5015---at least the crash is gone---and remove some unused code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25666 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-16 14:23:32 +00:00
Jürgen Spitzmüller
1d0bac1144 Fix bug 5040:
* src/support/lstrings.{cpp,h}:
	- new optional param "bool keepemtpy" in getVectorFromString. 
	  By default, empty content between two delimiters was/is not added to the vector.
	  This can be changed with this bool.

* src/insets/InsetIndex.cpp:
	- care for the case when plaintext returns nothing (e.g when ERT is used)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25616 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 16:09:59 +00:00
Jürgen Spitzmüller
b264ae0dc0 * src/insets/InsetBibItem.cpp:
- fix duplicate vheck (bug 5035).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25614 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 12:49:39 +00:00
Abdelrazak Younes
79beb91e3a Sanitize LyX singleton access by getting rid of ref() and cref() methods.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25597 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 08:35:00 +00:00