From f1fcac4bc93d895307fad194988c4a024034dd5d Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Tue, 30 Sep 2014 21:30:17 -0400 Subject: Try to determine whether or not a column has all 'General' number format during import. We'll then use this information to set script type to latin for all numeric cells in those columns rather than leaving the script type 'unknown'. Change-Id: I69eae1effc32c57290b0265bc6c87e58f51944b1 --- sc/inc/numformat.hxx | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 sc/inc/numformat.hxx (limited to 'sc/inc/numformat.hxx') diff --git a/sc/inc/numformat.hxx b/sc/inc/numformat.hxx new file mode 100644 index 000000000000..0bf4930034d2 --- /dev/null +++ b/sc/inc/numformat.hxx @@ -0,0 +1,37 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#ifndef INCLUDED_SC_NUMFORMAT_HXX +#define INCLUDED_SC_NUMFORMAT_HXX + +#include + +#include + +class ScPatternAttr; + +namespace sc { + +class SC_DLLPUBLIC NumFmtUtil +{ +public: + + /** + * Return whether or not given number format is a 'General' number format. + */ + static bool isGeneral( sal_uLong nFormat ); + + static bool isGeneral( const ScPatternAttr& rPat ); +}; + +} + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit