numbers.cxx (dde7d3fa) numbers.cxx (49b34792)
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

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

110using namespace ::com::sun::star::util;
111using namespace ::com::sun::star::beans;
112
113//------------------------------------------------------------------------------
114Any getNumberFormatProperty( const Reference< XNumberFormatter >& _rxFormatter, sal_Int32 _nKey, const rtl::OUString& _rPropertyName )
115{
116 Any aReturn;
117
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

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

110using namespace ::com::sun::star::util;
111using namespace ::com::sun::star::beans;
112
113//------------------------------------------------------------------------------
114Any getNumberFormatProperty( const Reference< XNumberFormatter >& _rxFormatter, sal_Int32 _nKey, const rtl::OUString& _rPropertyName )
115{
116 Any aReturn;
117
118 OSL_ENSURE( _rxFormatter.is() && _rPropertyName.getLength(), "getNumberFormatProperty: invalid arguments!" );
118 OSL_ENSURE( _rxFormatter.is() && !_rPropertyName.isEmpty(), "getNumberFormatProperty: invalid arguments!" );
119 try
120 {
121 Reference< XNumberFormatsSupplier > xSupplier;
122 Reference< XNumberFormats > xFormats;
123 Reference< XPropertySet > xFormatProperties;
124
125 if ( _rxFormatter.is() )
126 xSupplier = _rxFormatter->getNumberFormatsSupplier();

--- 20 unchanged lines hidden ---
119 try
120 {
121 Reference< XNumberFormatsSupplier > xSupplier;
122 Reference< XNumberFormats > xFormats;
123 Reference< XPropertySet > xFormatProperties;
124
125 if ( _rxFormatter.is() )
126 xSupplier = _rxFormatter->getNumberFormatsSupplier();

--- 20 unchanged lines hidden ---