update credits
[LibreOffice.git] / xmloff / source / draw / ximp3dscene.hxx
blob8eea3ac00d2736a1fcefca21d4e00c56d78eef43
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef _XIMP3DSCENE_HXX
21 #define _XIMP3DSCENE_HXX
23 #include <xmloff/xmlictxt.hxx>
24 #include "sdxmlimp_impl.hxx"
25 #include <xmloff/nmspmap.hxx>
26 #include <com/sun/star/drawing/XShapes.hpp>
27 #include <tools/rtti.hxx>
28 #include <ximpshap.hxx>
30 //////////////////////////////////////////////////////////////////////////////
31 // dr3d:3dscene context
33 class SdXML3DSceneShapeContext : public SdXMLShapeContext, public SdXML3DSceneAttributesHelper
35 // the shape group this group is working on
36 // this is the scene at the same time
37 com::sun::star::uno::Reference< com::sun::star::drawing::XShapes > mxChildren;
39 const SdXMLImport& GetSdImport() const { return (const SdXMLImport&)GetImport(); }
40 SdXMLImport& GetSdImport() { return (SdXMLImport&)GetImport(); }
42 protected:
43 void SetLocalShapesContext(com::sun::star::uno::Reference< com::sun::star::drawing::XShapes >& rNew)
44 { mxChildren = rNew; }
46 public:
47 TYPEINFO();
49 SdXML3DSceneShapeContext(
50 SvXMLImport& rImport,
51 sal_uInt16 nPrfx,
52 const OUString& rLocalName,
53 const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList,
54 com::sun::star::uno::Reference< com::sun::star::drawing::XShapes >& rShapes,
55 sal_Bool bTemporaryShape);
56 virtual ~SdXML3DSceneShapeContext();
58 virtual void StartElement(const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList);
59 virtual void EndElement();
61 virtual SvXMLImportContext *CreateChildContext(
62 sal_uInt16 nPrefix, const OUString& rLocalName,
63 const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList );
65 const com::sun::star::uno::Reference< com::sun::star::drawing::XShapes >& GetLocalShapesContext() const
66 { return mxShapes; }
67 com::sun::star::uno::Reference< com::sun::star::drawing::XShapes >& GetLocalShapesContext()
68 { return mxShapes; }
72 #endif // _XIMPGROUP_HXX
74 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */