Dyego Souza Dantas Leal wrote:
Carsten Driesner escreveu:
Dyego Souza Dantas Leal wrote:
I'm using sdk to cooperate my software with OpenOffice 2.0 , and io wnat to disable "some features" of editor ex: "Disable Font change of the text"

is possible ?
how ?
Hi Dyego,

I am not sure what you really want to disable. The toolbar and menu entry to change the font name size? Do you want to do your changes programmatic or just editing configuration files?

Regards,
Carsten

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


I want to disable de toolbar and menu entry to change the font name and size..
Tnks in advance !
Hi Dyego,

You can use the disable commands feature. Information about this feature is available in the Developer's Guide, chapter 4.7.4 Disable Commands) . You can download it from http://api.openoffice.org/DevelopersGuide/DevelopersGuide.html.

Just to show you how to do it, please create a file called Commands.xcu from the example below. You have to copy it to the user configuration (only user who owns the user folder is affected) or share configuration folder (all users who use the Office installation are affected). The typical OpenOffice.org user folder is inside your home directory ~/.openoffice.org20/user/registry/data/org/openoffice/Office. The share folder is inside your OpenOffice.org installation folder. <OpenOffice.org installation folder>/share/registry/data/org/openoffice/Office.

---- Commands.xcu ----
<?xml version="1.0" encoding="UTF-8" ?>
<oor:component-data oor:name="Commands" oor:package="org.openoffice.Office"
xmlns:oor="http://openoffice.org/2001/registry"; xmlns:xs="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
<node oor:name="Execute">
  <node oor:name="Disabled">
    <node oor:name="m1" oor:op="replace">
      <prop oor:name="Command">
        <value>CharFontName</value>
      </prop>
    </node>
    <node oor:name="m2" oor:op="replace">
      <prop oor:name="Command">
        <value>FontHeight</value>
      </prop>
    </node>
  </node>
</node>
</oor:component-data>
---- Commands.xcu ----

Regards,
Carsten

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

Reply via email to