Hi,

this is the answer for a similar question I once asked Niklas:

Find the function name in sc/source/core/src/compiler.src, the corresponding OpCode value in sc/inc/opcode.hxx, and look in ScInterpreter::Interpret (sc/source/core/tool/interpr4.cxx) which method is called for the OpCode. Add-In functions are separate, but that's how you can find any built-in function's implementation.

Niklas

Hope this is helpful. Otherwise we will have to wait for Niklas' response.


Wojciech Gryc wrote:
Thank you all for the responses!

I've put together a small document (temporary link:
http://www.utsc.utoronto.ca/~04grycwo/overview.pdf) that outlines some
thoughts in terms of how I see this going, and a few potential strategies.
Here's a quick summary:

  1. Creating an R package that communicates directly with OpenOffice
  and allows the passing of commands back and forth.
  2. Doing the above with a TCP/IP connection instead.
  3. Macros - sub-optimal in my opinion, but can be done.

I downloaded and started playing with OO source code. You're right in saying
the documentation isn't the greatest, though I can see why: there's a lot
here. I think I'm getting the hang of it all, but just had some questions:

  1. Using the wiki, I learned how to modify current functions, and
exploring the code shows me where add-ins are placed and how they look. I was wondering, however, where do function names get stored? Again, I see the
  interpX.cxx but those function names are not the same as the ones I
  call from Calc -- how does Calc know what to call?

  I guess what I am trying to get at is, how can I add functions to Calc
  through the source code? All the tutorials I've found are for add-ins.

  2. From your perspectives, should this be considered an add-in or
directly coded into the "sc" folder? Is there any other area of the source
  code I should be working in?

  3. Any thoughts on the TCP/IP versus package-to-OO communication
mentioned above? I think it might be a bit beyond the scope of the summer
  project, but I'd be happy to try to tackle it if there's interest.

I just finished my last exam for this school year on Friday at 4 pm, so I'll be working on this pretty much full-time now. You can expect to hear a lot
more compared to what you've been hearing so far. :)

Thank you,
Wojciech

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to