Version 4.3.0.0.beta1, tag libreoffice-4.3.0.0.beta1
[LibreOffice.git] / connectivity / source / drivers / macab / MacabHeader.hxx
blob8a915fb20b010ab01ddffae124e81f174424d227
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_MACAB_MACABHEADER_HXX
21 #define INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_MACAB_MACABHEADER_HXX
23 #include "MacabRecord.hxx"
24 #include <cppuhelper/compbase3.hxx>
26 namespace connectivity
28 namespace macab
30 class MacabHeader: public MacabRecord{
31 protected:
32 macabfield **sortRecord(sal_Int32 _start, sal_Int32 _length);
33 public:
34 MacabHeader();
35 MacabHeader(const sal_Int32 _size, macabfield **_fields);
36 virtual ~MacabHeader();
37 void operator+= (const MacabHeader *r);
38 OUString getString(const sal_Int32 i) const;
39 void sortRecord();
40 sal_Int32 getColumnNumber(const OUString& s) const;
42 static sal_Int32 compareFields(const macabfield *_field1, const macabfield *_field2);
44 MacabHeader *begin();
45 sal_Int32 end() const;
46 class iterator{
47 protected:
48 sal_Int32 id;
49 MacabHeader *record;
50 public:
51 iterator& operator= (MacabHeader *_record);
52 iterator();
53 ~iterator();
54 void operator++ ();
55 sal_Bool operator!= (const sal_Int32 i) const;
56 sal_Bool operator== (const sal_Int32 i) const;
57 macabfield *operator* () const;
63 #endif // INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_MACAB_MACABHEADER_HXX
65 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */