summaryrefslogtreecommitdiffstats
path: root/sc/inc/numformat.hxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-09-30 21:30:17 -0400
committerKohei Yoshida <kohei.yoshida@collabora.com>2014-10-22 18:07:26 -0400
commitf1fcac4bc93d895307fad194988c4a024034dd5d (patch)
treed044ed11c64a582486a3dd4e370d44bd84583514 /sc/inc/numformat.hxx
parentMove SetAttrEntries from ScDocument to ScDocumentImport. (diff)
downloadcore-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.hxx37
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: */