Talk:Currently active document

From Apache OpenOffice Wiki
Jump to: navigation, search

I'm not so clear on the point of the oDoc argument: if it is a document (or documet model?) being passed in, then why pass it in instead of just using thisComponent?

There are other scripts that loop over all the documents and call this function on them. E.g. in Currently open documents it is looped over.

For this usage, i would think that thisComponent should be replaced by oDoc.

(And the reason i'm saying all this is that a copied and pasted the text into a little basic program, and i don't think it makes sense as written, but does work if you sub oDoc for thisComponent.)

Personal tools