office-gobmx/svtools/source/table/cellvalueconversion.hxx
Norbert Thiebaud a7e949673c gridfixes: #i117265# use a NumberFormatter for converting cell values to text.
This means using the Locale setup in the Options, and allows for more value types (like Date/Time) to be supported

Change-Id: I78fb08f2da88405851664e3e1dd4505c3727e56b
Reviewed-on: https://gerrit.libreoffice.org/534
Reviewed-by: Miklos Vajna <vmiklos@suse.cz>
Tested-by: Miklos Vajna <vmiklos@suse.cz>
2012-09-14 06:59:57 +00:00

67 lines
2.6 KiB
C++

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
*
* OpenOffice.org is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
*
************************************************************************/
#ifndef SVTOOLS_CELLVALUECONVERSION_HXX
#define SVTOOLS_CELLVALUECONVERSION_HXX
#include <com/sun/star/uno/Any.hxx>
#include <boost/scoped_ptr.hpp>
namespace comphelper
{
class ComponentContext;
}
//......................................................................................................................
namespace svt
{
//......................................................................................................................
//==================================================================================================================
//= CellValueConversion
//==================================================================================================================
struct CellValueConversion_Data;
class CellValueConversion
{
public:
CellValueConversion( ::comphelper::ComponentContext const & i_context );
~CellValueConversion();
::rtl::OUString convertToString( const ::com::sun::star::uno::Any& i_cellValue );
private:
::boost::scoped_ptr< CellValueConversion_Data > m_pData;
};
//......................................................................................................................
} // namespace svt
//......................................................................................................................
#endif // SVTOOLS_CELLVALUECONVERSION_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */