Commit Graph

10146 Commits

Author SHA1 Message Date
Richard Heck
aa00ad3918 Bug 3477: Fix problem with shortcuts in Converters subdialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18775 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-14 21:27:08 +00:00
Stefan Schimanski
d0d7d0103a * up/down jumps between macro parameters
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18774 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-14 20:57:56 +00:00
Stefan Schimanski
98fb638d61 * the old cursor is stored before dispatch and then used after moving
up/down to tell the insets that the cursor left them. The
  notifyCursorLeaves methods can set updateFlags to trigger a redraw.
* leave mathed with cursor up/down and get the math redrawn for the
  decorations



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18773 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-14 20:32:28 +00:00
Stefan Schimanski
dcaab3cfdd * make close tab button smaller
* remove spacing in the layout of the tab bar and the central widget


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18770 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-14 17:57:07 +00:00
Abdelrazak Younes
d00d823352 Fix Bug-3183 by Ozgur Ugras BARAN:
* checkBufferStructure(): Fix unnumbered toc entries that do not update automatically as you type.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18768 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-14 11:49:26 +00:00
Dov Feldstern
a529b7e6e7 lyx2lyx to convert the language of spaces surrounding text in a foriegn
language to be in the paragraph's language. This is necessary due to format
change 259, but the language was forgotten in lyx2lyx back then. It's important
for Bidi documents.

(fixes bug http://bugzilla.lyx.org/show_bug.cgi?id=3789)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18766 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-13 19:12:38 +00:00
Stefan Schimanski
832136c37c * Change the dim parameter correctly, even if dim_ has not changed
(fixes http://bugzilla.lyx.org/show_bug.cgi?id=3858)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18765 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-13 17:18:37 +00:00
Bo Peng
dad101c2e3 Add --Separator-- environment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18764 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-13 15:09:28 +00:00
Bo Peng
6551f0afa8 lyx2lyx support for unrecognizable listings parameter
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18763 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-13 14:38:34 +00:00
Stefan Schimanski
b06797a312 * move TOC update behind cur.fixIfBroken() to fix #3851
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18762 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-13 07:43:34 +00:00
Stefan Schimanski
fd44c4ffdf * Dov's patch to make typing possible again if RTL support is disabled.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18761 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-13 06:27:33 +00:00
Michael Schmitt
52093834d3 * src/frontends/qt4/ui/TextLayoutUi.ui:
* src/frontends/qt4/ui/ListingsUi.ui:
	* src/frontends/qt4/ui/IncludeUi.ui:
	* src/LyXRC.cpp: trivial user message changes: "lyx" => "LyX"


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18752 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-12 21:05:25 +00:00
Bo Peng
985ba3b296 Add bypass validation checkboxes to listings related dialogs
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18751 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-12 17:10:28 +00:00
Jean-Marc Lasgouttes
4ba4d701f7 Remove background_color_ in Insets: it takes a lot of unnecessary memory,
especially in math where each equation has many insets.

	* src/Insets.cpp: remove background_color_ member
	(setBackgroundColor): remove
	(backgroundColor): make virtual

	* insets/InsetBranch.cpp:
	* insets/InsetNote.cpp: move color setting code from setButtonLabel to 
	backgroundColor.

	* insets/InsetBox.cpp (setButtonLabel): remove call to setBackgroundColor.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18750 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-12 13:45:49 +00:00
Abdelrazak Younes
37333444c0 Cosmetics.
* TocItem:
  - add a default constructor instead of default initialisation.
  - delete unneeded and not really used isValid() method.

* TocBackend:
  - updateItem(): re-add debug info erased previously.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18749 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-12 12:29:19 +00:00
Dov Feldstern
6742e42e79 KeyMap is now switched (if necessary) only just before it is actually used
for translating keystrokes. Up until now, the switching was done in advance
in all kinds of situations, but not just before translating was actually done
--- which resulted in the KeyMap not always being switched on time...

This solves bug #3811 (http://bugzilla.lyx.org/show_bug.cgi?id=3811)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18744 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-11 22:05:44 +00:00
Stefan Schimanski
82c2fbf81a * they are conceptionally the same and should be merged
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18743 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-11 18:29:11 +00:00
Stefan Schimanski
b7ce285f8b * Only enter inset which return true on isActive(). This is the behavior in the cursor code.
Only newly created inset were entered everytime.
* Derived classes of CommandInset do not draw all cells, so return false.
  (fixes http://bugzilla.lyx.org/show_bug.cgi?id=3715)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18742 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-11 18:26:42 +00:00
Stefan Schimanski
22421dffb3 * do not draw grey bars if another update strategy is active than fullscreen
(fixes http://bugzilla.lyx.org/show_bug.cgi?id=3231). See
  http://thread.gmane.org/gmane.editors.lyx.devel/87296 for discussion.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18741 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-11 18:22:00 +00:00
Abdelrazak Younes
dbd31072c4 Fix bug 3850.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18740 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-11 16:38:45 +00:00
Peter Kümmel
69a81aecfa add tab close button
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18739 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-11 14:53:36 +00:00
Stefan Schimanski
7b0e35b933 * cursor forward's behavior depends on bidi level in paragraph. So it's not
appropiate for entering a math inset. The "crash" in #2446 was due to 
  the dispatch not doing anything. Hence the cursor was still in text and
  the assertion was triggered.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18737 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-11 10:24:20 +00:00
Jürgen Spitzmüller
5d8e1d7dc5 * src/insets/insetBranch.cpp (doDispatch):
- remove wrong check, fix bug 3835.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18734 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-11 05:12:10 +00:00
Stefan Schimanski
a8c4376ae3 * Font are lightweight, so better do not change the other font, but a copy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18733 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-10 15:34:00 +00:00
Jürgen Spitzmüller
db1d5b38dc Fix bug 3160 and 3812:
* src/lyxfind.cpp:
	- MatchString(), operator():
	- findForward:
	- findBackwards:
	- find: pass bool find_del

	- replace:
	- replaceAll: do not replace or find (after replace) deleted text

* src/BufferView.cpp:
	- getStatus: disable LFUN_WORD_REPLACE for deleted text.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18732 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-10 15:07:21 +00:00
Stefan Schimanski
d43c859cd4 * Changing the font does not change the fontmetrics variable,
hence we have to set it manually. 
  (bug #3787: Huge fonts do not set the row height)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18731 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-10 14:54:45 +00:00
Abdelrazak Younes
8865ede57d Fix missing signal emission following revision 18693.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18730 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-09 22:21:21 +00:00
Bo Peng
c20baf584c Revert rev18728, which is not a good idea
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18729 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-09 18:06:11 +00:00
Bo Peng
05439b953b Allow prefixing a listings parameter with @ to bypass validation, useful when new parameters are added in a new listings version
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18728 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-09 13:34:17 +00:00
Stefan Schimanski
e91fc14767 * some more traces of the signals in CursorSlice
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18727 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-09 13:31:15 +00:00
Abdelrazak Younes
f8ee89093d Fix warning.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18726 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-09 13:18:54 +00:00
Abdelrazak Younes
bb8df6cc00 following rev. 18724 boost/signal is not needed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18725 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-09 13:12:23 +00:00
Abdelrazak Younes
8f65acf693 Following revision 18723, Inset::destroyed() signal is not needed anymore.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18724 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-09 13:08:44 +00:00
Stefan Schimanski
c3363f110d * reverting r18516, so no signals anymore in CursorSlices
* Alfredo Braunstein's patch to fix cursors properly
* CursorSlice::lastpit() added


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18723 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-09 12:39:46 +00:00
Stefan Schimanski
3aa79562d0 * Magic to switch language of a space directly in front of a RTL<->LTR
boundary, when the user enters text directly behind the boundary
  (patch by Dov Feldstern)
  


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18717 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-08 14:24:57 +00:00
Stefan Schimanski
db35f0f95e We do not handle spaces around an RTL segment in a special way anymore.
Neither do we do so when generating the LaTeX, so setting is_space
to false makes the view in the GUI consistent with the output of LaTeX 
later.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18716 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-08 14:20:06 +00:00
Jürgen Spitzmüller
77f63866bf * src/frontends/Toolbars.cpp: fix "Bjønnes".
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18714 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-08 07:58:19 +00:00
Stefan Schimanski
048a38b66c * small fix to r18706: Better be more defensive in assuming that RowPainter has
a singleton behavior. In fact I think it has not for nested Text insets.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18710 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-08 05:14:49 +00:00
Bo Peng
3a5c55e30d Fix bug3782, crash with selection of table cells, joint work with JMarc
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18709 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-07 21:55:55 +00:00
Bo Peng
358e7136f2 Fix compiling errors caused by r18701 (moving drawMarkers and drawMarkers2 back to Inset)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18708 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-07 21:36:42 +00:00
Stefan Schimanski
27bc728f14 * cursor_get_font.patch: the Cursor::getFont is responsible for the
cursor size. It should fit to the setCurrentFont function because the
cursor tells the user which font will be used when typing characters.
Especially on RTL/LTR boundaries it should fit because it is
essential for the user to see which writing direction is active. This
patch implements a simplified version of setCurrentFont's logic to
archive this.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18707 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-07 20:40:01 +00:00
Stefan Schimanski
6daaf5388b * local_bidi.patch: The bidi object in the class Text is only used in
places now where a ParagraphMetrics::computeRowMetrics call comes
before. And this function the Bidi object is updated. So it is a
little step now to remove the Text::bidi completely and use local
Bidi objects instead without more work to do.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18706 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-07 20:39:14 +00:00
Stefan Schimanski
41e194bf88 * safe Text::setCurrentFont which does not use Text::bidi and hence
does not depend on paragraph metrics (fixes #3790, #3801, #3809)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18705 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-07 19:55:22 +00:00
Stefan Schimanski
ff8fcc268a * no_bidi_isboundary.patch: added isRTLBoundary as a replacement to several references to the Text::bidi object.
(fixes #3790, #3801, #3809)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18704 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-07 19:50:02 +00:00
Jürgen Spitzmüller
e91029ae51 * src/LaTeXFeatures.cpp:
- fix definition of \lyxadded and \lyxdeleted (bug 3817).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18703 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-07 18:17:23 +00:00
Richard Heck
2dbfe820d8 Fix bug 3821: Put cursor where the mouse is before pasting external text.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18702 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-07 18:13:10 +00:00
Bo Peng
8153ea8fa7 Show corners of mathed with mouse hover, details see bug 3825
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18701 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-07 18:08:03 +00:00
Jürgen Spitzmüller
5a7524ac9b * src/Thesaurus.cpp:
- check for aiksaurus errors (fix bug 2691)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18699 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-07 17:27:10 +00:00
Jean-Marc Lasgouttes
4573c7f2ab Use "overwrite" instead of "over-write"
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18695 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-07 07:50:27 +00:00
Bo Peng
7350639361 Update Toc when navigation menu is trigged.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18693 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-06 21:19:15 +00:00