]> git.lyx.org Git - lyx.git/log
lyx.git
16 years agode.po: some more translations
Uwe Stöhr [Tue, 26 Feb 2008 17:48:59 +0000 (17:48 +0000)]
de.po: some more translations

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23252 a592a061-630c-0410-9148-cb99ea01b6c8

16 years ago* Update::SinglePar is enough, Update::Force is a fullscreen update
Stefan Schimanski [Tue, 26 Feb 2008 14:22:56 +0000 (14:22 +0000)]
* Update::SinglePar is enough, Update::Force is a fullscreen update

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23251 a592a061-630c-0410-9148-cb99ea01b6c8

16 years ago* GuiView::closeEvent(): adjust buffer closing WRT multi-view and child documents.
Abdelrazak Younes [Tue, 26 Feb 2008 14:15:32 +0000 (14:15 +0000)]
* GuiView::closeEvent(): adjust buffer closing WRT multi-view and child documents.
- a child document is kept loaded in any case. It is saved if needed before being hidden.
- a document which is not viewed in another window is closed now.
- we do nothing for documents that are also viewed in another window. There is two FIXME related to this last item in the code:

// FIXME 1: should we put an alert box here that the buffer
// is viewed elsewhere?
// FIXME 2: should we try to save this buffer in any case?
//saveBuffer(b);

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23250 a592a061-630c-0410-9148-cb99ea01b6c8

16 years ago* undeflow fix for i == -1
Stefan Schimanski [Tue, 26 Feb 2008 13:46:54 +0000 (13:46 +0000)]
* undeflow fix for i == -1

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23249 a592a061-630c-0410-9148-cb99ea01b6c8

16 years ago* factored out hidePopup and hideInline
Stefan Schimanski [Tue, 26 Feb 2008 13:10:04 +0000 (13:10 +0000)]
* factored out hidePopup and hideInline

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23248 a592a061-630c-0410-9148-cb99ea01b6c8

16 years ago* "show popup without delay"-checkbox was missing a connect
Stefan Schimanski [Tue, 26 Feb 2008 13:09:44 +0000 (13:09 +0000)]
* "show popup without delay"-checkbox was missing a connect

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23247 a592a061-630c-0410-9148-cb99ea01b6c8

16 years ago* cur.insert does not set the update flags
Stefan Schimanski [Tue, 26 Feb 2008 13:09:06 +0000 (13:09 +0000)]
* cur.insert does not set the update flags

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23246 a592a061-630c-0410-9148-cb99ea01b6c8

16 years ago* don't show inline if the user did not want it, even when using the popup
Stefan Schimanski [Tue, 26 Feb 2008 13:08:52 +0000 (13:08 +0000)]
* don't show inline if the user did not want it, even when using the popup

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23245 a592a061-630c-0410-9148-cb99ea01b6c8

16 years ago* paragraph support for the global word list. To make it buffer
Stefan Schimanski [Tue, 26 Feb 2008 13:07:59 +0000 (13:07 +0000)]
* paragraph support for the global word list. To make it buffer
  dependent, we need the buffer pointer. In fact we already have a
  pointer to the text inset. So as soon as inset know their buffer we
  can easily switch to a buffer local word list.
* there might be missing some more places to update the words from a
  buffer, like for example after backspace or more important when the
  cursor leaves a paragraph.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23244 a592a061-630c-0410-9148-cb99ea01b6c8

16 years ago* grey70 does not exist on linux
Stefan Schimanski [Tue, 26 Feb 2008 13:05:57 +0000 (13:05 +0000)]
* grey70 does not exist on linux

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23243 a592a061-630c-0410-9148-cb99ea01b6c8

16 years agoFix warning.
Abdelrazak Younes [Tue, 26 Feb 2008 08:31:00 +0000 (08:31 +0000)]
Fix warning.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23242 a592a061-630c-0410-9148-cb99ea01b6c8

16 years agoCode rules.
Richard Heck [Tue, 26 Feb 2008 01:37:05 +0000 (01:37 +0000)]
Code rules.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23241 a592a061-630c-0410-9148-cb99ea01b6c8

16 years ago* method change_weight to change the weight of a entry.
Stefan Schimanski [Tue, 26 Feb 2008 00:38:55 +0000 (00:38 +0000)]
* method change_weight to change the weight of a entry.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23240 a592a061-630c-0410-9148-cb99ea01b6c8

16 years ago* segfault fix when deleting the last element from the tree
Stefan Schimanski [Tue, 26 Feb 2008 00:38:41 +0000 (00:38 +0000)]
* segfault fix when deleting the last element from the tree

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23239 a592a061-630c-0410-9148-cb99ea01b6c8

16 years ago* getWord is const in fact
Stefan Schimanski [Tue, 26 Feb 2008 00:38:30 +0000 (00:38 +0000)]
* getWord is const in fact

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23238 a592a061-630c-0410-9148-cb99ea01b6c8

16 years agoNow the right patch:
Stefan Schimanski [Tue, 26 Feb 2008 00:38:14 +0000 (00:38 +0000)]
Now the right patch:

* compile fix

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23237 a592a061-630c-0410-9148-cb99ea01b6c8

16 years agoComments, cosmetics.
Richard Heck [Mon, 25 Feb 2008 22:19:59 +0000 (22:19 +0000)]
Comments, cosmetics.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23236 a592a061-630c-0410-9148-cb99ea01b6c8

16 years agoPer Abdel's suggestion that we focus on bug-fixing at this point, this will be the...
Richard Heck [Mon, 25 Feb 2008 22:13:45 +0000 (22:13 +0000)]
Per Abdel's suggestion that we focus on bug-fixing at this point, this will be the last patch in this series for a bit. But I wanted to get this done before I forget what it is I was doing, so here it is.

The idea behind this patch is to make real key-value support for InsetCommand parameters possible. This should be particularly useful for the listings version of InsetInclude, though we would need some kind of UI for it before it would really be helpful. (See below for some thoughts.) This doesn't substantially change anything else, though some things do get re-arranged a bit.

Basically, the idea is this. First, we introduce a whole range of parameter types: Normal LaTeX optional and required parameters; ones for LyX's internal use (like embed); and finally, in connection with keyval, ones that represent keys and ones that represent optional and required arguments where the keyval stuff will appear. (I'm assuming here that there will always be exactly one of those, and that it will accept only keyval-type material.) The parameters themselves are stored in a map, so it's really only the output routines that need to care about the different types of parameters.

Regarding the frontend, it seems to me that something like the following would work:
(i) scan the parameter list for LATEX_KEY type parameters
(ii) the dialog will have a series of lines, each of which has a combo box listing the acceptable keys and a QLineEdit for entering its value, as well as a "delete" button of some sort for removing this key and its value
(iii) there should be an "add line" button to add a new line, activated only when all other lines are filled with values
Probably not even too hard.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23235 a592a061-630c-0410-9148-cb99ea01b6c8

16 years agoRevert "* compile fix"
Stefan Schimanski [Mon, 25 Feb 2008 22:02:48 +0000 (22:02 +0000)]
Revert "* compile fix"

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23234 a592a061-630c-0410-9148-cb99ea01b6c8

16 years ago* compile fix
Stefan Schimanski [Mon, 25 Feb 2008 21:53:16 +0000 (21:53 +0000)]
* compile fix

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23233 a592a061-630c-0410-9148-cb99ea01b6c8

16 years agoReplace boost::shared_ptr<TextClass> with a global cache of sorts of the TextClass...
Richard Heck [Mon, 25 Feb 2008 19:31:31 +0000 (19:31 +0000)]
Replace boost::shared_ptr<TextClass> with a global cache of sorts of the TextClass's used by Buffers---or, more strictly, constructed by BufferParams::makeTextClass(). The action is in TextClass.{h,cpp}.

I've left the typedef in TextClassPtr.h. At the moment, it's kind of silly. But I've left it mostly because it helps to identify where the TextClass's stored in the TextClassBundle are used, and maybe it'd be worth having some sort of strong typedef like the one for BaseClassIndex here.

I need to check whether the textClass_ member of InsetCollapsable is needed now. I think not.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23232 a592a061-630c-0410-9148-cb99ea01b6c8

16 years ago* src/Makefile.am:
Jürgen Spitzmüller [Mon, 25 Feb 2008 18:42:57 +0000 (18:42 +0000)]
* src/Makefile.am:
- mend.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23231 a592a061-630c-0410-9148-cb99ea01b6c8

16 years ago* binary search can be tricky. I hope I got it right now.
Stefan Schimanski [Mon, 25 Feb 2008 15:09:45 +0000 (15:09 +0000)]
* binary search can be tricky. I hope I got it right now.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23230 a592a061-630c-0410-9148-cb99ea01b6c8

16 years ago* adapt to the changed signature
Stefan Schimanski [Mon, 25 Feb 2008 14:25:49 +0000 (14:25 +0000)]
* adapt to the changed signature

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23229 a592a061-630c-0410-9148-cb99ea01b6c8

16 years ago* lib/lyx2lyx/lyx_1_5.py:
Jürgen Spitzmüller [Mon, 25 Feb 2008 13:32:08 +0000 (13:32 +0000)]
* lib/lyx2lyx/lyx_1_5.py:
- implement wrapper around normalize that handles specific cases
  that must not be normalized (rest of bug 3313).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23227 a592a061-630c-0410-9148-cb99ea01b6c8

16 years agoChange CompletionList::data() signature and cosmetics.
Abdelrazak Younes [Mon, 25 Feb 2008 13:11:09 +0000 (13:11 +0000)]
Change CompletionList::data() signature and cosmetics.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23226 a592a061-630c-0410-9148-cb99ea01b6c8

16 years ago* fix for binary search if string was not found
Stefan Schimanski [Mon, 25 Feb 2008 13:08:51 +0000 (13:08 +0000)]
* fix for binary search if string was not found

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23225 a592a061-630c-0410-9148-cb99ea01b6c8

16 years ago* cosmetic
Stefan Schimanski [Mon, 25 Feb 2008 13:08:37 +0000 (13:08 +0000)]
* cosmetic

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23224 a592a061-630c-0410-9148-cb99ea01b6c8

16 years agocosmetics
Abdelrazak Younes [Mon, 25 Feb 2008 09:26:46 +0000 (09:26 +0000)]
cosmetics

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23222 a592a061-630c-0410-9148-cb99ea01b6c8

16 years agoCleanup header.
Abdelrazak Younes [Mon, 25 Feb 2008 09:02:35 +0000 (09:02 +0000)]
Cleanup header.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23221 a592a061-630c-0410-9148-cb99ea01b6c8

16 years agoFix warnings and svn eol properties.
Abdelrazak Younes [Mon, 25 Feb 2008 08:54:51 +0000 (08:54 +0000)]
Fix warnings and svn eol properties.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23220 a592a061-630c-0410-9148-cb99ea01b6c8

16 years agoShould Fix crash on exit.
Abdelrazak Younes [Mon, 25 Feb 2008 07:32:02 +0000 (07:32 +0000)]
Should Fix crash on exit.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23218 a592a061-630c-0410-9148-cb99ea01b6c8

16 years ago* fix longest prefix algorithm for sorted models: commonPrefix(...) returns the lengt...
Stefan Schimanski [Mon, 25 Feb 2008 02:09:39 +0000 (02:09 +0000)]
* fix longest prefix algorithm for sorted models: commonPrefix(...) returns the length, not the prefix.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23217 a592a061-630c-0410-9148-cb99ea01b6c8

16 years ago* copy'n'paste fix
Stefan Schimanski [Mon, 25 Feb 2008 02:01:48 +0000 (02:01 +0000)]
* copy'n'paste fix

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23216 a592a061-630c-0410-9148-cb99ea01b6c8

16 years ago* this was not meant to be added
Stefan Schimanski [Mon, 25 Feb 2008 02:00:22 +0000 (02:00 +0000)]
* this was not meant to be added

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23215 a592a061-630c-0410-9148-cb99ea01b6c8

16 years ago* set is not needed anymore here
Stefan Schimanski [Mon, 25 Feb 2008 01:57:38 +0000 (01:57 +0000)]
* set is not needed anymore here

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23214 a592a061-630c-0410-9148-cb99ea01b6c8

16 years ago* high performance text completion with weighted btrees to get pseudo
Stefan Schimanski [Mon, 25 Feb 2008 01:56:53 +0000 (01:56 +0000)]
* high performance text completion with weighted btrees to get pseudo
  random-access (i.e. O(log n)) to the n-th element in a list/set. Try
  it with 1000000 keys ... no problem.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23213 a592a061-630c-0410-9148-cb99ea01b6c8

16 years ago* special faster algorithms for sorted completion lists
Stefan Schimanski [Mon, 25 Feb 2008 01:56:30 +0000 (01:56 +0000)]
* special faster algorithms for sorted completion lists

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23212 a592a061-630c-0410-9148-cb99ea01b6c8

16 years ago* Timo Bingmann's btree v8.1, extended with weight counting.
Stefan Schimanski [Mon, 25 Feb 2008 01:56:03 +0000 (01:56 +0000)]
* Timo Bingmann's btree v8.1, extended with weight counting.
  See http://idlebox.net/2007/stx-btree/

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23211 a592a061-630c-0410-9148-cb99ea01b6c8

16 years ago* implemention of the WordList with iterator caching for a std::set string list.
Stefan Schimanski [Mon, 25 Feb 2008 01:55:50 +0000 (01:55 +0000)]
* implemention of the WordList with iterator caching for a std::set string list.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23210 a592a061-630c-0410-9148-cb99ea01b6c8

16 years agoWarning.
Richard Heck [Mon, 25 Feb 2008 01:50:09 +0000 (01:50 +0000)]
Warning.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23209 a592a061-630c-0410-9148-cb99ea01b6c8

16 years agoinstaller updates
Uwe Stöhr [Mon, 25 Feb 2008 01:24:10 +0000 (01:24 +0000)]
installer updates

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23208 a592a061-630c-0410-9148-cb99ea01b6c8

16 years agoWhoops. Revert last commit.
Richard Heck [Sun, 24 Feb 2008 23:24:20 +0000 (23:24 +0000)]
Whoops. Revert last commit.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23205 a592a061-630c-0410-9148-cb99ea01b6c8

16 years agoCosmetic.
Richard Heck [Sun, 24 Feb 2008 23:21:39 +0000 (23:21 +0000)]
Cosmetic.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23204 a592a061-630c-0410-9148-cb99ea01b6c8

16 years agodelete French mathed.lyx as we did already for the other languages where we have...
Uwe Stöhr [Sun, 24 Feb 2008 22:52:30 +0000 (22:52 +0000)]
delete French mathed.lyx as we did already for the other languages where we have a translation of the new math manual.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23203 a592a061-630c-0410-9148-cb99ea01b6c8

16 years agoImprove comment.
Richard Heck [Sun, 24 Feb 2008 22:42:27 +0000 (22:42 +0000)]
Improve comment.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23201 a592a061-630c-0410-9148-cb99ea01b6c8

16 years agoDoxy bit.
Richard Heck [Sun, 24 Feb 2008 22:40:34 +0000 (22:40 +0000)]
Doxy bit.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23200 a592a061-630c-0410-9148-cb99ea01b6c8

16 years agoTry to make the distinction between base classes and text classes clearer in the...
Richard Heck [Sun, 24 Feb 2008 16:59:49 +0000 (16:59 +0000)]
Try to make the distinction between base classes and text classes clearer in the code.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23198 a592a061-630c-0410-9148-cb99ea01b6c8

16 years agoRestore Andre's TextClassIndex, but now in the form of BaseClassIndex. It seems worth...
Richard Heck [Sun, 24 Feb 2008 16:29:40 +0000 (16:29 +0000)]
Restore Andre's TextClassIndex, but now in the form of BaseClassIndex. It seems worth distinguishing more clearly than we do at the moment between TextClass's and BaseClass's. The latter correspond to *.layout files; the former are based upon *.layout files but may be modified by modules.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23197 a592a061-630c-0410-9148-cb99ea01b6c8

16 years agoFix scons/InseLayout again
Bo Peng [Sun, 24 Feb 2008 16:28:46 +0000 (16:28 +0000)]
Fix scons/InseLayout again

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23196 a592a061-630c-0410-9148-cb99ea01b6c8

16 years agoMore cleanup from Andre.
Richard Heck [Sun, 24 Feb 2008 15:44:11 +0000 (15:44 +0000)]
More cleanup from Andre.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23194 a592a061-630c-0410-9148-cb99ea01b6c8

16 years agoSCons update: revert r23157 due to r23189
Uwe Stöhr [Sun, 24 Feb 2008 15:27:45 +0000 (15:27 +0000)]
SCons update: revert r23157 due to r23189

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23193 a592a061-630c-0410-9148-cb99ea01b6c8

16 years agoCleanup.
Richard Heck [Sun, 24 Feb 2008 15:18:39 +0000 (15:18 +0000)]
Cleanup.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23192 a592a061-630c-0410-9148-cb99ea01b6c8

16 years agoAndre's s/getBaseClass/baseClass/ cleanup.
Richard Heck [Sun, 24 Feb 2008 15:12:41 +0000 (15:12 +0000)]
Andre's s/getBaseClass/baseClass/ cleanup.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23191 a592a061-630c-0410-9148-cb99ea01b6c8

16 years agoAndre's s/getTextClass/textClass/ cleanup.
Richard Heck [Sun, 24 Feb 2008 15:06:35 +0000 (15:06 +0000)]
Andre's s/getTextClass/textClass/ cleanup.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23190 a592a061-630c-0410-9148-cb99ea01b6c8

16 years agoRevert 23154.
Richard Heck [Sun, 24 Feb 2008 14:59:23 +0000 (14:59 +0000)]
Revert 23154.

Sorry, Andre, but this broke not only the modules stuff but the general handling of TextClasses. I'm not opposed to doing this sort of thing, but it's going to be a little more complicated. I'll do it when I get a bit of time, or I can explain what the issue is here if you want to do it.

I'll separately re-commit some of the cleanup here.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23189 a592a061-630c-0410-9148-cb99ea01b6c8

16 years agoTypo.
Richard Heck [Sun, 24 Feb 2008 14:05:06 +0000 (14:05 +0000)]
Typo.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23188 a592a061-630c-0410-9148-cb99ea01b6c8

16 years agoLoad local textclass in addTextClass(), reload local layout correctly in LFUN_TEXTCLA...
Bo Peng [Sun, 24 Feb 2008 06:14:48 +0000 (06:14 +0000)]
Load local textclass in addTextClass(), reload local layout correctly in LFUN_TEXTCLASS_APPLY and LFUN_TEXTCLASS_LOAD

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23175 a592a061-630c-0410-9148-cb99ea01b6c8

16 years agofix scons for InsetLayout
Bo Peng [Sun, 24 Feb 2008 05:51:07 +0000 (05:51 +0000)]
fix scons for InsetLayout

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23174 a592a061-630c-0410-9148-cb99ea01b6c8

16 years agofix a visual cursor edge-case:
Dov Feldstern [Sun, 24 Feb 2008 01:45:51 +0000 (01:45 +0000)]
fix a visual cursor edge-case:

Only when an LTR paragraph *ends with* an RTL chunk of text, movement was
incorrect in two ways:

1. After moving into the pargraph from the end, and then trying to move towards
the beginning of the paragraph, the cursor would immediately jump to the
previous pargraph.

2. If the cursor were placed inside the RTL text, and then we would move left
towards the beginning of the paragraph, upon reaching the end (beginning?) of
the RTL chunk, cursor would jump to the end of the paragraph, and then continue
as in (1).

(Same thing, of course, with the reverse situation, i.e., RTL paragraph ending
with LTR text).

We now deal with both of these cases correctly.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23173 a592a061-630c-0410-9148-cb99ea01b6c8

16 years ago* setItemDelegate does not free the old delegate. So we better only create one instan...
Stefan Schimanski [Sun, 24 Feb 2008 00:49:57 +0000 (00:49 +0000)]
* setItemDelegate does not free the old delegate. So we better only create one instance and reuse that.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23172 a592a061-630c-0410-9148-cb99ea01b6c8

16 years agoFix drawing error on Linux, apprently caused by creation of static global instance...
Richard Heck [Sun, 24 Feb 2008 00:38:54 +0000 (00:38 +0000)]
Fix drawing error on Linux, apprently caused by creation of static global instance of QItemDelegate. Fix due to STS.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23171 a592a061-630c-0410-9148-cb99ea01b6c8

16 years ago(temporarily) add a Buffer * Inset::buffer_ membert
André Pönitz [Sat, 23 Feb 2008 22:32:33 +0000 (22:32 +0000)]
(temporarily) add a  Buffer * Inset::buffer_  membert

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23170 a592a061-630c-0410-9148-cb99ea01b6c8

16 years agocompile fix
André Pönitz [Sat, 23 Feb 2008 22:21:03 +0000 (22:21 +0000)]
compile fix

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23169 a592a061-630c-0410-9148-cb99ea01b6c8

16 years agoAfter a hiatus, I'm returning to the rewrite of InsetCommandParams, the purpose of...
Richard Heck [Sat, 23 Feb 2008 22:01:02 +0000 (22:01 +0000)]
After a hiatus, I'm returning to the rewrite of InsetCommandParams, the purpose of all of this being to make things more flexible, with the ultimate goal being biblatex support and a kind of InsetCommandFlex that will allow user-definable such things. The next step, really, is to fix up CiteEngine so that we can have different sets of parameters for InsetCitation depending upon what engine is in use. (Something like this also needs doing with InsetInclude.)

This patch reworks the machinery that holds information about what parameters there are and what their values are. There's enough flexibility here that true keyval support ought to be fairly easy at this point. I'll have a peek at that shortly.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23168 a592a061-630c-0410-9148-cb99ea01b6c8

16 years ago* don't forget InsetMathMBox, which is only compiled with cmake
Stefan Schimanski [Sat, 23 Feb 2008 21:59:38 +0000 (21:59 +0000)]
* don't forget InsetMathMBox, which is only compiled with cmake

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23167 a592a061-630c-0410-9148-cb99ea01b6c8

16 years agoFix crash due to recursive function call when a counter references itself.
Bernhard Roider [Sat, 23 Feb 2008 20:38:57 +0000 (20:38 +0000)]
Fix crash due to recursive function call when a counter references itself.
e.g.:

Counter
    Name                 Version
    LabelString          "\theVersion.0"
End

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23166 a592a061-630c-0410-9148-cb99ea01b6c8

16 years agoExtended.lyx: update by Hartmut
Uwe Stöhr [Sat, 23 Feb 2008 18:13:19 +0000 (18:13 +0000)]
Extended.lyx: update by Hartmut

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23165 a592a061-630c-0410-9148-cb99ea01b6c8

16 years ago* Moved std::sets out of Buffer.h to reduce overall LyX compile time
Stefan Schimanski [Sat, 23 Feb 2008 18:11:35 +0000 (18:11 +0000)]
* Moved std::sets out of Buffer.h to reduce overall LyX compile time

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23163 a592a061-630c-0410-9148-cb99ea01b6c8

16 years agofix crash on quit with Ctr-Q. Patch by Horst Schirmeier (see http://bugzilla.lyx...
Abdelrazak Younes [Sat, 23 Feb 2008 18:10:52 +0000 (18:10 +0000)]
fix crash on quit with Ctr-Q. Patch by Horst Schirmeier (see http://bugzilla.lyx.org/show_bug.cgi?id=4572)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23162 a592a061-630c-0410-9148-cb99ea01b6c8

16 years agomostly s/Paragraph::layout(...)/Paragraph::setLayout(...)/
André Pönitz [Sat, 23 Feb 2008 16:45:38 +0000 (16:45 +0000)]
mostly s/Paragraph::layout(...)/Paragraph::setLayout(...)/

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23159 a592a061-630c-0410-9148-cb99ea01b6c8

16 years agoSCons update
Uwe Stöhr [Sat, 23 Feb 2008 16:40:16 +0000 (16:40 +0000)]
SCons update

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23157 a592a061-630c-0410-9148-cb99ea01b6c8

16 years agoReplace the text class shared ptr by good old index-into-global-list.
André Pönitz [Sat, 23 Feb 2008 11:36:15 +0000 (11:36 +0000)]
Replace the text class shared ptr by good old index-into-global-list.
Also a few cosmetical changes where I xould not resist.

Would be nice if the 'modules people' could verify that their baby
is strill alive...

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23154 a592a061-630c-0410-9148-cb99ea01b6c8

16 years agoCosmetics.
Richard Heck [Sat, 23 Feb 2008 03:48:57 +0000 (03:48 +0000)]
Cosmetics.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23153 a592a061-630c-0410-9148-cb99ea01b6c8

16 years ago* fix backspace at paragraph end. The inline completion should stay on screen.
Stefan Schimanski [Sat, 23 Feb 2008 03:15:34 +0000 (03:15 +0000)]
* fix backspace at paragraph end. The inline completion should stay on screen.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23152 a592a061-630c-0410-9148-cb99ea01b6c8

16 years ago* cleaned up word dimension calculation of completion. There is still a bug with...
Stefan Schimanski [Sat, 23 Feb 2008 03:15:05 +0000 (03:15 +0000)]
* cleaned up word dimension calculation of completion. There is still a bug with RTL which moves the popup to left when completing.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23151 a592a061-630c-0410-9148-cb99ea01b6c8

16 years ago* proper cursor position RTL text with inline completion
Stefan Schimanski [Sat, 23 Feb 2008 03:14:33 +0000 (03:14 +0000)]
* proper cursor position RTL text with inline completion

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23150 a592a061-630c-0410-9148-cb99ea01b6c8

16 years ago* remove debug output
Stefan Schimanski [Sat, 23 Feb 2008 03:13:54 +0000 (03:13 +0000)]
* remove debug output

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23149 a592a061-630c-0410-9148-cb99ea01b6c8

16 years ago* allow on position more at the row end for the completion
Stefan Schimanski [Fri, 22 Feb 2008 23:40:36 +0000 (23:40 +0000)]
* allow on position more at the row end for the completion

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23148 a592a061-630c-0410-9148-cb99ea01b6c8

16 years ago* Qt does not reverse RTL strings for us. So it's a bit more complicated to get the...
Stefan Schimanski [Fri, 22 Feb 2008 23:15:27 +0000 (23:15 +0000)]
* Qt does not reverse RTL strings for us. So it's a bit more complicated to get the popup right: we need a QItemDeletate for this.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23147 a592a061-630c-0410-9148-cb99ea01b6c8

16 years ago* another step for rtl completion: the popup is shown in the right direction. Still...
Stefan Schimanski [Fri, 22 Feb 2008 21:57:57 +0000 (21:57 +0000)]
* another step for rtl completion: the popup is shown in the right direction. Still the right cursor position is missing. This also causes the popup to use a wrong position.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23146 a592a061-630c-0410-9148-cb99ea01b6c8

16 years ago* the bidi array drives me crazy. It only holds the current row. So better check...
Stefan Schimanski [Fri, 22 Feb 2008 21:57:45 +0000 (21:57 +0000)]
* the bidi array drives me crazy. It only holds the current row. So better check that our position is in that row.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23145 a592a061-630c-0410-9148-cb99ea01b6c8

16 years ago* inlineCompletionVPos is only used locally. So define it there.
Stefan Schimanski [Fri, 22 Feb 2008 21:57:33 +0000 (21:57 +0000)]
* inlineCompletionVPos is only used locally. So define it there.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23144 a592a061-630c-0410-9148-cb99ea01b6c8

16 years ago* following Andre's advice to rename the method into
Stefan Schimanski [Fri, 22 Feb 2008 21:11:19 +0000 (21:11 +0000)]
* following Andre's advice to rename the method into
  createCompletionList. This makes the ownership of the returned
  object clear.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23143 a592a061-630c-0410-9148-cb99ea01b6c8

16 years ago* some more relicts of the unfinished favorite handling for math completion
Stefan Schimanski [Fri, 22 Feb 2008 21:11:05 +0000 (21:11 +0000)]
* some more relicts of the unfinished favorite handling for math completion

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23142 a592a061-630c-0410-9148-cb99ea01b6c8

16 years ago* comments
Stefan Schimanski [Fri, 22 Feb 2008 20:45:42 +0000 (20:45 +0000)]
* comments

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23141 a592a061-630c-0410-9148-cb99ea01b6c8

16 years ago* simplify notifyCursorLeaves logic: We now only call it from strategic
Stefan Schimanski [Fri, 22 Feb 2008 20:45:18 +0000 (20:45 +0000)]
* simplify notifyCursorLeaves logic: We now only call it from strategic
  places, i.e.
  - BufferView::setMouseCursor,
  - BufferView::mouseEventDispatch
  - LyXFunc::dispatch
  Before it was called from several dispatch handlers in the middle of the
  dispatch process. Because the cursor might get invalidated, this is
  not a good idea. We had plenty of crashes and odd behaviours because
  of this as nobody really understood those cases.

  This fixes (at least) #2069 and #4163.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23140 a592a061-630c-0410-9148-cb99ea01b6c8

16 years ago* correct parsing of unknown math environment (fixes http://bugzilla.lyx.org/show_bug...
Stefan Schimanski [Fri, 22 Feb 2008 20:04:38 +0000 (20:04 +0000)]
* correct parsing of unknown math environment (fixes http://bugzilla.lyx.org/show_bug.cgi?id=4573)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23139 a592a061-630c-0410-9148-cb99ea01b6c8

16 years agoGuiView::dispatch(): Fix cut&paste bug.
Abdelrazak Younes [Fri, 22 Feb 2008 17:36:40 +0000 (17:36 +0000)]
GuiView::dispatch(): Fix cut&paste bug.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23138 a592a061-630c-0410-9148-cb99ea01b6c8

16 years agoLine length.
Richard Heck [Fri, 22 Feb 2008 16:26:40 +0000 (16:26 +0000)]
Line length.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23137 a592a061-630c-0410-9148-cb99ea01b6c8

16 years agoMove the enum into InsetLayout.
Richard Heck [Fri, 22 Feb 2008 16:24:55 +0000 (16:24 +0000)]
Move the enum into InsetLayout.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23136 a592a061-630c-0410-9148-cb99ea01b6c8

16 years agoThis should be the last of the commits refactoring the InsetLayout code.
Richard Heck [Fri, 22 Feb 2008 16:15:21 +0000 (16:15 +0000)]
This should be the last of the commits refactoring the InsetLayout code.

This one just moves the Decoration enum into InsetLayout, changing the names
to avoid possible conflicts now that it is in the lyx namespace.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23135 a592a061-630c-0410-9148-cb99ea01b6c8

16 years agoSort table.
Richard Heck [Fri, 22 Feb 2008 16:12:36 +0000 (16:12 +0000)]
Sort table.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23134 a592a061-630c-0410-9148-cb99ea01b6c8

16 years ago* cosmetic
Stefan Schimanski [Fri, 22 Feb 2008 15:38:26 +0000 (15:38 +0000)]
* cosmetic

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23133 a592a061-630c-0410-9148-cb99ea01b6c8

16 years ago* cosmetic
Stefan Schimanski [Fri, 22 Feb 2008 15:26:52 +0000 (15:26 +0000)]
* cosmetic

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23132 a592a061-630c-0410-9148-cb99ea01b6c8

16 years ago* first step to proper RTL support of the completion. The cursor is still wrong.
Stefan Schimanski [Fri, 22 Feb 2008 14:05:27 +0000 (14:05 +0000)]
* first step to proper RTL support of the completion. The cursor is still wrong.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23130 a592a061-630c-0410-9148-cb99ea01b6c8

16 years ago* once is enough
Stefan Schimanski [Fri, 22 Feb 2008 14:05:06 +0000 (14:05 +0000)]
* once is enough

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23129 a592a061-630c-0410-9148-cb99ea01b6c8

16 years agoText::setCursor(): make sure an update is asked if the current cursor is not visible.
Abdelrazak Younes [Fri, 22 Feb 2008 12:27:56 +0000 (12:27 +0000)]
Text::setCursor(): make sure an update is asked if the current cursor is not visible.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23128 a592a061-630c-0410-9148-cb99ea01b6c8

16 years agoText::dispatch(): Make sure the cursor is visible before doing anything.
Abdelrazak Younes [Fri, 22 Feb 2008 12:22:28 +0000 (12:22 +0000)]
Text::dispatch(): Make sure the cursor is visible before doing anything.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23127 a592a061-630c-0410-9148-cb99ea01b6c8

16 years agoFix this bug:
Abdelrazak Younes [Fri, 22 Feb 2008 11:07:41 +0000 (11:07 +0000)]
Fix this bug:
1. scroll a bit so that the cursor is not visible anymore
2. hit the keyboard arrow keys to move the cursor or type something

The problem was that TextMetrics::parMetric() automatically creates a new parmetrics on const access. This was needed in the old architecture but I don't think anymore.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23126 a592a061-630c-0410-9148-cb99ea01b6c8