Re: Allow selection of a local layout file.

2008-03-10 Thread Bo Peng
> > The advantages of local layout files are that > > 1. Do not have to reconfigure .lyx to open a .lyx file with local layout > file. > > > Right. But if we could automate reconfigure somehow, even if only in > regards layout files, then it's not an issue. I have thought of those solutions

Re: Allow selection of a local layout file.

2008-03-10 Thread rgheck
As far as the original question is concerned---whether to allow selection of local layout files---it seems to me that there are potential problems here. Suppose the user creates a new file and selects a local layout. Then she reopens the file, and LyX complains that the local layout isn't t

Re: Allow selection of a local layout file.

2008-03-10 Thread Bo Peng
> > Will we keep .layout and use this interface to modify it? > Yes, I think that is the idea. > > > In the second case, this feature helps > > because we are more likely to derive a local layout from a system one > > and modify it. > > > Exactly. And you can use it to create/modify modules,

Re: Allow selection of a local layout file.

2008-03-10 Thread rgheck
Bo Peng wrote: But if a layout composer comes later (we hope so) the problem remains. So I don't see how the situation has changed. The only feature I want for lyx 1.7.0 is a layout composer, but nobody has a clear idea on what is actually needed. Will we toss *.layout altogether and em

Re: Allow selection of a local layout file.

2008-03-10 Thread Bo Peng
> But if a layout composer comes later (we hope so) the problem remains. So I > don't see how the situation has changed. The only feature I want for lyx 1.7.0 is a layout composer, but nobody has a clear idea on what is actually needed. Will we toss *.layout altogether and embed .layout to .lyx

Re: Allow selection of a local layout file.

2008-03-10 Thread Bo Peng
The implementation is actually quite easy. The attached patch simply load the layout file, add it to the style combo box (if needed), and apply the layout. Bo Index: src/LayoutFile.cpp === --- src/LayoutFile.cpp (revision 23644) +++ s

Re: Allow selection of a local layout file.

2008-03-10 Thread José Matos
On Monday 10 March 2008 18:09:44 Bo Peng wrote: > At that time, the argument was that the layout stuff will be > overhauled so until a decision is made, I should not go further along > the line of local layouts. I think people was thinking about a layout > composer plus embedded layout, but neither

Re: Allow selection of a local layout file.

2008-03-10 Thread Bo Peng
On Mon, Mar 10, 2008 at 12:36 PM, José Matos <[EMAIL PROTECTED]> wrote: > On Monday 10 March 2008 14:26:39 Bo Peng wrote: > > Please speak up if you > > have reasons to object. (This proposal was rejected before.) > > What is different this time? There is no difference. At that time, the argu

Re: Allow selection of a local layout file.

2008-03-10 Thread José Matos
On Monday 10 March 2008 14:26:39 Bo Peng wrote: > Please speak up if you > have reasons to object. (This proposal was rejected before.) What is different this time? > Cheers, > Bo -- José Abílio

Allow selection of a local layout file.

2008-03-10 Thread Bo Peng
Hi, With the mechanism of using a local layout file in place, it is silly to only allow opening, but not creating, a .lyx file with local layout file. I am working on a patch that adds a browse button to the right of the layout combobox in document->settings. Please speak up if you have reasons to