Re: [api-dev] change toolbar name

2010-09-24 Thread Fernand Vanrie

  Martin ,

You must have a look at the exellent BasicAddonBuilder extention made by 
Paolo Mantovani.

In the code you can compare with your work

Hope it helps

Fernand

hi


and don't forget to change oor:name=WriterWindowState  to

oor:name=CalcWindowState

Thanks i haven't seen that

But i'm still not able to get it running

My Addons.xcu is now
?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=OfficeToolBar
   node oor:name=at.univie.MidiCSDext oor:op=replace
   node oor:name=m01 oor:op=replace
   prop oor:name=URL oor:type=xs:string

valueat.univie.midicsd:addselectiontocurrentqueue/value
   /prop
   prop oor:name=Title oor:type=xs:string
   value/
   value xml:lang=en-USAdd Phrase/value
   value xml:lang=deFunktion 1/value
   /prop
   prop oor:name=Target oor:type=xs:string
   value_self/value
   /prop
   prop oor:name=Context oor:type=xs:string

valuecom.sun.star.text.TextDocument,com.sun.star.sheet.SpreadsheetDocument
/value
   /prop
   /node
   /node
   /node
   /node
   /oor:component-data

And CalcWindowState.xcu is
?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=CalcWindowState
oor:package=org.openoffice.Office.UI
   node oor:name=UIElements
 node oor:name=States
   node oor:name=private:resource/toolbar/addon_at.univie.MidiCSDext
oor:op=replace
 prop oor:name=UIName oor:type=xs:string
   value xml:lang=en-USMidiCSD/value
 /prop
   /node
 /node
   /node
/oor:component-data


Changing the windowstate for writer works fine.

Thanks,
   Martin




-
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org



-
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org



[api-dev] change toolbar name

2010-09-23 Thread Martin Dobiasch
Hi

I try to change the name of the toolbar of my addon.
I tried it according to
http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/WritingUNO/A
ddOns/Toolbars
It works fine for Writer/Textdocuments
But I'm not able to get it working for Calc/Spreadsheets.

Whats the Module for spreadsheets?
I guess my filename is wrong
Or do I have to make changes to the ...WindowState.xcu when using it for
Calc?

Thanks for your help,
  Martin




-
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org



Re: [api-dev] change toolbar name

2010-09-23 Thread Oliver Brinzing
Hi,

 Whats the Module for spreadsheets?

you need a CalcWindowState.xcu
and don't forget to change oor:name=WriterWindowState  to 
oor:name=CalcWindowState

see 
http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/WritingUNO/AddOns/Toolbars

An extension can define the toolbar title with ModuleWindowState.xcu  files. 
The title of the
toolbar must be set for each module where the toolbar will appear. One such 
file is necessary for
each module. Continuing the example, the toolbar title for Writer module will 
be specified in a
WriterWindowState.xcu file:

?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=WriterWindowState
oor:package=org.openoffice.Office.UI
 node oor:name=UIElements
node oor:name=States
  node 
 oor:name=private:resource/toolbar/addon_org.openoffice.Office.addon.example
oor:op=replace
prop oor:name=UIName oor:type=xs:string
  value xml:lang=en-USMy pretty bar/value
/prop
  /node
/node
  /node
/oor:component-data

The UIName property supports localization.
Each ModuleWindowState.xcu file must be declared as a configuration data 
file in the manifest.xml
file.

regards

Oliver
-- 

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45



signature.asc
Description: OpenPGP digital signature


RE: [api-dev] change toolbar name

2010-09-23 Thread Martin Dobiasch
hi

 and don't forget to change oor:name=WriterWindowState  to
 oor:name=CalcWindowState
Thanks i haven't seen that

But i'm still not able to get it running

My Addons.xcu is now
?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=OfficeToolBar
  node oor:name=at.univie.MidiCSDext oor:op=replace
  node oor:name=m01 oor:op=replace
  prop oor:name=URL oor:type=xs:string
 
valueat.univie.midicsd:addselectiontocurrentqueue/value
  /prop
  prop oor:name=Title oor:type=xs:string
  value/
  value xml:lang=en-USAdd Phrase/value
  value xml:lang=deFunktion 1/value
  /prop
  prop oor:name=Target oor:type=xs:string
  value_self/value
  /prop
  prop oor:name=Context oor:type=xs:string
 
valuecom.sun.star.text.TextDocument,com.sun.star.sheet.SpreadsheetDocument
/value
  /prop
  /node
  /node
  /node
  /node
  /oor:component-data

And CalcWindowState.xcu is
?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=CalcWindowState
oor:package=org.openoffice.Office.UI
  node oor:name=UIElements
node oor:name=States
  node oor:name=private:resource/toolbar/addon_at.univie.MidiCSDext
oor:op=replace
prop oor:name=UIName oor:type=xs:string
  value xml:lang=en-USMidiCSD/value
/prop
  /node
/node
  /node
/oor:component-data


Changing the windowstate for writer works fine. 

Thanks,
  Martin




-
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org