1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
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.
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).
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.
27 ************************************************************************/
29 #ifndef _XMLOFF_XMLSECTIONSOURCEDDEIMPORTCONTEXT_HXX_
30 #define _XMLOFF_XMLSECTIONSOURCEDDEIMPORTCONTEXT_HXX_
32 #include <xmloff/xmlictxt.hxx>
33 #include <com/sun/star/uno/Reference.h>
35 namespace com
{ namespace sun
{ namespace star
{
36 namespace beans
{ class XPropertySet
; }
37 namespace xml
{ namespace sax
{ class XAttributeList
; } }
39 namespace rtl
{ class OUString
; }
41 class XMLSectionSourceDDEImportContext
: public SvXMLImportContext
43 ::com::sun::star::uno::Reference
<
44 ::com::sun::star::beans::XPropertySet
> & rSectionPropertySet
;
46 const ::rtl::OUString sDdeCommandFile
;
47 const ::rtl::OUString sDdeCommandType
;
48 const ::rtl::OUString sDdeCommandElement
;
49 const ::rtl::OUString sIsAutomaticUpdate
;
55 XMLSectionSourceDDEImportContext(
58 const ::rtl::OUString
& rLocalName
,
59 ::com::sun::star::uno::Reference
<
60 ::com::sun::star::beans::XPropertySet
> & rSectPropSet
);
62 ~XMLSectionSourceDDEImportContext();
66 virtual void StartElement(
67 const ::com::sun::star::uno::Reference
<
68 ::com::sun::star::xml::sax::XAttributeList
> & xAttrList
);
70 virtual void EndElement();
72 virtual SvXMLImportContext
*CreateChildContext(
74 const ::rtl::OUString
& rLocalName
,
75 const ::com::sun::star::uno::Reference
<
76 ::com::sun::star::xml::sax::XAttributeList
> & xAttrList
);
81 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */