Gtk-WARNING gtktreestore.c:1047: Invalid column number 1 added to iter
[LibreOffice.git] / dbaccess / source / ui / inc / RtfReader.hxx
blob58f6aa26ba2b419a2d85fa38e9394b89af706868
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 .
19 #pragma once
21 #include <vector>
22 #include <svtools/parrtf.hxx>
23 #include "DExport.hxx"
25 class SvStream;
27 namespace dbaui
29 class ORTFReader final : public SvRTFParser , public ODatabaseExport
31 std::vector<Color> m_vecColor;
33 bool CreateTable(int nToken);
34 virtual void NextToken( int nToken ) override; // base class
35 virtual TypeSelectionPageFactory
36 getTypeSelectionPageFactory() override;
38 virtual ~ORTFReader() override;
40 public:
41 ORTFReader( SvStream& rIn,
42 const SharedConnection& _rxConnection,
43 const css::uno::Reference< css::util::XNumberFormatter >& _rxNumberF,
44 const css::uno::Reference< css::uno::XComponentContext >& _rxContext);
45 // required for automatic type recognition
46 ORTFReader( SvStream& rIn,
47 sal_Int32 nRows,
48 TPositions&& _rColumnPositions,
49 const css::uno::Reference< css::util::XNumberFormatter >& _rxNumberF,
50 const css::uno::Reference< css::uno::XComponentContext >& _rxContext,
51 const TColumnVector* rList,
52 const OTypeInfoMap* _pInfoMap,
53 bool _bAutoIncrementEnabled);
55 virtual SvParserState CallParser() override;// base class
59 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */