Re: Bug with new insetnote/insetert

2001-07-28 Thread Dekel Tsur
On Tue, Jul 24, 2001 at 12:20:45PM +0200, Jean-Marc Lasgouttes wrote: > > Finally, I tried to profile table inside inset (where cursor movements > between cells are indeed pretty slow) but failed, because gprof is not > smart enough to follow virtual methods calls. How are we supposed to > handle

Re: Bug with new insetnote/insetert

2001-07-24 Thread Juergen Vigna
On 24-Jul-2001 Jean-Marc Lasgouttes wrote: > Maybe add a > font.setFamily(LyXFont::TYPEWRITER_FAMILY); Thanks, done! BTW.: What is the language set to if we have ALL_INHERIT? Jürgen -- -._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._ Dr. Jürgen VignaE

Re: Bug with new insetnote/insetert

2001-07-24 Thread Juergen Vigna
On 24-Jul-2001 Jean-Marc Lasgouttes wrote: > Juergen> And what about the "Fixed Font" ? (that would make indenting > Juergen> of LaTeX code easier). > > OK, I did not understand what you meant by 'fixed'. Well and? Could you please advice me what font I should use? I'm not so introduced in fon

Re: Bug with new insetnote/insetert

2001-07-24 Thread Juergen Vigna
On 24-Jul-2001 Jean-Marc Lasgouttes wrote: > So keep the ALL_INHERIT and set the color to LColor::latex. And what about the "Fixed Font" ? (that would make indenting of LaTeX code easier). Jürgen -- -._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._ Dr. Jürgen Vigna

Re: Bug with new insetnote/insetert

2001-07-24 Thread Juergen Vigna
On 24-Jul-2001 Andre Poenitz wrote: > This means you have to know 'SomeInset' outside. This could be difficult or > even impossible (think of a vector that you want to > duplicate). Sure you were right I didn't think of it and Jean-Marc pointed me in the right direction ;) Jürgen --

Re: Bug with new insetnote/insetert

2001-07-24 Thread Juergen Vigna
On 24-Jul-2001 Jean-Marc Lasgouttes wrote: > I have commited this stuff now. LyXFont const font(LyXFont::ALL_INHERIT); string::const_iterator cit = contents.begin(); string::const_iterator end = contents.end(); Paragraph::size_type pos = 0; for (; cit !=

Re: Bug with new insetnote/insetert

2001-07-24 Thread Andre Poenitz
> Why instead of using clone you can use the same function outside > > my_new_inset = new SomeInset(*my_old_inset); > > instead of: > > my_new_inset = my_old_inset->clone(); This means you have to know 'SomeInset' outside. This could be difficult or even impossible (think of a vector that you

Re: Bug with new insetnote/insetert

2001-07-24 Thread Juergen Vigna
On 24-Jul-2001 Jean-Marc Lasgouttes wrote: > And what if you want to clone a paragraph and all its insets? Hmmm well yes you're right anyway IMO that having a constructor (as it is in InsetTabular for now) is the cleanest thing to do. Then we can always have the clone function and use the const

Re: Bug with new insetnote/insetert

2001-07-24 Thread Juergen Vigna
On 24-Jul-2001 Jean-Marc Lasgouttes wrote: > That/s nothing earth shattering. I am compiling right now before > committing, but the relevant parts of the patch are appended. Note > that most of the insetert changes are for creating an init() method > shared by the two constructors. Well I will

Re: Bug with new insetnote/insetert

2001-07-24 Thread Juergen Vigna
On 24-Jul-2001 Andre Poenitz wrote: >> Could you please show me the fix? I'm actually working to have a >> better constructor handling for Insets so that we can get rid of >> the "clone" function! So I'm changing a lot of code and in this also >> removing some functions which are not needed! > >

Re: Bug with new insetnote/insetert

2001-07-24 Thread Andre Poenitz
> Could you please show me the fix? I'm actually working to have a > better constructor handling for Insets so that we can get rid of > the "clone" function! So I'm changing a lot of code and in this also > removing some functions which are not needed! I think we will need some kind of 'clone' as

Re: Bug with new insetnote/insetert

2001-07-24 Thread Juergen Vigna
On 24-Jul-2001 Jean-Marc Lasgouttes wrote: >> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: > > Angus> So this is a bug with collapsable insets per se I think. Angus > > No, it was a bug in insetnote and insetert. Fix coming. Could you please show me the fix? I'm actually working to

Re: Bug with new insetnote/insetert

2001-07-24 Thread Angus Leeming
On Monday 23 July 2001 13:31, Dekel Tsur wrote: > Load an old file with an insetinfo, and save the file. > The result is: > > \begin_inset Note > collapsed true > > \layout Standard > > > \family roman > \series medium > \shape up > \size small > \emph off > \bar no

Bug with new insetnote/insetert

2001-07-23 Thread Dekel Tsur
Load an old file with an insetinfo, and save the file. The result is: \begin_inset Note collapsed true \layout Standard \family roman \series medium \shape up \size small \emph off \bar no \noun off \color note \lang english Test. \layout Standard \end_inset --