Re: [patch] esint support

2006-11-10 Thread Abdelrazak Younes
Abdelrazak Younes wrote: Georg Baum wrote: Am Donnerstag, 9. November 2006 13:40 schrieb Abdelrazak Younes: Georg Baum wrote: Abdelrazak Younes wrote: Georg Baum wrote: This patch adds support for the esint package: Georg, could you post an updated patch for the multi-document toc? I neve

Re: [patch] esint support

2006-11-10 Thread Abdelrazak Younes
Enrico Forestieri wrote: On Sat, Nov 11, 2006 at 01:47:38AM +0100, Abdelrazak Younes wrote: I was partly wrong. While disabling these methods definitely helps (with the attached patch), the csrss.exe problem and the poor typing performance at the end the doc is still there. Abdel, csrss.exe

Re: [patch] esint support

2006-11-10 Thread Abdelrazak Younes
Georg Baum wrote: Am Donnerstag, 9. November 2006 13:40 schrieb Abdelrazak Younes: Georg Baum wrote: Abdelrazak Younes wrote: Georg Baum wrote: This patch adds support for the esint package: Georg, could you post an updated patch for the multi-document toc? I never had it in 1.5 so far. If

Re: [patch] esint support

2006-11-10 Thread Enrico Forestieri
On Sat, Nov 11, 2006 at 01:47:38AM +0100, Abdelrazak Younes wrote: > I was partly wrong. While disabling these methods definitely helps (with > the attached patch), the csrss.exe problem and the poor typing > performance at the end the doc is still there. Abdel, csrss.exe takes a lot of cpu in

Re: [patch] esint support

2006-11-10 Thread Abdelrazak Younes
Abdelrazak Younes wrote: Jean-Marc Lasgouttes wrote: "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: But all in all, I think counter code, as crude as it may be, is almost fast enough for our needs. Abdelrazak> Not on windows. And I really suspect that this is the main Abdelra

Qt4.2 something is going wrong with painting...

2006-11-10 Thread Abdelrazak Younes
I've just compiled with Qt4.2 and I see two bad things: 1) LyX is a bit slower on the UserGuide test (20s instead of 18s) 2) PageDown does not always correctly repaint... Not sure it is Qt fault, someone touched this recently? Abdel.

Re: Can LyX handle large files ?

2006-11-10 Thread Enrico Forestieri
On Sat, Nov 11, 2006 at 12:06:38AM +0100, [EMAIL PROTECTED] wrote: > I deinstalled LyX 1.4.2 and 1.4.3 and went back to LyX 1.3.7 and the > problems essentially disappeared. I conclude that several bugs must have > been introduced in going from 1.3 to 1.4 You could try the cygwin/X11 version. LyX

[Patch] Use TocBackend directly

2006-11-10 Thread Abdelrazak Younes
Hello, As discussed with Georg, this patch deletes most of the toc.[Ch] flesh (remains only outline which should be moved elsewhere). The different tocs were formerly defined and updated by a global map of TocBackends keyed with (Buffer*). Now TocBackend is a proper pimpled member of Buffer; t

Re: [patch] facets to output numbers to wide streams

2006-11-10 Thread Enrico Forestieri
On Fri, Nov 10, 2006 at 09:04:43PM +0100, Georg Baum wrote: > Am Freitag, 10. November 2006 20:07 schrieb Enrico Forestieri: > > What about the attached? I renamed the facets and buried the facet doing > > the real work in the ascii_num_put_facet (which was formerly called > > odocstream_num_put_

Re: [patch] esint support

2006-11-10 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: But all in all, I think counter code, as crude as it may be, is almost fast enough for our needs. Abdelrazak> Not on windows. And I really suspect that this is the main Abdelrazak> cause of our trouble

Re: [patch] esint support

2006-11-10 Thread Jean-Marc Lasgouttes
> "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: >> But all in all, I think counter code, as crude as it may be, is >> almost fast enough for our needs. Abdelrazak> Not on windows. And I really suspect that this is the main Abdelrazak> cause of our trouble in the math test docu

Re: Single-instance support on Windows

2006-11-10 Thread Jean-Marc Lasgouttes
> "Joost" == Joost Verburg <[EMAIL PROTECTED]> writes: Joost> Like on Mac OS X, this is the standard Joost> behavior for Windows applications. Well, this may be the standard behaviour of office, but I doubt it is a real standard... Joost> A mutex should be created using CreateMutex and a uni

Failed assertion in ParagraphPimpl::eraseChars()

2006-11-10 Thread Michael Gerz
Hello! (Jean-Marc, are you still awake?) Recently, I added a couple of new assertions to Paragraph::Pimpl. Among others, I added: int Paragraph::Pimpl::eraseChars(pos_type start, pos_type end, bool trackChanges) { BOOST_ASSERT(start >= 0 && start <= size()); BOOST_ASSERT(end >

Re: [PATCH] Speed-up forwardInset

2006-11-10 Thread Jean-Marc Lasgouttes
> "Jean-Marc" == Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: Jean-Marc> This patch (that should have been applied long ago) speeds Jean-Marc> up forwardInset like I did to forwardPar earlier. This will Jean-Marc> benefit to all code uses this in big documents. This will Jean-Marc> go tomo

Re: unused parameter

2006-11-10 Thread Jean-Marc Lasgouttes
> "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: Abdelrazak> Jean-Marc Lasgouttes wrote: >>> "Georg" == Georg Baum <[EMAIL PROTECTED]> writes: >> Georg> ../../src/MenuBackend.C:762: Warnung: unbenutzter Parameter Georg> »buf« Why is it unused? Can it be removed? >> The foll

Re: [patch] esint support

2006-11-10 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: Abdelrazak> The TocBackend as well as the different updateLabels() Abdelrazak> functions should disappear once we tracks labels correctly Abdelrazak> on paragraph creation/deletion. I have planned to do th

Re: Can LyX handle large files ?

2006-11-10 Thread Abdelrazak Younes
[EMAIL PROTECTED] wrote: A final word on the situation with LyX and large files: I deinstalled LyX 1.4.2 and 1.4.3 and went back to LyX 1.3.7 and the problems essentially disappeared. I conclude that several bugs must have been introduced in going from 1.3 to 1.4 Let's hope that we can restore

Re: [patch] esint support

2006-11-10 Thread Jean-Marc Lasgouttes
> "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: Abdelrazak> The TocBackend as well as the different updateLabels() Abdelrazak> functions should disappear once we tracks labels correctly Abdelrazak> on paragraph creation/deletion. I have planned to do that Abdelrazak> when I get

Re: Can LyX handle large files ?

2006-11-10 Thread gumm
A final word on the situation with LyX and large files: I deinstalled LyX 1.4.2 and 1.4.3 and went back to LyX 1.3.7 and the problems essentially disappeared. I conclude that several bugs must have been introduced in going from 1.3 to 1.4 + In 1.3.7 I can start editing immediately. After some ti

Re: scons error building LyX under Win

2006-11-10 Thread Uwe Stöhr
Bo Peng schrieb: I get also the same errors with SCons 0.96.92: I do not know what build.bat you are using, but please remove all compiler options like CCFLAGS= for now. I'm using Joost's "build_msvc.bat" which is in trunk in ~/development/Win32/packaging This doesn't contain compiler flag

eraseSelectionHelper - Question

2006-11-10 Thread Michael Gerz
Hi, by accident, I came acress these lines of code. PitPosPair eraseSelectionHelper(BufferParams const & params, ParagraphList & pars, pit_type startpit, pit_type endpit, int startpos, int endpos, bool doclear) { // Start of selection is really invalid. if (sta

Re: [patch] esint support

2006-11-10 Thread Abdelrazak Younes
Georg Baum wrote: Am Freitag, 10. November 2006 21:14 schrieb Abdelrazak Younes: Georg Baum wrote: Why was it not possible to extend the classes in toc.h with the new functionality? Because there was no class in toc.h, only global functions that were called each time the navigate menu or an it

Re: BOOST_ASSERT

2006-11-10 Thread Michael Gerz
Georg Baum wrote: Yes, and we did until some time ago. I don't know who changed it and why, thi should be changed back IMHO. I guess something went wrong when we put everything in namespace lyx. The attached patch fixed assertion handling. I will commit in a minute... Michael Index: boost

Re: [patch] esint support

2006-11-10 Thread Georg Baum
Am Freitag, 10. November 2006 21:14 schrieb Abdelrazak Younes: > Georg Baum wrote: > > Why was it not possible to extend the classes in toc.h with the new > > functionality? > > Because there was no class in toc.h, only global functions that were > called each time the navigate menu or an item of

Re: [patch] esint support

2006-11-10 Thread Abdelrazak Younes
Abdelrazak Younes wrote: Abdelrazak Younes wrote: toc.h is just there to keep the interface with MenuBackend. I didn't feel like cleaning this at the time. and insetfloatlist and insettoc... I wonder why I left that rotten... Now I remember... That's because, at the time, I was sooo scared

Re: [patch] esint support

2006-11-10 Thread Abdelrazak Younes
Abdelrazak Younes wrote: toc.h is just there to keep the interface with MenuBackend. I didn't feel like cleaning this at the time. and insetfloatlist and insettoc... I wonder why I left that rotten... Abdel.

Re: [patch] esint support

2006-11-10 Thread Abdelrazak Younes
Georg Baum wrote: Abdelrazak Younes wrote: Jean-Marc Lasgouttes wrote: "Georg" == Georg Baum <[EMAIL PROTECTED]> writes: Georg> It is already ugly, adding one more special test to 3 existing Georg> ones is only a little bit uglier :-) FYI, most of the ugliness was due to the support of qt3 a

Re: [patch] facets to output numbers to wide streams

2006-11-10 Thread Georg Baum
Am Freitag, 10. November 2006 20:07 schrieb Enrico Forestieri: > On Fri, Nov 10, 2006 at 07:16:03PM +0100, Enrico Forestieri wrote: > > On Fri, Nov 10, 2006 at 06:43:58PM +0100, Georg Baum wrote: > > > I can understand that, but why do you not use std::num_put > > std::basic_string::iterator> direc

Re: [patch] facets to output numbers to wide streams

2006-11-10 Thread Enrico Forestieri
On Fri, Nov 10, 2006 at 07:16:03PM +0100, Enrico Forestieri wrote: > On Fri, Nov 10, 2006 at 06:43:58PM +0100, Georg Baum wrote: > > Enrico Forestieri wrote: > > > > > On Fri, Nov 10, 2006 at 05:45:18PM +0100, Georg Baum wrote: > > >> Enrico Forestieri wrote: > > >> > > >> > I am going to shove i

Re: [patch] TOC switching

2006-11-10 Thread Juergen Spitzmueller
Ozgur Ugras BARAN wrote: > following trivial looking patch corrects  switching between different TOC > types. Some remaining problems with the TOC: - The correct list is still not selected when right-clicking on a LOF or LOT inset. - When selecting a type which *is* already selected, the conten

Re: [patch] facets to output numbers to wide streams

2006-11-10 Thread Enrico Forestieri
On Fri, Nov 10, 2006 at 06:43:58PM +0100, Georg Baum wrote: > Enrico Forestieri wrote: > > > On Fri, Nov 10, 2006 at 05:45:18PM +0100, Georg Baum wrote: > >> Enrico Forestieri wrote: > >> > >> > I am going to shove in the attached. There's a small optimization with > >> > respect to the previous

Re: [patch] facets to output numbers to wide streams

2006-11-10 Thread Georg Baum
Enrico Forestieri wrote: > On Fri, Nov 10, 2006 at 05:45:18PM +0100, Georg Baum wrote: >> Enrico Forestieri wrote: >> >> > I am going to shove in the attached. There's a small optimization with >> > respect to the previous version. >> >> Can you explain why you implemented two facets? I would ex

Re: [patch] facets to output numbers to wide streams

2006-11-10 Thread Enrico Forestieri
On Fri, Nov 10, 2006 at 05:45:18PM +0100, Georg Baum wrote: > Enrico Forestieri wrote: > > > I am going to shove in the attached. There's a small optimization with > > respect to the previous version. > > Can you explain why you implemented two facets? I would expect only one > (with ascii_num_pu

Re: [patch] esint support

2006-11-10 Thread Georg Baum
Abdelrazak Younes wrote: > Jean-Marc Lasgouttes wrote: >>> "Georg" == Georg Baum >>> <[EMAIL PROTECTED]> >>> writes: >> >> Georg> It is already ugly, adding one more special test to 3 existing >> Georg> ones is only a little bit uglier :-) > > FYI, most of the ugliness was due to the

Re: [patch] esint support

2006-11-10 Thread Abdelrazak Younes
Georg Baum wrote: Am Donnerstag, 9. November 2006 13:40 schrieb Abdelrazak Younes: Georg Baum wrote: Abdelrazak Younes wrote: Georg Baum wrote: This patch adds support for the esint package: Georg, could you post an updated patch for the multi-document toc? I never had it in 1.5 so far. If

Re: [patch] facets to output numbers to wide streams

2006-11-10 Thread Georg Baum
Enrico Forestieri wrote: > I am going to shove in the attached. There's a small optimization with > respect to the previous version. Can you explain why you implemented two facets? I would expect only one (with ascii_num_put_facet as name, since it can only cope with pure ascii). Georg

Re: [patch] facets to output numbers to wide streams

2006-11-10 Thread Enrico Forestieri
On Fri, Nov 10, 2006 at 02:37:23PM +0100, Enrico Forestieri wrote: > On systems where sizeof(wchar_t) == 2, there are no predefined facets > to output an integral type to a wide stream. The only problem that I > encontered so far is that "View Source" doesn't work for a single > paragraph, as outpu

Re: [patch] esint support

2006-11-10 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: "Georg" == Georg Baum <[EMAIL PROTECTED]> writes: Georg> It is already ugly, adding one more special test to 3 existing Georg> ones is only a little bit uglier :-) FYI, most of the ugliness was due to the support of qt3 and gtk (I didn't want to break the toc cont

Re: Status: 3 hopeless showstoppers + more

2006-11-10 Thread Abdelrazak Younes
Enrico Forestieri wrote: On Fri, Nov 03, 2006 at 09:40:45AM +0100, Abdelrazak Younes wrote: Enrico Forestieri wrote: [...] But maybe the following one has to do with it ;-) After File->Close I don't see the banner but still the document previously opened, even if it has actually been closed.

Re: unused parameter

2006-11-10 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: "Georg" == Georg Baum <[EMAIL PROTECTED]> writes: Georg> ../../src/MenuBackend.C:762: Warnung: unbenutzter Parameter Georg> »buf« Why is it unused? Can it be removed? The following patch does that and cleans up the patch (too much cut and paste, it seems). It's ra

Re: TOC-crach backtrace

2006-11-10 Thread Abdelrazak Younes
Martin Vermeer wrote: On Fri, 2006-11-10 at 11:09 +0100, Jean-Marc Lasgouttes wrote: "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes: Martin> Before going to work on this, consider the patch (for 1.4) Martin> that I submitted a while ago and may be relevant. Attached Martin> again. Marti

Re: updated documentation for glossaries

2006-11-10 Thread Georg Baum
Ozgur Ugras BARAN wrote: > attached is the updated documentation. Added howto change nomlabelwidth. I put that in. I left out the comment change in the header file, since that was misleading IMO. That comment applies to the parameter of the nomencl inset that can be read and written from the LyX

Re: [patch]docbook glossaries export

2006-11-10 Thread Georg Baum
Ozgur Ugras BARAN wrote: Hi Ugras, > Attached is patch for docbook glossaries export. Missing > features are: > > - glossary entries in insets does not appear in glossary. I couldn't > find a "chic" way to include those.. (the current one is not so chic > anyway.. ) Any ideas?? Yes, see patch.

Re: Status: 3 hopeless showstoppers + more

2006-11-10 Thread Enrico Forestieri
On Fri, Nov 03, 2006 at 09:40:45AM +0100, Abdelrazak Younes wrote: > Enrico Forestieri wrote: [...] > >But maybe the following one has to do with it ;-) > > > >After File->Close I don't see the banner but still the document > >previously opened, even if it has actually been closed. > > This one is

[patch] facets to output numbers to wide streams

2006-11-10 Thread Enrico Forestieri
On systems where sizeof(wchar_t) == 2, there are no predefined facets to output an integral type to a wide stream. The only problem that I encontered so far is that "View Source" doesn't work for a single paragraph, as outputting the paragraph number invalidates the stream and prevents further outp

Re: [patch] TOC switching

2006-11-10 Thread Edwin Leuven
Ozgur Ugras BARAN wrote: following trivial looking patch corrects switching between different TOC types. please somebody commits, if there is no problem. it is in...

[patch] TOC switching

2006-11-10 Thread Ozgur Ugras BARAN
following trivial looking patch corrects switching between different TOC types. please somebody commits, if there is no problem. Ugras --- frontends/qt4/QTocDialog.C (revision 15836) +++ frontends/qt4/QTocDialog.C (working copy) @@ -104,6 +104,7 @@ void QTocDialog::on_typeCO_activated(int v

Re: TOC-crach backtrace

2006-11-10 Thread Martin Vermeer
On Fri, 2006-11-10 at 11:09 +0100, Jean-Marc Lasgouttes wrote: > > "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes: > > Martin> Before going to work on this, consider the patch (for 1.4) > Martin> that I submitted a while ago and may be relevant. Attached > Martin> again. > > Martin, I

Re: unused parameter

2006-11-10 Thread Georg Baum
Jean-Marc Lasgouttes wrote: > The following patch does that and cleans up the patch (too much cut > and paste, it seems). It also uses the toolbar's gui_name, since this > is what we really want. > > OK? Fine with me. Georg

Re: [patch] Allow unicode labels in layout files

2006-11-10 Thread Georg Baum
Jean-Marc Lasgouttes wrote: >> "Georg" == Georg Baum >> <[EMAIL PROTECTED]> >> writes: > > Georg> BTW, why is layout->labelstring() sometimes used untranslated? > > Where? When setting the setLabelWidthString of ParagraphParameters. This updated patch does also translate these cases

Re: TOC-crach backtrace

2006-11-10 Thread Jean-Marc Lasgouttes
> "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes: Martin> Before going to work on this, consider the patch (for 1.4) Martin> that I submitted a while ago and may be relevant. Attached Martin> again. Martin, I finally tested your patch! Better late than never... It works as advertised.

Re: unused parameter

2006-11-10 Thread Jean-Marc Lasgouttes
> "Georg" == Georg Baum <[EMAIL PROTECTED]> writes: Georg> ../../src/MenuBackend.C:762: Warnung: unbenutzter Parameter Georg> »buf« Why is it unused? Can it be removed? The following patch does that and cleans up the patch (too much cut and paste, it seems). It also uses the toolbar's gui_nam

Re: [patch] esint support

2006-11-10 Thread Jean-Marc Lasgouttes
> "Georg" == Georg Baum <[EMAIL PROTECTED]> writes: Georg> It is already ugly, adding one more special test to 3 existing Georg> ones is only a little bit uglier :-) The goal should be to remove those ugly tests altogether. This would also allow to have special numbering code for notes and br

Re: [patch] esint support

2006-11-10 Thread Georg Baum
Jean-Marc Lasgouttes wrote: >> "Georg" == Georg Baum >> <[EMAIL PROTECTED]> >> writes: > > Georg> Thanks, here is the patch. In the 1.4 version I was able to > Georg> make addToToc a virtual function of InsetBase, but in trunk > Georg> that is not possible anymore because it would cre

Re: Request for feature/Patching procedure

2006-11-10 Thread Alex Roper
I did that at first, it's rather a subtle point but if I create a math-macro for pmatrix, it requires specifying the quantity inside parentheses as an argument to the macro. This is fine for initial typing, but for corrections and things it's very annoying to click the area I want to change and hav

Re: [patch] Allow unicode labels in layout files

2006-11-10 Thread Jean-Marc Lasgouttes
> "Georg" == Georg Baum <[EMAIL PROTECTED]> writes: Georg> BTW, why is layout->labelstring() sometimes used untranslated? Where? JMarc

Re: Request for feature/Patching procedure

2006-11-10 Thread Jean-Marc Lasgouttes
> "Alex" == Alex Roper <[EMAIL PROTECTED]> writes: Alex> Hi, I'd be interesting in having added (or adding myself) a Alex> feature to LyX. Alex> It would be neat if there were a user-configurable way to Alex> reassign shortcuts. For example, I type "\pmatrix" a lot, and Alex> would like to as

Re: [patch] esint support

2006-11-10 Thread Jean-Marc Lasgouttes
> "Georg" == Georg Baum <[EMAIL PROTECTED]> writes: Georg> Thanks, here is the patch. In the 1.4 version I was able to Georg> make addToToc a virtual function of InsetBase, but in trunk Georg> that is not possible anymore because it would create a circular Georg> include dependency (insetbase.