Version 5.2.6.1, tag libreoffice-5.2.6.1
[LibreOffice.git] / xmloff / source / forms / formlayerexport.cxx
blob3cf618b80fba4b838b5c706ecd2710d791ca306f
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 "strings.hxx"
22 #include "elementexport.hxx"
23 #include <xmloff/xmlnmspe.hxx>
24 #include <xmloff/xmlexp.hxx>
25 #include "layerexport.hxx"
26 #include "propertyexport.hxx"
27 #include <osl/diagnose.h>
28 #include <comphelper/extract.hxx>
29 #include <com/sun/star/lang/XServiceInfo.hpp>
30 #include "officeforms.hxx"
32 namespace xmloff
35 using namespace ::com::sun::star::uno;
36 using namespace ::com::sun::star::lang;
37 using namespace ::com::sun::star::awt;
38 using namespace ::com::sun::star::beans;
39 using namespace ::com::sun::star::container;
40 using namespace ::com::sun::star::drawing;
41 using namespace ::com::sun::star::frame;
43 //= OFormLayerXMLExport
45 OFormLayerXMLExport::OFormLayerXMLExport(SvXMLExport& _rContext)
46 :m_pImpl(new OFormLayerXMLExport_Impl(_rContext))
50 OFormLayerXMLExport::~OFormLayerXMLExport()
54 bool OFormLayerXMLExport::seekPage(const Reference< XDrawPage >& _rxDrawPage)
56 return m_pImpl->seekPage(_rxDrawPage);
59 OUString OFormLayerXMLExport::getControlId(const Reference< XPropertySet >& _rxControl)
61 return m_pImpl->getControlId(_rxControl);
64 OUString OFormLayerXMLExport::getControlNumberStyle( const Reference< XPropertySet >& _rxControl )
66 return m_pImpl->getControlNumberStyle(_rxControl);
69 void OFormLayerXMLExport::examineForms(const Reference< XDrawPage >& _rxDrawPage)
71 try
73 m_pImpl->examineForms(_rxDrawPage);
75 catch(Exception&)
77 OSL_FAIL("OFormLayerXMLExport::examine: could not examine the draw page!");
81 void OFormLayerXMLExport::exportForms(const Reference< XDrawPage >& _rxDrawPage)
83 m_pImpl->exportForms(_rxDrawPage);
86 void OFormLayerXMLExport::exportXForms() const
88 m_pImpl->exportXForms();
91 bool OFormLayerXMLExport::pageContainsForms( const Reference< XDrawPage >& _rxDrawPage )
93 return OFormLayerXMLExport_Impl::pageContainsForms( _rxDrawPage );
96 bool OFormLayerXMLExport::documentContainsXForms() const
98 return m_pImpl->documentContainsXForms();
101 void OFormLayerXMLExport::exportAutoControlNumberStyles()
103 m_pImpl->exportAutoControlNumberStyles();
106 void OFormLayerXMLExport::exportAutoStyles()
108 m_pImpl->exportAutoStyles();
111 void OFormLayerXMLExport::excludeFromExport( const Reference< XControlModel >& _rxControl )
113 m_pImpl->excludeFromExport( _rxControl );
116 //= OOfficeFormsExport
117 OOfficeFormsExport::OOfficeFormsExport( SvXMLExport& _rExp )
118 :m_pImpl( new OFormsRootExport(_rExp) )
122 OOfficeFormsExport::~OOfficeFormsExport()
126 } // namespace xmloff
128 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */