blob: f4d0c99aa80635bacc73d73ab4ec292208fff5ee [file] [log] [blame]
/**************************************************************
*
* 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_util_XDataEditor_idl__
#define __com_sun_star_util_XDataEditor_idl__
#ifndef __com_sun_star_uno_XInterface_idl__
#include <com/sun/star/uno/XInterface.idl>
#endif
#ifndef __com_sun_star_util_XDataEditorListener_idl__
#include <com/sun/star/util/XDataEditorListener.idl>
#endif
//=============================================================================
module com { module sun { module star { module util {
/** connects to a model and broadcasts status change events.
*/
published interface XDataEditor: com::sun::star::uno::XInterface
{
/** makes the data editor visible to the user.
*/
void show();
//--------------------------------------------------------------------------
/** connects the data editor to a data model.
*/
void setModel( [in] com::sun::star::uno::XInterface model );
//--------------------------------------------------------------------------
/** @returns
the data model which was set by <method>XDataEditor::setModel</method>.
*/
com::sun::star::uno::XInterface getModel();
//--------------------------------------------------------------------------
/** registers a listener to receive <type>DataEditorEvent</type>s.
*/
void addDataEditorListener( [in] XDataEditorListener listener );
//--------------------------------------------------------------------------
/** unregisters a listener which received <type>DataEditorEvent</type>s.
*/
void removeDataEditorListener( [in] XDataEditorListener listener );
};
//=============================================================================
}; }; }; };
#endif