summaryrefslogtreecommitdiff
path: root/sc/source/core/tool/stringutil.cxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2013-03-19 17:28:52 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-03-19 18:09:51 -0400
commit25b6dcef4907cdf22456f7784f49860447ad9d1f (patch)
tree1269383010f66ef4d6baba534caed0bcf8b6c2cd /sc/source/core/tool/stringutil.cxx
parent5f0ad2a5ac6a5c4533bb68b3a78af394ad7b21f6 (diff)
More on removal of direct use of cell classes outside ScDocument.
Change-Id: Ie888b3494334613b5e4bcf97019b6dfbbd1a5da1
Diffstat (limited to 'sc/source/core/tool/stringutil.cxx')
-rw-r--r--sc/source/core/tool/stringutil.cxx15
1 files changed, 12 insertions, 3 deletions
diff --git a/sc/source/core/tool/stringutil.cxx b/sc/source/core/tool/stringutil.cxx
index 14ea6748f063..8924eca0f423 100644
--- a/sc/source/core/tool/stringutil.cxx
+++ b/sc/source/core/tool/stringutil.cxx
@@ -20,9 +20,7 @@
#include "stringutil.hxx"
#include "rtl/ustrbuf.hxx"
#include "rtl/math.hxx"
-
-using ::rtl::OUString;
-using ::rtl::OUStringBuffer;
+#include "global.hxx"
ScSetStringParam::ScSetStringParam() :
mpNumFormatter(NULL),
@@ -310,4 +308,15 @@ OUString ScStringUtil::GetQuotedToken(const OUString &rIn, sal_Int32 nToken, con
}
}
+bool ScStringUtil::isMultiline( const OUString& rStr )
+{
+ if (rStr.indexOf('\n') != -1)
+ return true;
+
+ if (rStr.indexOf(CHAR_CR) != -1)
+ return true;
+
+ return false;
+}
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */