tdf#150789 - FILEOPEN PPTX: fix text in SmartArt vertically off
[LibreOffice.git] / connectivity / source / drivers / macab / MacabHeader.hxx
blob24b3fc7b0b9c99b573022ddb79ee846e40d017db
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 #pragma once
22 #include <sal/config.h>
24 #include <string_view>
26 #include "MacabRecord.hxx"
28 namespace connectivity::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() override;
37 void operator+= (const MacabHeader *r);
38 OUString getString(const sal_Int32 i) const;
39 void sortRecord();
40 sal_Int32 getColumnNumber(std::u16string_view 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 void operator++ ();
54 bool operator!= (const sal_Int32 i) const;
55 bool operator== (const sal_Int32 i) const;
56 macabfield *operator* () const;
61 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */