Rajveer Sangha wrote:

> Dear Open Office,
> 
> I am an amateur programmer, knowing primarily c++ and c. i want to develop a
> certain extension for open office which will enable a 'markup mode' or
> 'interpreted mode' in open office, for easier formatting, much like LATEX.
> Instead of writing the text and then applying various levels of formatting
> to it, for example: headlines, sub-headlines, body text etc., we can write
> our document like:
> <heading>this is heading</heading>
> <sub>this is sub heading</sub>
> <body>Text formatiing is so easier this way in a large document</body>
> User would be able to define thesemarkups, like <heading> means BookMan Old
> 20 pt Red Color etc.
> 
> WYSWYG is OK for small documents but when they become more involved, keep a
> track of formatting gets tougher.
> 
> TEX and LATEX provide exactly this functionality but they have a steep
> learning curve and are limited to mainly scientific community for largely
> Math Typesetting.
> 
> Say I can  make a toggle button for "Interpreter mode". Press the button and
> start writing your document in this markup fashion. Once you're done, toggle
> the button and the whole document is interpreted and displayed in formatted
> manner and you able to write in that WYSIWYG manner too, ie without
> interpreting.
> 
> I tried studying your programming guide to begin, but it doesn't provide
> much insight into my problem.

I really don't believe that this makes sense, ODF is much more complex
than HTML.

Well, if you *really* want to hack ODF by hand you can use the same
trick the Writer/Web uses for the HTML source mode: toggeling between
the two views saves the document (either regularily in the "normal" view
 or by dumping the HTML code to the desired location in the "source"
view). Then the file is reloaded into the other view.

Ciao,
Mathias

-- 
Mathias Bauer (mba) - Project Lead OpenOffice.org Writer
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
Please don't reply to "[EMAIL PROTECTED]".
I use it for the OOo lists and only rarely read other mails sent to it.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to