update credits
[LibreOffice.git] / include / oox / drawingml / graphicshapecontext.hxx
blobc5984d503363b894a15235457c0535603361efd1
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 OOX_DRAWINGML_GRAPHICSHAPECONTEXT_HXX
21 #define OOX_DRAWINGML_GRAPHICSHAPECONTEXT_HXX
23 #include "oox/drawingml/shape.hxx"
24 #include "oox/drawingml/shapecontext.hxx"
25 #include "oox/dllapi.h"
27 namespace oox { namespace vml { struct OleObjectInfo; } }
29 namespace oox { namespace drawingml {
31 class OOX_DLLPUBLIC GraphicShapeContext : public ShapeContext
33 public:
34 GraphicShapeContext( ::oox::core::ContextHandler& rParent, ShapePtr pMasterShapePtr, ShapePtr pShapePtr );
36 virtual ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext( ::sal_Int32 Element, const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XFastAttributeList >& Attribs ) throw (::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException);
40 // ====================================================================
42 class OOX_DLLPUBLIC GraphicalObjectFrameContext : public ShapeContext
44 public:
45 GraphicalObjectFrameContext( ::oox::core::ContextHandler& rParent, ShapePtr pMasterShapePtr, ShapePtr pShapePtr, bool bEmbedShapesInChart );
47 virtual ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext( ::sal_Int32 Element, const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XFastAttributeList >& Attribs ) throw (::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException);
49 private:
50 bool mbEmbedShapesInChart;
53 // ====================================================================
55 class OleObjectGraphicDataContext : public ShapeContext
57 public:
58 OleObjectGraphicDataContext( ::oox::core::ContextHandler& rParent, ShapePtr pShapePtr );
59 ~OleObjectGraphicDataContext();
60 virtual ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext( ::sal_Int32 Element, const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XFastAttributeList >& Attribs ) throw (::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException);
62 private:
63 ::oox::vml::OleObjectInfo& mrOleObjectInfo;
66 // ====================================================================
68 class Diagram;
70 class DiagramGraphicDataContext
71 : public ShapeContext
73 public:
74 DiagramGraphicDataContext( ::oox::core::ContextHandler& rParent, ShapePtr pShapePtr );
75 virtual ~DiagramGraphicDataContext();
76 virtual ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext( ::sal_Int32 Element, const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XFastAttributeList >& Attribs ) throw (::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException);
78 private:
79 OUString msDm;
80 OUString msLo;
81 OUString msQs;
82 OUString msCs;
85 // ====================================================================
87 class ChartGraphicDataContext : public ShapeContext
89 public:
90 explicit ChartGraphicDataContext(
91 ::oox::core::ContextHandler& rParent,
92 const ShapePtr& rxShape, bool bEmbedShapes );
94 virtual ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XFastContextHandler > SAL_CALL
95 createFastChildContext(
96 sal_Int32 nElement,
97 const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XFastAttributeList >& rxAttribs )
98 throw (::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException);
100 private:
101 ChartShapeInfo& mrChartShapeInfo;
104 // ====================================================================
108 #endif // OOX_DRAWINGML_GRAPHICSHAPECONTEXT_HXX
110 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */