bump product version to 7.6.3.2-android
[LibreOffice.git] / xmloff / source / forms / formlayerexport.cxx
blob661e83630e04b96554e5e9b23fc38fd38934e005
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #include <xmloff/formlayerexport.hxx>
21 #include <xmloff/xmlexp.hxx>
22 #include "layerexport.hxx"
23 #include <osl/diagnose.h>
24 #include "officeforms.hxx"
26 namespace xmloff
29 using namespace ::com::sun::star::uno;
30 using namespace ::com::sun::star::lang;
31 using namespace ::com::sun::star::awt;
32 using namespace ::com::sun::star::beans;
33 using namespace ::com::sun::star::container;
34 using namespace ::com::sun::star::drawing;
36 //= OFormLayerXMLExport
38 OFormLayerXMLExport::OFormLayerXMLExport(SvXMLExport& _rContext)
39 :m_pImpl(new OFormLayerXMLExport_Impl(_rContext))
43 OFormLayerXMLExport::~OFormLayerXMLExport()
47 bool OFormLayerXMLExport::seekPage(const Reference< XDrawPage >& _rxDrawPage)
49 return m_pImpl->seekPage(_rxDrawPage);
52 OUString OFormLayerXMLExport::getControlId(const Reference< XPropertySet >& _rxControl)
54 return m_pImpl->getControlId(_rxControl);
57 OUString OFormLayerXMLExport::getControlNumberStyle( const Reference< XPropertySet >& _rxControl )
59 return m_pImpl->getControlNumberStyle(_rxControl);
62 void OFormLayerXMLExport::examineForms(const Reference< XDrawPage >& _rxDrawPage)
64 try
66 m_pImpl->examineForms(_rxDrawPage);
68 catch(Exception&)
70 OSL_FAIL("OFormLayerXMLExport::examine: could not examine the draw page!");
74 void OFormLayerXMLExport::exportForms(const Reference< XDrawPage >& _rxDrawPage)
76 m_pImpl->exportForms(_rxDrawPage);
79 void OFormLayerXMLExport::exportXForms() const
81 m_pImpl->exportXForms();
84 bool OFormLayerXMLExport::pageContainsForms( const Reference< XDrawPage >& _rxDrawPage )
86 return OFormLayerXMLExport_Impl::pageContainsForms( _rxDrawPage );
89 bool OFormLayerXMLExport::documentContainsXForms() const
91 return m_pImpl->documentContainsXForms();
94 void OFormLayerXMLExport::exportAutoControlNumberStyles()
96 m_pImpl->exportAutoControlNumberStyles();
99 void OFormLayerXMLExport::exportAutoStyles()
101 m_pImpl->exportAutoStyles();
104 void OFormLayerXMLExport::excludeFromExport( const Reference< XControlModel >& _rxControl )
106 m_pImpl->excludeFromExport( _rxControl );
109 //= OOfficeFormsExport
110 OOfficeFormsExport::OOfficeFormsExport( SvXMLExport& _rExp )
111 :m_pImpl( new OFormsRootExport(_rExp) )
115 OOfficeFormsExport::~OOfficeFormsExport()
119 } // namespace xmloff
121 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */