Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
5 : * This Source Code Form is subject to the terms of the Mozilla Public
6 : * License, v. 2.0. If a copy of the MPL was not distributed with this
7 : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
11 : * Licensed to the Apache Software Foundation (ASF) under one or more
12 : * contributor license agreements. See the NOTICE file distributed
13 : * with this work for additional information regarding copyright
14 : * ownership. The ASF licenses this file to you under the Apache
15 : * License, Version 2.0 (the "License"); you may not use this file
16 : * except in compliance with the License. You may obtain a copy of
17 : * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 : */
19 :
20 : #include <xmloff/formlayerimport.hxx>
21 : #include "layerimport.hxx"
22 :
23 : //.........................................................................
24 : namespace xmloff
25 : {
26 : //.........................................................................
27 :
28 : using namespace ::com::sun::star::uno;
29 : using namespace ::com::sun::star::lang;
30 : using namespace ::com::sun::star::beans;
31 : using namespace ::com::sun::star::container;
32 : using namespace ::com::sun::star::drawing;
33 : using namespace ::com::sun::star;
34 :
35 : //=====================================================================
36 : //= OFormLayerXMLExport
37 : //=====================================================================
38 :
39 : //---------------------------------------------------------------------
40 82 : OFormLayerXMLImport::OFormLayerXMLImport(SvXMLImport& _rImporter)
41 82 : :m_pImpl(NULL)
42 : {
43 82 : m_pImpl = new OFormLayerXMLImport_Impl(_rImporter);
44 82 : }
45 :
46 : //---------------------------------------------------------------------
47 246 : OFormLayerXMLImport::~OFormLayerXMLImport()
48 : {
49 82 : delete m_pImpl;
50 164 : }
51 :
52 : //---------------------------------------------------------------------
53 82 : void OFormLayerXMLImport::setAutoStyleContext(SvXMLStylesContext* _pNewContext)
54 : {
55 82 : m_pImpl->setAutoStyleContext(_pNewContext);
56 82 : }
57 :
58 : //---------------------------------------------------------------------
59 55 : void OFormLayerXMLImport::startPage(const Reference< XDrawPage >& _rxDrawPage)
60 : {
61 55 : m_pImpl->startPage(_rxDrawPage);
62 55 : }
63 :
64 : //---------------------------------------------------------------------
65 55 : void OFormLayerXMLImport::endPage()
66 : {
67 55 : m_pImpl->endPage();
68 55 : }
69 :
70 : //---------------------------------------------------------------------
71 0 : Reference< XPropertySet > OFormLayerXMLImport::lookupControl(const ::rtl::OUString& _rId)
72 : {
73 0 : return m_pImpl->lookupControlId(_rId);
74 : }
75 :
76 : //---------------------------------------------------------------------
77 2 : SvXMLImportContext* OFormLayerXMLImport::createOfficeFormsContext(
78 : SvXMLImport& _rImport,
79 : sal_uInt16 _nPrefix,
80 : const rtl::OUString& _rLocalName)
81 : {
82 2 : return m_pImpl->createOfficeFormsContext(_rImport, _nPrefix, _rLocalName);
83 : }
84 :
85 : //---------------------------------------------------------------------
86 0 : SvXMLImportContext* OFormLayerXMLImport::createContext(const sal_uInt16 _nPrefix, const rtl::OUString& _rLocalName,
87 : const Reference< xml::sax::XAttributeList >& _rxAttribs)
88 : {
89 0 : return m_pImpl->createContext(_nPrefix, _rLocalName, _rxAttribs);
90 : }
91 :
92 : //---------------------------------------------------------------------
93 0 : void OFormLayerXMLImport::applyControlNumberStyle(const Reference< XPropertySet >& _rxControlModel, const ::rtl::OUString& _rControlNumerStyleName)
94 : {
95 0 : m_pImpl->applyControlNumberStyle(_rxControlModel, _rControlNumerStyleName);
96 0 : }
97 :
98 : //---------------------------------------------------------------------
99 82 : void OFormLayerXMLImport::documentDone( )
100 : {
101 82 : m_pImpl->documentDone( );
102 82 : }
103 :
104 : //.........................................................................
105 : } // namespace xmloff
106 : //.........................................................................
107 :
108 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|