merge the formfield patch from ooo-build
[ooovba.git] / xmloff / source / draw / ximp3dscene.hxx
blob117cd71f3a2ee81c51915a3127ecd7f1ed8dbb8c
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: ximp3dscene.hxx,v $
10 * $Revision: 1.10 $
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 _XIMP3DSCENE_HXX
32 #define _XIMP3DSCENE_HXX
34 #include <xmloff/xmlictxt.hxx>
35 #include "sdxmlimp_impl.hxx"
36 #include <xmloff/nmspmap.hxx>
37 #include <com/sun/star/drawing/XShapes.hpp>
38 #include <tools/rtti.hxx>
39 #include <tools/color.hxx>
40 #include <ximpshap.hxx>
42 //////////////////////////////////////////////////////////////////////////////
43 // dr3d:3dscene context
45 class SdXML3DSceneShapeContext : public SdXMLShapeContext, public SdXML3DSceneAttributesHelper
47 // the shape group this group is working on
48 // this is the scene at the same time
49 com::sun::star::uno::Reference< com::sun::star::drawing::XShapes > mxChilds;
51 const SdXMLImport& GetSdImport() const { return (const SdXMLImport&)GetImport(); }
52 SdXMLImport& GetSdImport() { return (SdXMLImport&)GetImport(); }
54 protected:
55 void SetLocalShapesContext(com::sun::star::uno::Reference< com::sun::star::drawing::XShapes >& rNew)
56 { mxChilds = rNew; }
58 public:
59 TYPEINFO();
61 SdXML3DSceneShapeContext(
62 SvXMLImport& rImport,
63 USHORT nPrfx,
64 const rtl::OUString& rLocalName,
65 const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList,
66 com::sun::star::uno::Reference< com::sun::star::drawing::XShapes >& rShapes,
67 sal_Bool bTemporaryShape);
68 virtual ~SdXML3DSceneShapeContext();
70 virtual void StartElement(const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList);
71 virtual void EndElement();
73 virtual SvXMLImportContext *CreateChildContext(
74 USHORT nPrefix, const rtl::OUString& rLocalName,
75 const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList );
77 const com::sun::star::uno::Reference< com::sun::star::drawing::XShapes >& GetLocalShapesContext() const
78 { return mxShapes; }
79 com::sun::star::uno::Reference< com::sun::star::drawing::XShapes >& GetLocalShapesContext()
80 { return mxShapes; }
84 #endif // _XIMPGROUP_HXX