

The controller component of the MVC architecture is absent in Calc's class structure, however, as its role is covered by the underlying graphic sub-system layer (vcl module) where user inputs (mouse and keyboard inputs) are captured and sent to each application as event objects.Īnother important class to note here is ScViewData, whose primary role is to serve as the persistent storage of view data, with the secondary role being the liaison between the document and view classes. If you are familiar with the concept of model-view-controller (MVC) architecture, this architectural pattern probably sounds familiar. There are a number of good articles on that all over the web, but perhaps you may want to start with Uno/Articles&Tutorials first.īrief Summary of Calc's Class Structure Document and ViewĬalc's class structure is built around two core classes named ScTabView and ScDocument, which, as somewhat evident in their class name, represent Calc's view and document components, respectively. This guide is, however, not intended for someone who wants to develop an add-on component to OO.o by using the UNO component technology. Don't forget to visit the infamous Hacking page to get a general overview of how the build system works, and how to work with it. If you aren't, then the Tools project homepage may be a good starting point.

This guide is intended for C++ programmers who are already familiar with how to download the source code from CVS and do a complete build, and perhaps to do a rebuild of an individual module. 4.2 Part 2 – Adding callback to mouse click event.4.1 Part 1 – Modify built-in cell function.2 Brief Summary of Calc's Class Structure.
