1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
21 module com
{ module sun
{ module star
{ module ui
{
24 /** specifies a configurable user interface element that supports persistence.
27 Configurable user interface elements are:
39 service ConfigurableUIElement
41 /** provides properties and functions to initialize and identify a user
45 A configurable user interface element must be initialized using
46 com::sun::star::lang::XInitialization::initialize() before
47 it can be used. The following properties must be provided:
49 <li><b>ResourceURL</b><br>specifies the user interface name.</li>
50 <li><b>Frame</b><br>specifies to which frame instance the user interface belongs to.</li>
51 <li><b>ConfigurationSource</b><br>specifies to which configuration manager a user interface
52 element instance is bound to.</li>
56 A user interface element factory creates and initializes every user interface element
59 @see com::sun::star::ui::UIElementFactory
63 /** provides functions to retrieve and change the user interface element structure data and to
64 update its visible representation.
66 interface com
::sun
::star
::ui
::XUIElementSettings
;
68 /** specifies if the user interface element stores changes of its structure to its creator
69 source defined by the property #ConfigurationSource. */
70 [property
] boolean Persistent
;
72 /** specifies the configuration source of this user interface element.
75 If the property #Persistent is `TRUE` changes on the structure of
76 the user interface element are written back to configuration source. When this property is
77 changed, afterwards XUIElementSettings::updateSettings() must be called so
78 the user interface element tries to retrieve its settings from the new user interface
79 configuration manager.
82 [property
] com
::sun
::star
::ui
::XUIConfigurationManager ConfigurationSource
;
87 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */