1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 28 // MARKER(update_precomp.py): autogen include statement, do not remove 29 #include "precompiled_dbaccess.hxx" 30 #ifndef DBAUI_WIZ_EXTENDPAGES_HXX 31 #include "WExtendPages.hxx" 32 #endif 33 #ifndef DBAUI_RTFREADER_HXX 34 #include "RtfReader.hxx" 35 #endif 36 #ifndef DBAUI_HTMLREADER_HXX 37 #include "HtmlReader.hxx" 38 #endif 39 #ifndef DBAUI_WIZ_COPYTABLEDIALOG_HXX 40 #include "WCopyTable.hxx" 41 #endif 42 43 using namespace dbaui; 44 //======================================================================== 45 SvParser* OWizHTMLExtend::createReader(sal_Int32 _nRows) 46 { 47 return new OHTMLReader(*m_pParserStream, 48 _nRows, 49 m_pParent->GetColumnPositions(), 50 m_pParent->GetFormatter(), 51 m_pParent->GetFactory(), 52 m_pParent->getDestVector(), 53 m_pParent->getTypeInfo(), 54 m_pParent->shouldCreatePrimaryKey()); 55 } 56 //======================================================================== 57 SvParser* OWizRTFExtend::createReader(sal_Int32 _nRows) 58 { 59 return new ORTFReader(*m_pParserStream, 60 _nRows, 61 m_pParent->GetColumnPositions(), 62 m_pParent->GetFormatter(), 63 m_pParent->GetFactory(), 64 m_pParent->getDestVector(), 65 m_pParent->getTypeInfo(), 66 m_pParent->shouldCreatePrimaryKey()); 67 } 68 //======================================================================== 69 OWizNormalExtend::OWizNormalExtend(Window* pParent) : OWizTypeSelect( pParent ) 70 { 71 EnableAuto(sal_False); 72 Size aflSize( m_flColumns.GetSizePixel() ); 73 Point aPos(m_flColumns.GetPosPixel()); 74 75 m_flColumns.SetPosSizePixel(aPos, aflSize ); 76 77 sal_Int32 nHeight = m_lbColumnNames.GetSizePixel().Height() +6; 78 aPos = m_aTypeControl.GetPosPixel(); 79 Size aNewSize(m_aTypeControl.GetSizePixel().Width(),nHeight - aPos.Y()-6); 80 81 aflSize = m_aTypeControl.GetSizePixel(); 82 m_aTypeControl.SetPosSizePixel(aPos,aNewSize); 83 } 84 // ----------------------------------------------------------------------------- 85 SvParser* OWizNormalExtend::createReader(sal_Int32 /*_nRows*/) 86 { 87 return NULL; 88 } 89 // ----------------------------------------------------------------------------- 90 91 92 93