Re: Patch: export code

2000-10-20 Thread Dekel Tsur
On Sat, Oct 21, 2000 at 12:10:01AM +0200, Dekel Tsur wrote: > Here is a "make Jose happy" patch: Here is an update patch (few minor fixes). patch.gz

Patch: export code

2000-10-20 Thread Dekel Tsur
Here is a "make Jose happy" patch: 1. The patch adds a distinction between format name and extension. Using the \format lyxrc tag we can define in lyxrc #name extension "pretty name" \Format linuxdoc sgml Linuxdoc \Format docbook sgml Docbook etc. 2. Previously, when you had a lin

Re: XForms TODO list

2000-10-20 Thread Dekel Tsur
On Fri, Oct 20, 2000 at 04:43:33PM +1000, Allan Rae wrote: > Spellchecker: all the lyxrc stuff for spellchecking (obviously) > Languages: kbmap*, rtl, language*, mark_foreign* I plan to remove/change the kbmap variables, but I'm note sure if it is done before 1.1.6. > Inpu

C++ Tips

2000-10-20 Thread Baruch Even
I don't know if it was mentioned already but a good source for C++ information can be found at: http://cpptips.hyperformix.com/cpptips.html There is also a low traffic mailing list where he (Allan Clarke) sends new tips, these tips come from newsgroups and such. You are also advised to go to the

Re: Basic C++ question

2000-10-20 Thread Baruch Even
On Fri, 20 Oct 2000, Lior Silberman wrote: > I know this _feels_ bad, but I think the most efficient implementation > will be to handle the temporary ourselves: > > Menu* Menu::expand (Buffer* buf) > { > Menu *resulting_menu = new Menu(); > ... > // add stuff to the new m

Differentiating between different latex targets

2000-10-20 Thread Baruch Even
As a part of the InsetGraphics, a missing feature is to convert image formats to something useable for the document creation this means to convert the images to EPS when the output is Postscript[1], and to PNG when the output is PDF. [1] Actually the difference is in the route, if the route is th

src/frontends/support/LyXImage.h

2000-10-20 Thread Baruch Even
The current method that is used for LyXImage is pretty ugly, the header file LyXImage.h includes the right header file for the frontend by using the preprocessor. My problem is that I need the different LyXImage objects to have different signatures, the X-Server version uses Pixmap, possibly the

Re: Basic C++ question

2000-10-20 Thread Lior Silberman
On Fri, 20 Oct 2000, Baruch Even wrote: > On Fri, 20 Oct 2000, Angus Leeming wrote: > > > On Fri, 20 Oct 2000, Baruch Even wrote: > > > [on the topic of returning large objects from a function] > > > > > > If it's a large object that has long c-tor time the best method is to > > > return a cons

more pointers to references...

2000-10-20 Thread Angus Leeming
This is just a proposal, but going on the "pointers are evil" philosophy, I think that the following Inset classes can be altered. Angus class Inset { public: /* called only from BufferView_pimpl.C and from text.C (SetHeightOfRow, GetVisibleRow). BufferView always exists.

Re: Basic C++ question

2000-10-20 Thread Baruch Even
On Fri, 20 Oct 2000, Angus Leeming wrote: > On Fri, 20 Oct 2000, Baruch Even wrote: > > [on the topic of returning large objects from a function] > > > > If it's a large object that has long c-tor time the best method is to > > return a const refernce as in: Menu const & expand(Buffer *) const; >

Re: Basic C++ question

2000-10-20 Thread Angus Leeming
On Fri, 20 Oct 2000, Baruch Even wrote: > On 20 Oct 2000, Jean-Marc Lasgouttes wrote: > > The method Menu::expand in Menubackend.C has the following signature: > > > > /// Expands some special entries of the menu > > /** The entries with the following kind are exanded to a > >

Re: Basic C++ question

2000-10-20 Thread Baruch Even
On 20 Oct 2000, Jean-Marc Lasgouttes wrote: > > The method Menu::expand in Menubackend.C has the following signature: > > /// Expands some special entries of the menu > /** The entries with the following kind are exanded to a > sequence of Command MenuItems: Lastfile

Re: Basic C++ question

2000-10-20 Thread Baruch Even
On Fri, 20 Oct 2000, Angus Leeming wrote: > On Fri, 20 Oct 2000, Jean-Marc Lasgouttes wrote: > > > "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: > > > > Angus> Things are always copied on return. That's why things like > > Angus> reference counters were invented; the main class holds j

Re: Dialogs.h question

2000-10-20 Thread Angus Leeming
I think I may have got my knickers in a twist (good ol' English expression). Apologies, but it is Friday; feel free to flame. 1. No pollution; all signals are in class Dialogs. 2. I'm trying to get my head round this and it's hurting! Has Jürgen done it the right way and I've done it the wrong

Re: Basic C++ question

2000-10-20 Thread Angus Leeming
On Fri, 20 Oct 2000, Jean-Marc Lasgouttes wrote: > > "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: > > Angus> Things are always copied on return. That's why things like > Angus> reference counters were invented; the main class holds just a > Angus> pointer that points to the data struct

Re: Basic C++ question

2000-10-20 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> Things are always copied on return. That's why things like Angus> reference counters were invented; the main class holds just a Angus> pointer that points to the data structure. Only the pointer is Angus> then copied on return. An

Re: Basic C++ question

2000-10-20 Thread Angus Leeming
On Fri, 20 Oct 2000, Jean-Marc Lasgouttes wrote: > The method Menu::expand in Menubackend.C has the following signature: > > /// Expands some special entries of the menu > /** The entries with the following kind are exanded to a > sequence of Command MenuItems: Lastfile

Re: PATCH references not pointers

2000-10-20 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> Like I said before, No. ;-) If I ever do need it, I can always Angus> put it in cheaders locally. In general, you're right; mess with Angus> these files to fix your own distributions idiosyncracies and Angus> you'll break someone e

Basic C++ question

2000-10-20 Thread Jean-Marc Lasgouttes
The method Menu::expand in Menubackend.C has the following signature: /// Expands some special entries of the menu /** The entries with the following kind are exanded to a sequence of Command MenuItems: Lastfiles, Documents, ViewFormats, ExportFormats, Upd

Dialogs.h question

2000-10-20 Thread Angus Leeming
Here's one that I'm sure will put the cat among the pigeons. I was looking at FormTabular, thinking of a nice way to make it a daughter class of FormInset (incidentally, I have already converted FormGraphics), and it got me thinking... It starts off with the observation that almost all the sig

Re: Nasty bug with (long ?) tables

2000-10-20 Thread Kayvan A. Sylvan
On Fri, Oct 20, 2000 at 03:22:40PM +0200, Jean-Marc Lasgouttes wrote: > > "John" == John Levon <[EMAIL PROTECTED]> writes: > > John> The only reason you get mails from me personally as well as to > John> the list is indeed my laziness. My fault of course ! But I > John> stupidly use pine, and

Re: Nasty bug with (long ?) tables

2000-10-20 Thread Amir Karger
On Fri, Oct 20, 2000 at 09:30:53AM +0200, Juergen Vigna wrote: [snip things that actually matter] > P.S.: I wonder what mail-programs people use and why it is so hard to > remove personal addresses if you know the one is subscribed to the > list anyway. Mate isn't it possible to set

Re: PATCH references not pointers

2000-10-20 Thread Angus Leeming
On Fri, 20 Oct 2000, John Levon wrote: > On Fri, 20 Oct 2000, Angus Leeming wrote: > > paradlg.C by way of support/lstrings.h > > > > John had forgotten to #include "config.h" in this file, so I was finding > > a whole heap of errors in sstream! I cleaned them up, then discovered > > that they'd g

Re: PATCH references not pointers

2000-10-20 Thread John Levon
On Fri, 20 Oct 2000, Angus Leeming wrote: > paradlg.C by way of support/lstrings.h > > John had forgotten to #include "config.h" in this file, so I was finding a > whole heap of errors in sstream! I cleaned them up, then discovered that > they'd go away if I #included "config.h", so undid my c

Re: PATCH references not pointers

2000-10-20 Thread Angus Leeming
On Fri, 20 Oct 2000, Jean-Marc Lasgouttes wrote: > > "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: > > Angus> John had forgotten to #include "config.h" in this file, so I > Angus> was finding a whole heap of errors in sstream! I cleaned them > Angus> up, then discovered that they'd go a

Re: PATCH references not pointers

2000-10-20 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> John had forgotten to #include "config.h" in this file, so I Angus> was finding a whole heap of errors in sstream! I cleaned them Angus> up, then discovered that they'd go away if I #included Angus> "config.h", so undid my changes

Re: PATCH references not pointers

2000-10-20 Thread Angus Leeming
On Fri, 20 Oct 2000, Jean-Marc Lasgouttes wrote: > > "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: > > Angus> On Fri, 20 Oct 2000, Jean-Marc Lasgouttes wrote: > >> > "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: > > Angus> Fine. I appear not to have on my machine. I can > An

Re: PATCH references not pointers

2000-10-20 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> On Fri, 20 Oct 2000, Jean-Marc Lasgouttes wrote: >> > "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: >> Angus> Fine. I appear not to have on my machine. I can Angus> always add it locally to cheaders. >> And why do you

Re: highlighting bug

2000-10-20 Thread Angus Leeming
On Fri, 20 Oct 2000, Jean-Marc Lasgouttes wrote: > > "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: > > Angus> I've reported this one before, but it hasn't gone away so... * > Angus> Place the cursor in the middle of a paragraph of text. * Press > Angus> Shift-Down Arrow. The last half o

Re: PATCH references not pointers

2000-10-20 Thread Angus Leeming
On Fri, 20 Oct 2000, Jean-Marc Lasgouttes wrote: > > "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: > > Angus> Fine. I appear not to have on my machine. I can > Angus> always add it locally to cheaders. > > And why do you need to compile sstream? One of the files in the kde frontend us

Re: PATCH references not pointers

2000-10-20 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> Fine. I appear not to have on my machine. I can Angus> always add it locally to cheaders. And why do you need to compile sstream? JMarc

Re: PATCH references not pointers

2000-10-20 Thread Angus Leeming
On Fri, 20 Oct 2000, Jean-Marc Lasgouttes wrote: > > "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: > > Angus> Three patches that use references rather than pointers. > Angus> Cleaner, neater and safer! (All calls to relevant functions now > Angus> pass (*this) rather than (this). No fun

Re: Nasty bug with (long ?) tables

2000-10-20 Thread Jean-Marc Lasgouttes
> "John" == John Levon <[EMAIL PROTECTED]> writes: John> The only reason you get mails from me personally as well as to John> the list is indeed my laziness. My fault of course ! But I John> stupidly use pine, and am wedded to it now. I don't know why it John> doesn't have a proper reply-to c

Re: Nasty bug with (long ?) tables

2000-10-20 Thread John Levon
On Fri, 20 Oct 2000, Juergen Vigna wrote: > P.S.: I wonder what mail-programs people use and why it is so hard to > remove personal addresses if you know the one is subscribed to the > list anyway. Mate isn't it possible to set the Reply-To address > automatically to the list? I

Re: PATCH references not pointers

2000-10-20 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> Three patches that use references rather than pointers. Angus> Cleaner, neater and safer! (All calls to relevant functions now Angus> pass (*this) rather than (this). No function is called in any Angus> other way, so the pointer ca

Re: highlighting bug

2000-10-20 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> I've reported this one before, but it hasn't gone away so... * Angus> Place the cursor in the middle of a paragraph of text. * Press Angus> Shift-Down Arrow. The last half of the top line and the first Angus> half of the bottom lin

highlighting bug

2000-10-20 Thread Angus Leeming
I've reported this one before, but it hasn't gone away so... * Place the cursor in the middle of a paragraph of text. * Press Shift-Down Arrow. The last half of the top line and the first half of the bottom line are highlighted. Good. * If, however, you first insert an extra space so there are t

another scrolling vs. cursor issue

2000-10-20 Thread R. Lahaye
Hi, Position the cursor in a somewhat large enough document and scroll with the scrollbar to any particular place elsewhere, so that the cursor is out of scope. Now resize the main LyX window. This will force a repaint of the canvas (well, at least it blinks), but also the canvas will suddenly

PATCH references not pointers

2000-10-20 Thread Angus Leeming
These patches do not fix the current problem with spurious lines/crashes when the cursor goes off the top of the screen. However, they do not break anything either! Three patches that use references rather than pointers. Cleaner, neater and safer! (All calls to relevant functions now pass (*th

Re: resizing xform dialogs patch

2000-10-20 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> Anyway, find attached a patch that fixes possible crashes when Angus> resizing xforms dialogs. I applied it. JMarc

Re: compile error in lyx-1.1.5fix2

2000-10-20 Thread Jean-Marc Lasgouttes
> "Tom" == Tom Kennedy <[EMAIL PROTECTED]> writes: Tom> Hello all, My apologies if this has already been reported. I saw Tom> no mention of it on the mailing list archives. No, it is indeed a new report. Tom> Deleting this new line in fix2, my compile worked perfectly. If I Tom> compile wit

Re: thin vertical black line while scrolling

2000-10-20 Thread Angus Leeming
A follow up to Rob's report. I get EXACTLY what he describes. * Put the cursor at the bottom of the ducument and I can scroll anywhere. * Keep the cursor in view by scroll/move cursor/scroll/move cursor and I can scroll anywhere. * Move the cursor off the top of the canvas and I get the thin bl

Re: thin vertical black line while scrolling

2000-10-20 Thread Angus Leeming
On Fri, 20 Oct 2000, R. Lahaye wrote: > Hi, > > I think this has been observed a few emails earlier (which > I have deleted already, unfortunately): > > A thin black line appears in the menu and icon bar when > scrolling the canvas. This must have been introduced in > CVS just a few days ago. > >

Re: Nasty bug with (long ?) tables

2000-10-20 Thread Jose Abilio Oliveira Matos
On Fri, Oct 20, 2000 at 09:30:53AM +0200, Juergen Vigna wrote: > > P.S.: I wonder what mail-programs people use and why it is so hard to > remove personal addresses if you know the one is subscribed to the > list anyway. Mate isn't it possible to set the Reply-To address > autom

thin vertical black line while scrolling

2000-10-20 Thread R. Lahaye
Hi, I think this has been observed a few emails earlier (which I have deleted already, unfortunately): A thin black line appears in the menu and icon bar when scrolling the canvas. This must have been introduced in CVS just a few days ago. A new (?) observation: the line starts showing up when

Re: Nasty bug with (long ?) tables

2000-10-20 Thread Juergen Vigna
On 20-Oct-2000 Andre Poenitz wrote: > > I read a handful lists with such a policy and I do not like it more than > our current policy. Sometimes I simply want to reply to the sender only, > and this is easier if ReplyTo points to this single person... This may happen, but let's say that (at le

Re: XForms TODO list

2000-10-20 Thread Angus Leeming
On Fri, 20 Oct 2000, Allan Rae wrote: > (a.k.a. Jobs for Angus ;-) > > No particular order. > > 1. Find out if it's possible to raise() an iconified form. > I haven't even been able to figure out if a form _is_ iconified. > With this info we won't _need_ to use FL_TRANSIENT for dialogs >

Re: resizing xform dialogs patch

2000-10-20 Thread Angus Leeming
Morning, Allan. Or good evening if you're around now. > > NOTE to anyone writing xforms dialogs: > > > > Reading the xforms documentation, I discovered that the correct place to > > call fl_set_form_minsize()/maxsize() is BEFORE a call to fl_show_form(). > > Moreover,

Re: Nasty bug with (long ?) tables

2000-10-20 Thread Andre Poenitz
> P.S.: I wonder what mail-programs people use Elm 2.4ME+ PL60 (25), of May, 1999 > and why it is so hard to remove personal addresses In my case it's simply laziness. > Mate isn't it possible to set the Reply-To address > automatically to the list? I read a handful lists

Re: XForms TODO list

2000-10-20 Thread Jean-Marc Lasgouttes
> "Allan" == Allan Rae <[EMAIL PROTECTED]> writes: Allan> 2. Add new tabfolders to Preferences (HOWTO at end) And what about my proposal to make LaTeX Preamble a tab folder of Document popup? Would it cause problems with the default OK button? JMarc

Re: resizing xform dialogs patch

2000-10-20 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> is 1.1.5 using the xforms scrollbar? os the lyx hacked one? It uses the xforms scrollbar: fantomas: grep fl_add_scrollbar *.C WorkArea.C: scrollbar = obj = fl_add_scrollbar(FL_VERT_SCROLLBAR, JMarc

More on xforms 0.89: LyX in SuSE 7.0 has the problem

2000-10-20 Thread Michael Creel
Hello again, Summary: LyX compiled against xforms 0.89 crashes when an accented character such as ó is typed. I input the character using the KDE 1.1.2 Spanish international keyboard layout. There is no problem with xforms 0.88. The biggest issue here, IMHO, is that SuSE 7.0 ships with xforms 0

Re: resizing xform dialogs patch

2000-10-20 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> Granted. When did your line first appear? In my case, using the Angus> scroll bar did not result in crashes until today (so maybe it Angus> appeared only in the last day or so). It's the sort of thing Angus> you notice pretty quick

Re: Nasty bug with (long ?) tables

2000-10-20 Thread Juergen Vigna
On 19-Oct-2000 Andre Poenitz wrote: [snip VERY good explanation] > > PS: Since we are at it: Default-constructing std::strings is pretty cheap, too. Ok this convinced me, from now on I will do as you "preached" #:O) Jürgen P.S.: I wonder what mail-programs people use and why it is so har

Re: Comments on the README file

2000-10-20 Thread Juergen Vigna
On 19-Oct-2000 Jean-Marc Lasgouttes wrote: > > Allan, could you have a look? I am not really sure how all this thing > works (will work?). IMO that until we cannot define ALL stuff in preferences (also bindings we should always read ~/.lyx/lyxrc if it is available (before reading preferences!)

Re: resizing xform dialogs patch

2000-10-20 Thread Juergen Vigna
On 19-Oct-2000 Jean-Marc Lasgouttes wrote: > > Load Customization, move the scrollbar up and down, notice a small > line on the menu bar, hide the window to force a redraw. I get this too (not over the whole screen only on the upper part (not text area). If I hide the window (iconize) and then