Re: [dev] OO 2.3: How to add a submenu to an OfficeMenuBar ?

2007-08-23 Thread Steffen Grund

Hi again,

ok, here it is, a Addons.xcu file for a menu structure with two commands 
in a sub menu. I used NetBeans and the mentioned plugin to create this - 
took about 2 minutes. I added a separator between the commands as a 
benefit ;-).


Regards, Steffen

?xml version='1.0' encoding='UTF-8'?

oor:component-data xmlns:oor=http://openoffice.org/2001/registry; 
xmlns:xs=http://www.w3.org/2001/XMLSchema; oor:name=Addons 
oor:package=org.openoffice.Office

  node oor:name=AddonUI
node oor:name=OfficeMenuBar
  node oor:name=com.example.addon1 oor:op=replace
prop oor:name=Title oor:type=xs:string
  value/
  value xml:lang=enAddOn Menu/value
/prop
prop oor:name=Target oor:type=xs:string
  value_self/value
/prop
prop oor:name=ImageIdentifier oor:type=xs:string
  value/
/prop
node oor:name=Submenu
  node oor:name=m1 oor:op=replace
prop oor:name=URL oor:type=xs:string
  value/
/prop
prop oor:name=ImageIdentifier oor:type=xs:string
  value/
/prop
prop oor:name=Target oor:type=xs:string
  value_self/value
/prop
prop oor:name=Title oor:type=xs:string
  value/
  value xml:lang=enMenu1/value
/prop
  node oor:name=Submenu
node oor:name=m2 oor:op=replace
  prop oor:name=URL oor:type=xs:string
valuecom.example.addon1:Command0/value
  /prop
  prop oor:name=ImageIdentifier oor:type=xs:string
value/
  /prop
  prop oor:name=Target oor:type=xs:string
value_self/value
  /prop
  prop oor:name=Context oor:type=xs:string
value/
  /prop
  prop oor:name=Title oor:type=xs:string
value/
value xml:lang=enCommand0/value
  /prop
/node
node oor:name=m3 oor:op=replace
  prop oor:name=URL oor:type=xs:string
valueprivate:separator/value
  /prop
/node
node oor:name=m4 oor:op=replace
  prop oor:name=URL oor:type=xs:string
valuecom.example.addon1:Command1/value
  /prop
  prop oor:name=ImageIdentifier oor:type=xs:string
value/
  /prop
  prop oor:name=Target oor:type=xs:string
value_self/value
  /prop
  prop oor:name=Context oor:type=xs:string
value/
  /prop
  prop oor:name=Title oor:type=xs:string
value/
value xml:lang=enCommand1/value
  /prop
/node
  /node
  /node
/node
  /node
/node

node oor:name=Images
  node oor:name=com.example.addon1.command0.images oor:op=replace
prop oor:name=URL oor:type=xs:string
  valuecom.example.addon1:Command0/value
/prop
node oor:name=UserDefinedImages
  prop oor:name=ImageSmallURL
value/
  /prop
/node
  /node
  node oor:name=com.example.addon1.command1.images oor:op=replace
prop oor:name=URL oor:type=xs:string
  valuecom.example.addon1:Command1/value
/prop
node oor:name=UserDefinedImages
  prop oor:name=ImageSmallURL
value/
  /prop
/node
  /node
  /node
  /node
/oor:component-data

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



Re: [dev] OO 2.3: How to add a submenu to an OfficeMenuBar ?

2007-08-23 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Steffen,

 ok, here it is, a Addons.xcu file for a menu structure with two commands
 in a sub menu. I used NetBeans and the mentioned plugin to create this -
 took about 2 minutes.

thanks a lot, you saved my day :-)

Oliver

- --

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGzVzeTiyrQM/QSkURAioYAJ9Jo3UhhGo1j0z/mmSAoAhiRwg0bACguVlw
veqviysmMp6eT0gykBJXNFI=
=bhW8
-END PGP SIGNATURE-

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



Re: [dev] OO 2.3: How to add a submenu to an OfficeMenuBar ?

2007-08-23 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

 Is it also possible to create submenu's, if i use the new 
 OfficeMenuBarMerging ?

now i got :-)

?xml version='1.0' encoding='UTF-8'?
oor:component-data oor:name=Addons oor:package=org.openoffice.Office
xmlns:install=http://openoffice.org/2004/installation;
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=AddonUI
node oor:name=OfficeMenuBarMerging
node oor:name=org.openoffice.test.testcomponent 
oor:op=replace
node oor:name=S1 oor:op=replace
prop oor:name=MergePoint
value.uno:ToolsMenu/value
/prop
prop oor:name=MergeCommand
valueAddAfter/value
/prop
prop oor:name=MergeFallback
valueAddPath/value
/prop
node oor:name=MenuItems
node oor:name=M1 
oor:op=replace
prop oor:name=Title
value 
xml:lang=en-US~Test/value
/prop
node 
oor:name=Submenu
node 
oor:name=M11 oor:op=replace
prop 
oor:name=Title

value xml:lang=en-US~Close/value
/prop
prop 
oor:name=URL

value.uno:CloseDoc/value
/prop
/node
node 
oor:name=M12 oor:op=replace
prop 
oor:name=Title

value xml:lang=en-USHelp/value
/prop
prop 
oor:name=URL

value.uno:HelpIndex/value
/prop
/node
node 
oor:name=M13 oor:op=replace
prop 
oor:name=Title

value xml:lang=en-US~Test/value
/prop
node 
oor:name=Submenu

node oor:name=M131 oor:op=replace

prop oor:name=Title

value xml:lang=en-US~Save/value

/prop

prop oor:name=URL

value.uno:SaveAs/value

/prop

/node

node oor:name=M132 oor:op=replace

prop oor:name=Title

value xml:lang=en-USPrint/value

/prop
  

Re: [dev] OO 2.3: How to add a submenu to an OfficeMenuBar ?

2007-08-22 Thread Steffen Grund

Hi Oliver,

I suggest you have a look at the NetBeans API Plugin for OpenOffice.org.
See
http://wiki.services.openoffice.org/wiki/OpenOffice_NetBeans_Integration

Look at the AddOn project wizard for OpenOffice.org inside of the 
plugin. There you can create menu structures with commands, sub-menus 
and icons with a wizard. Among others, you will get a working .xcu file 
afterwards that you can use - even if you do not wish to implement your 
extension in Java.


If you want to implement your extension in Java, I strongly suggest you 
have a look at the plugin ;-).


HTH, Steffen

Oliver Brinzing wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

i know i asked this question a year ago, but OO 2.3 has a new feature:
http://wiki.services.openoffice.org/wiki/Framework/WorkInProgress/Addon_Menu_Toolbar_Merging

Is it now possible to create a menu structure like this ?

[File] [MyTopLevelMenu] [Edit]
 - Entry 1
 - Entry 2
 - Submenu 3
   - Entry 3.1
   - Entry 3.2
 - Entry 4

How can I add the Submenu 3 with Entry 3.1 and Entry 3.2 ?

Can one please give me an example ?

Oliver




- --


GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGxsITTiyrQM/QSkURArf3AJ4yfmVYWTCYn5VhaH99HAMPO/KH3wCePfj3
xxn1Iu8dHwF3zt7Fs0AmmmM=
=i48f
-END PGP SIGNATURE-

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



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



Re: [dev] OO 2.3: How to add a submenu to an OfficeMenuBar ?

2007-08-22 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Steffen,

i already found your link and used the example provided:
http://wiki.services.openoffice.org/wiki/OpenOffice_Add-On_Project_Type

But this only adds a top level menu with an entry ...

I am not sure if it is possible to add real submenus at all,
(it was not possible with oo 2.2.1 ...), and i had no
success when i was playing with the example xml file, like ...

node oor:name=Submenu
   [...]
   node oor:name=Submenu

thanks

Oliver

- --

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGzEhbTiyrQM/QSkURAq6vAJ92CGtfq5pCDgKY9O03LwVNAxNY8QCfdEsS
Gj+p3HcN/i4rmTV1G/1opA0=
=4Tg1
-END PGP SIGNATURE-

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



Re: [dev] OO 2.3: How to add a submenu to an OfficeMenuBar ?

2007-08-19 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

 A new top-level menu entry with two menu items is added after the tools menu.

yes, but this is not a Submenu, it's a top level menu with 2 items,
i want to create a Submenu like

File - New - Text Document
 Spreadsheet
 Presentation

I tried to create some using:

 node oor:name=Submenu
[...]
node oor:name=Submenu
 [...]

but it's ignored ...

Oliver

- --

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGx/KPTiyrQM/QSkURAm9DAKC8kub0C0QMxUDNzIWbrdpm6G9QSgCdFZHz
ld57jjVeGtYLRaz/9gORT04=
=61jd
-END PGP SIGNATURE-

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



[dev] OO 2.3: How to add a submenu to an OfficeMenuBar ?

2007-08-18 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

i know i asked this question a year ago, but OO 2.3 has a new feature:
http://wiki.services.openoffice.org/wiki/Framework/WorkInProgress/Addon_Menu_Toolbar_Merging

Is it now possible to create a menu structure like this ?

[File] [MyTopLevelMenu] [Edit]
 - Entry 1
 - Entry 2
 - Submenu 3
   - Entry 3.1
   - Entry 3.2
 - Entry 4

How can I add the Submenu 3 with Entry 3.1 and Entry 3.2 ?

Can one please give me an example ?

Oliver




- --


GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGxsITTiyrQM/QSkURArf3AJ4yfmVYWTCYn5VhaH99HAMPO/KH3wCePfj3
xxn1Iu8dHwF3zt7Fs0AmmmM=
=i48f
-END PGP SIGNATURE-

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



Re: [dev] OO 2.3: How to add a submenu to an OfficeMenuBar ?

2007-08-18 Thread KAMI

Oliver Brinzing írta:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

i know i asked this question a year ago, but OO 2.3 has a new feature:
http://wiki.services.openoffice.org/wiki/Framework/WorkInProgress/Addon_Menu_Toolbar_Merging

Is it now possible to create a menu structure like this ?

[File] [MyTopLevelMenu] [Edit]
 - Entry 1
 - Entry 2
 - Submenu 3
   - Entry 3.1
   - Entry 3.2
 - Entry 4

How can I add the Submenu 3 with Entry 3.1 and Entry 3.2 ?

Can one please give me an example ?

Oliver

  

If I remember well, there are examples in sdk documentation.

KAMI

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



Re: [dev] OO 2.3: How to add a submenu to an OfficeMenuBar ?

2007-08-18 Thread KAMI

Oliver Brinzing írta:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

i know i asked this question a year ago, but OO 2.3 has a new feature:
http://wiki.services.openoffice.org/wiki/Framework/WorkInProgress/Addon_Menu_Toolbar_Merging

Is it now possible to create a menu structure like this ?

[File] [MyTopLevelMenu] [Edit]
 - Entry 1
 - Entry 2
 - Submenu 3
   - Entry 3.1
   - Entry 3.2
 - Entry 4

How can I add the Submenu 3 with Entry 3.1 and Entry 3.2 ?

Can one please give me an example ?

Oliver

  

also:


 Example 1

A new top-level menu entry with two menu items is added after the tools 
menu.



It should fit your reqs.