LibreOffice Module xmloff (master)  1
ximp3dobject.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
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/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
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 .
18  */
19 
20 #ifndef INCLUDED_XMLOFF_SOURCE_DRAW_XIMP3DOBJECT_HXX
21 #define INCLUDED_XMLOFF_SOURCE_DRAW_XIMP3DOBJECT_HXX
22 
23 #include <com/sun/star/drawing/XShapes.hpp>
24 #include <com/sun/star/drawing/HomogenMatrix.hpp>
25 #include "ximpshap.hxx"
26 
27 // common shape context
28 
30 {
31  // the shape group this object should be created inside
32 
33  css::drawing::HomogenMatrix mxHomMat;
35 
36 public:
37 
39  const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
40  css::uno::Reference< css::drawing::XShapes > const & rShapes);
41  virtual ~SdXML3DObjectContext() override;
42 
43  virtual void SAL_CALL startFastElement(
44  sal_Int32 nElement,
45  const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
46 };
47 
48 // dr3d:3dcube context
49 
51 {
54 
55 public:
56 
58  const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
59  css::uno::Reference< css::drawing::XShapes > const & rShapes);
60  virtual ~SdXML3DCubeObjectShapeContext() override;
61 
62  virtual void SAL_CALL startFastElement(
63  sal_Int32 nElement,
64  const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
65 };
66 
67 // dr3d:3dsphere context
68 
70 {
73 
74 public:
75 
77  const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
78  css::uno::Reference< css::drawing::XShapes > const & rShapes);
79  virtual ~SdXML3DSphereObjectShapeContext() override;
80 
81  virtual void SAL_CALL startFastElement(
82  sal_Int32 nElement,
83  const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
84 };
85 
86 // polygonbased context
87 
89 {
90  OUString maPoints;
91  OUString maViewBox;
92 
93 public:
94 
96  const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
97  css::uno::Reference< css::drawing::XShapes > const & rShapes);
98  virtual ~SdXML3DPolygonBasedShapeContext() override;
99 
100  virtual void SAL_CALL startFastElement(
101  sal_Int32 nElement,
102  const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
103 };
104 
105 // dr3d:3dlathe context
106 
108 {
109 public:
110 
112  const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
113  css::uno::Reference< css::drawing::XShapes > const & rShapes);
114  virtual ~SdXML3DLatheObjectShapeContext() override;
115 
116  virtual void SAL_CALL startFastElement(
117  sal_Int32 nElement,
118  const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
119 };
120 
121 // dr3d:3dextrude context
122 
124 {
125 public:
126 
128  const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
129  css::uno::Reference< css::drawing::XShapes > const & rShapes);
130  virtual ~SdXML3DExtrudeObjectShapeContext() override;
131 
132  virtual void SAL_CALL startFastElement(
133  sal_Int32 nElement,
134  const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
135 };
136 
137 #endif // INCLUDED_XMLOFF_SOURCE_DRAW_XIMP3DOBJECT_HXX
138 
139 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SdXML3DExtrudeObjectShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
SdXML3DObjectContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
virtual ~SdXML3DPolygonBasedShapeContext() override
SdXML3DCubeObjectShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
SdXML3DPolygonBasedShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
css::drawing::HomogenMatrix mxHomMat
virtual ~SdXML3DCubeObjectShapeContext() override
SdXML3DLatheObjectShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
::basegfx::B3DVector maMinEdge
::basegfx::B3DVector maMaxEdge
SdXML3DSphereObjectShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
virtual ~SdXML3DObjectContext() override
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
virtual ~SdXML3DExtrudeObjectShapeContext() override
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
virtual ~SdXML3DLatheObjectShapeContext() override
::basegfx::B3DVector maCenter
virtual ~SdXML3DSphereObjectShapeContext() override
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
::basegfx::B3DVector maSphereSize
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override