summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAdam Co <rattles2013@gmail.com>2013-11-26 13:56:46 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2013-11-26 14:02:02 +0100
commit8d7cb7773dafda969c22bb9cca658bf1c677798d (patch)
tree18d9efda9a959322f98d9fd69e77615fdebf2036 /include
parentfc708d6286e184d7f1b63e4a334d5aa1c7959516 (diff)
Moved 'DateTimeToOString' from 'filter' package to 'tools' package
After the move now other classes can convert DateTime to OString also Reviewed on: https://gerrit.libreoffice.org/6816 Change-Id: I0ceb9a5cc26103a6cb36d7765a717770ec3fbe7d
Diffstat (limited to 'include')
-rw-r--r--include/filter/msfilter/util.hxx1
-rw-r--r--include/tools/datetimeutils.hxx20
2 files changed, 20 insertions, 1 deletions
diff --git a/include/filter/msfilter/util.hxx b/include/filter/msfilter/util.hxx
index d9ab87e8b56a..f857bf5823a5 100644
--- a/include/filter/msfilter/util.hxx
+++ b/include/filter/msfilter/util.hxx
@@ -40,7 +40,6 @@ MSFILTER_DLLPUBLIC DateTime DTTM2DateTime( long lDTTM );
I guess there must be an implementation of this somewhere in LO, but I failed
to find it, unfortunately :-(
*/
-MSFILTER_DLLPUBLIC OString DateTimeToOString( const DateTime& rDateTime );
/// Given a cBullet in encoding r_ioChrSet and fontname r_ioFontName return a
/// suitable new Bullet and change r_ioChrSet and r_ioFontName to form the
diff --git a/include/tools/datetimeutils.hxx b/include/tools/datetimeutils.hxx
new file mode 100644
index 000000000000..840403bf002d
--- /dev/null
+++ b/include/tools/datetimeutils.hxx
@@ -0,0 +1,20 @@
+/* -*- 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_TOOLS_DATETIMEUTILS_HXX
+#define INCLUDED_TOOLS_DATETIMEUTILS_HXX
+
+#include <tools/datetime.hxx>
+
+// This function converts a 'DateTime' object to an 'OString' object
+TOOLS_DLLPUBLIC OString DateTimeToOString( const DateTime& rDateTime );
+
+#endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */