1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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"
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_rContext(_rContext
)
47 ,m_pImpl(new OFormLayerXMLExport_Impl(_rContext
))
51 OFormLayerXMLExport::~OFormLayerXMLExport()
57 bool OFormLayerXMLExport::seekPage(const Reference
< XDrawPage
>& _rxDrawPage
)
59 return m_pImpl
->seekPage(_rxDrawPage
);
62 OUString
OFormLayerXMLExport::getControlId(const Reference
< XPropertySet
>& _rxControl
)
64 return m_pImpl
->getControlId(_rxControl
);
67 OUString
OFormLayerXMLExport::getControlNumberStyle( const Reference
< XPropertySet
>& _rxControl
)
69 return m_pImpl
->getControlNumberStyle(_rxControl
);
72 void OFormLayerXMLExport::examineForms(const Reference
< XDrawPage
>& _rxDrawPage
)
76 m_pImpl
->examineForms(_rxDrawPage
);
80 OSL_FAIL("OFormLayerXMLExport::examine: could not examine the draw page!");
84 void OFormLayerXMLExport::exportForms(const Reference
< XDrawPage
>& _rxDrawPage
)
86 m_pImpl
->exportForms(_rxDrawPage
);
89 void OFormLayerXMLExport::exportXForms() const
91 m_pImpl
->exportXForms();
94 bool OFormLayerXMLExport::pageContainsForms( const Reference
< XDrawPage
>& _rxDrawPage
)
96 return OFormLayerXMLExport_Impl::pageContainsForms( _rxDrawPage
);
99 bool OFormLayerXMLExport::documentContainsXForms() const
101 return m_pImpl
->documentContainsXForms();
104 void OFormLayerXMLExport::exportAutoControlNumberStyles()
106 m_pImpl
->exportAutoControlNumberStyles();
109 void OFormLayerXMLExport::exportAutoStyles()
111 m_pImpl
->exportAutoStyles();
114 void OFormLayerXMLExport::excludeFromExport( const Reference
< XControlModel
>& _rxControl
)
116 m_pImpl
->excludeFromExport( _rxControl
);
119 //= OOfficeFormsExport
120 OOfficeFormsExport::OOfficeFormsExport( SvXMLExport
& _rExp
)
123 m_pImpl
= new OFormsRootExport(_rExp
);
126 OOfficeFormsExport::~OOfficeFormsExport()
131 } // namespace xmloff
133 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */