LibreOffice Module dbaccess (master) 1
RtfReader.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19#pragma once
20
21#include <vector>
22#include <svtools/parrtf.hxx>
23#include "DExport.hxx"
24
25class SvStream;
26
27namespace dbaui
28{
29 class ORTFReader final : public SvRTFParser , public ODatabaseExport
30 {
31 std::vector<Color> m_vecColor;
32
33 bool CreateTable(int nToken);
34 virtual void NextToken( int nToken ) override; // base class
37
38 virtual ~ORTFReader() override;
39
40 public:
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
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);
54
55 virtual SvParserState CallParser() override;// base class
56 };
57}
58
59/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::vector< std::pair< sal_Int32, sal_Int32 > > TPositions
Definition: DExport.hxx:59
std::vector< TColumns::const_iterator > TColumnVector
Definition: DExport.hxx:58
virtual TypeSelectionPageFactory getTypeSelectionPageFactory() override
Definition: RtfReader.cxx:304
virtual ~ORTFReader() override
Definition: RtfReader.cxx:72
virtual SvParserState CallParser() override
Definition: RtfReader.cxx:76
std::vector< Color > m_vecColor
Definition: RtfReader.hxx:31
virtual void NextToken(int nToken) override
Definition: RtfReader.cxx:89
ORTFReader(SvStream &rIn, const SharedConnection &_rxConnection, const css::uno::Reference< css::util::XNumberFormatter > &_rxNumberF, const css::uno::Reference< css::uno::XComponentContext > &_rxContext)
ORTFReader(SvStream &rIn, sal_Int32 nRows, TPositions &&_rColumnPositions, const css::uno::Reference< css::util::XNumberFormatter > &_rxNumberF, const css::uno::Reference< css::uno::XComponentContext > &_rxContext, const TColumnVector *rList, const OTypeInfoMap *_pInfoMap, bool _bAutoIncrementEnabled)
bool CreateTable(int nToken)
Definition: RtfReader.cxx:222
std::unique_ptr< OWizTypeSelect >(* TypeSelectionPageFactory)(weld::Container *, OCopyTableWizard *, SvStream &)
std::multimap< sal_Int32, TOTypeInfoSP > OTypeInfoMap
Definition: TypeInfo.hxx:100
SvParserState