[api-dev] How to make a ToolBar with Icons?

2006-10-24 Thread Knut Olav Bøhmer
Hi, How can I include Icons in the Icons that I add to the toolbar from starbasic? -- Knut Olav Bøhmer

Re: [api-dev] How to make a ToolBar with Icons?

2006-10-24 Thread Tabish F. Mufti
Hi Knut If you have made a toolbar please send me the code snippet and the procedures towards its integration. I'll be highly Thankful. On 10/24/06, Knut Olav Bøhmer [EMAIL PROTECTED] wrote: Hi, How can I include Icons in the Icons that I add to the toolbar from starbasic? -- Knut Olav

Re: [api-dev] How to make a ToolBar with Icons?

2006-10-24 Thread Knut Olav Bøhmer
On 10/24/06, Tabish F. Mufti [EMAIL PROTECTED] wrote: Hi Knut If you have made a toolbar please send me the code snippet and the procedures towards its integration. I'll be highly Thankful. 'MakeToolbar.main( sToolBar, Save,

Re: [api-dev] How to make a ToolBar with Icons?

2006-10-24 Thread Tom Schindl
Hi Knut, would you like to package this as a codesnippet for our snippet page? http://codesnippets.services.openoffice.org/ Tom signature.asc Description: OpenPGP digital signature

[api-dev] Starbasic and CreateObject

2006-10-24 Thread Christian Andersson
According to the helpfiles that comes with OO.o 2.03 (english, windows) the Starbasic function CreateObject can create uno objects - Creates a UNO object. This method creates instances of the type that is passed as parameter.

[api-dev] Re: How to make a ToolBar with Icons?

2006-10-24 Thread Knut Olav Bøhmer
So I undersdand that I have to set the style = ICON, But i don't understand where the icon comes from. from the pragramatic toolbar spesification ( http://specs.openoffice.org/ui_in_general/api/ProgrammaticControlOfMenuAndToolbarItems.sxw) it says that you have to add Icons to

Re: [api-dev] Java: cannot get bookmarks

2006-10-24 Thread Tobias Krais
Hi Christoph, from a quick look on what you wrote I would guess the problem lies in XComponent openDocument instead of XTextDocument openDocument, maybe someone wants to correct me. Following code always retruns null. The variable openDocument is an instance of the class XComponent. Why

[api-dev] Java: cannot insert Bookmarks

2006-10-24 Thread Tobias Krais
Hi together again, after trying to get the bookmarks of a document, I now want to insert a bookmark and have again troubles. Here my code: -%- // Query for an XMultiServiceFactory instance from the global // service manager XMultiServiceFactory mxMSF = (XMultiServiceFactory)

Re: [api-dev] Java: cannot insert Bookmarks

2006-10-24 Thread Jimmy
I think you create the MSF of your XTextDocument object. That's just a wild guess though XTextDocument xTextDocument = (XTextDocument) UnoRuntime.queryInterface( XTextDocument.class, xComponent); XMultiServiceFactory mxMSF = (XMultiServiceFactory)

Re: [api-dev] Java: cannot get bookmarks

2006-10-24 Thread Tobias Krais
Hi Jimmy, What does openDocument give back? Does it exist? If not, you have to check the initialization of your xComponent. my Eclipse debugger says openDocument is [Proxy:6251267,87bbb80;gcc3[0];f4355070635711db80a6db3279cddba,Type[com.sun.star.lang.XComponent]] I can work with it without

Re: [api-dev] Re: How to make a ToolBar with Icons?

2006-10-24 Thread Carsten Driesner
Knut Olav Bøhmer wrote: So I undersdand that I have to set the style = ICON, But i don't understand where the icon comes from. from the pragramatic toolbar spesification ( http://specs.openoffice.org/ui_in_general/api/ProgrammaticControlOfMenuAndToolbarItems.sxw) it says that you have to add

Re: [api-dev] Java: cannot get bookmarks

2006-10-24 Thread Tobias Krais
Hi again, finally I found the solution... Following code always retruns null. The variable openDocument is an instance of the class XComponent. Why does it always return null, although the document is opened correctly and contains two bookmarks named Textmarke01 and Textmarke02?

Re: [api-dev] Tweaking the api for performance

2006-10-24 Thread Kent Gibson
thanks for your detailed response. I would like to implement most of your suggestions. Unfortunately, it seems that my bosses have decided against keeping our OpenOffice solution. This could very well be a failure on my part to write optimal code, I don't know. But while I am on my soapbox, I

Re: [api-dev] Tweaking the api for performance

2006-10-24 Thread Juergen Schmidt
Kent Gibson wrote: thanks for your detailed response. I would like to implement most of your suggestions. Unfortunately, it seems that my bosses have decided against keeping our OpenOffice solution. This could very well be a failure on my part to write optimal code, I don't know. But while I

[api-dev] How to iterate over all content in Writer document.

2006-10-24 Thread Ian Shields
I'm investigating writing a filter using Java and UNO. So far, I can iterate over text in a writer document, but I'm having trouble with graphics. I can use an XTextCursor to create an XContentEnumerationAccess and then find TextContent items using XEnumeration xTextContentEnum =