diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-11-22 17:22:08 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-11-22 17:28:16 -0500 |
commit | d69bda6300f2a2035d1754d8a33e4bba56a47607 (patch) | |
tree | 2bef86b377a1fe89fbdc2c36b31a85dc1178649c /svl/source | |
parent | b5339f0d299b0fd080fa278b0223afdf4fd65eeb (diff) |
Make NfCurrencyTable a separate header & forward-declare it in zforlist.hxx.
Change-Id: I17b52c277ab6ec8b15e88729feee0a269b75087d
Diffstat (limited to 'svl/source')
-rw-r--r-- | svl/source/numbers/currencytable.cxx | 52 | ||||
-rw-r--r-- | svl/source/numbers/zforlist.cxx | 4 |
2 files changed, 55 insertions, 1 deletions
diff --git a/svl/source/numbers/currencytable.cxx b/svl/source/numbers/currencytable.cxx new file mode 100644 index 000000000000..ee65e8ff5c6a --- /dev/null +++ b/svl/source/numbers/currencytable.cxx @@ -0,0 +1,52 @@ +/* -*- 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/. +*/ + +#include <svl/currencytable.hxx> + +NfCurrencyTable::iterator NfCurrencyTable::begin() +{ + return maData.begin(); +} + +NfCurrencyTable::iterator NfCurrencyTable::end() +{ + return maData.end(); +} + +NfCurrencyTable::const_iterator NfCurrencyTable::begin() const +{ + return maData.begin(); +} + +NfCurrencyTable::const_iterator NfCurrencyTable::end() const +{ + return maData.end(); +} + +NfCurrencyEntry& NfCurrencyTable::operator[] ( size_t i ) +{ + return maData[i]; +} + +const NfCurrencyEntry& NfCurrencyTable::operator[] ( size_t i ) const +{ + return maData[i]; +} + +size_t NfCurrencyTable::size() const +{ + return maData.size(); +} + +void NfCurrencyTable::insert( iterator it, NfCurrencyEntry* p ) +{ + maData.insert(it, p); +} + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svl/source/numbers/zforlist.cxx b/svl/source/numbers/zforlist.cxx index 51fe328258bb..9b8e562db476 100644 --- a/svl/source/numbers/zforlist.cxx +++ b/svl/source/numbers/zforlist.cxx @@ -17,6 +17,9 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <svl/zforlist.hxx> +#include <svl/currencytable.hxx> + #include <comphelper/string.hxx> #include <tools/debug.hxx> #include <unotools/charclass.hxx> @@ -31,7 +34,6 @@ #include <osl/mutex.hxx> -#include <svl/zforlist.hxx> #include "zforscan.hxx" #include "zforfind.hxx" |