Contenido

# Herramientas de desarrollo

Permite inspeccionar los objetos de los documentos de LibreOffice y muestra los servicios de UNO, los métodos, las propiedades y las interfaces implementadas disponibles.

Esta funcionalidad también permite explorar la estructura del documento por medio del Modelo de Objetos de Documento (DOM, siglas en inglés).

Para acceder a esta orden…

#### Desde la barra de menús:

Vaya a Herramientas ▸ Herramientas de desarrollo

#### Desde la interfaz en pestañas:

On the Tools menu of the Tools tab, choose Development Tools.

#### Desde las barras de herramientas:

Herramientas de desarrollo

The Development Tools are visible in all documents of LibreOffice Writer, Calc, Impress and Draw. The display is persistent and remain visible until deselected.

When Development Tools is enabled, a dockable window is shown at the bottom of the screen. This window has two sections:

- Document Object Model tree view: Displays document portions according to the Document Object Model (DOM). Use this section to choose the object to inspect.

- Object inspection panel: Displays the available services, methods, properties and interfaces of the selected object.

Esta funcionalidad está disponible a partir de la versión 7.2 de LibreOffice para Writer, Calc, Impress y Draw.

## Document Model Tree View

The left side of the window contains a Current Selection toggle button, a Refresh button and a tree view that displays all objects in the document.

The behavior of the tree view depends on the status of the Current Selection toggle button:

- Click on Current Selection to display the properties of the object currently selected in the document. Hence, clicking any item in the tree view have no effect.

- Click on Current Selection again to display any item in the tree view and update the contents of the Object Inspection Panel.

The types of objects displayed by the Document Model Tree View depend on the LibreOffice application being used:

Aplicación de LibreOffice | Objetos admitidos
--- | ---
Writer | Paragraphs Text Portions in a Paragraph Shapes Tables Frames Graphic Objects Embedded Objects (OLE) Style Families and Styles
Calc | Hojas Formas por hoja Gráficos por hoja Táblas dinámicas por hoja Familias de estilos y estilos independientes
Impress | Slides Shapes per slide Master slides Style Families and Styles
Draw | Pages Shapes per page Style Families and Styles

## Object Inspection Panel

The right side of the window is the Object Inspection Panel that displays information about the object being inspected.

Class Name: is the name of the object class.

Use the class name to search more information in the API documentation. For example, the top-level object in a Writer document is an instance of the class SwXTextDocument, which is documented at SwXTextDocument Class Reference.

You can inspect the object further by using the four tabs available that display its Interfaces, Services, Properties and Methods.

The information about the object is organized in columns in each tab. The set of columns displayed depend on the selected tab.

### Pestaña Interfaces

Contains a single column presenting the list of interfaces implemented by the object.

### Pestaña Servicios

Contains a single column presenting the list of services supported by the object.

### Pestaña Propiedades

Contains four columns that describe the properties of the object:

- Propiedad: muestra los nombres de las propiedades del objeto.

- Value: Displays a textual representation of the current property value.

- Tipo: muestra el tipo de propiedad.

- Info: display relevant information about the property. For example, a read-only property displays "read-only" in this column.

The Properties tab also includes a text box on the bottom to display the full textual representation of the property value.

### Pestaña Métodos

Contains four columns that describe the combined list of methods that can be called by the current object:

- Method: Shows the names of all methods of the object.

- Return type: Displays the return type of the object methods. Methods that do not return any value are marked as "void" in this column.

- Parámetros: muestra la lista de los parámetros requeridos por el método y sus tipos respectivos.

- Implementation class: Displays the name of the class where the method is implemented.

Temas relacionados

Objetos, funciones y servicios de UNO

¡Necesitamos su ayuda!