merge the formfield patch from ooo-build
[ooovba.git] / xmloff / source / xforms / SchemaSimpleTypeContext.hxx
blobdecb80f8d45a6b55b7d7c92ca2b3287d4a1496f3
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: SchemaSimpleTypeContext.hxx,v $
10 * $Revision: 1.4 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _XMLOFF_SCHEMASIMPLETYPECONTEXT_HXX
32 #define _XMLOFF_SCHEMASIMPLETYPECONTEXT_HXX
36 // include for parent class and members
39 #include "TokenContext.hxx"
40 #include <com/sun/star/uno/Reference.hxx>
44 // forward declarations
47 namespace com { namespace sun { namespace star {
48 namespace xml { namespace sax { class XAttributeList; } }
49 namespace beans { class XPropertySet; }
50 namespace xforms { class XDataTypeRepository; }
51 } } }
52 namespace rtl { class OUString; }
53 class SvXMLImport;
54 class SvXMLImportContext;
56 /** import the xsd:simpleType element */
57 class SchemaSimpleTypeContext : public TokenContext
59 com::sun::star::uno::Reference<com::sun::star::xforms::XDataTypeRepository> mxRepository;
60 rtl::OUString msTypeName;
62 public:
64 SchemaSimpleTypeContext( SvXMLImport& rImport,
65 USHORT nPrfx,
66 const ::rtl::OUString& rLName,
67 const com::sun::star::uno::Reference<com::sun::star::xforms::XDataTypeRepository>& rRepository );
69 virtual ~SchemaSimpleTypeContext();
73 // implement TokenContext methods:
76 protected:
78 virtual void HandleAttribute(
79 sal_uInt16 nToken,
80 const rtl::OUString& rValue );
82 virtual SvXMLImportContext* HandleChild(
83 sal_uInt16 nToken,
84 sal_uInt16 nPrefix,
85 const rtl::OUString& rLocalName,
86 const com::sun::star::uno::Reference<com::sun::star::xml::sax::XAttributeList>& xAttrList );
89 #endif