1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: RtfReader.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef DBAUI_RTFREADER_HXX
31 #define DBAUI_RTFREADER_HXX
36 #ifndef _PARRTF_HXX //autogen
37 #include <svtools/parrtf.hxx>
39 #ifndef DBAUI_DATABASEEXPORT_HXX
40 #include "DExport.hxx"
43 #include <tools/stream.hxx>
48 class ORTFReader
: public SvRTFParser
, public ODatabaseExport
50 ::std::vector
<sal_Int32
> m_vecColor
;
52 // void insertValueIntoColumn();
54 virtual sal_Bool
CreateTable(int nToken
);
55 virtual void NextToken( int nToken
); // Basisklasse
56 virtual TypeSelectionPageFactory
57 getTypeSelectionPageFactory();
61 ORTFReader( SvStream
& rIn
,
62 const SharedConnection
& _rxConnection
,
63 const ::com::sun::star::uno::Reference
< ::com::sun::star::util::XNumberFormatter
>& _rxNumberF
,
64 const ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XMultiServiceFactory
>& _rM
,
65 const TColumnVector
* rList
= 0,
66 const OTypeInfoMap
* _pInfoMap
= 0);
67 // wird f"ur auto. Typ-Erkennung gebraucht
68 ORTFReader( SvStream
& rIn
,
70 const TPositions
&_rColumnPositions
,
71 const ::com::sun::star::uno::Reference
< ::com::sun::star::util::XNumberFormatter
>& _rxNumberF
,
72 const ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XMultiServiceFactory
>& _rM
,
73 const TColumnVector
* rList
,
74 const OTypeInfoMap
* _pInfoMap
,
75 sal_Bool _bAutoIncrementEnabled
);
77 virtual SvParserState
CallParser();// Basisklasse
78 virtual void release();
79 // birgt nur korrekte Daten, wenn der 2. CTOR benutzt wurde
80 // ansonsten wird die SbaColumnList ohne "Anderung zur"uckgegeben
83 SV_DECL_IMPL_REF( ORTFReader
);
85 #endif // DBAUI_RTFREADER_HXX