Rajveer Sangha schrieb: > Hi, > Thanks for replying. I try to explain my point. > This is something like an interpreted markup document. 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 these tags, like <heading> means BookMan Old 20 > pt Red Color etc. . > Say I can make a toggle button for "Interpreter mode". Press the button and > start writing your document in this interpreted 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. > what i am talking about is very similar to TEX. But its integrated in Open > Office, like bringing the power of TEX to ordinary users which I find has a > learning curve of its own. > Do reply.
I see now. I think Laurents tip about the "reveal codes" macro is one way to tackle this. Perhaps it gives you a start. But I'm not sure if this really is what you want. What you are describing looks more like kind of directly editing the XML code of the document to me. While I think that this is doable it's definitely not an easy task. What looks simple if you only see text or character attributes can become quite complicated if you consider everything possible in a document e.g. graphics, OLE objects, tables, foot notes, change tracking etc. You will end up with programming a complete new view and GUI for the application - something that the core developers have done in months and years. A *possible* approach could be what we are doing in the HTML editor (Writer/Web). You can toggle the document view between the HTML view and the source code view, both are editable. When you switch between them the document gets saved and reimported. This is not the most elegant way but an easy one. In result you will implement your own XML editor then. Given the enormous enhancements or feature requests we already have I would recommend to contribute to these things before starting a new editing mode. 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]
