LibreOffice
LibreOffice 26.2 SDK API Reference
Loading...
Searching...
No Matches
XInitialization Interface Referencepublished

initializes an object directly after its creation. More...

import "XInitialization.idl";

Inherits XInterface.

Inherited by Bridge, IiopBridge, UrpBridge, RegistryServiceManager, NestedRegistry, BootstrapMacroExpander [protected], ChartDocument [protected], XDatabaseDataProvider, BackendAdapter [protected], CopyImporter, Importer [protected], InteractionHandler, LayerFilter, LayerUpdateMerger, MultiStratumBackend [protected], SystemIntegration, LayerParser, LayerWriter, SchemaParser, GenericClipboard, OleDragSource, OleDropTarget, X11DragSource, X11DropTarget, ExportFilter [protected], ImportFilter [protected], FrameLoader [protected], PopupMenuController, ProtocolHandler [protected], SynchronousFrameLoader [protected], ToolbarController, XStatusbarController, GalleryThemeProvider, Hyphenator, SpellChecker, Thesaurus, Package, DatasourceAdministrationDialog, DataSourceBrowser, QueryDesign, RelationDesign, TableDesign, XConnectionSupplier, CellRangeListSource, CellValueBinding, UIElement [protected], XImageManager, XMLSignature, SaxDocumentHandler, XMLDocumentWrapper, XMLElementWrapper, XXSLTTransformer, XRangeBasedSmartTagRecognizer, XSmartTagAction, and XSmartTagRecognizer.

Collaboration diagram for XInitialization:

Public Member Functions

void initialize ([in] sequence< any > aArguments) raises ( com::sun::star::uno::Exception )
 initializes the object.
Public Member Functions inherited from XInterface
any queryInterface ([in] type aType)
 queries for a new interface to an existing UNO object.
void acquire ()
 increases the reference counter by one.
void release ()
 decreases the reference counter by one.

Detailed Description

initializes an object directly after its creation.

This interface works together with factories. If you want to initialize the object after creation, you should support this interface and you may support other interfaces which offer type-safe initialization methods.

Instead of calling XSingleComponentFactory::createInstanceWithContext() and later initialize(), you should call XSingleComponentFactory::createInstanceWithArgumentsAndContext() to pass the arguments to the instance. The reason is, that a component may want to return the same instance for the same set of parameters, and it can do so by implementing the factory itself.

Developers Guide
Writing UNO Components - XInitialization
Writing UNO Components - Core Interfaces to Implement

Member Function Documentation

◆ initialize()

void initialize ( [in] sequence< any > aArguments)
raises (com::sun::star::uno::Exception )

initializes the object.

It should be called directly after the object is created.


The documentation for this interface was generated from the following file: