Re: stdc++ question

2003-03-01 Thread Alfredo Braunstein
Lars Gullik Bjønnes wrote: > I implore you to have a look at the boost graph library before you > implement these graph algorithms. Well, a little late, moreover: > > www.boost.org > > Generic data structures created specifically for LyX (lists, vectors, > etc.) is something I am very wary of.

Re: stdc++ question

2003-03-01 Thread Lars Gullik Bjønnes
Alfredo Braunstein <[EMAIL PROTECTED]> writes: | Hi Lars, | | Lars Gullik Bjxnnes wrote: | | > Hmm... | > | > Why use back_inserter? | | That's the point, I cannot. I want to copy a set to a queue, and I was | looking for the std:: way to do it. I was surprised by the fact that | std::copy wou

Re: stdc++ question

2003-03-01 Thread Alfredo Braunstein
Hi Lars, Lars Gullik Bjønnes wrote: > Hmm... > > Why use back_inserter? That's the point, I cannot. I want to copy a set to a queue, and I was looking for the std:: way to do it. I was surprised by the fact that std::copy would work for copying a set to a list, vector or map, but not to a queue

Re: [PATCH] bufferlist cleanup

2003-03-01 Thread John Levon
On Sat, Mar 01, 2003 at 04:44:49PM +0100, Lars Gullik Bj?nnes wrote: > Because I wrote the code of course! Are you daft! Quite probably ! My friends tell me I'm a big loudmouth too ... and I put music on too loud. john

Re: [PATCH] bufferlist cleanup

2003-03-01 Thread Lars Gullik Bjønnes
John Levon <[EMAIL PROTECTED]> writes: | On Sat, Mar 01, 2003 at 12:59:08PM +0100, Lars Gullik Bj?nnes wrote: | | > Now BufferList has full access to all of the vecotr operations, that | > was not the case earlier. | | And why is this a problem there, and not in all tens of similar cases | throu

Re: Mathed is broken

2003-03-01 Thread Lars Gullik Bjønnes
Dekel Tsur <[EMAIL PROTECTED]> writes: | On Sat, Mar 01, 2003 at 11:42:31AM +0100, Lars Gullik Bj?nnes wrote: | > Andre Poenitz <[EMAIL PROTECTED]> writes: | > | > | On Fri, Feb 14, 2003 at 05:45:24PM +0200, Dekel Tsur wrote: | > | > Commands like \ldots, \underbrace, \vec, \left( are not working

Re: Lyx 1.3.0 on Solaris 2.6: Boost?

2003-03-01 Thread Lars Gullik Bjønnes
"A.P.Manners" <[EMAIL PROTECTED]> writes: | | (However, I have messed about long enough now that the reason for | needing to install a current version of lyx has been worked around). As | an aside, the growing dependence of lyx on gnu tools and last weeks C++ | compiler is disappointing to see. A

Re: stdc++ question

2003-03-01 Thread Lars Gullik Bjønnes
Kornel Benko <[EMAIL PROTECTED]> writes: | On Samstag, 1. März 2003 14:48, Alfredo Braunstein wrote: | | Hi Alfredo, | | > | > No, my question is if there is a std:: insert adaptor that calls q.push() | > (back_inserter calls push_back(), which doesn't exist on std::queue) | | Then what about t

Re: graphic/external insets

2003-03-01 Thread Georg Baum
Am Donnerstag, 27. Februar 2003 08:35 schrieb Andre Poenitz: > So be happy and send the patch. Sorry for the delay, I have been too busy. Here is the patch, reworked against todays CVS. A few remarks: - A simple shell script lyxedit is called for editing a file. This shell script decides what e

Re: LyX 1.3.0 compile problems on Solaris

2003-03-01 Thread Kim Roland Rasmussen
Quoting "A.P.Manners" <[EMAIL PROTECTED]>: > Kim, > > I saw similar behaviour with Solaris 2.6 and gcc-2.95.2 when compiling > the previous version of Lyx (it is in lyx-bugzilla somewhere). I am > afraid that Lyx seems to have gone rather gnu-centric and you can no > longer use the native assembl

Re: Mathed is broken

2003-03-01 Thread Dekel Tsur
On Sat, Mar 01, 2003 at 11:42:31AM +0100, Lars Gullik Bj?nnes wrote: > Andre Poenitz <[EMAIL PROTECTED]> writes: > > | On Fri, Feb 14, 2003 at 05:45:24PM +0200, Dekel Tsur wrote: > | > Commands like \ldots, \underbrace, \vec, \left( are not working at all: > | > they draw junk on the screen. > |

Re: stdc++ question

2003-03-01 Thread Kornel Benko
-BEGIN PGP SIGNED MESSAGE- On Samstag, 1. März 2003 14:48, Alfredo Braunstein wrote: Hi Alfredo, > > No, my question is if there is a std:: insert adaptor that calls q.push() > (back_inserter calls push_back(), which doesn't exist on std::queue) Then what about this template To pushco

Re: stdc++ question

2003-03-01 Thread Alfredo Braunstein
Hi Kornel, Kornel Benko wrote: > -BEGIN PGP SIGNED MESSAGE- > > On Samstag, 1. März 2003 13:34, Alfredo Braunstein wrote: >> As std::queue doesn't have a push_back() method, >> >> std::queue q; >> std::copy(s.begin(), s.end(), back_inserter(q)); >> >> This doesn't work. >

Re: LyX 1.3.0 compile problems on Solaris

2003-03-01 Thread John Levon
On Sat, Mar 01, 2003 at 02:13:57PM +, A.P.Manners wrote: > I saw similar behaviour with Solaris 2.6 and gcc-2.95.2 when compiling > the previous version of Lyx (it is in lyx-bugzilla somewhere). I am > afraid that Lyx seems to have gone rather gnu-centric and you can no > longer use the native

Re: [PATCH][RFC] Move LyXText row painter to RowPainter class

2003-03-01 Thread John Levon
On Sat, Mar 01, 2003 at 01:00:34PM +0100, Lars Gullik Bj?nnes wrote: > Yes... I am only talking about precaution... Understood - we should be careful here. But certainly passing bview as references etc. is a no-brainer IMHO > Ha... my flight to Oslo was 24 hours late so I lost anyway. Sucky :(

Re: [PATCH] bufferlist cleanup

2003-03-01 Thread John Levon
On Sat, Mar 01, 2003 at 12:59:08PM +0100, Lars Gullik Bj?nnes wrote: > Now BufferList has full access to all of the vecotr operations, that > was not the case earlier. And why is this a problem there, and not in all tens of similar cases throughout the entire code base ? john

Lyx 1.3.0 on Solaris 2.6: Boost?

2003-03-01 Thread A.P.Manners
Jean-Marc Lasgouttes wrote: > Could you tell us more about specific errors that you get? I do > compile with gcc 2.95.2 on linux. That is good to hear. std::basic_string and std::numeric_limits are missing (possibly more - I did not get past the latter). The former appeared to be in the include

LyX 1.3.0 compile problems on Solaris

2003-03-01 Thread A.P.Manners
Kim, I saw similar behaviour with Solaris 2.6 and gcc-2.95.2 when compiling the previous version of Lyx (it is in lyx-bugzilla somewhere). I am afraid that Lyx seems to have gone rather gnu-centric and you can no longer use the native assembler. I installed gas (the gnu assembler) and this solved

Re: Screen-updates while loading previews

2003-03-01 Thread Kornel Benko
-BEGIN PGP SIGNED MESSAGE- On Samstag, 1. März 2003 13:25, Alfredo Braunstein wrote: > So why are you complaining? ;) It was info only. I shut up. Kornel - -- Kornel Benko [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: PGP 6.5.8 iQCVAwUBPmCxqLewfbDGmeqhAQHqVAP+M5cW7aU

Re: stdc++ question

2003-03-01 Thread Kornel Benko
-BEGIN PGP SIGNED MESSAGE- On Samstag, 1. März 2003 13:34, Alfredo Braunstein wrote: > As std::queue doesn't have a push_back() method, > > std::queue q; > std::copy(s.begin(), s.end(), back_inserter(q)); > > This doesn't work. > > Is there a std:: adaptor to call q.push()?

stdc++ question

2003-03-01 Thread Alfredo Braunstein
As std::queue doesn't have a push_back() method, std::queue q; std::copy(s.begin(), s.end(), back_inserter(q)); This doesn't work. Is there a std:: adaptor to call q.push()? Thanks, Alfredo

Re: Screen-updates while loading previews

2003-03-01 Thread Alfredo Braunstein
Kornel Benko wrote: > Load a file with _many_ preview-snippets. > Immediately go to file-end. > The lyx-window will continuously update, even if all visible snippets are > already done. This is desired behaviour, all snippets are loaded in background. > This is, what you see after a while ... Y

Re: [PATCH][RFC] Move LyXText row painter to RowPainter class

2003-03-01 Thread Lars Gullik Bjønnes
John Levon <[EMAIL PROTECTED]> writes: | On Sat, Mar 01, 2003 at 11:00:36AM +0100, Lars Gullik Bj?nnes wrote: | | > | What do you mean "really are pointers" ? Practically everything in LyX | > | is allocated off the heap - this means everywhere should use pointers ? | > | > No... I am unsure a

Re: [PATCH] bufferlist cleanup

2003-03-01 Thread Lars Gullik Bjønnes
John Levon <[EMAIL PROTECTED]> writes: | On Sat, Mar 01, 2003 at 11:42:01AM +0100, Lars Gullik Bj?nnes wrote: | | > The only problem I have with it is that no access to the buffer | > container is not controlled anymore. | | Please expand. bstore is as private as it was, and exactly as abstract

Re: [PATCH][RFC] Move LyXText row painter to RowPainter class

2003-03-01 Thread John Levon
On Sat, Mar 01, 2003 at 11:00:36AM +0100, Lars Gullik Bj?nnes wrote: > | What do you mean "really are pointers" ? Practically everything in LyX > | is allocated off the heap - this means everywhere should use pointers ? > > No... I am unsure about practices to cast pointers to references. You

Re: [PATCH] bufferlist cleanup

2003-03-01 Thread John Levon
On Sat, Mar 01, 2003 at 11:42:01AM +0100, Lars Gullik Bj?nnes wrote: > The only problem I have with it is that no access to the buffer > container is not controlled anymore. Please expand. bstore is as private as it was, and exactly as abstract as it was too john >

Re: if 0 in paragraph_funcs

2003-03-01 Thread John Levon
On Sat, Mar 01, 2003 at 11:38:24AM +0100, Lars Gullik Bj?nnes wrote: > John Levon <[EMAIL PROTECTED]> writes: > > | Can they be removed ? > > Have you already deleted this? > > please wait. too late ... john

Screen-updates while loading previews

2003-03-01 Thread Kornel Benko
-BEGIN PGP SIGNED MESSAGE- Load a file with _many_ preview-snippets. Immediately go to file-end. The lyx-window will continuously update, even if all visible snippets are already done. This is, what you see after a while ... Touch any keyboard key. The correct display returns.

I'm back

2003-03-01 Thread Lars Gullik Bjønnes
I gave up reading all the messages... -- Lgb

Re: Mathed is broken

2003-03-01 Thread Lars Gullik Bjønnes
Andre Poenitz <[EMAIL PROTECTED]> writes: | On Fri, Feb 14, 2003 at 05:45:24PM +0200, Dekel Tsur wrote: | > Commands like \ldots, \underbrace, \vec, \left( are not working at all: | > they draw junk on the screen. | | I see it. | | Looks like Lars broke math_support.C when he removed the pragmas

Re: [PATCH] bufferlist cleanup

2003-03-01 Thread Lars Gullik Bjønnes
John Levon <[EMAIL PROTECTED]> writes: | On Fri, Feb 14, 2003 at 05:53:25PM +0100, Andre Poenitz wrote: | | > > You are getting rid of BufferStorage, right? I think it is a good idea | > > :) | > | > It is really interesting to see code for the first time the day before it | > gets removed... |

Re: if 0 in paragraph_funcs

2003-03-01 Thread Lars Gullik Bjønnes
John Levon <[EMAIL PROTECTED]> writes: | On Fri, Feb 14, 2003 at 01:54:59PM +, John Levon wrote: | | > Can they be removed ? | | And what about tabular-old, finally ? This is closer to be ready to go. -- Lgb

Re: if 0 in paragraph_funcs

2003-03-01 Thread Lars Gullik Bjønnes
John Levon <[EMAIL PROTECTED]> writes: | Can they be removed ? Have you already deleted this? please wait. -- Lgb

Re: [PATCH][RFC] Move LyXText row painter to RowPainter class

2003-03-01 Thread Lars Gullik Bjønnes
John Levon <[EMAIL PROTECTED]> writes: | On Wed, Feb 26, 2003 at 06:51:18AM +0100, Lars Gullik Bjønnes wrote: | | > Without looking tooclosely I belive the change to be sound, but I am | > not quite sure about the use of references. Especially since the | > actual obuects in question really are p

Re: Lyx 1.2.1 bug: LaTeX \includegraphics dimensions incorrect for small percentages

2003-03-01 Thread Kornel Benko
-BEGIN PGP SIGNED MESSAGE- On Freitag, 28. Februar 2003 17:34, Jean-Marc Lasgouttes wrote: ... > The problem is the following code in lyxlength.C: > > string const LyXLength::asLatexString() const > { > ostringstream buffer; > switch (unit_) { > case PTW: > buf

Re: compile errors

2003-03-01 Thread Kornel Benko
-BEGIN PGP SIGNED MESSAGE- On Samstag, 1. März 2003 09:07, Kornel Benko wrote: > Compiling xforms-lyx now. It compiles too. Kornel - -- Kornel Benko [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: PGP 6.5.8 iQCVAwUBPmB0C7ewfbDGmeqhAQHahwQArgIrn4JxJtVc7YoROEav8pKIW5APoI

Re: compile errors

2003-03-01 Thread Kornel Benko
-BEGIN PGP SIGNED MESSAGE- On Freitag, 28. Februar 2003 21:01, Alfredo Braunstein wrote: > Alfredo Braunstein wrote: > > And the patch. > > Alfredo > > Dekel, can you apply instead this patch? > > Thanks, > Alfredo This time it compiles. At least qt. Compiling xforms-lyx n