Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
12 : : * OpenOffice.org is free software: you can redistribute it and/or modify
13 : : * it under the terms of the GNU Lesser General Public License version 3
14 : : * only, as published by the Free Software Foundation.
15 : : *
16 : : * OpenOffice.org is distributed in the hope that it will be useful,
17 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : : * GNU Lesser General Public License version 3 for more details
20 : : * (a copy is included in the LICENSE file that accompanied this code).
21 : : *
22 : : * You should have received a copy of the GNU Lesser General Public License
23 : : * version 3 along with OpenOffice.org. If not, see
24 : : * <http://www.openoffice.org/license.html>
25 : : * for a copy of the LGPLv3 License.
26 : : *
27 : : ************************************************************************/
28 : :
29 : : #ifndef _XMLOFF_FORMS_CALLBACKS_HXX_
30 : : #define _XMLOFF_FORMS_CALLBACKS_HXX_
31 : :
32 : : #include <com/sun/star/container/XIndexAccess.hpp>
33 : : #include <com/sun/star/lang/XMultiServiceFactory.hpp>
34 : : #include <com/sun/star/beans/XPropertySet.hpp>
35 : : #include <com/sun/star/script/ScriptEventDescriptor.hpp>
36 : : #include <rtl/ref.hxx>
37 : :
38 : : class SvXMLExport;
39 : : class SvXMLExportPropertyMapper;
40 : :
41 : : //.........................................................................
42 : : namespace xmloff
43 : : {
44 : : //.........................................................................
45 : :
46 : : //=====================================================================
47 : : //= IFormsExportContext
48 : : //=====================================================================
49 : 43 : class IFormsExportContext
50 : : {
51 : : public:
52 : : virtual SvXMLExport& getGlobalContext() = 0;
53 : : virtual ::rtl::Reference< SvXMLExportPropertyMapper > getStylePropertyMapper() = 0;
54 : :
55 : : /** steps through a collection and exports all children of this collection
56 : : */
57 : : virtual void exportCollectionElements(
58 : : const ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexAccess >& _rxCollection) = 0;
59 : :
60 : : virtual ::rtl::OUString getObjectStyleName(
61 : : const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& _rxObject ) = 0;
62 : :
63 : : protected:
64 : 43 : ~IFormsExportContext() {}
65 : : };
66 : :
67 : : //=====================================================================
68 : : //= IEventAttacherManager
69 : : //=====================================================================
70 : 366 : class IEventAttacherManager
71 : : {
72 : : public:
73 : : virtual void registerEvents(
74 : : const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& _rxElement,
75 : : const ::com::sun::star::uno::Sequence< ::com::sun::star::script::ScriptEventDescriptor >& _rEvents
76 : : ) = 0;
77 : :
78 : : protected:
79 : 366 : ~IEventAttacherManager() {}
80 : : };
81 : :
82 : : //=====================================================================
83 : : //= IEventAttacher
84 : : //=====================================================================
85 : 49 : class IEventAttacher
86 : : {
87 : : public:
88 : : virtual void registerEvents(
89 : : const ::com::sun::star::uno::Sequence< ::com::sun::star::script::ScriptEventDescriptor >& _rEvents
90 : : ) = 0;
91 : :
92 : : protected:
93 : 49 : ~IEventAttacher() {}
94 : : };
95 : :
96 : : //.........................................................................
97 : : } // namespace xmloff
98 : : //.........................................................................
99 : :
100 : : #endif // _XMLOFF_FORMS_CALLBACKS_HXX_
101 : :
102 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|