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_xmloff.hxx"
30 #include <xmloff/formlayerimport.hxx>
31 #include "layerimport.hxx"
32 
33 //.........................................................................
34 namespace xmloff
35 {
36 //.........................................................................
37 
38 	using namespace ::com::sun::star::uno;
39 	using namespace ::com::sun::star::lang;
40 	using namespace ::com::sun::star::beans;
41 	using namespace ::com::sun::star::container;
42 	using namespace ::com::sun::star::drawing;
43 	using namespace ::com::sun::star::xml;
44 
45 	//=====================================================================
46 	//= OFormLayerXMLExport
47 	//=====================================================================
48 
49 	//---------------------------------------------------------------------
50 	OFormLayerXMLImport::OFormLayerXMLImport(SvXMLImport& _rImporter)
51 		:m_pImpl(NULL)
52 	{
53 		m_pImpl = new OFormLayerXMLImport_Impl(_rImporter);
54 	}
55 
56 	//---------------------------------------------------------------------
57 	OFormLayerXMLImport::~OFormLayerXMLImport()
58 	{
59 		delete m_pImpl;
60 	}
61 
62 	//---------------------------------------------------------------------
63 	void OFormLayerXMLImport::setAutoStyleContext(SvXMLStylesContext* _pNewContext)
64 	{
65 		m_pImpl->setAutoStyleContext(_pNewContext);
66 	}
67 
68 	//---------------------------------------------------------------------
69 	void OFormLayerXMLImport::seekPage(const Reference< XDrawPage >& _rxDrawPage)
70 	{
71 		m_pImpl->seekPage(_rxDrawPage);
72 	}
73 
74 	//---------------------------------------------------------------------
75 	void OFormLayerXMLImport::startPage(const Reference< XDrawPage >& _rxDrawPage)
76 	{
77 		m_pImpl->startPage(_rxDrawPage);
78 	}
79 
80 	//---------------------------------------------------------------------
81 	void OFormLayerXMLImport::endPage()
82 	{
83 		m_pImpl->endPage();
84 	}
85 
86 	//---------------------------------------------------------------------
87 	Reference< XPropertySet > OFormLayerXMLImport::lookupControl(const ::rtl::OUString& _rId)
88 	{
89 		return m_pImpl->lookupControlId(_rId);
90 	}
91 
92 	//---------------------------------------------------------------------
93 	SvXMLImportContext* OFormLayerXMLImport::createOfficeFormsContext(
94 		SvXMLImport& _rImport,
95 		sal_uInt16 _nPrefix,
96 		const rtl::OUString& _rLocalName)
97 	{
98 		return m_pImpl->createOfficeFormsContext(_rImport, _nPrefix, _rLocalName);
99 	}
100 
101 	//---------------------------------------------------------------------
102 	SvXMLImportContext* OFormLayerXMLImport::createContext(const sal_uInt16 _nPrefix, const rtl::OUString& _rLocalName,
103 		const Reference< sax::XAttributeList >& _rxAttribs)
104 	{
105 		return m_pImpl->createContext(_nPrefix, _rLocalName, _rxAttribs);
106 	}
107 
108 	//---------------------------------------------------------------------
109 	void OFormLayerXMLImport::applyControlNumberStyle(const Reference< XPropertySet >& _rxControlModel, const ::rtl::OUString& _rControlNumerStyleName)
110 	{
111 		m_pImpl->applyControlNumberStyle(_rxControlModel, _rControlNumerStyleName);
112 	}
113 
114 	//---------------------------------------------------------------------
115 	void OFormLayerXMLImport::documentDone( )
116     {
117         m_pImpl->documentDone( );
118     }
119 
120 //.........................................................................
121 }	// namespace xmloff
122 //.........................................................................
123 
124