1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 // MARKER(update_precomp.py): autogen include statement, do not remove
25 #include "precompiled_dbaccess.hxx"
26 #ifndef DBAUI_WIZ_EXTENDPAGES_HXX
27 #include "WExtendPages.hxx"
28 #endif
29 #ifndef DBAUI_RTFREADER_HXX
30 #include "RtfReader.hxx"
31 #endif
32 #ifndef DBAUI_HTMLREADER_HXX
33 #include "HtmlReader.hxx"
34 #endif
35 #ifndef DBAUI_WIZ_COPYTABLEDIALOG_HXX
36 #include "WCopyTable.hxx"
37 #endif
38 
39 using namespace dbaui;
40 //========================================================================
41 SvParser* OWizHTMLExtend::createReader(sal_Int32 _nRows)
42 {
43 	return new OHTMLReader(*m_pParserStream,
44 							_nRows,
45 							m_pParent->GetColumnPositions(),
46 							m_pParent->GetFormatter(),
47 							m_pParent->GetFactory(),
48 							m_pParent->getDestVector(),
49 							m_pParent->getTypeInfo(),
50                             m_pParent->shouldCreatePrimaryKey());
51 }
52 //========================================================================
53 SvParser* OWizRTFExtend::createReader(sal_Int32 _nRows)
54 {
55 	return new ORTFReader(*m_pParserStream,
56 							_nRows,
57 							m_pParent->GetColumnPositions(),
58 							m_pParent->GetFormatter(),
59 							m_pParent->GetFactory(),
60 							m_pParent->getDestVector(),
61 							m_pParent->getTypeInfo(),
62                             m_pParent->shouldCreatePrimaryKey());
63 }
64 //========================================================================
65 OWizNormalExtend::OWizNormalExtend(Window* pParent) : OWizTypeSelect( pParent )
66 {
67 	EnableAuto(sal_False);
68     Size aflSize( m_flColumns.GetSizePixel() );
69     Point aPos(m_flColumns.GetPosPixel());
70 
71     m_flColumns.SetPosSizePixel(aPos, aflSize );
72 
73 	sal_Int32 nHeight = m_lbColumnNames.GetSizePixel().Height() +6;
74 	aPos = m_aTypeControl.GetPosPixel();
75 	Size aNewSize(m_aTypeControl.GetSizePixel().Width(),nHeight - aPos.Y()-6);
76 
77     aflSize = m_aTypeControl.GetSizePixel();
78 	m_aTypeControl.SetPosSizePixel(aPos,aNewSize);
79 }
80 // -----------------------------------------------------------------------------
81 SvParser* OWizNormalExtend::createReader(sal_Int32 /*_nRows*/)
82 {
83 	return NULL;
84 }
85 // -----------------------------------------------------------------------------
86 
87 
88 
89