Re: r35230 - in lyx-devel/trunk: lib/ui src/insets

2010-08-30 Thread Jürgen Spitzmüller
Pavel Sanda wrote: have you checked that it is not possible to enter somewhat escaped string by the attacker which would be executed as well...? I couldn't think of any. Jürgen

Re: [patch] for branch - fix #6872

2010-08-30 Thread Jürgen Spitzmüller
Uwe Stöhr wrote: This patch doesn't work because there is a bug in InsetMathDecoration. Moreover we don#t ship a toolbar icon for \dddot although we support this command since a long time. The attached patch fully fixes http://www.lyx.org/trac/ticket/6872 OK? OK. Jürgen

Re: [patch] backport support for \ddddot to branch

2010-08-30 Thread Jürgen Spitzmüller
Uwe Stöhr wrote: The attached patch backports the support for the math command \ot. (Requires the patch for #6872 that I just sent.) OK? Go on. Jürgen

Re: what does the local layout in the document settings do?

2010-08-30 Thread Guenter Milde
On 2010-08-30, Uwe Stöhr wrote: What exactly does the local layout feature in the document settings? It is in the document settings now? Then this is an interface to the hithere hidden possibility to include a layout with a document. I tried to use it but don't understand how it works. Here

Re: Reconfigure includes bad shell command (when tex is missing?)

2010-08-30 Thread Pavel Sanda
Stephan Witt wrote: This is LyX 2.0.0 on Linux running in place without having TeX installed. Should this be fixed? are there some bad consequences? Not visible. But I'm a little bit nervous when arbitrary shell commands gets executed. I have no time to investigate and it seems to

Re: [patch] support or the mathdots package - fix for #5373

2010-08-30 Thread Pavel Sanda
Uwe Stöhr wrote: Index: src/frontends/qt4/ui/MathsUi.ui ... + property name=toolTip + stringlt;!DOCTYPE HTML PUBLIC quot;-//W3C//DTD HTML 4.0//ENquot; quot;http://www.w3.org/TR/REC-html40/strict.dtdquot;gt; +lt;htmlgt;lt;headgt;lt;meta name=quot;qrichtextquot; content=quot;1quot;

Re: Cannot run LyX when compiled from source on Mac OS X

2010-08-30 Thread Cyrille Artho
Hi Stephan, I have tried the latest version of Qt (4.6.3) as well, with no change in the result. The script to build LyX on Mac OS is very large; for occasional debugging, I would prefer being able to build QT and LyX in a few steps, as outlined in INSTALL.MacOSX. Hopefully, that documentation

Re: Cannot run LyX when compiled from source on Mac OS X

2010-08-30 Thread Stephan Witt
Am 30.08.2010 um 07:48 schrieb Stephan Witt: Am 30.08.2010 um 06:14 schrieb Cyrille Artho: Hi LyX/Mac developers, I have tried to locally compile qt4 and LyX (devel, and 1.6.7) to debug a problem with copying/pasting graphics on Mac OS X. I think I have found the place in the code that I

Re: Patch for spell checker state in Paragraph instead of Font (Re: alpha6)

2010-08-30 Thread Jürgen Spitzmüller
Stephan Witt wrote: Now the patch is ready for review. It compiles and works for me on mac and linux. Not a thorough review, but on a first glance I see many style issues. For instance, + if (from = to) return 0; should be + if (from = to) + return 0; also, take

Re: Patch for spell checker state in Paragraph instead of Font (Re: alpha6)

2010-08-30 Thread Stephan Witt
Am 30.08.2010 um 11:48 schrieb Jürgen Spitzmüller: Stephan Witt wrote: Now the patch is ready for review. It compiles and works for me on mac and linux. Thank you for review. Not a thorough review, but on a first glance I see many style issues. For instance, + if (from = to) return

Re: Patch for spell checker state in Paragraph instead of Font (Re: alpha6)

2010-08-30 Thread Jürgen Spitzmüller
Stephan Witt wrote: I removed one FIXME which is outdated and one that might be still valid. Perhaps I should have mentioned this, but I don't think that this should be customizable. I think it should. This is a common customization option for spellcheckers (you can customize whether to check

Re: what does the local layout in the document settings do?

2010-08-30 Thread Richard Heck
On 08/30/2010 03:45 AM, Guenter Milde wrote: On 2010-08-30, Uwe Stöhr wrote: What exactly does the local layout feature in the document settings? It is in the document settings now? Then this is an interface to the hithere hidden possibility to include a layout with a document.

Re: Patch for spell checker state in Paragraph instead of Font (Re: alpha6)

2010-08-30 Thread Jürgen Spitzmüller
Also sprach Stephan Witt: Am 30.08.2010 um 13:07 schrieb Jürgen Spitzmüller: Stephan Witt wrote: I removed one FIXME which is outdated and one that might be still valid. Perhaps I should have mentioned this, but I don't think that this should be customizable. I think it should. This

Re: what does the local layout in the document settings do?

2010-08-30 Thread Jürgen Spitzmüller
Richard Heck wrote: Think of local layouts as an analogy to the LaTeX preamble. It is a power user feature. Yes, that should probably be emphasized in the documentation. But nevertheless the goal should be to replace this input widget by a proper graphical user interface

Re: enhancement suggestion: include combine class

2010-08-30 Thread Richard Heck
On 08/26/2010 10:00 AM, Peter Gamalrevicz wrote: Dear LyX-developers, first off: thanks for a great piece of software. I have one suggestion: the combine class is very handy for having several documents in one, which is especially useful for collections of articles. The class can be found on

Re: what does the local layout in the document settings do?

2010-08-30 Thread Richard Heck
On 08/30/2010 08:45 AM, Jürgen Spitzmüller wrote: Richard Heck wrote: Think of local layouts as an analogy to the LaTeX preamble. It is a power user feature. Yes, that should probably be emphasized in the documentation. But nevertheless the goal should be to replace this

Re: Patch for spell checker state in Paragraph instead of Font (Re: alpha6)

2010-08-30 Thread Stephan Witt
Am 30.08.2010 um 14:42 schrieb Jürgen Spitzmüller: Also sprach Stephan Witt: Am 30.08.2010 um 13:07 schrieb Jürgen Spitzmüller: Stephan Witt wrote: I removed one FIXME which is outdated and one that might be still valid. Perhaps I should have mentioned this, but I don't think that this

Re: Patch for spell checker state in Paragraph instead of Font (Re: alpha6)

2010-08-30 Thread Jürgen Spitzmüller
Stephan Witt wrote: ...by default. Which means you can change that behaviour, I suppose. Maybe. By studying the hunspell.hxx file I couldn't learn how... I found no argument to the spell() function and no option setter function. Perhaps it is left as an exercise to the open-source

Re: Patch for spell checker state in Paragraph instead of Font (Re: alpha6)

2010-08-30 Thread Stephan Witt
Am 30.08.2010 um 16:40 schrieb Jürgen Spitzmüller: Stephan Witt wrote: BTW, the word LyX is correct for apples spell checker :-) by default? :-) Yes. I think it ignores all words with mixed case by default. Hm, that would be a really bad default. I think casing errors (typos) are

Understanding the code

2010-08-30 Thread venom00
Hello, I'm new to LyX development and I would like to contribute. Where should I start to get an idea of how LyX works? Is there a document available online? It's a rather big project and starting to navigate code here and there doesn't sound a good idea! Thanks in advance, Ale

Re: Understanding the code

2010-08-30 Thread Pavel Sanda
veno...@arcadiaclub.com wrote: Hello, I'm new to LyX development and I would like to contribute. Where should I start to get an idea of how LyX works? Is there a document available online? It's a rather big project and starting to navigate code here and there doesn't sound a good idea!

Multiple LyX side-by-side

2010-08-30 Thread venom00
Hello, how can I run multple versions of LyX side-by-side? I want to run LyX 2.0 alpha 5 and the latest of the 1.6.7 series without having to reconfigure the user folder each time. Is there a command-line parameter to instruct LyX to use a particular folder instead of another? Or maybe some

Re: [Rant] Bug #6846: Deleting text very slow for long documents in alpha5

2010-08-30 Thread Jean-Marc Lasgouttes
Le 17/08/2010 17:17, Pavel Sanda a écrit : Jean-Marc LASGOUTTES wrote: but I'd like to point out something else: People, please do not use InsetIterator in updateBuffer()! A lot of time has been spent on this code to ensure that it is fast and regularly someone comes and thinks it is

Re: Automatic replacement

2010-08-30 Thread Jean-Marc Lasgouttes
Le 17/08/2010 19:36, Pavel Sanda a écrit : Julien Rioux wrote: To be useful, the preprocessor value could be set per document, but that could be a security risk. Now, how do you make that safe? I don't know. thats the problem. Using the OutputFormat tag defined for use with sweave, one can

Re: Multiple LyX side-by-side

2010-08-30 Thread Pavel Sanda
veno...@arcadiaclub.com wrote: Hello, how can I run multple versions of LyX side-by-side? which OS? iirc configure had some version-suffix parameter for this. I want to run LyX 2.0 alpha 5 and the latest of the 1.6.7 series without having to reconfigure the user folder each time. Is there a

Re: [Rant] Bug #6846: Deleting text very slow for long documents in alpha5

2010-08-30 Thread Pavel Sanda
Jean-Marc Lasgouttes wrote: Le 17/08/2010 17:17, Pavel Sanda a écrit : Jean-Marc LASGOUTTES wrote: but I'd like to point out something else: People, please do not use InsetIterator in updateBuffer()! A lot of time has been spent on this code to ensure that it is fast and regularly

LyX wiki posts do not work anymore

2010-08-30 Thread Pavel Sanda
hi, its a longer time the notifications from the wiki mailer daemon do not post anything into lyx-doc lists (i mean those posts: http://www.mail-archive.com/lyx-d...@lists.lyx.org/msg04776.html ) Christian, JMarc, can you have a look? similarly doxygen info was last built Jan 9 2010. can we get

LyX 2.0 compilation errors using CMAKE

2010-08-30 Thread Uwe Stöhr
I am not able to compile LyX 2.0 using CMAKE. I get these errors: 2..\..\..\src\support\environment.cpp(65) : error C2039: 'setenv' : is not a member of '`global namespace'' 2..\..\..\src\support\environment.cpp(65) : error C3861: 'setenv': identifier not found 10..\..\src\LyX.cpp(288) :

Re: LyX 2.0 compilation errors using CMAKE

2010-08-30 Thread Uwe Stöhr
Am 31.08.2010 03:04, schrieb Uwe Stöhr: I am not able to compile LyX 2.0 using CMAKE. I get these errors: I forgot to say that I'm using - Microsoft Visual C++ 2008 Express Edition with SP1 - Qt 4.6.3 - Windows XP 64bit (a.k.a. Windows 2003 Server) - CMake 2.8.2 and build with this batch

Re: [patch] support or the mathdots package - fix for #5373

2010-08-30 Thread Uwe Stöhr
there must be simple string there. i guess you use too new designer? Thanks for the hint. I'm using designer from Qt 4.6.3 and this version uses by default rich text when editing the tooltip. One has to edit the tooltip directly in the result window to get plain text. regards Uwe

Re: Cannot run LyX when compiled from source on Mac OS X

2010-08-30 Thread Cyrille Artho
Hi Stephan, I have all the compilers installed that come with Xcode, but I would prefer working from the command line rather than using the large Xcode GUI, which is difficult to use when I travel and have to use a laptop. As for Qt, the pre-built Qt package released by Nokia comes as a

Re: r35230 - in lyx-devel/trunk: lib/ui src/insets

2010-08-30 Thread Jürgen Spitzmüller
Pavel Sanda wrote: > have you checked that it is not possible to enter somewhat escaped string > by the attacker which would be executed as well...? I couldn't think of any. Jürgen

Re: [patch] for branch - fix #6872

2010-08-30 Thread Jürgen Spitzmüller
Uwe Stöhr wrote: > This patch doesn't work because there is a bug in InsetMathDecoration. > Moreover we don#t ship a toolbar icon for \dddot although we support this > command since a long time. The attached patch fully fixes > http://www.lyx.org/trac/ticket/6872 > > OK? OK. Jürgen

Re: [patch] backport support for \ddddot to branch

2010-08-30 Thread Jürgen Spitzmüller
Uwe Stöhr wrote: > The attached patch backports the support for the math command \ot. > (Requires the patch for #6872 that I just sent.) > > OK? Go on. Jürgen

Re: what does the local layout in the document settings do?

2010-08-30 Thread Guenter Milde
On 2010-08-30, Uwe Stöhr wrote: > What exactly does the local layout feature in the document settings? It is in the document settings now? Then this is an interface to the hithere hidden possibility to include a layout with a document. > I tried to use it but don't understand how it works. Here

Re: Reconfigure includes bad shell command (when tex is missing?)

2010-08-30 Thread Pavel Sanda
Stephan Witt wrote: > >> This is LyX 2.0.0 on Linux running in place without having TeX installed. > >> Should this be fixed? > > > > are there some bad consequences? > > Not visible. But I'm a little bit nervous when arbitrary shell commands gets > executed. > I have no time to investigate and

Re: [patch] support or the mathdots package - fix for #5373

2010-08-30 Thread Pavel Sanda
Uwe Stöhr wrote: > Index: src/frontends/qt4/ui/MathsUi.ui ... > + > + !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0//EN > http://www.w3.org/TR/REC-html40/strict.dtd; > +htmlheadmeta name=qrichtext > content=1 /style type=text/css > +p, li { white-space: pre-wrap; } > +/style/headbody

Re: Cannot run LyX when compiled from source on Mac OS X

2010-08-30 Thread Cyrille Artho
Hi Stephan, I have tried the latest version of Qt (4.6.3) as well, with no change in the result. The script to build LyX on Mac OS is very large; for occasional debugging, I would prefer being able to build QT and LyX in a few steps, as outlined in INSTALL.MacOSX. Hopefully, that documentation

Re: Cannot run LyX when compiled from source on Mac OS X

2010-08-30 Thread Stephan Witt
Am 30.08.2010 um 07:48 schrieb Stephan Witt: > Am 30.08.2010 um 06:14 schrieb Cyrille Artho: > >> Hi LyX/Mac developers, >> I have tried to locally compile qt4 and LyX (devel, and 1.6.7) to debug a >> problem with copying/pasting graphics on Mac OS X. I think I have found the >> place in the

Re: Patch for spell checker state in Paragraph instead of Font (Re: alpha6)

2010-08-30 Thread Jürgen Spitzmüller
Stephan Witt wrote: > Now the patch is ready for review. > It compiles and works for me on mac and linux. Not a thorough review, but on a first glance I see many style issues. For instance, + if (from >= to) return 0; should be + if (from >= to) + return 0; also,

Re: Patch for spell checker state in Paragraph instead of Font (Re: alpha6)

2010-08-30 Thread Stephan Witt
Am 30.08.2010 um 11:48 schrieb Jürgen Spitzmüller: > Stephan Witt wrote: >> Now the patch is ready for review. >> It compiles and works for me on mac and linux. Thank you for review. > Not a thorough review, but on a first glance I see many style issues. For > instance, > > + if (from >=

Re: Patch for spell checker state in Paragraph instead of Font (Re: alpha6)

2010-08-30 Thread Jürgen Spitzmüller
Stephan Witt wrote: > I removed one FIXME which is outdated and one that might be still valid. > Perhaps I should have mentioned this, but I don't think that this should be > customizable. I think it should. This is a common customization option for spellcheckers (you can customize whether to

Re: what does the local layout in the document settings do?

2010-08-30 Thread Richard Heck
On 08/30/2010 03:45 AM, Guenter Milde wrote: On 2010-08-30, Uwe Stöhr wrote: What exactly does the local layout feature in the document settings? It is in the document settings now? Then this is an interface to the hithere hidden possibility to include a layout with a document.

Re: Patch for spell checker state in Paragraph instead of Font (Re: alpha6)

2010-08-30 Thread Jürgen Spitzmüller
Also sprach Stephan Witt: > Am 30.08.2010 um 13:07 schrieb Jürgen Spitzmüller: > > Stephan Witt wrote: > >> I removed one FIXME which is outdated and one that might be still valid. > >> Perhaps I should have mentioned this, but I don't think that this should > >> be customizable. > > > > I think

Re: what does the local layout in the document settings do?

2010-08-30 Thread Jürgen Spitzmüller
Richard Heck wrote: > > Think of local layouts as an analogy to the LaTeX preamble. > > It is a power user feature. > > > > > > Yes, that should probably be emphasized in the documentation. But nevertheless the goal should be to replace this input widget by a proper graphical user interface

Re: enhancement suggestion: include combine class

2010-08-30 Thread Richard Heck
On 08/26/2010 10:00 AM, Peter Gamalrevicz wrote: Dear LyX-developers, first off: thanks for a great piece of software. I have one suggestion: the combine class is very handy for having several documents in one, which is especially useful for collections of articles. The class can be found on

Re: what does the local layout in the document settings do?

2010-08-30 Thread Richard Heck
On 08/30/2010 08:45 AM, Jürgen Spitzmüller wrote: Richard Heck wrote: Think of local layouts as an analogy to the LaTeX preamble. It is a power user feature. Yes, that should probably be emphasized in the documentation. But nevertheless the goal should be to replace this

Re: Patch for spell checker state in Paragraph instead of Font (Re: alpha6)

2010-08-30 Thread Stephan Witt
Am 30.08.2010 um 14:42 schrieb Jürgen Spitzmüller: > Also sprach Stephan Witt: >> Am 30.08.2010 um 13:07 schrieb Jürgen Spitzmüller: >>> Stephan Witt wrote: I removed one FIXME which is outdated and one that might be still valid. Perhaps I should have mentioned this, but I don't think

Re: Patch for spell checker state in Paragraph instead of Font (Re: alpha6)

2010-08-30 Thread Jürgen Spitzmüller
Stephan Witt wrote: > > ..."by default". Which means you can change that behaviour, I suppose. > > Maybe. By studying the hunspell.hxx file I couldn't learn how... > I found no argument to the spell() function and no option setter function. > Perhaps it is left as an exercise to the open-source

Re: Patch for spell checker state in Paragraph instead of Font (Re: alpha6)

2010-08-30 Thread Stephan Witt
Am 30.08.2010 um 16:40 schrieb Jürgen Spitzmüller: > Stephan Witt wrote: > BTW, the word LyX is correct for apples spell checker :-) >>> >>> >>> >>> by default? :-) >> >> Yes. I think it ignores all words with mixed case by default. > > Hm, that would be a really bad default. I think

Understanding the code

2010-08-30 Thread venom00
Hello, I'm new to LyX development and I would like to contribute. Where should I start to get an idea of how LyX works? Is there a document available online? It's a rather big project and starting to navigate code here and there doesn't sound a good idea! Thanks in advance, Ale

Re: Understanding the code

2010-08-30 Thread Pavel Sanda
veno...@arcadiaclub.com wrote: > Hello, I'm new to LyX development and I would like to contribute. Where > should I start to get an idea of how LyX works? Is there a document available > online? > It's a rather big project and starting to navigate code here and there > doesn't sound a good

Multiple LyX side-by-side

2010-08-30 Thread venom00
Hello, how can I run multple versions of LyX side-by-side? I want to run LyX 2.0 alpha 5 and the latest of the 1.6.7 series without having to reconfigure the user folder each time. Is there a command-line parameter to instruct LyX to use a particular folder instead of another? Or maybe some

Re: [Rant] Bug #6846: Deleting text very slow for long documents in alpha5

2010-08-30 Thread Jean-Marc Lasgouttes
Le 17/08/2010 17:17, Pavel Sanda a écrit : Jean-Marc LASGOUTTES wrote: but I'd like to point out something else: People, please do not use InsetIterator in updateBuffer()! A lot of time has been spent on this code to ensure that it is fast and regularly someone comes and thinks it is

Re: Automatic replacement

2010-08-30 Thread Jean-Marc Lasgouttes
Le 17/08/2010 19:36, Pavel Sanda a écrit : Julien Rioux wrote: To be useful, the preprocessor value could be set per document, but that could be a security risk. Now, how do you make that safe? I don't know. thats the problem. Using the OutputFormat tag defined for use with sweave, one can

Re: Multiple LyX side-by-side

2010-08-30 Thread Pavel Sanda
veno...@arcadiaclub.com wrote: > Hello, how can I run multple versions of LyX side-by-side? which OS? iirc configure had some version-suffix parameter for this. >I want to run LyX 2.0 alpha 5 and the latest of the 1.6.7 series without >having to reconfigure the user folder each time. >Is there

Re: [Rant] Bug #6846: Deleting text very slow for long documents in alpha5

2010-08-30 Thread Pavel Sanda
Jean-Marc Lasgouttes wrote: > Le 17/08/2010 17:17, Pavel Sanda a écrit : >> Jean-Marc LASGOUTTES wrote: >>> but I'd like to point out something else: >>> >>> People, please do not use InsetIterator in updateBuffer()! >>> >>> A lot of time has been spent on this code to ensure that it is

LyX wiki posts do not work anymore

2010-08-30 Thread Pavel Sanda
hi, its a longer time the notifications from the wiki mailer daemon do not post anything into lyx-doc lists (i mean those posts: http://www.mail-archive.com/lyx-d...@lists.lyx.org/msg04776.html ) Christian, JMarc, can you have a look? similarly doxygen info was last built Jan 9 2010. can we get

LyX 2.0 compilation errors using CMAKE

2010-08-30 Thread Uwe Stöhr
I am not able to compile LyX 2.0 using CMAKE. I get these errors: 2>..\..\..\src\support\environment.cpp(65) : error C2039: 'setenv' : is not a member of '`global namespace'' 2>..\..\..\src\support\environment.cpp(65) : error C3861: 'setenv': identifier not found 10>..\..\src\LyX.cpp(288) :

Re: LyX 2.0 compilation errors using CMAKE

2010-08-30 Thread Uwe Stöhr
Am 31.08.2010 03:04, schrieb Uwe Stöhr: I am not able to compile LyX 2.0 using CMAKE. I get these errors: I forgot to say that I'm using - Microsoft Visual C++ 2008 Express Edition with SP1 - Qt 4.6.3 - Windows XP 64bit (a.k.a. Windows 2003 Server) - CMake 2.8.2 and build with this batch

Re: [patch] support or the mathdots package - fix for #5373

2010-08-30 Thread Uwe Stöhr
> there must be simple string there. i guess you use too new designer? Thanks for the hint. I'm using designer from Qt 4.6.3 and this version uses by default rich text when editing the tooltip. One has to edit the tooltip directly in the "result" window to get plain text. regards Uwe

Re: Cannot run LyX when compiled from source on Mac OS X

2010-08-30 Thread Cyrille Artho
Hi Stephan, I have all the compilers installed that come with Xcode, but I would prefer working from the command line rather than using the large Xcode GUI, which is difficult to use when I travel and have to use a laptop. As for Qt, the pre-built Qt package released by Nokia comes as a