Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
12 : : * OpenOffice.org is free software: you can redistribute it and/or modify
13 : : * it under the terms of the GNU Lesser General Public License version 3
14 : : * only, as published by the Free Software Foundation.
15 : : *
16 : : * OpenOffice.org is distributed in the hope that it will be useful,
17 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : : * GNU Lesser General Public License version 3 for more details
20 : : * (a copy is included in the LICENSE file that accompanied this code).
21 : : *
22 : : * You should have received a copy of the GNU Lesser General Public License
23 : : * version 3 along with OpenOffice.org. If not, see
24 : : * <http://www.openoffice.org/license.html>
25 : : * for a copy of the LGPLv3 License.
26 : : *
27 : : ************************************************************************/
28 : :
29 : : #include <xmloff/formlayerimport.hxx>
30 : : #include "layerimport.hxx"
31 : :
32 : : //.........................................................................
33 : : namespace xmloff
34 : : {
35 : : //.........................................................................
36 : :
37 : : using namespace ::com::sun::star::uno;
38 : : using namespace ::com::sun::star::lang;
39 : : using namespace ::com::sun::star::beans;
40 : : using namespace ::com::sun::star::container;
41 : : using namespace ::com::sun::star::drawing;
42 : : using namespace ::com::sun::star::xml;
43 : :
44 : : //=====================================================================
45 : : //= OFormLayerXMLExport
46 : : //=====================================================================
47 : :
48 : : //---------------------------------------------------------------------
49 : 354 : OFormLayerXMLImport::OFormLayerXMLImport(SvXMLImport& _rImporter)
50 : 354 : :m_pImpl(NULL)
51 : : {
52 [ + - ][ + - ]: 354 : m_pImpl = new OFormLayerXMLImport_Impl(_rImporter);
53 : 354 : }
54 : :
55 : : //---------------------------------------------------------------------
56 : 354 : OFormLayerXMLImport::~OFormLayerXMLImport()
57 : : {
58 [ + - ][ + - ]: 354 : delete m_pImpl;
59 [ - + ]: 708 : }
60 : :
61 : : //---------------------------------------------------------------------
62 : 354 : void OFormLayerXMLImport::setAutoStyleContext(SvXMLStylesContext* _pNewContext)
63 : : {
64 : 354 : m_pImpl->setAutoStyleContext(_pNewContext);
65 : 354 : }
66 : :
67 : : //---------------------------------------------------------------------
68 : 238 : void OFormLayerXMLImport::startPage(const Reference< XDrawPage >& _rxDrawPage)
69 : : {
70 : 238 : m_pImpl->startPage(_rxDrawPage);
71 : 238 : }
72 : :
73 : : //---------------------------------------------------------------------
74 : 238 : void OFormLayerXMLImport::endPage()
75 : : {
76 : 238 : m_pImpl->endPage();
77 : 238 : }
78 : :
79 : : //---------------------------------------------------------------------
80 : 37 : Reference< XPropertySet > OFormLayerXMLImport::lookupControl(const ::rtl::OUString& _rId)
81 : : {
82 : 37 : return m_pImpl->lookupControlId(_rId);
83 : : }
84 : :
85 : : //---------------------------------------------------------------------
86 : 40 : SvXMLImportContext* OFormLayerXMLImport::createOfficeFormsContext(
87 : : SvXMLImport& _rImport,
88 : : sal_uInt16 _nPrefix,
89 : : const rtl::OUString& _rLocalName)
90 : : {
91 : 40 : return m_pImpl->createOfficeFormsContext(_rImport, _nPrefix, _rLocalName);
92 : : }
93 : :
94 : : //---------------------------------------------------------------------
95 : 12 : SvXMLImportContext* OFormLayerXMLImport::createContext(const sal_uInt16 _nPrefix, const rtl::OUString& _rLocalName,
96 : : const Reference< sax::XAttributeList >& _rxAttribs)
97 : : {
98 : 12 : return m_pImpl->createContext(_nPrefix, _rLocalName, _rxAttribs);
99 : : }
100 : :
101 : : //---------------------------------------------------------------------
102 : 0 : void OFormLayerXMLImport::applyControlNumberStyle(const Reference< XPropertySet >& _rxControlModel, const ::rtl::OUString& _rControlNumerStyleName)
103 : : {
104 : 0 : m_pImpl->applyControlNumberStyle(_rxControlModel, _rControlNumerStyleName);
105 : 0 : }
106 : :
107 : : //---------------------------------------------------------------------
108 : 354 : void OFormLayerXMLImport::documentDone( )
109 : : {
110 : 354 : m_pImpl->documentDone( );
111 : 354 : }
112 : :
113 : : //.........................................................................
114 : : } // namespace xmloff
115 : : //.........................................................................
116 : :
117 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|