>>>>> "Jose" == Jose Abilio Oliveira Matos <[EMAIL PROTECTED]> writes:
Jose> Hi all, this is a Request For Help related with linuxdoc. :)
Jose> 1) Is it possible to initialize an array of LString like this?
Jose> static LString c_layout_stack[3]={"dummy","dummy","dummy"};
Jose> Is this the right way?
Do you really need it to be an array of LStrings? What you propose
will probably work for gcc, but not other compilers. If the array is
constant, use plain old const char*.
Jose> 2) Where to change the textclass support to know that some
Jose> layout is SGML related if the second line says:
Jose> # \DeclareSGMLClass{SGML (LinuxDoc)}
Jose> instead of the usual
Jose> # \DeclareLaTeXClass{article}
Currently, the class can be obtained via:
bool Buffer::isLinuxDoc()
{
return lyxstyle.NameOfClass(params.textclass) == "linuxdoc";
}
This is stupid, of course. Instead of relying on the
\DeclareSGMLClass, I suggest to add a new top-level tag 'OutputType',
which can take values 'Latex', 'Docbook', or 'LinuxDoc'. All you need
to modify should be in layout.[Ch]. Ask me if you need more help.
JMarc