

The createUnoService creates an instance of the DispatchHelper service. So the document variable refers to the main area of Calc. The controller then dispatches the changes to the document frame, i.e. type, colour, insert, is “watched” by a controller. ThisComponent refers to the current document. Let’s assign two values to the above variables.ĭocument = dispatcher = createUnoService(".DispatchHelper") Let’s declare two variables of type objects.ĭim document as object dim dispatcher as object

