diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-09-30 21:30:17 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-10-22 18:07:26 -0400 |
commit | f1fcac4bc93d895307fad194988c4a024034dd5d (patch) | |
tree | d044ed11c64a582486a3dd4e370d44bd84583514 /sc/inc/numformat.hxx | |
parent | Move SetAttrEntries from ScDocument to ScDocumentImport. (diff) | |
download | core-f1fcac4bc93d895307fad194988c4a024034dd5d.tar.gz core-f1fcac4bc93d895307fad194988c4a024034dd5d.zip |
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
Diffstat (limited to 'sc/inc/numformat.hxx')
-rw-r--r-- | sc/inc/numformat.hxx | 37 |
1 files changed, 37 insertions, 0 deletions
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 <scdllapi.h> + +#include <tools/solar.h> + +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: */ |