Re: [api-dev] AWT TREE: OOoBasic version of the ScriptSelector example
Andrew Douglas Pitonyak wrote: Ariel Constenla-Haile wrote: PS 2: though my English is very me-Tarzan-you-Jane, No, your English is much better than that. isn't it wrong Childs as plural of Child, instead of Children? Children is the correct plural for Child. The Java API uses Children for the plural ( z.B. DefaultMutableTreeNode.allowsChildren , .children, .getAllowsChildren() ... ), OOo API Childs. This will be fixed for OOo 2.4. So please be aware that an incompatible change to the interface is comming. Regards, Christian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] AWT TREE: OOoBasic version of the ScriptSelector example
Hi This will be fixed for OOo 2.4. So please be aware that an incompatible change to the interface is comming. Why incompatible ? Mark it as deprecated, no ? What about people starting using this and seeing their code not working anymore after a new OOo Version. We should avoid this Laurent -- Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org - http://www.indesko.com Nuxeo Enterprise Content Management http://www.nuxeo.com - http://www.nuxeo.org Livre Programmation OpenOffice.org, Eyrolles 2004-2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[api-dev] Re: paragraph enumeration causes mysterious cursor movement....
ashok _ napisał(a): Okay,I will do that... is there any other alternative than using getString() to get the text content for the range ? (I guess not... :-( ... ) Well, I don't know if that's what you need, but I've just recently found out you can enumerate the content of the text range. This will give you an enumeration of paragraphs, and for each paragraph you can enumerate portions, whose strings you can then concatenate to get the full string of the range. See Noelson Duarte's 19.09 reply to my own question for a code sample. HTH, Zbigniew Banach - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Re: paragraph enumeration causes mysterious cursor movement....
Hello Zbigniew: On 9/20/07, Zbigniew Banach wrote: ashok _ napisał(a): Well, I don't know if that's what you need, but I've just recently found out you can enumerate the content of the text range. This will give you an enumeration of paragraphs, and for each paragraph you can enumerate portions, whose strings you can then concatenate to get the full string of the range. See Noelson Duarte's 19.09 reply to my own question for a code sample. That sounds like a reasonable alternative... thanks, I ll give it a try. ashok
Re: [api-dev] Document reflow and updating the ToC
Sander Marechal wrote: Or is there a way to get notified when OOo has finished reflowing and laying out the document, so I can wait for it? Me too, I would be very interested to know if that is possible. Any ideas? Thanks Mirko - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Document reflow and updating the ToC
Mirko Nasato wrote: Sander Marechal wrote: Or is there a way to get notified when OOo has finished reflowing and laying out the document, so I can wait for it? adding some kind off listener to the dociument ?,I do not now wich can do the job but one off the list below must do the job addEventListener ( Listener as object ) addEventListener ( xListener as object ) addModifyListener ( aListener as object ) addRefreshListener( l as object ) addVetoableChangeListene hopes it helps a bit Fernand Me too, I would be very interested to know if that is possible. Any ideas? Thanks Mirko - 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: [api-dev] [SOLVED] Transient menu changes are too transient
Hi Carsten Yes, the XFrameActionListener is the correct listener. There is only a problem with the order of notification. The layout manager which controls the user interface elements is also XFrameActionListener. It looks like that the layout manager is notified after you get your notification. You can solve the problem using the com.sun.star.frame.XLayoutManagerListener. The layout manager implements the interface com.sun.star.frame.XLayoutManagerEventBroadcaster which you have to use to add your listener. You can find the notifications in com.sun.star.frame.LayoutManagerEvents. Use the UIELEMENT_VISIBLE notification and the name of the user interface element: private:resource/menubar/menubar. Whenever you get COMPONENT_REATTACHED you should wait for the UIELEMENT_VISIBLE notification and then you change the menu bar. I solved it this way: I registered a XLayoutManagerListener, as you adivsed. I do not receive a UIELEMENT_VISIBLE event, but a LAYOUT_EVENT (event number 2). When this event is fired, I first check if the menu items already exist. If not they are added again. Thank you for your help! Greetings, Tobias P.S.: Thank you for adding support of icons for transient toolbar items in OOo 2.3. I really appreciate this feature! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[api-dev] Table Of Contents hyperlink implementation in Visual Basic 6.0 always throws IllegalArgumentException
As I have not recieved the copy of the email, sending my query again. thanks, Sandeep Original email: Hi, I am trying to implement the hyperlink functionality for table of content using Visual Basic 6.0 and though the documentation says that we have to pass first parameter as Long and Second one as Any/Variant, the replaceByIndex is always throwing IllegalArgumentException. Here is the code: // Dim iIndexLevel As Long Dim oLevelFormat As Object Dim arrLevelFormat Dim i Set oLevelFormat = oTOC.LevelFormat For iIndexLevel = 0 To oLevelFormat.getCount() - 1 arrLevelFormat = oLevelFormat.getByIndex(iIndexLevel) If IsArray(arrLevelFormat) And UBound(arrLevelFormat) 0 Then Dim iCount As Integer iCount = UBound(arrLevelFormat) Dim newFormat() As Variant ReDim newFormat(iCount + 2) Dim arrTemp(1) As Variant Dim oProperty As Object Set oProperty = oSM.bridge_getstruct(com.sun.star.beans.PropertyValue) oProperty.name = TokenType oProperty.Value = TokenHyperlinkStart arrTemp(0) = Array(oProperty) newFormat(0) = arrTemp For i = 0 To UBound(arrLevelFormat) newFormat(i + 1) = arrLevelFormat(i) Next Dim arrTempNew(1) As Variant Dim oPropertyNew As Object Set oPropertyNew = oSM.bridge_getstruct(com.sun.star.beans.PropertyValue) oPropertyNew.name = TokenType oPropertyNew.Value = TokenHyperlinkStart arrTempNew(0) = Array(oPropertyNew) newFormat(UBound(arrLevelFormat) + 2) = arrTempNew Call oTOC.LevelFormat.replaceByIndex(iIndexLevel, newFormat) End If Next oTOC.Update // Can anyone please help me out? it is very urgent for me and I have tried searching forum also but to no avail. Plz help, thanks regards, Sandeep
Re: [api-dev] Hyperlink in Table of content always throwing IllegalArgumentException, plz help
Message de Sandeep Raghuvanshi date 2007-09-20 16:58 : Hi, I am trying to implement the hyperlink functionality for table of content using Visual Basic 6.0 and though the documentation says that we have to pass first parameter as Long and Second one as Any/Variant, the replaceByIndex is always throwing IllegalArgumentException. Here is the code: ( ... ) Call oTOC.LevelFormat.replaceByIndex(iIndexLevel, newFormat) I already have answered a similar question in http://www.oooforum.org/forum/viewtopic.phtml?p=239563#239563 Answer adapted to your case: You have to pass an array of Uno objects, and the argument of replaceByIndex is defined as : any So you have to tell the bridge what exactly you are passing. This is a limitation of the COM bridge, whatever the language you use. Solution: Dim unoWrap As Variant Set unoWrap = oSM.Bridge_GetValueObject unoWrap.set []com.sun.star.beans.PropertyValue, newFormat Call oTOC.LevelFormat.replaceByIndex(iIndexLevel, unoWrap) Concerning OOo general programming through VB6 you may be interested in the libraries provided by VBx_OOo tool : http://www.ooomacros.org/dev.php#240562 __ Bernard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]