INTEGRATION: CWS oj14 (1.58.4); FILE MERGED
2007/06/23 21:22:54 fs 1.58.4.8: RESYNC: (1.70-1.71); FILE MERGED 2007/06/04 18:45:50 oj 1.58.4.7: RESYNC: (1.68-1.70); FILE MERGED 2006/12/18 16:23:05 oj 1.58.4.6: RESYNC: (1.66-1.68); FILE MERGED 2006/11/07 09:34:32 oj 1.58.4.5: RESYNC: (1.60-1.66); FILE MERGED 2006/07/04 08:12:57 oj 1.58.4.4: RESYNC: (1.59-1.60); FILE MERGED 2006/04/25 13:03:16 oj 1.58.4.3: new include 2006/03/20 07:48:44 oj 1.58.4.2: use of module client helper 2006/01/03 07:49:18 oj 1.58.4.1: changed module client
This commit is contained in:
parent
1c610909e5
commit
87b99b8ac7
1 changed files with 15 additions and 14 deletions
|
@ -4,9 +4,9 @@
|
|||
*
|
||||
* $RCSfile: UITools.cxx,v $
|
||||
*
|
||||
* $Revision: 1.71 $
|
||||
* $Revision: 1.72 $
|
||||
*
|
||||
* last change: $Author: ihi $ $Date: 2007-06-05 14:42:00 $
|
||||
* last change: $Author: rt $ $Date: 2007-07-06 08:34:20 $
|
||||
*
|
||||
* The Contents of this file are made available subject to
|
||||
* the terms of GNU Lesser General Public License Version 2.1.
|
||||
|
@ -250,9 +250,6 @@
|
|||
#ifndef _DBU_MISC_HRC_
|
||||
#include "dbu_misc.hrc"
|
||||
#endif
|
||||
#ifndef _DBAUI_MODULE_DBU_HXX_
|
||||
#include "moduledbu.hxx"
|
||||
#endif
|
||||
#ifndef _DBAUI_SQLMESSAGE_HXX_
|
||||
#include "sqlmessage.hxx"
|
||||
#endif
|
||||
|
@ -1525,16 +1522,20 @@ namespace
|
|||
// -----------------------------------------------------------------------------
|
||||
void setEvalDateFormatForFormatter(Reference< ::com::sun::star::util::XNumberFormatter >& _rxFormatter)
|
||||
{
|
||||
Reference< ::com::sun::star::util::XNumberFormatsSupplier > xSupplier = _rxFormatter->getNumberFormatsSupplier();
|
||||
|
||||
Reference< XUnoTunnel > xTunnel(xSupplier,UNO_QUERY);
|
||||
SvNumberFormatsSupplierObj* pSupplierImpl = reinterpret_cast<SvNumberFormatsSupplierObj*>(xTunnel->getSomething(SvNumberFormatsSupplierObj::getUnoTunnelId()));
|
||||
OSL_ENSURE(pSupplierImpl,"No Supplier!");
|
||||
|
||||
if ( pSupplierImpl )
|
||||
OSL_ENSURE( _rxFormatter.is(),"setEvalDateFormatForFormatter: Formatter is NULL!");
|
||||
if ( _rxFormatter.is() )
|
||||
{
|
||||
SvNumberFormatter* pFormatter = pSupplierImpl->GetNumberFormatter();
|
||||
pFormatter->SetEvalDateFormat(NF_EVALDATEFORMAT_FORMAT);
|
||||
Reference< ::com::sun::star::util::XNumberFormatsSupplier > xSupplier = _rxFormatter->getNumberFormatsSupplier();
|
||||
|
||||
Reference< XUnoTunnel > xTunnel(xSupplier,UNO_QUERY);
|
||||
SvNumberFormatsSupplierObj* pSupplierImpl = reinterpret_cast<SvNumberFormatsSupplierObj*>(xTunnel->getSomething(SvNumberFormatsSupplierObj::getUnoTunnelId()));
|
||||
OSL_ENSURE(pSupplierImpl,"No Supplier!");
|
||||
|
||||
if ( pSupplierImpl )
|
||||
{
|
||||
SvNumberFormatter* pFormatter = pSupplierImpl->GetNumberFormatter();
|
||||
pFormatter->SetEvalDateFormat(NF_EVALDATEFORMAT_FORMAT);
|
||||
}
|
||||
}
|
||||
}
|
||||
// -----------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue