Re: [dev] Rudimentary understanding issue
Bill Gradwohl wrote: [... snip ...] What I'm trying to do is get a map of the API set that shows ALL the methods, properties, etc and how they interconnect. This started when I went looking for the object called Sheets as in document.Sheets, and DBG_Methods does indeed reveal that Sheets is a part of document, but the API docs never show it. How is one supposed to use the docs to know that a thing called Sheets exists? You might be intrested in the Object Inspector http://wiki.services.openoffice.org/wiki/Object_Inspector This should solve the problem of finding stuff that is not or not correctly documented. Kind regards, Bernd Eilers - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] Rudimentary understanding issue
On Thu, 2007-04-19 at 14:49 +0200, Jan Navratil wrote: IIRC this return a currently active document. So, it is supposed Calc to be open. I'm experimenting with the API via Basic using a calc sheets macro ability to call the routines. When doc is initialized, what object exactly is it associated with? Is it a com.sun.star. (document or container or sheet or ...) what? document If I initialize an object to StarDesktop and then use DBG_Methods on it, it shows that I have a StarDesktop object as expected. If I then initialize another object with StarDesktop.currentComponent within a spreadsheet document and use DBG_Methods on it, it shows I have something called ScModelObj. Very confusing since a search of the API can't find any reference to that thing. What I'm trying to do is get a map of the API set that shows ALL the methods, properties, etc and how they interconnect. This started when I went looking for the object called Sheets as in document.Sheets, and DBG_Methods does indeed reveal that Sheets is a part of document, but the API docs never show it. How is one supposed to use the docs to know that a thing called Sheets exists? I'm getting in a few books from Amazon to try to answer these questions, but I was hoping the doc at openoffice.org would at least have a complete set of specs for the API, and that doesn't appear to be the case or I'm too ignorant to figure it out. -- Bill Gradwohl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] Rudimentary understanding issue
Hi Bill, Bill Gradwohl wrote: [...] What I'm trying to do is get a map of the API set that shows ALL the methods, properties, etc and how they interconnect. This started when I [...] I think it is good to have a look at http://wiki.services.openoffice.org/wiki/Extensions_development and links there. Very useful. Pls note the link to the api-project, with on that place the full SDK you are looking for. For further questions, it is best to use the oooforum.org or the list [EMAIL PROTECTED] Kindest regards, Cor -- Cor Nouws Arnhem - Netherlands nl.OpenOffice.org - marketing contact - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] Rudimentary understanding issue
Bill Gradwohl wrote: I've seen several subroutine examples that all contain the same sequence of opening executable statements when working with a spreadsheet, as does the following example: sub dumpSheets Dim doc as object Dim Sheets As Object Dim SheetNames Dim I As Integer ' Executable statements follow: doc=StarDesktop.CurrentComponent IIRC this return a currently active document. So, it is supposed Calc to be open. Sheets = doc.Sheets and then it get access to Calc sheets SheetNames = Sheets.getElementNames For I=LBound(SheetNames) To UBound(SheetNames) MsgBox SheetNames(I) Next I end sub When doc is initialized, what object exactly is it associated with? Is it a com.sun.star. (document or container or sheet or ...) what? document For the life of me, I can't find the thing called Sheets as in doc.Sheets, anywhere in the API, so I can't understand how the initialization of Sheets = doc.Sheets works. This is case of OOo Basic, but not API itself. That's might be reason you cannot find it there. How am I supposed to know that something called Sheets exists? Where is this documented in the API? I've spent hours trying to go thru the API at http://api.openoffice.org/docs/common/ref/com/sun/star/module-ix.html and can't seem to get my brain around how to find something as rudimentary as the doc.Sheets item. Any help would be appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]