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 <xmloff/xmlexp.hxx>
22 #include "layerexport.hxx"
23 #include <osl/diagnose.h>
24 #include "officeforms.hxx"
29 using namespace ::com::sun::star::uno
;
30 using namespace ::com::sun::star::awt
;
31 using namespace ::com::sun::star::beans
;
32 using namespace ::com::sun::star::drawing
;
34 //= OFormLayerXMLExport
36 OFormLayerXMLExport::OFormLayerXMLExport(SvXMLExport
& _rContext
)
37 :m_pImpl(new OFormLayerXMLExport_Impl(_rContext
))
41 OFormLayerXMLExport::~OFormLayerXMLExport()
45 bool OFormLayerXMLExport::seekPage(const Reference
< XDrawPage
>& _rxDrawPage
)
47 return m_pImpl
->seekPage(_rxDrawPage
);
50 OUString
OFormLayerXMLExport::getControlId(const Reference
< XPropertySet
>& _rxControl
)
52 return m_pImpl
->getControlId(_rxControl
);
55 OUString
OFormLayerXMLExport::getControlNumberStyle( const Reference
< XPropertySet
>& _rxControl
)
57 return m_pImpl
->getControlNumberStyle(_rxControl
);
60 void OFormLayerXMLExport::examineForms(const Reference
< XDrawPage
>& _rxDrawPage
)
64 m_pImpl
->examineForms(_rxDrawPage
);
68 OSL_FAIL("OFormLayerXMLExport::examine: could not examine the draw page!");
72 void OFormLayerXMLExport::exportForms(const Reference
< XDrawPage
>& _rxDrawPage
)
74 m_pImpl
->exportForms(_rxDrawPage
);
77 void OFormLayerXMLExport::exportXForms() const
79 m_pImpl
->exportXForms();
82 bool OFormLayerXMLExport::pageContainsForms( const Reference
< XDrawPage
>& _rxDrawPage
)
84 return OFormLayerXMLExport_Impl::pageContainsForms( _rxDrawPage
);
87 bool OFormLayerXMLExport::documentContainsXForms() const
89 return m_pImpl
->documentContainsXForms();
92 void OFormLayerXMLExport::exportAutoControlNumberStyles()
94 m_pImpl
->exportAutoControlNumberStyles();
97 void OFormLayerXMLExport::exportAutoStyles()
99 m_pImpl
->exportAutoStyles();
102 void OFormLayerXMLExport::excludeFromExport( const Reference
< XControlModel
>& _rxControl
)
104 m_pImpl
->excludeFromExport( _rxControl
);
107 //= OOfficeFormsExport
108 OOfficeFormsExport::OOfficeFormsExport( SvXMLExport
& _rExp
)
109 :m_pImpl( new OFormsRootExport(_rExp
) )
113 OOfficeFormsExport::~OOfficeFormsExport()
117 } // namespace xmloff
119 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */