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: WExtendPages.cxx,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 ************************************************************************/
31 // MARKER(update_precomp.py): autogen include statement, do not remove
32 #include "precompiled_dbaccess.hxx"
33 #ifndef DBAUI_WIZ_EXTENDPAGES_HXX
34 #include "WExtendPages.hxx"
36 #ifndef DBAUI_RTFREADER_HXX
37 #include "RtfReader.hxx"
39 #ifndef DBAUI_HTMLREADER_HXX
40 #include "HtmlReader.hxx"
42 #ifndef DBAUI_WIZ_COPYTABLEDIALOG_HXX
43 #include "WCopyTable.hxx"
46 using namespace dbaui
;
47 //========================================================================
48 SvParser
* OWizHTMLExtend::createReader(sal_Int32 _nRows
)
50 return new OHTMLReader(*m_pParserStream
,
52 m_pParent
->GetColumnPositions(),
53 m_pParent
->GetFormatter(),
54 m_pParent
->GetFactory(),
55 m_pParent
->getDestVector(),
56 m_pParent
->getTypeInfo(),
57 m_pParent
->shouldCreatePrimaryKey());
59 //========================================================================
60 SvParser
* OWizRTFExtend::createReader(sal_Int32 _nRows
)
62 return new ORTFReader(*m_pParserStream
,
64 m_pParent
->GetColumnPositions(),
65 m_pParent
->GetFormatter(),
66 m_pParent
->GetFactory(),
67 m_pParent
->getDestVector(),
68 m_pParent
->getTypeInfo(),
69 m_pParent
->shouldCreatePrimaryKey());
71 //========================================================================
72 OWizNormalExtend::OWizNormalExtend(Window
* pParent
) : OWizTypeSelect( pParent
)
74 EnableAuto(sal_False
);
75 Size
aflSize( m_flColumns
.GetSizePixel() );
76 Point
aPos(m_flColumns
.GetPosPixel());
78 m_flColumns
.SetPosSizePixel(aPos
, aflSize
);
80 sal_Int32 nHeight
= m_lbColumnNames
.GetSizePixel().Height() +6;
81 aPos
= m_aTypeControl
.GetPosPixel();
82 Size
aNewSize(m_aTypeControl
.GetSizePixel().Width(),nHeight
- aPos
.Y()-6);
84 aflSize
= m_aTypeControl
.GetSizePixel();
85 m_aTypeControl
.SetPosSizePixel(aPos
,aNewSize
);
87 // -----------------------------------------------------------------------------
88 SvParser
* OWizNormalExtend::createReader(sal_Int32
/*_nRows*/)
92 // -----------------------------------------------------------------------------