cellbindinghelper.hxx (46dbacee) cellbindinghelper.hxx (07a3d7f1)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 102 unchanged lines hidden (view full) ---

111 const ::com::sun::star::uno::Reference< ::com::sun::star::form::binding::XValueBinding >& _rxBinding
112 ) const;
113
114 /** creates an address object for the given value binding's address
115
116 @precond
117 The binding is a valid cell binding, or <NULL/>
118 @return
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 102 unchanged lines hidden (view full) ---

111 const ::com::sun::star::uno::Reference< ::com::sun::star::form::binding::XValueBinding >& _rxBinding
112 ) const;
113
114 /** creates an address object for the given value binding's address
115
116 @precond
117 The binding is a valid cell binding, or <NULL/>
118 @return
119 <FALSE/> if and only if an error occured and no valid address could be obtained
119 <FALSE/> if and only if an error occurred and no valid address could be obtained
120 @see isCellBinding
121 */
122 bool getAddressFromCellBinding(
123 const ::com::sun::star::uno::Reference< ::com::sun::star::form::binding::XValueBinding >& _rxBinding,
124 ::com::sun::star::table::CellAddress& _rAddress
125 ) const;
126
127 /** creates a string representation for the given list source's range address

--- 67 unchanged lines hidden (view full) ---

195
196 /** checks whether a given list source is a spreadsheet cell list source
197 */
198 bool isCellRangeListSource(
199 const ::com::sun::star::uno::Reference< ::com::sun::star::form::binding::XListEntrySource >& _rxSource
200 ) const;
201
202 /** retrieves the index of the sheet which our control belongs to
120 @see isCellBinding
121 */
122 bool getAddressFromCellBinding(
123 const ::com::sun::star::uno::Reference< ::com::sun::star::form::binding::XValueBinding >& _rxBinding,
124 ::com::sun::star::table::CellAddress& _rAddress
125 ) const;
126
127 /** creates a string representation for the given list source's range address

--- 67 unchanged lines hidden (view full) ---

195
196 /** checks whether a given list source is a spreadsheet cell list source
197 */
198 bool isCellRangeListSource(
199 const ::com::sun::star::uno::Reference< ::com::sun::star::form::binding::XListEntrySource >& _rxSource
200 ) const;
201
202 /** retrieves the index of the sheet which our control belongs to
203 @return the index of the sheet which our control belongs to or -1, if an error occured
203 @return the index of the sheet which our control belongs to or -1, if an error occurred
204 */
205 sal_Int16 getControlSheetIndex(
206 ::com::sun::star::uno::Reference< ::com::sun::star::sheet::XSpreadsheet >& _out_rxSheet
207 ) const;
208
209 protected:
210 /** creates an address object from a string representation of a cell address
211 */

--- 48 unchanged lines hidden (view full) ---

260 the output property name for the conversion service
261 @param _rOutputValue
262 the output property value for the conversion service
263 @param _bIsRange
264 if <TRUE/>, the RangeAddressConversion service will be used, else
265 the AddressConversion service
266
267 @return
204 */
205 sal_Int16 getControlSheetIndex(
206 ::com::sun::star::uno::Reference< ::com::sun::star::sheet::XSpreadsheet >& _out_rxSheet
207 ) const;
208
209 protected:
210 /** creates an address object from a string representation of a cell address
211 */

--- 48 unchanged lines hidden (view full) ---

260 the output property name for the conversion service
261 @param _rOutputValue
262 the output property value for the conversion service
263 @param _bIsRange
264 if <TRUE/>, the RangeAddressConversion service will be used, else
265 the AddressConversion service
266
267 @return
268 <TRUE/> if any only if the conversion was successfull
268 <TRUE/> if any only if the conversion was successful
269
270 @see com::sun::star::table::CellAddressConversion
271 @see com::sun::star::table::CellRangeAddressConversion
272 */
273 bool doConvertAddressRepresentations(
274 const ::rtl::OUString& _rInputProperty,
275 const ::com::sun::star::uno::Any& _rInputValue,
276 const ::rtl::OUString& _rOutputProperty,
277 ::com::sun::star::uno::Any& _rOutputValue,
278 bool _bIsRange
279 ) const SAL_THROW(());
280 };
281
282//............................................................................
283} // namespace pcr
284//............................................................................
285
286#endif // EXTENSIONS_PROPCTRLR_CELLBINDINGHELPER_HXX
269
270 @see com::sun::star::table::CellAddressConversion
271 @see com::sun::star::table::CellRangeAddressConversion
272 */
273 bool doConvertAddressRepresentations(
274 const ::rtl::OUString& _rInputProperty,
275 const ::com::sun::star::uno::Any& _rInputValue,
276 const ::rtl::OUString& _rOutputProperty,
277 ::com::sun::star::uno::Any& _rOutputValue,
278 bool _bIsRange
279 ) const SAL_THROW(());
280 };
281
282//............................................................................
283} // namespace pcr
284//............................................................................
285
286#endif // EXTENSIONS_PROPCTRLR_CELLBINDINGHELPER_HXX