Common Workflow to add Controls
From Apache OpenOffice Wiki
< Documentation | DevGuide
- Common Properties
- Font-specific Properties
- Other Common Properties
- Property Propagation Between Model and Control
- Common Workflow to add Controls
- The Example Listings
- Label Field
- Command Button
- Image Control
- Check Box
- Radio Button
- Scroll Bar
- List Box
- Combo Box
- Progress Bar
- Horizontal/Vertical Line Control
- Group Box
- Text Field
- Text Field Extensions
- Formatted Field
- Numeric Field
- Currency Field
- Date Field
- Time Field
- Pattern Field
- Roadmap Control
- File Control
- File Picker
- Message Box
For any existing dialog controls there is a common workflow to follow to insert a control into a dialog:
- Instantiate the control model at the MultiServiceFactory of the dialog.
- Set the Properties at the control model (for performance reasons, use the interface com.sun.star.beans.XMultiPropertySet).
- Insert the control model at the control model container of the dialog model. In our coding examples we refer to this container by the public object variable
m_xDlgModelNameContainer
created in the code example of Instantiation of a Dialog - Query the control from the dialog control container by referencing the name (that you have previously assigned to the control model). Note: According to the MVC paradigm there is no way to retrieve the control from the model.
Content on this page is licensed under the Public Documentation License (PDL). |