Georg Baum wrote:
Abdelrazak Younes wrote:

Georg Baum wrote:
Abdelrazak Younes wrote:

OK. The fix is simple. As you know the Application instance is not
created when the export command-line feature is requested. This patch
fixes the crash and goes in soon.
So it is not possible to use the server in commandline mode? I am not
sure whether this is good.
Hum, now you talk about it... I have already transfered the BufferList
to the LyX class. I can as well transfer the LyXFunc, the LyXServer and
the LyXServerSocket.

I don't have a good overview over this stuff an therefore no strong opinion.

This way Application will be reserved to frontend matters exclusively.
Application could then be renamed to Frontend I guess.

What do you think?

I don't think that we should have a Frontend. I would rather like to always
have an Application. I thought you already did that? I am sure that there
are more places where theApp is accesssed wher theApp actually could be 0.

I will get rid of this global pointer, at least in the kernel code.

When we now have no Application object we would have a NoGuiApplication that
would implement the interface of Application. Those methods that would not
make sense (e.g. clipboard access) would either be noops or could throw an
exception.

I think I am going to split Application in two as I said in a FIXME in the patch I posted earlier:

Create a CoreApplication class that will provide the main event loop and the socket callback registering. With Qt4, only QtCore library would be needed. When this done, a lyx::server_mode could be created and the following two line would be moved out from here.

Abdel.

Reply via email to