Update ooo320-m1
[ooovba.git] / xmloff / source / forms / formlayerimport.cxx
blob0c903a420463d1c834f2f80a220dd9a55bd5d1fb
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: formlayerimport.cxx,v $
10 * $Revision: 1.17 $
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_xmloff.hxx"
33 #include <xmloff/formlayerimport.hxx>
34 #include "layerimport.hxx"
36 //.........................................................................
37 namespace xmloff
39 //.........................................................................
41 using namespace ::com::sun::star::uno;
42 using namespace ::com::sun::star::lang;
43 using namespace ::com::sun::star::beans;
44 using namespace ::com::sun::star::container;
45 using namespace ::com::sun::star::drawing;
46 using namespace ::com::sun::star::xml;
48 //=====================================================================
49 //= OFormLayerXMLExport
50 //=====================================================================
52 //---------------------------------------------------------------------
53 OFormLayerXMLImport::OFormLayerXMLImport(SvXMLImport& _rImporter)
54 :m_pImpl(NULL)
56 m_pImpl = new OFormLayerXMLImport_Impl(_rImporter);
59 //---------------------------------------------------------------------
60 OFormLayerXMLImport::~OFormLayerXMLImport()
62 delete m_pImpl;
65 //---------------------------------------------------------------------
66 ::vos::ORef< SvXMLImportPropertyMapper > OFormLayerXMLImport::getStylePropertyMapper() const
68 return m_pImpl->getStylePropertyMapper();
71 //---------------------------------------------------------------------
72 void OFormLayerXMLImport::setAutoStyleContext(SvXMLStylesContext* _pNewContext)
74 m_pImpl->setAutoStyleContext(_pNewContext);
77 //---------------------------------------------------------------------
78 void OFormLayerXMLImport::seekPage(const Reference< XDrawPage >& _rxDrawPage)
80 m_pImpl->seekPage(_rxDrawPage);
83 //---------------------------------------------------------------------
84 void OFormLayerXMLImport::startPage(const Reference< XDrawPage >& _rxDrawPage)
86 m_pImpl->startPage(_rxDrawPage);
89 //---------------------------------------------------------------------
90 void OFormLayerXMLImport::endPage()
92 m_pImpl->endPage();
95 //---------------------------------------------------------------------
96 Reference< XPropertySet > OFormLayerXMLImport::lookupControl(const ::rtl::OUString& _rId)
98 return m_pImpl->lookupControlId(_rId);
101 //---------------------------------------------------------------------
102 SvXMLImportContext* OFormLayerXMLImport::createOfficeFormsContext(
103 SvXMLImport& _rImport,
104 sal_uInt16 _nPrefix,
105 const rtl::OUString& _rLocalName)
107 return m_pImpl->createOfficeFormsContext(_rImport, _nPrefix, _rLocalName);
110 //---------------------------------------------------------------------
111 SvXMLImportContext* OFormLayerXMLImport::createContext(const sal_uInt16 _nPrefix, const rtl::OUString& _rLocalName,
112 const Reference< sax::XAttributeList >& _rxAttribs)
114 return m_pImpl->createContext(_nPrefix, _rLocalName, _rxAttribs);
117 //---------------------------------------------------------------------
118 void OFormLayerXMLImport::applyControlNumberStyle(const Reference< XPropertySet >& _rxControlModel, const ::rtl::OUString& _rControlNumerStyleName)
120 m_pImpl->applyControlNumberStyle(_rxControlModel, _rControlNumerStyleName);
123 //---------------------------------------------------------------------
124 void OFormLayerXMLImport::documentDone( )
126 m_pImpl->documentDone( );
129 //.........................................................................
130 } // namespace xmloff
131 //.........................................................................