Commit Graph

16992 Commits

Author SHA1 Message Date
Richard Heck
1d2cf2771a Fix comment.
By the way, this is extremely inefficient. We have e.g. this code in
Buffer.cpp:
	string target = func.getArg(0);
	string target_name = func.getArg(1);
	string command = func.getArg(2);
As a result, we parse the argument string three times! It seems to me
that we should either (a) expose a "getArgs" routine that returns a
vector<string> and let the caller extract them by position:
	vector<string> args = func.getArgs();
	string target = args[0];
	etc;
or (b) cache the vector<string> in the FuncRequest object itself. The
latter wouldn't in fact require much memory, because these objects are
generally short-lived. 

Opinions?


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32771 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-05 15:21:22 +00:00
Richard Heck
1ba5857f26 Kill warning: string::npos was the wrong type, and does not reflect what
max is supposed to be.

JMarc: I assume you are intending to use this new method, getLongArg()?


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32770 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-05 15:01:32 +00:00
Abdelrazak Younes
dabac3c61f Asynchronous preview: cancel too close preview or update calls.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32769 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-05 13:33:29 +00:00
Abdelrazak Younes
50e673f041 Add a FIXME for asynchronous export and preview and child buffers.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32768 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-05 13:29:01 +00:00
Abdelrazak Younes
24f3ddef3f typos.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32767 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-05 13:20:57 +00:00
Abdelrazak Younes
744ee152fa Cleanup a bit the pargraph ids generation in order to (trying to) fix
#6415
Enrico please verify that reverse dvi is fixed.

* Text and InsetText: create two private constructors and transfer some
initialisation code from InsetText.

* Paragraph: id generation is transfered to Text. May be transfered to
Buffer in the future, we'll see.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32766 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-05 13:16:55 +00:00
Vincent van Ravesteijn
42f455cacb revert r32764.
Still this code hurts my eyes.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32765 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-04 17:31:06 +00:00
Vincent van Ravesteijn
7356db3818 Simplify code introduced in r32761.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32764 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-04 17:15:24 +00:00
Vincent van Ravesteijn
95afeddc27 Make sure that the size of the checkboxes is initialized correctly.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32763 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-04 17:14:08 +00:00
Vincent van Ravesteijn
7f134dadbf * GuiProgressView: cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32762 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-04 17:12:50 +00:00
Pavel Sanda
51086affa7 Setup checboxes according to initial values from commandline.
ProgressView seems to be prepared for use.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32761 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-04 15:32:05 +00:00
Tommaso Cucinotta
5cc2d6d73c Advanced F&R rework:
- scopes now handled in FindAndReplaceWidget, while lyxfind.cpp only searches within single buffer
- cursor().result().dispatched() now encodes whether a match was found or not, after LFUN_WORD_FINDADV dispatch
- removed a few unneeded functions
- followed a few cosmetic advices


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32760 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-04 12:29:38 +00:00
Richard Heck
a8dc000901 Include omitted case, and fix underline.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32759 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-03 17:46:02 +00:00
Pavel Sanda
61d9aa28e0 Add statusbar checkbox sessions
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32758 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-03 17:40:40 +00:00
Pavel Sanda
80b2bebf48 Keep in synchro with "All messages"
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32757 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-03 17:40:34 +00:00
Pavel Sanda
e4b3af5df5 ProgressView quirks
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32756 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-03 17:26:46 +00:00
Pavel Sanda
f8a778b9da Fix some eoln issues in progress view.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32755 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-03 16:54:23 +00:00
Pavel Sanda
1cbab9937b LyXErr and statusbar messages hsould have different routes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32754 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-03 16:30:54 +00:00
Abdelrazak Younes
930088a07d Fix bug #6388
* Buffer can be retrieved from currently set buffer_.
* detachMacroParameters() doesn't really need a Cursor.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32752 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-03 11:00:21 +00:00
Pavel Sanda
fb876be81f I finally find my way into horiz span of ProgressView.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32751 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-03 01:21:01 +00:00
Vincent van Ravesteijn
2a257eca85 Fix bug #6426: Language not set correctly when inserting an Inset.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32750 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-03 01:13:55 +00:00
Pavel Sanda
f78308afde Set correct tab
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32749 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-03 00:55:27 +00:00
Pavel Sanda
8859c5c734 Move settings into grid
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32748 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-03 00:38:07 +00:00
Pavel Sanda
0aa20c9ace Next whitespace
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32747 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-03 00:11:58 +00:00
Pavel Sanda
a4231446d2 RCS read-only toggling also doesn't work correctly for a long time.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg156626.html

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32745 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-03 00:07:22 +00:00
Pavel Sanda
95948d8997 whitespace
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32743 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-02 23:07:21 +00:00
Pavel Sanda
d86cae50f8 Add comment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32742 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-02 22:58:59 +00:00
Pavel Sanda
90afc5fb6d PregressGuiView - resave in old designer, no update button needed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32741 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-02 21:55:07 +00:00
Tommaso Cucinotta
9e5a12b905 No need for the new LyXView::selectDocumentBuffer() method, same thing may be done with LFUN_SWITCH_BUFFER (vfr advice).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32739 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-01 11:14:01 +00:00
Vincent van Ravesteijn
c04850645e When reloading a child document, reset the parent of the child to the parent of the child and not to the master.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32738 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-01 03:11:56 +00:00
Vincent van Ravesteijn
8a38b97d6b Do not clear the default master setting when cancelling the browse dialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32737 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-01 02:45:22 +00:00
Vincent van Ravesteijn
481d512652 Remove unneeded std::.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32736 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-01 02:43:44 +00:00
Richard Heck
4926639879 XHTML output for lists of figures, tables, etc.
Thanks to Abdel for making this so easy. I'm just stealing the TOCs on
the sidebar.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32734 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-01 02:41:26 +00:00
Richard Heck
228948534e A comment, and a minor change.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32732 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-01 02:08:22 +00:00
Richard Heck
68db58a584 Re-organize InsetTOC to prepare for other TO*s.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32731 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-01 01:45:02 +00:00
Richard Heck
acc158a846 Add a comment and update notes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32728 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-31 23:31:30 +00:00
Richard Heck
69fc2f6702 Mostly comments about InsetMathSplit, which more or less works.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32727 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-31 23:28:19 +00:00
Vincent van Ravesteijn
b9a507932f Happy new year!
The best and no more typos wished for 2010!

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32726 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-31 23:00:07 +00:00
Richard Heck
316af4a90b These are in lib/symbols, so should have been caught by the first test:
# split environments with optional valign argument.
# the others (split and alignedat) are hardcoded.
aligned           split       none
gathered          split       none
# from Morten H\o gholm's mathtools.sty:
lgathered         split       none
rgathered         split       none

Right? Someone tell me if that is wrong.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32725 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-31 22:31:12 +00:00
Richard Heck
95f07cf181 Fix comments and whitespace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32722 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-31 22:03:15 +00:00
Richard Heck
ab1f7c3fc5 MathML for XArrow.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32721 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-31 22:02:19 +00:00
Richard Heck
791d28bf0b MathML for Stackrel.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32720 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-31 21:54:00 +00:00
Richard Heck
f29db33e69 MathML for Underset. And fix Overset.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32719 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-31 21:48:56 +00:00
Richard Heck
bee7a4c8d2 MathML for Overset.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32718 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-31 21:44:12 +00:00
Richard Heck
07aca7cccc Fix MathML for binominals.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32717 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-31 21:22:04 +00:00
Richard Heck
b129d5ebdc We do not need special treatment of differentials for MathML.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32716 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-31 21:09:28 +00:00
Richard Heck
f621c97411 MathML for MathCases.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32715 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-31 21:01:00 +00:00
Richard Heck
14001c49fe Fix up the InsetMathGrid output: detect better if we have a table, and
use appropriate tags.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32714 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-31 21:00:49 +00:00
Richard Heck
c95c30184d MBox is currently inactive, but in case it becomes active....
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32713 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-31 20:44:09 +00:00
Richard Heck
eb17e9c362 MathML for MathBox and such.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32712 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-31 20:36:34 +00:00