Hi Ma Zhenyu,

Ma Zhenyu wrote:

> 2. While operating this file by SWiter, I need forbidden some operation in
> current OpenOffice.Org, such
>    as many menu and function Key like F5, the reason is that my own format
> is simpler than ODF and
>    I need no many setting, so I want to use my own menu or toolbar which
> just have simple operation like
>    copy & Paste or InsertString, so change the color of selected content.

Basically it is possible to suppress most of OOo's GUI - whether this
will be enough of if there are some gaps must be checked. All in all
this will be mainly configuration work, not much code to be written.

> 3. I want to make one filter that support my own format convert to ODF and
> ODF to my format.

You have an XML based file format that is able to contain links to
images, right? You want to be able to load and save it? This sounds as
if an xslt transformation to and from ODF might be a good idea. In
OOo3.0 we will be even support xslt based filters as extensions.

Would that be fine for you?

> 1. Learn method to build Ooo, or part of it, Then I can develop the filter
> of mine, Is it right?

You wouldn't need to build OOo yourself just to implement a filter, you
also could just use our SDK or (for Java) our NetBeans IDE pluging and
create your filter as an extension.

> 2. I need have some research on the GUI of SWriter if I want to use
> customize menu

Customizing the menu can be done by providing a new xml configuration
file - this can even be part of an extension. Also toolbars and keyboard
shortcuts are highly configurable. Other parts of the UI like Stylist or
Navigator are not configurable but can be suppressed.

> 1. Where should I begin?

First you should tell us whether C++ oder Java is your preferred
programming language.

> 2. How to develop the component of GUI in OOO?

If your own GUI is planned to contain non-modal dialogs, floating or
docking windows etc. I'm afraid that this must be done inside the OOo
code base. If you are fine with menus, toolbars (including toolbar
controllers) and modal, fixed size dialogs you can create them in our
Basic IDE and operate them with code in an extension. So it depends on
your needs. To tell you more I need an idea what you want to have in
your own GUI.

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