Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 : : *
5 : : * Copyright 2009 by Sun Microsystems, Inc.
6 : : *
7 : : * OpenOffice.org - a multi-platform office productivity suite
8 : : *
9 : : * This file is part of OpenOffice.org.
10 : : *
11 : : * OpenOffice.org is free software: you can redistribute it and/or modify
12 : : * it under the terms of the GNU Lesser General Public License version 3
13 : : * only, as published by the Free Software Foundation.
14 : : *
15 : : * OpenOffice.org is distributed in the hope that it will be useful,
16 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 : : * GNU Lesser General Public License version 3 for more details
19 : : * (a copy is included in the LICENSE file that accompanied this code).
20 : : *
21 : : * You should have received a copy of the GNU Lesser General Public License
22 : : * version 3 along with OpenOffice.org. If not, see
23 : : * <http://www.openoffice.org/license.html>
24 : : * for a copy of the LGPLv3 License.
25 : : ************************************************************************/
26 : :
27 : : #ifndef XML_SETTINGS_EXPORT_CONTEXT_HXX
28 : : #define XML_SETTINGS_EXPORT_CONTEXT_HXX
29 : :
30 : : #include <com/sun/star/lang/XMultiServiceFactory.hpp>
31 : :
32 : : #include "xmloff/xmltoken.hxx"
33 : :
34 : : //........................................................................
35 : : namespace xmloff
36 : : {
37 : : //........................................................................
38 : :
39 : : //====================================================================
40 : : //= XMLExporter
41 : : //====================================================================
42 : 0 : class SAL_NO_VTABLE XMLSettingsExportContext
43 : : {
44 : : public:
45 : : virtual void AddAttribute( enum ::xmloff::token::XMLTokenEnum i_eName,
46 : : const ::rtl::OUString& i_rValue ) = 0;
47 : : virtual void AddAttribute( enum ::xmloff::token::XMLTokenEnum i_eName,
48 : : enum ::xmloff::token::XMLTokenEnum i_eValue ) = 0;
49 : :
50 : : virtual void StartElement( enum ::xmloff::token::XMLTokenEnum i_eName,
51 : : const sal_Bool i_bIgnoreWhitespace ) = 0;
52 : : virtual void EndElement( const sal_Bool i_bIgnoreWhitespace ) = 0;
53 : :
54 : : virtual void Characters( const ::rtl::OUString& i_rCharacters ) = 0;
55 : :
56 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >
57 : : GetServiceFactory() const = 0;
58 : :
59 : : protected:
60 : 0 : ~XMLSettingsExportContext() {}
61 : : };
62 : :
63 : : //........................................................................
64 : : } // namespace xmloff
65 : : //........................................................................
66 : :
67 : : #endif // XML_SETTINGS_EXPORT_CONTEXT_HXX
68 : :
69 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|