/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*************************************************************/
#ifndef __com_sun_star_form_binding_BindableControlModel_idl__
#define __com_sun_star_form_binding_BindableControlModel_idl__
#ifndef __com_sun_star_form_binding_XBindableValue_idl__
#include Via this service, bindable control models inherit the
When a If the binding set via this interface supports the
If an bindable control model, at which a binding has been established (via
ReadOnly
property (if present) is kept in sync with the
binding's ReadOnly
property. That is, any control using the value
binding is read-only as long as the binding is.Enabled
property (if present) is kept in sync
with the binding's Relevant
property. That is, any control using
the value binding is disabled as long as the binding is not relevant.
In both cases, explicit changes of the model's property are ignored if they would relax
the restriction imposed by the binding.
For instance, if the binding declares it's value to
be read-only (indicated by ReadOnly
property of the control model to ReadOnly
property at the control model can be freely set.
The very same holds for the binding's Enabled
properties.