Hello Anthony,

On Thu, Apr 23, 2015 at 06:35:00PM -0400, ANTHONY CRUZ wrote:
> I’ve been digging through the source code in the Aqua build. I’m
> mainly and ObjC developer. I’d love to be able to set up an Xcode
> project and contribute to the project.
> 
> After looking for a really long time for an app delegate (not loaded
> from Interface Builder) I was able to find vclapp.mm. What are the
> primary view classes in Apache open office for displaying the
> documents? I’ve been looking for the class responsible for displaying
> the contents of files (like a word document). I was hoping to find
> a controller for a document that has a NSTextView property but I can’t
> seem to find it.
> 
> The Developer’s guide mostly has Java examples and when I search
> I keep finding pages in the Wiki that are possibly out of date. Is the
> document controller/text view done in Java? Or is there C++ or
> Objective-C API for opening document windows? I know I can turn off
> the Java runtime in Open Office preferences so i was hoping I could
> avoid Java. 
> 
> Is there a C++ class for opening document files (analogous to an
> NSDocument subclass, in a pure Objective-C app). I’d love to write an
> Objective-C wrapper around it. 

I don't understand if you want to work OpenOffice source code, or just
with its API. If the later, documents are loaded using the Desktop
service, which implements the interface css.frame.XComponentLoader
http://www.openoffice.org/api/docs/common/ref/com/sun/star/frame/Desktop.html
http://www.openoffice.org/api/docs/common/ref/com/sun/star/frame/XComponentLoader.html

The API is the same, you just have to implement the Java examples from
the SDK in C++; look for example at
http://markmail.org/message/llhnser4nmvb7jfx
http://markmail.org/message/cl356hyng5utkuif

You need to set up the SDK environment in order to build that examples
(but you don't need to build nor study OpenOffice source code if you are
just working with the API).


Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina

Attachment: signature.asc
Description: Digital signature

Reply via email to