diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-09-30 22:00:05 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-10-22 18:07:26 -0400 |
commit | bc1dd8feb80a51109c99c6cb176f5fd16ace5a1e (patch) | |
tree | bb8d2d9f33b5c9ff695288ef9776d9b69f5b5df3 /sc/inc/numformat.hxx | |
parent | Try to determine whether or not a column has all 'General' number format (diff) | |
download | core-bc1dd8feb80a51109c99c6cb176f5fd16ace5a1e.tar.gz core-bc1dd8feb80a51109c99c6cb176f5fd16ace5a1e.zip |
Move this useful function to sc::NumFmtUtil.
Change-Id: I7b42a4418408ee2c988c32e7f1adeee3dfe269c8
Diffstat (limited to 'sc/inc/numformat.hxx')
-rw-r--r-- | sc/inc/numformat.hxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sc/inc/numformat.hxx b/sc/inc/numformat.hxx index 0bf4930034d2..40d95611ee35 100644 --- a/sc/inc/numformat.hxx +++ b/sc/inc/numformat.hxx @@ -15,6 +15,7 @@ #include <tools/solar.h> class ScPatternAttr; +class ScDocument; namespace sc { @@ -28,6 +29,12 @@ public: static bool isGeneral( sal_uLong nFormat ); static bool isGeneral( const ScPatternAttr& rPat ); + + /** + * Check if the attribute pattern has a number format that only produces + * latin script output. + */ + static bool isLatinScript( const ScPatternAttr& rPat, ScDocument& rDoc ); }; } |