Re: Where to use qt4 (Re: Export-to fails for xhtml)

2012-12-13 Thread Vincent van Ravesteijn
Op 11-12-2012 13:09, Pavel Sanda schreef: Tommaso Cucinotta wrote: Yes, everything compiles fine. Also ColorCache.h was not giving any trouble, till I included it in graphics/PreviewLoader.cpp, because then gcc complained it cannot find QColor nor QPalette (and I had to add the QtGui/). Yes I

Re: Where to use qt4 (Re: Export-to fails for xhtml)

2012-12-12 Thread Tommaso Cucinotta
On 12/12/12 19:40, Tommaso Cucinotta wrote: > On 12/12/12 10:20, Jean-Marc Lasgouttes wrote: >> Le 12/12/2012 01:13, Tommaso Cucinotta a écrit : >>> I see, it seems we opened a "Pandora" box here. Well, if any Xmas presents >>> come out of it, then it's not too bad :-). However, so far, it seems >

Re: Export-to fails for xhtml

2012-12-12 Thread Vincent van Ravesteijn
Op 12 dec. 2012 20:45 schreef "Georg Baum" het volgende: > > Tommaso Cucinotta wrote: > > > As in the prior patch, an alternative to this problem at all is the one to > > simply remove the "--fg" and "--bg" options to the command-line invoking > > the external command. > > > > Someone who knows th

Re: Export-to fails for xhtml

2012-12-12 Thread Georg Baum
Tommaso Cucinotta wrote: > As in the prior patch, an alternative to this problem at all is the one to > simply remove the "--fg" and "--bg" options to the command-line invoking > the external command. > > Someone who knows this part of the code should advise on the best > solution. I used to kno

Re: Where to use qt4 (Re: Export-to fails for xhtml)

2012-12-12 Thread Tommaso Cucinotta
On 12/12/12 10:20, Jean-Marc Lasgouttes wrote: > Le 12/12/2012 01:13, Tommaso Cucinotta a écrit : >> I see, it seems we opened a "Pandora" box here. Well, if any Xmas presents >> come out of it, then it's not too bad :-). However, so far, it seems >> only a lot of work with likely disruption of th

Re: Export-to fails for xhtml

2012-12-12 Thread Jean-Marc Lasgouttes
Le 12/12/2012 01:22, Tommaso Cucinotta a écrit : On 11/12/12 14:08, Jean-Marc Lasgouttes wrote: Le 11/12/2012 10:12, Tommaso Cucinotta a écrit : Yes, everything compiles fine. Also ColorCache.h was not giving any trouble, till I included it in graphics/PreviewLoader.cpp, because then gcc compl

Re: Re: Export-to fails for xhtml

2012-12-12 Thread Kornel Benko
Am Montag, 10. Dezember 2012 um 23:23:53, schrieb Tommaso Cucinotta > On 10/12/12 22:25, Richard Heck wrote: > > On 12/10/2012 05:16 PM, Tommaso Cucinotta wrote: > >> On 10/12/12 21:46, Tommaso Cucinotta wrote: > >>> when exporting from the command-line, theApp() doesn't exist. Any > >>> possibl

Re: Where to use qt4 (Re: Export-to fails for xhtml)

2012-12-12 Thread Jean-Marc Lasgouttes
Le 12/12/2012 01:13, Tommaso Cucinotta a écrit : On 11/12/12 14:57, Abdelrazak Younes wrote: Ah... a flameware just in time before Christmas! :-P [...] And of course we should get rid of frontend/* (not qt4) and use signal/slot connection for communication with the core (src/). I see, it se

Re: Export-to fails for xhtml

2012-12-11 Thread Tommaso Cucinotta
On 11/12/12 14:08, Jean-Marc Lasgouttes wrote: > Le 11/12/2012 10:12, Tommaso Cucinotta a écrit : >> Yes, everything compiles fine. Also ColorCache.h was not giving any trouble, >> till I included it in graphics/PreviewLoader.cpp, because then gcc >> complained it cannot find QColor nor QPalette (

Re: Where to use qt4 (Re: Export-to fails for xhtml)

2012-12-11 Thread Tommaso Cucinotta
On 11/12/12 14:57, Abdelrazak Younes wrote: > Ah... a flameware just in time before Christmas! :-P [...] > And of course we should get rid of frontend/* (not qt4) and use signal/slot > connection for communication with the core (src/). I see, it seems we opened a "Pandora" box here. Well, if any

Re: Where to use qt4 (Re: Export-to fails for xhtml)

2012-12-11 Thread Abdelrazak Younes
On Tue, Dec 11, 2012 at 3:57 PM, Abdelrazak Younes wrote: > > A while ago, I proposed a flatter directory structure, I will look for it. > Here is it: src/lyx/ : basically one C++ file with main() using the other libraries below or not src/boost/ : to be removed later when we get rid of boost.

Re: Where to use qt4 (Re: Export-to fails for xhtml)

2012-12-11 Thread Abdelrazak Younes
Ah... a flameware just in time before Christmas! :-P On Tue, Dec 11, 2012 at 1:09 PM, Pavel Sanda wrote: > Tommaso Cucinotta wrote: > > Yes, everything compiles fine. Also ColorCache.h was not giving any > trouble, till I included it in graphics/PreviewLoader.cpp, because then gcc > > complained

Re: Export-to fails for xhtml

2012-12-11 Thread Jean-Marc Lasgouttes
Le 11/12/2012 10:12, Tommaso Cucinotta a écrit : Yes, everything compiles fine. Also ColorCache.h was not giving any trouble, till I included it in graphics/PreviewLoader.cpp, because then gcc complained it cannot find QColor nor QPalette (and I had to add the QtGui/). Just by curiosity:why do

Where to use qt4 (Re: Export-to fails for xhtml)

2012-12-11 Thread Pavel Sanda
Tommaso Cucinotta wrote: > Yes, everything compiles fine. Also ColorCache.h was not giving any trouble, > till I included it in graphics/PreviewLoader.cpp, because then gcc > complained it cannot find QColor nor QPalette (and I had to add the QtGui/). Yes I understand the issue now. Qt4 creeping

Re: Export-to fails for xhtml

2012-12-11 Thread Tommaso Cucinotta
On 11/12/12 00:47, Pavel Sanda wrote: > Tommaso Cucinotta wrote: >> Don't know why I had to add "QtGui/" in a couple of includes in >> ColorCache.h. Different CPPFLAGS are provided for the objects in graphics/ >> and > > What Qt version do you use, what build system (autotools/cmake, merged buil

Re: Export-to fails for xhtml

2012-12-10 Thread Pavel Sanda
Tommaso Cucinotta wrote: > Don't know why I had to add "QtGui/" in a couple of includes in ColorCache.h. > Different CPPFLAGS are provided for the objects in graphics/ and What Qt version do you use, what build system (autotools/cmake, merged build?) There is couple of other files using the same

Re: Export-to fails for xhtml

2012-12-10 Thread Tommaso Cucinotta
On 10/12/12 22:25, Richard Heck wrote: > On 12/10/2012 05:16 PM, Tommaso Cucinotta wrote: >> On 10/12/12 21:46, Tommaso Cucinotta wrote: >>> when exporting from the command-line, theApp() doesn't exist. Any >>> possible/meaningful replacement for these hexName() call ? >> Just came across the atta

Re: Export-to fails for xhtml

2012-12-10 Thread Richard Heck
On 12/10/2012 05:16 PM, Tommaso Cucinotta wrote: On 10/12/12 21:46, Tommaso Cucinotta wrote: when exporting from the command-line, theApp() doesn't exist. Any possible/meaningful replacement for these hexName() call ? Just came across the attached solution that seems better. Any comment ? Obj

Re: Export-to fails for xhtml

2012-12-10 Thread Tommaso Cucinotta
On 10/12/12 21:46, Tommaso Cucinotta wrote: > when exporting from the command-line, theApp() doesn't exist. Any > possible/meaningful replacement for these hexName() call ? Just came across the attached solution that seems better. Any comment ? Objections to commit ? Don't know why I had to add

Re: Export-to fails for xhtml

2012-12-10 Thread Tommaso Cucinotta
On 10/12/12 21:11, Tommaso Cucinotta wrote: > On 10/12/12 15:16, Kornel Benko wrote: >> triggers a crash. > > Confirmed. Let me have a look. The problem is that it crashes here: ColorCode const bg = buffer_.isExporting() ? Color_white : PreviewLoader::backgroundCol

Re: Export-to fails for xhtml

2012-12-10 Thread Tommaso Cucinotta
On 10/12/12 15:16, Kornel Benko wrote: > triggers a crash. Confirmed. Let me have a look. T.

Export-to fails for xhtml

2012-12-10 Thread Kornel Benko
Hi, exporting of MergedManuals.lyx Math.lyx EmbeddedObjects.lyx UserGuide.lyx Shortcuts.lyx Additional.lyx triggers a crash. To reproduce: #mkdir tmp #cd tmp #lyx -E xhtml bla.xhtml /lib/doc/MergedManuals.lyx ... Running: convert "70_usr_src