1*cdf0e10cSrcweir/************************************************************************* 2*cdf0e10cSrcweir * 3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir * 5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir * 7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir * 9*cdf0e10cSrcweir * This file is part of OpenOffice.org. 10*cdf0e10cSrcweir * 11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir * 15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir * 21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir * 26*cdf0e10cSrcweir ************************************************************************/ 27*cdf0e10cSrcweir 28*cdf0e10cSrcweir#ifndef __com_sun_star_table_CellValueBinding_idl__ 29*cdf0e10cSrcweir#define __com_sun_star_table_CellValueBinding_idl__ 30*cdf0e10cSrcweir 31*cdf0e10cSrcweir#ifndef __com_sun_star_form_binding_ValueBinding_idl__ 32*cdf0e10cSrcweir#include <com/sun/star/form/binding/ValueBinding.idl> 33*cdf0e10cSrcweir#endif 34*cdf0e10cSrcweir#ifndef __com_sun_star_table_CellAddress_idl__ 35*cdf0e10cSrcweir#include <com/sun/star/table/CellAddress.idl> 36*cdf0e10cSrcweir#endif 37*cdf0e10cSrcweir#ifndef __com_sun_star_lang_XInitialization_idl__ 38*cdf0e10cSrcweir#include <com/sun/star/lang/XInitialization.idl> 39*cdf0e10cSrcweir#endif 40*cdf0e10cSrcweir 41*cdf0e10cSrcweir//============================================================================= 42*cdf0e10cSrcweir 43*cdf0e10cSrcweirmodule com { module sun { module star { module table { 44*cdf0e10cSrcweir 45*cdf0e10cSrcweir//============================================================================= 46*cdf0e10cSrcweir 47*cdf0e10cSrcweir/** defines the binding to a single cell in a table document 48*cdf0e10cSrcweir 49*cdf0e10cSrcweir <p>Read/Write access to the cell represented by this component is supported, 50*cdf0e10cSrcweir as well as active broadcasting of value changes.</p> 51*cdf0e10cSrcweir 52*cdf0e10cSrcweir <p>The binding supports exchanging <em>double</em> values, <em>string</em> 53*cdf0e10cSrcweir values.</p> 54*cdf0e10cSrcweir 55*cdf0e10cSrcweir <p>The component cannot be instantiated at a global service factory, instead 56*cdf0e10cSrcweir it's usually provided by a document instance.</p> 57*cdf0e10cSrcweir 58*cdf0e10cSrcweir @see com::sun::star::document::OfficeDocument 59*cdf0e10cSrcweir*/ 60*cdf0e10cSrcweirservice CellValueBinding 61*cdf0e10cSrcweir{ 62*cdf0e10cSrcweir /** ensures the basic functionality for binding to a value 63*cdf0e10cSrcweir */ 64*cdf0e10cSrcweir service com::sun::star::form::binding::ValueBinding; 65*cdf0e10cSrcweir 66*cdf0e10cSrcweir /** specifies the cell within a document whose value is reflected 67*cdf0e10cSrcweir by the binding. 68*cdf0e10cSrcweir */ 69*cdf0e10cSrcweir [property, bound, readonly] com::sun::star::table::CellAddress BoundCell; 70*cdf0e10cSrcweir 71*cdf0e10cSrcweir /** allows notifications of changes in the content of the underlying cell. 72*cdf0e10cSrcweir 73*cdf0e10cSrcweir <p>Note that this interface is already optionally allowed in the 74*cdf0e10cSrcweir underlying service (<type scope="com::sun::star::form::binding">ValueBinding</type>), 75*cdf0e10cSrcweir but it loses it's optionality here.</p> 76*cdf0e10cSrcweir */ 77*cdf0e10cSrcweir interface com::sun::star::util::XModifyBroadcaster; 78*cdf0e10cSrcweir 79*cdf0e10cSrcweir /** allows setting initial, creation-time properties of the component 80*cdf0e10cSrcweir 81*cdf0e10cSrcweir <p>This interface is used to initialize the component after creation. It has 82*cdf0e10cSrcweir to be used exactly once in the life time of the component, every second call 83*cdf0e10cSrcweir to <member scope"com::sun::star::lang">XInitialization::initialize</member> 84*cdf0e10cSrcweir will throw an exception.</p> 85*cdf0e10cSrcweir 86*cdf0e10cSrcweir <p>The arguments passed to the <member scope"com::sun::star::lang">XInitialization::initialize</member> 87*cdf0e10cSrcweir method must be instances of <type scope="com::sun::star::beans">NamedValue</type>, where 88*cdf0e10cSrcweir the <member scope"com::sun::star::beans">NamedValue::Name</member> denotes the type of information 89*cdf0e10cSrcweir to initialize, and the <member scope"com::sun::star::beans">NamedValue::Value</member> 90*cdf0e10cSrcweir the inital value.</p> 91*cdf0e10cSrcweir 92*cdf0e10cSrcweir <p>The following aspects of the components can be initialized:<br/> 93*cdf0e10cSrcweir <ul><li><b>BoundCell</b><br/> 94*cdf0e10cSrcweir specifies the address of the cell to bind this instance to. Must be a 95*cdf0e10cSrcweir <type scope="com::sun::star::table">CellAddress</type> instance.</li> 96*cdf0e10cSrcweir </ul> 97*cdf0e10cSrcweir </p> 98*cdf0e10cSrcweir */ 99*cdf0e10cSrcweir interface com::sun::star::lang::XInitialization; 100*cdf0e10cSrcweir}; 101*cdf0e10cSrcweir 102*cdf0e10cSrcweir//============================================================================= 103*cdf0e10cSrcweir 104*cdf0e10cSrcweir}; }; }; }; 105*cdf0e10cSrcweir 106*cdf0e10cSrcweir#endif 107