Re: C++ question

2001-03-20 Thread Andre Poenitz
> | vector names; > | std::copy(family.begin(), family.end(), > | back_inserter(push_back_first(names))); > > And this will work equally well with any container that implements > push_back not just vectors or constainers that implement operator[] And the transfo

Re: C++ question

2001-03-20 Thread Andre Poenitz
> Many thanks to you both, Lars and André. I'm still pretty ignorant when > it comes to functors. I wrote a template function to achieve my goals. Is > your way better, or is it just a matter of style? You copy the whole vector once more than either Lars's or my solution. Moreover, access to a ve

TeXmacs vs. LyX

2001-03-20 Thread Garst R. Reese
Long long ago ... there was discussion about a scripting language for LyX. TeXmacs and Siag both use or can use guile. I'm thinking along the lines of interactive textbooks or just a way to provide sample solutions to equations in a graphics format. These are just thoughts that I pass on. Garst

Re: [PATCH] os class for OS/2 & Win32 support

2001-03-20 Thread Miyata Shigeru
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> wrote: > It seems to me that at the time SMiyata submitted it more for comments > than actual inclusion. Anyway, I think we really need something like > that. Yes, but one of the reason was that I cannot test the code on systems other than OS/2. > - pay

"A truly unknown func!" ??

2001-03-20 Thread R. Lahaye
Hi, All options in Edit->Floats&Insets will print out text in the text terminal: A truly unknown func! Rob.

Re: C++ question

2001-03-20 Thread Lars Gullik Bjønnes
[EMAIL PROTECTED] (Lars Gullik Bjønnes) writes: | vector names; | std::copy(family.begin(), family.end(), | back_inserter(push_back_first(names))); And this will work equally well with any container that implements push_back not just vectors or constainers that

Re: C++ question

2001-03-20 Thread Lars Gullik Bjønnes
Dekel Tsur <[EMAIL PROTECTED]> writes: | On Tue, Mar 20, 2001 at 06:18:11PM +0100, Lars Gullik Bjønnes wrote: | > Depends _I_ thing my version is better than your since it operates | > on iterators, so I don't have to copy the whole vector. | > This is also why I thing the back_inserter varia

Re: C++ question

2001-03-20 Thread Dekel Tsur
On Tue, Mar 20, 2001 at 06:18:11PM +0100, Lars Gullik Bjønnes wrote: > Depends _I_ thing my version is better than your since it operates > on iterators, so I don't have to copy the whole vector. > This is also why I thing the back_inserter variant is better than the > transform solution. But

Re: C++ question

2001-03-20 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | Excellent. I knew there would be a good reason. Time to dig out a C++ book | again, I think. If I may suggest one... Exceptional C++, Herb Sutter. Mainly on exception safety and how this impacts all design. Also some about lookup rules, and a lot of

Re: LyX fails to create .lyx

2001-03-20 Thread Christian B. Wiik
[Jean-Marc Lasgouttes <[EMAIL PROTECTED]>] | | Christian> What Lars forgot to mention, is that this fresh install was | Christian>a test I did (on another computer) after I discovered the | Christian>file preferences.xform, preferences and lastfiles in my | Christian>home-dir. These files suddenl

Re: C++ question

2001-03-20 Thread Angus Leeming
Excellent. I knew there would be a good reason. Time to dig out a C++ book again, I think. Many thanks, Angus On Tuesday 20 March 2001 17:18, Lars Gullik Bjønnes wrote: > Angus Leeming <[EMAIL PROTECTED]> writes: > > | Many thanks to you both, Lars and André. I'm still pretty ignorant when

Re: C++ question

2001-03-20 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | Many thanks to you both, Lars and André. I'm still pretty ignorant when it | comes to functors. I wrote a template function to achieve my goals. Is | your way better, or is it just a matter of style? Depends _I_ thing my version is better than yo

Re: "hidden" graphics

2001-03-20 Thread Amir Karger
On Tue, Mar 20, 2001 at 12:49:57AM -0800, [EMAIL PROTECTED] wrote: > Has anyone considered optionally permitting a graphic to be signified > simply by it's file name, instead of a (potentially) enormous box > reflecting LyX's representation of its "size"? > > Working on a document with a signific

Re: C++ question

2001-03-20 Thread Angus Leeming
Many thanks to you both, Lars and André. I'm still pretty ignorant when it comes to functors. I wrote a template function to achieve my goals. Is your way better, or is it just a matter of style? A template std::vector const getFirst(std::vector > const & pairVec) { typedef std::vecto

Re: [PATCH] os class for OS/2 & Win32 support

2001-03-20 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: | That would be great indeed. | | A few random comments about the patch (I do not know whether they are | addressed to you of to SMiyata...): | | - the private variables should be named binname_, not _binname | | - pay attention to the case of f

Re: C++ question

2001-03-20 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | Please excuse the dumm question, but is their a simple way to extract the | vector from a vector > ? | | Eg, I have: | typedef std::pair FamilyPair; | std::vector family; | | And I'd like to do this: | std::vector names = family.fir

Re: [PATCH] os class for OS/2 & Win32 support

2001-03-20 Thread Jean-Marc Lasgouttes
> "Ruurd" == Ruurd A Reitsma <[EMAIL PROTECTED]> writes: Ruurd> after reading the raging debate over Win32 ports I decided to Ruurd> take a look at the patches Claus Hentschel and I made. To my Ruurd> surprise I found out that Miyata Shigeru had already wrapped up Ruurd> my patch in a nice os

Re: C++ question

2001-03-20 Thread Andre Poenitz
> Please excuse the dumm question, but is their a simple way to extract the > vector from a vector > ? Depends on what you consider 'simple': struct firster { string const & operator()(FamilyPair const & p) { return p.first; } }; { ... std::vector names(family.size()); std::transform(f

Re: LyX fails to create .lyx

2001-03-20 Thread Jean-Marc Lasgouttes
> "Christian" == Christian B Wiik <[EMAIL PROTECTED]> writes: Christian> What Lars forgot to mention, is that this fresh install was Christian> a test I did (on another computer) after I discovered the Christian> file preferences.xform, preferences and lastfiles in my Christian> home-dir. The

Re: Small Shortcut Glitch

2001-03-20 Thread Jean-Marc Lasgouttes
> "Brett" == Brett Jones <[EMAIL PROTECTED]> writes: Brett> In 1.1.6fix1 the shortcut for updating the PostScript file (S-C Brett> T) doesn't work. The update DVI (S-C D) does. Going through the Brett> menu (M-V U T) works. This is a known problem, but we do not have any solution yet. JMarc

C++ question

2001-03-20 Thread Angus Leeming
Please excuse the dumm question, but is their a simple way to extract the vector from a vector > ? Eg, I have: typedef std::pair FamilyPair; std::vector family; And I'd like to do this: std::vector names = family.first; Do I have to write a loop or is there a function I

Re: The sorting of elements in ShareContainer

2001-03-20 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: | In the sharecontainer template, there is code in get() to ensure that | the container is sorted by decreasing use count order. It looks | like: No the count order is not taken into account anymore, frequence of usage is. So if the elem has a hig

The sorting of elements in ShareContainer

2001-03-20 Thread Jean-Marc Lasgouttes
In the sharecontainer template, there is code in get() to ensure that the container is sorted by decreasing use count order. It looks like: // move it forward - optimization // makes the next find faster. if (it != params.be

Re: compaq cxx warning with anon namespace

2001-03-20 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: | Lars> Besides the problems noted by angus, compaq cxx has the Lars> following to | say: | | mycxx -DHAVE_CONFIG_H -I. Lars> -I../../../lyx-devel/src/mathed -I../../src Lars> -I

Re: Mathed changes

2001-03-20 Thread Andre Poenitz
> And seeming to be/become stable and bugfree? Well, it could already draw nested macros of the same kind last time I had a look... Andre' -- André Pönitz [EMAIL PROTECTED]

Re: figinset.C question

2001-03-20 Thread John Levon
On Tue, 20 Mar 2001, Angus Leeming wrote: > In order to compile figinset.C with Lars' namespace anon in place, I have to > move the function below outside of the namespace. > > My question is one about the comment. Is this function one that xforms should > define, but was forgotten from the h

Re: compaq cxx warning with anon namespace

2001-03-20 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: | Besides the problems noted by angus, compaq cxx has the following to | say: | | mycxx -DHAVE_CONFIG_H -I. -I../../../lyx-devel/src/mathed -I../../src |-I../../../lyx-devel/src/mathed/../ -I../.. -I../../../lyx-devel |-I../../../lyx-devel/boost

compaq cxx warning with anon namespace

2001-03-20 Thread Jean-Marc Lasgouttes
Besides the problems noted by angus, compaq cxx has the following to say: mycxx -DHAVE_CONFIG_H -I. -I../../../lyx-devel/src/mathed -I../../src -I../../../lyx-devel/src/mathed/../ -I../.. -I../../../lyx-devel -I../../../lyx-devel/boost -I../../../lyx-devel/src/cheaders -I/afs/rocq/home/meval/

RE: Most menus not appearing on 1.1.6fix1

2001-03-20 Thread Juergen Vigna
On 20-Mar-2001 Jens-Erik Weber wrote: > Hello, Hello Jens-Erik! > When I start Lyx, there are the menus File, Edit, Documents. When I open a > Lyx file or create a new one, then the other menus and menu items (e.g. > within Edit), that should become available, do not appear when I am logged i

Re: Mathed changes

2001-03-20 Thread Lars Gullik Bjønnes
Andre Poenitz <[EMAIL PROTECTED]> writes: | It would be nice if mathed could be left (more or less) untouched for a | couple of days. I have a almost complete rewrite of the Macro stuff in the | queue which is largish (including some changes to the parser). And seeming to be/become stable and bu

Mathed changes

2001-03-20 Thread Andre Poenitz
It would be nice if mathed could be left (more or less) untouched for a couple of days. I have a almost complete rewrite of the Macro stuff in the queue which is largish (including some changes to the parser). It is not ready to be applied (editing of macro arguments is completely broken) so I f

Re: [PATCH] Compilation fix

2001-03-20 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | Well, it wasn't me. I thought it might be the anonymous creator of namespace | anon! Ok, so we have to do some investigating... Lgb

Re: [PATCH] Compilation fix

2001-03-20 Thread Baruch Even
Well I dont have write access in those areas anyhow, thats why I post the patch and not apply it directly. Anyhow, as long as it works its fine with me, I'm no control freak. On Tue, 20 Mar 2001, Angus Leeming wrote: > Someone beat you to it, it would appear... > A > > On Monday 19 March 2001

Re: [PATCH] Compilation fix

2001-03-20 Thread Angus Leeming
On Tuesday 20 March 2001 10:28, Lars Gullik Bjønnes wrote: > Angus Leeming <[EMAIL PROTECTED]> writes: > > | Someone beat you to it, it would appear... > | A > > And failed to mention it in the ChangeLog file... Well, it wasn't me. I thought it might be the anonymous creator of namespace anon!

Re: [PATCH] Compilation fix

2001-03-20 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | Someone beat you to it, it would appear... | A And failed to mention it in the ChangeLog file... Lgb

Re: warnings during make of CVS; Error exit!

2001-03-20 Thread Angus Leeming
I think this has been fixed; keep the errors (and warnings) coming... A On Tuesday 20 March 2001 00:43, R. Lahaye wrote: > math_macro.C: In method `void MathMacro::Metrics()': > math_macro.C:77: warning: comparison between signed and unsigned > math_macro.C: In method `bool MathMacro::setArgume

Re: [PATCH] Compilation fix

2001-03-20 Thread Angus Leeming
Someone beat you to it, it would appear... A On Monday 19 March 2001 23:12, Baruch Even wrote: > > Attached is a compilation fix. At least on my egcs 2.91.66 compile is > broken due to changes in the xforms frontend. > > I also eliminated a few warnings in the same code area. > > -- > Baruch

cut and paste footnote

2001-03-20 Thread larry
in 1.2cvs, you cannot cut and paste a "closed" footnote, just an "open" one.

Re: figinset.C question

2001-03-20 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | In order to compile figinset.C with Lars' namespace anon in place, I have to | move the function below outside of the namespace. Yes, just move it out. | My question is one about the comment. Is this function one that xforms should | define, but w

Re: "hidden" graphics

2001-03-20 Thread Baruch Even
In the coming graphics inset if you will choose not to render the images it wont scale them and will leave them as a small rectangle. Actually, it does that even if it is rendered. Is it worth it to scale the image in the LyX editing window, or can I avoid this hassle? On Tue, 20 Mar 2001 [EMAIL

Most menus not appearing on 1.1.6fix1

2001-03-20 Thread Jens-Erik Weber
Hello, I just compiled 1.1.6fix1 on SuSE Linux 7.0, I'm using kde2, but the problem also appears under other Window managers. When I start Lyx, there are the menus File, Edit, Documents. When I open a Lyx file or create a new one, then the other menus and menu items (e.g. within Edit), that s

figinset.C question

2001-03-20 Thread Angus Leeming
In order to compile figinset.C with Lars' namespace anon in place, I have to move the function below outside of the namespace. My question is one about the comment. Is this function one that xforms should define, but was forgotten from the header file ? If so, I'll state that explicitly in t

"hidden" graphics

2001-03-20 Thread larry
Has anyone considered optionally permitting a graphic to be signified simply by it's file name, instead of a (potentially) enormous box reflecting LyX's representation of its "size"? Working on a document with a significant number of 1/4 to 1/2 page sized graphics, I'm finding that the representa