summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-11-22 17:22:08 -0500
committerKohei Yoshida <kohei.yoshida@collabora.com>2014-11-22 17:28:16 -0500
commitd69bda6300f2a2035d1754d8a33e4bba56a47607 (patch)
tree2bef86b377a1fe89fbdc2c36b31a85dc1178649c /include
parentb5339f0d299b0fd080fa278b0223afdf4fd65eeb (diff)
Make NfCurrencyTable a separate header & forward-declare it in zforlist.hxx.
Change-Id: I17b52c277ab6ec8b15e88729feee0a269b75087d
Diffstat (limited to 'include')
-rw-r--r--include/svl/currencytable.hxx40
-rw-r--r--include/svl/zforlist.hxx4
2 files changed, 41 insertions, 3 deletions
diff --git a/include/svl/currencytable.hxx b/include/svl/currencytable.hxx
new file mode 100644
index 000000000000..940a584fb1d6
--- /dev/null
+++ b/include/svl/currencytable.hxx
@@ -0,0 +1,40 @@
+/* -*- 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_SVL_CURRENCYTABLE_HXX
+#define INCLUDED_SVL_CURRENCYTABLE_HXX
+
+#include <svl/svldllapi.h>
+#include <svl/zforlist.hxx>
+#include <boost/ptr_container/ptr_vector.hpp>
+
+class SVL_DLLPUBLIC NfCurrencyTable
+{
+ typedef boost::ptr_vector<NfCurrencyEntry> DataType;
+ DataType maData;
+public:
+ typedef DataType::iterator iterator;
+ typedef DataType::const_iterator const_iterator;
+
+ iterator begin();
+ iterator end();
+ const_iterator begin() const;
+ const_iterator end() const;
+
+ NfCurrencyEntry& operator[] ( size_t i );
+ const NfCurrencyEntry& operator[] ( size_t i ) const;
+
+ size_t size() const;
+
+ void insert( iterator it, NfCurrencyEntry* p );
+};
+
+#endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/svl/zforlist.hxx b/include/svl/zforlist.hxx
index babaeda80011..7607af724b7d 100644
--- a/include/svl/zforlist.hxx
+++ b/include/svl/zforlist.hxx
@@ -34,7 +34,6 @@
#include <map>
#include <set>
-#include <boost/ptr_container/ptr_vector.hpp>
class Date;
class Color;
@@ -300,11 +299,10 @@ public:
static inline sal_Unicode GetEuroSymbol() { return sal_Unicode(0x20AC); }
};
-typedef boost::ptr_vector<NfCurrencyEntry> NfCurrencyTable;
-
typedef std::vector< OUString > NfWSStringsDtor;
class SvNumberFormatterRegistry_Impl;
+class NfCurrencyTable;
class SVL_DLLPUBLIC SvNumberFormatter
{