Re: New site

2008-03-29 Thread Rex C. Eastbourne
[EMAIL PROTECTED] wrote: On Sat, 29 Mar 2008, rgheck wrote: > ready. Please test it a little before, as I might have broken something > while moving it... Hm, I'm getting blank pages when I go to those URLs. Is it working on your computer? Me too. My fault, I managed to brake it befor

CMS templates for new site

2008-03-29 Thread Rex C. Eastbourne
Here's a question I got from Andrei: Original Message Subject: Re: [Fwd: Re: Primary colours of LyX? Was: Website re-design ideas] Date: Sat, 29 Mar 2008 20:51:39 -0500 From: AK <[EMAIL PROTECTED]> To: Rex C. Eastbourne <[EMAIL PROTECTED]> References: <[EMAIL PROT

Re: New skin available - Barthelme

2008-03-29 Thread Rex C. Eastbourne
[EMAIL PROTECTED] wrote: I don't know if it's still interesting, but you can try this link. http://www.lyx.org/test/index.php?skin=barthelme /Christian That new one is decent, but a bit too bland for my tastes. Rex

New skin available - Barthelme

2008-03-29 Thread christian . ridderstrom
I don't know if it's still interesting, but you can try this link. http://www.lyx.org/test/index.php?skin=barthelme /Christian -- Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr

Re: New site

2008-03-29 Thread christian . ridderstrom
On Sat, 29 Mar 2008, rgheck wrote: > ready. Please test it a little before, as I might have broken something > while moving it... Hm, I'm getting blank pages when I go to those URLs. Is it working on your computer? Me too. My fault, I managed to brake it before going away... It's up no

Re: [Cvslog] r24047 - in /lyx-devel/trunk/src: EmbeddedFiles.cpp

2008-03-29 Thread Bo Peng
> ...it doesn't need to be redone there. It can get copied into the params > and then just used. > No. Remember that we are passing biblio back, and we need to find /path/to/biobio.bib to calculate inzipname. Anyway, you are right that we should be cautious so I have reverted. Bo

Re: [Cvslog] r24047 - in /lyx-devel/trunk/src: EmbeddedFiles.cpp

2008-03-29 Thread rgheck
Bo Peng wrote: OK. I will revert this bit. I did not like the idea of calculating inzip name twice... Wait: - FileName bibfilepath = InsetBibtex::getBibTeXPath(bibfile, buf); - string inzipName = - EmbeddedFile::c

Re: [Cvslog] r24047 - in /lyx-devel/trunk/src: EmbeddedFiles.cpp

2008-03-29 Thread Bo Peng
> Is getBibTexPath expensive??? That line was the reason why I made the > changes. You know, all these will be redone in InsetBibtex, and it > does not make sense to calculate inzipname here. Maybe I can add a > comment here? OK. That can not be too expensive. Let us just try to be safe here.

Re: r24038 - in /lyx-devel/trunk/src: EmbeddedFiles.cpp Embed...

2008-03-29 Thread rgheck
Andre Poenitz wrote: On Sat, Mar 29, 2008 at 02:01:26PM -0500, Bo Peng wrote: - EmbeddedFile const * findFile(std::string const & filename) const; - EmbeddedFile * findFile(std::string const & filename); + const_iterator findFile(std::string const & filename) const; +

Re: [Cvslog] r24047 - in /lyx-devel/trunk/src: EmbeddedFiles.cpp

2008-03-29 Thread Bo Peng
> OK. I will revert this bit. I did not like the idea of calculating > inzip name twice... Wait: > - FileName bibfilepath = > InsetBibtex::getBibTeXPath(bibfile, buf); > - string inzipName = > - > EmbeddedFile::calcInzipName(

Re: [Cvslog] r24047 - in /lyx-devel/trunk/src: EmbeddedFiles.cpp

2008-03-29 Thread Bo Peng
> I strongly encourage you to revert this patch, except for the crucial > bit about copying the file if the embedding status has changed, which is > my bad. OK. I will revert this bit. I did not like the idea of calculating inzip name twice... Bo

Re: r24040 - in /lyx-devel/trunk/src: EmbeddedFiles.cpp Embed...

2008-03-29 Thread Andre Poenitz
On Sat, Mar 29, 2008 at 05:54:14PM -0400, rgheck wrote: > Bo Peng wrote: >> On Sat, Mar 29, 2008 at 10:37 AM, <[EMAIL PROTECTED]> wrote: >> >>> Author: rgheck >>> Date: Sat Mar 29 16:37:22 2008 >>> New Revision: 24040 >>> >>> URL: http://www.lyx.org/trac/changeset/24040 >>> Log: >>> Add ca

Re: r24034 - in /lyx-devel/trunk/src/insets: InsetBibtex.cpp ...

2008-03-29 Thread Andre Poenitz
On Sat, Mar 29, 2008 at 05:39:02PM -0400, rgheck wrote: > Bo Peng wrote: >> On Sat, Mar 29, 2008 at 9:38 AM, <[EMAIL PROTECTED]> wrote: >> >>> Author: rgheck >>> Date: Sat Mar 29 15:38:38 2008 >>> New Revision: 24034 >>> InsetBibtex(InsetCommandParams const &); >>> /// >>> -

Re: r24038 - in /lyx-devel/trunk/src: EmbeddedFiles.cpp Embed...

2008-03-29 Thread Andre Poenitz
On Sat, Mar 29, 2008 at 02:01:26PM -0500, Bo Peng wrote: > > - EmbeddedFile const * findFile(std::string const & filename) const; > > - EmbeddedFile * findFile(std::string const & filename); > > + const_iterator findFile(std::string const & filename) const; > > + iterato

Re: New site

2008-03-29 Thread rgheck
Rex C. Eastbourne wrote: [EMAIL PROTECTED] wrote: I've now moved the site to http://www.lyx.org/test so feel free to announce it and ask for feedback when you think it's ready. Please test it a little before, as I might have broken something while moving it... I've started on documetin

Re: [Cvslog] r24047 - in /lyx-devel/trunk/src: EmbeddedFiles.cpp

2008-03-29 Thread rgheck
[EMAIL PROTECTED] wrote: Author: bpeng Date: Sat Mar 29 21:24:49 2008 New Revision: 24047 URL: http://www.lyx.org/trac/changeset/24047 Log: Revert the addition of a static calcInzipName function, polish createBibFiles function Modified: lyx-devel/trunk/src/frontends/qt4/GuiBibtex.cpp URL: htt

Re: r24041 - /lyx-devel/trunk/src/frontends/qt4/GuiBibtex.cpp

2008-03-29 Thread rgheck
Bo Peng wrote: URL: http://www.lyx.org/trac/changeset/24041 Log: Enabling should not be done here, and no longer needs to be. Modified: lyx-devel/trunk/src/frontends/qt4/GuiBibtex.cpp You may need to remove some header files as well, and now you need to call enable(true) in INSET_

Re: [PATCH] EmbeddedFile and InsetBibtex

2008-03-29 Thread rgheck
Bo Peng wrote: InsetBibtex::setParams(p) { InsetCommand::setParams(p); updateBibFiles(); } It is not as easy as this (sound familiar? :-). p may have to be changed depending on the result of updateBibFiles because it may come out that a file cannot be embedded at all, and then p

Re: r24040 - in /lyx-devel/trunk/src: EmbeddedFiles.cpp Embed...

2008-03-29 Thread rgheck
Bo Peng wrote: On Sat, Mar 29, 2008 at 10:37 AM, <[EMAIL PROTECTED]> wrote: Author: rgheck Date: Sat Mar 29 16:37:22 2008 New Revision: 24040 URL: http://www.lyx.org/trac/changeset/24040 Log: Add calcInzipName. + /// calculate inzip_name_ from filename + static std::stri

Re: r24039 - in /lyx-devel/trunk/src/insets: InsetBibtex.cpp ...

2008-03-29 Thread rgheck
Bo Peng wrote: -void InsetBibtex::createBibFiles(docstring const & bibParam, - docstring const & embedParam) const -{ +void InsetBibtex::createBibFiles() const +{ + // need to do this to keep old info while also not + // copying over any files that have been deleted. +

Re: r24037 - in /lyx-devel/trunk/src: EmbeddedFiles.cpp Embed...

2008-03-29 Thread rgheck
Bo Peng wrote: + /// returns a pointer to the Embedded file representing this object, + /// or null if not found. The filename should be absolute. + EmbeddedFile const * findFile(std::string const & filename) const; + EmbeddedFile * findFile(std::string const & filenam

Re: r24034 - in /lyx-devel/trunk/src/insets: InsetBibtex.cpp ...

2008-03-29 Thread rgheck
Bo Peng wrote: On Sat, Mar 29, 2008 at 9:38 AM, <[EMAIL PROTECTED]> wrote: Author: rgheck Date: Sat Mar 29 15:38:38 2008 New Revision: 24034 InsetBibtex(InsetCommandParams const &); /// - void setBuffer(Buffer & buffer); + virtual void setBuffer(Buffer & buffe

Re: r24047 - in /lyx-devel/trunk/src: EmbeddedFiles.cpp Embed...

2008-03-29 Thread Bo Peng
> Hi, Richard, > > Please review this patch. BTW, we may rename the createBibFiles to something like updateBibFiles, or seprate it to two functions. Then, it comes to the question whether or not you like the meta_ idea..., something (imcomplete) like the attached. This should be able to fix the

Re: r24047 - in /lyx-devel/trunk/src: EmbeddedFiles.cpp Embed...

2008-03-29 Thread Bo Peng
On Sat, Mar 29, 2008 at 3:24 PM, <[EMAIL PROTECTED]> wrote: > Author: bpeng > Date: Sat Mar 29 21:24:49 2008 > New Revision: 24047 > > URL: http://www.lyx.org/trac/changeset/24047 > Log: > Revert the addition of a static calcInzipName function, polish > createBibFiles function Hi, Richard,

Lyx 1.5 && gcc 4.3.0 problems (was: LyX1.6svn Build Errors Mac OSX 10.5.2 Leopard)

2008-03-29 Thread Pavel Sanda
> > if we just add will it work with 4.3? > > Yes. :-) ok, this should go to branch. i let the decision whether to keep stdlib.h on Juergen. pavel Index: src/insets/InsetBibtex.cpp === --- src/insets/InsetBibtex.cpp (revision 24

This old bug in nested Noweb files and External Template solution

2008-03-29 Thread Paul Johnson
I am sorry if you are getting it twice. I tried to send this into lyx-devel 3 days ago right after I subscribed, but it never showed up in my inbox. There's an old bug http://bugzilla.lyx.org/show_bug.cgi?id=48 and last week I unknowingly created a new bug on the same lines here: http://bugzill

Re: r24041 - /lyx-devel/trunk/src/frontends/qt4/GuiBibtex.cpp

2008-03-29 Thread Bo Peng
> URL: http://www.lyx.org/trac/changeset/24041 > Log: > Enabling should not be done here, and no longer needs to be. > > Modified: > lyx-devel/trunk/src/frontends/qt4/GuiBibtex.cpp You may need to remove some header files as well, and now you need to call enable(true) in INSET_MODIFY in In

Re: r24041 - /lyx-devel/trunk/src/frontends/qt4/GuiBibtex.cpp

2008-03-29 Thread Bo Peng
> + string inzipName = > + > EmbeddedFile::calcInzipName(bibfilepath.absFilename(), buf.filePath()); > + emb += from_utf8(inzipName); As I have said, EmbeddedFile(bibfilepath.absFilename(), bufferPath()).inzipName() is e

Re: r24040 - in /lyx-devel/trunk/src: EmbeddedFiles.cpp Embed...

2008-03-29 Thread Bo Peng
On Sat, Mar 29, 2008 at 10:37 AM, <[EMAIL PROTECTED]> wrote: > Author: rgheck > Date: Sat Mar 29 16:37:22 2008 > New Revision: 24040 > > URL: http://www.lyx.org/trac/changeset/24040 > Log: > Add calcInzipName. > > + /// calculate inzip_name_ from filename > + static std::string

Re: r24039 - in /lyx-devel/trunk/src/insets: InsetBibtex.cpp ...

2008-03-29 Thread Bo Peng
> -void InsetBibtex::createBibFiles(docstring const & bibParam, > - docstring const & embedParam) const > -{ > +void InsetBibtex::createBibFiles() const > +{ > + // need to do this to keep old info while also not > + // copying over any files that have been deleted. > +

Re: r24038 - in /lyx-devel/trunk/src: EmbeddedFiles.cpp Embed...

2008-03-29 Thread Bo Peng
> - EmbeddedFile const * findFile(std::string const & filename) const; > - EmbeddedFile * findFile(std::string const & filename); > + const_iterator findFile(std::string const & filename) const; > + iterator findFile(std::string const & filename); Of course. :-) Bo

Re: r24037 - in /lyx-devel/trunk/src: EmbeddedFiles.cpp Embed...

2008-03-29 Thread Bo Peng
> + /// returns a pointer to the Embedded file representing this object, > + /// or null if not found. The filename should be absolute. > + EmbeddedFile const * findFile(std::string const & filename) const; > + EmbeddedFile * findFile(std::string const & filename); I gu

Completion, cell-forward and the Tab key

2008-03-29 Thread Dov Feldstern
Hi! How is the tab key bound to the completion function? I don't see it anywhere in the bind files... My problem is this: in tables, Tab is already bound to cell-forward (in site.bind, which is hardcoded to be read --- in two places, no less: Lyx::init and PrefShortcuts::apply), but now with

Re: r24034 - in /lyx-devel/trunk/src/insets: InsetBibtex.cpp ...

2008-03-29 Thread Bo Peng
On Sat, Mar 29, 2008 at 9:38 AM, <[EMAIL PROTECTED]> wrote: > Author: rgheck > Date: Sat Mar 29 15:38:38 2008 > New Revision: 24034 > InsetBibtex(InsetCommandParams const &); > /// > - void setBuffer(Buffer & buffer); > + virtual void setBuffer(Buffer & buffer); Wh

Re: [PATCH] EmbeddedFile and InsetBibtex

2008-03-29 Thread Bo Peng
> InsetBibtex::setParams(p) > { > InsetCommand::setParams(p); > updateBibFiles(); > } It is not as easy as this (sound familiar? :-). p may have to be changed depending on the result of updateBibFiles because it may come out that a file cannot be embedded at all, and then p['embed'] has

Re: [PATCH] EmbeddedFile and InsetBibtex

2008-03-29 Thread rgheck
Check the attached. It's more or less an inverse of what you had before. In place of updateParams(), we have updateBibFiles(). There are still some rough edges, though. But this will work, I think, without undermining the InsetCommand structures. Your patch is huge and many of them se

Re: EmbeddedFile Feature

2008-03-29 Thread rgheck
Bo Peng wrote: > In the very first version of my embedding design, I have something > called AUTO embedding mode. That is to say, an embedded file in this > mode will automatically use an external version when it exists. That > proposal was disliked by all other developers. > > Because it

Re: New site

2008-03-29 Thread Rex C. Eastbourne
[EMAIL PROTECTED] wrote: I've now moved the site to http://www.lyx.org/test so feel free to announce it and ask for feedback when you think it's ready. Please test it a little before, as I might have broken something while moving it... I've started on documeting the configuration of the

Re: EmbeddedFile Feature

2008-03-29 Thread Bo Peng
> > In the very first version of my embedding design, I have something > > called AUTO embedding mode. That is to say, an embedded file in this > > mode will automatically use an external version when it exists. That > > proposal was disliked by all other developers. > > > > > Because it los

EmbeddedFile Feature

2008-03-29 Thread rgheck
Bo Peng wrote: Richard Heck wrote: I'm going to move this part of the discussion to a separate thread. It has to do with how embedding works from the user's perspective, not from an implementation perspective. And I should say that I'm not trying to be critical here in a bad way. This fe

Re: Backend of the wesite (Was: Website re-design ideas)

2008-03-29 Thread christian . ridderstrom
On Thu, 27 Mar 2008, Joost Verburg wrote: I think that's overkill. We should be happy when people keep the website up-to-date and not add to much bureaucracy. Quick updates of download links and things like that also become impossible if you have to wait for an editor to press a button. I'll

Re: [on-list] Re: Questions about the new site

2008-03-29 Thread christian . ridderstrom
On Fri, 28 Mar 2008, Rex C. Eastbourne wrote: OK. I think it would be great to show it to some non-developers so we can get quick feedback. Maybe some design-related discussion can be migrated to the LyX-users list at some point. I've now moved the site to http://www.lyx.org/test so

Website progress

2008-03-29 Thread christian . ridderstrom
On Fri, 28 Mar 2008, Jean-Marc Lasgouttes wrote: [EMAIL PROTECTED] writes: I'm waiting for Jean-Marc, so that I can test the site closer to the real URI. Ah yes, you are waiting for me :) In what directory do you want this stuff? Can you tell me again what options you want? I'm stupid...

Re: [on-list] Re: Questions about the new site

2008-03-29 Thread christian . ridderstrom
On Fri, 28 Mar 2008, Rex C. Eastbourne wrote: OK. I think it would be great to show it to some non-developers so we can get quick feedback. Maybe some design-related discussion can be migrated to the LyX-users list at some point. I'd prefer to have moved it to under www.lyx.org first... perha

Re: LyX1.6svn Build Errors Mac OSX 10.5.2 Leopard

2008-03-29 Thread José Matos
On Saturday 29 March 2008 01:54:17 Pavel Sanda wrote: > if we just add will it work with 4.3? Yes. :-) > pavel -- José Abílio