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::XAttributeList>& xAttrList,
40  css::uno::Reference< css::drawing::XShapes > const & rShapes);
41  virtual ~SdXML3DObjectContext() override;
42 
43  virtual void StartElement(const css::uno::Reference< css::xml::sax::XAttributeList>& xAttrList) override;
44 };
45 
46 // dr3d:3dcube context
47 
49 {
52 
53 public:
54 
56  const css::uno::Reference< css::xml::sax::XAttributeList>& xAttrList,
57  css::uno::Reference< css::drawing::XShapes > const & rShapes);
58  virtual ~SdXML3DCubeObjectShapeContext() override;
59 
60  virtual void StartElement(const css::uno::Reference< css::xml::sax::XAttributeList>& xAttrList) override;
61 };
62 
63 // dr3d:3dsphere context
64 
66 {
69 
70 public:
71 
73  const css::uno::Reference< css::xml::sax::XAttributeList>& xAttrList,
74  css::uno::Reference< css::drawing::XShapes > const & rShapes);
75  virtual ~SdXML3DSphereObjectShapeContext() override;
76 
77  virtual void StartElement(const css::uno::Reference< css::xml::sax::XAttributeList>& xAttrList) override;
78 };
79 
80 // polygonbased context
81 
83 {
84  OUString maPoints;
85  OUString maViewBox;
86 
87 public:
88 
90  const css::uno::Reference< css::xml::sax::XAttributeList>& xAttrList,
91  css::uno::Reference< css::drawing::XShapes > const & rShapes);
92  virtual ~SdXML3DPolygonBasedShapeContext() override;
93 
94  virtual void StartElement(const css::uno::Reference< css::xml::sax::XAttributeList>& xAttrList) override;
95 };
96 
97 // dr3d:3dlathe context
98 
100 {
101 public:
102 
104  const css::uno::Reference< css::xml::sax::XAttributeList>& xAttrList,
105  css::uno::Reference< css::drawing::XShapes > const & rShapes);
106  virtual ~SdXML3DLatheObjectShapeContext() override;
107 
108  virtual void StartElement(const css::uno::Reference< css::xml::sax::XAttributeList>& xAttrList) override;
109 };
110 
111 // dr3d:3dextrude context
112 
114 {
115 public:
116 
118  const css::uno::Reference< css::xml::sax::XAttributeList>& xAttrList,
119  css::uno::Reference< css::drawing::XShapes > const & rShapes);
120  virtual ~SdXML3DExtrudeObjectShapeContext() override;
121 
122  virtual void StartElement(const css::uno::Reference< css::xml::sax::XAttributeList>& xAttrList) override;
123 };
124 
125 #endif // INCLUDED_XMLOFF_SOURCE_DRAW_XIMP3DOBJECT_HXX
126 
127 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void StartElement(const css::uno::Reference< css::xml::sax::XAttributeList > &xAttrList) override
StartElement is called after a context has been constructed and before an elements context is parsed...
SdXML3DLatheObjectShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
SdXML3DSphereObjectShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
virtual void StartElement(const css::uno::Reference< css::xml::sax::XAttributeList > &xAttrList) override
StartElement is called after a context has been constructed and before an elements context is parsed...
virtual void StartElement(const css::uno::Reference< css::xml::sax::XAttributeList > &xAttrList) override
StartElement is called after a context has been constructed and before an elements context is parsed...
SdXML3DPolygonBasedShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
virtual ~SdXML3DPolygonBasedShapeContext() override
SdXML3DCubeObjectShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
css::drawing::HomogenMatrix mxHomMat
virtual ~SdXML3DCubeObjectShapeContext() override
::basegfx::B3DVector maMinEdge
::basegfx::B3DVector maMaxEdge
virtual ~SdXML3DObjectContext() override
SdXML3DObjectContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
virtual ~SdXML3DExtrudeObjectShapeContext() override
virtual void StartElement(const css::uno::Reference< css::xml::sax::XAttributeList > &xAttrList) override
StartElement is called after a context has been constructed and before an elements context is parsed...
virtual ~SdXML3DLatheObjectShapeContext() override
::basegfx::B3DVector maCenter
virtual void StartElement(const css::uno::Reference< css::xml::sax::XAttributeList > &xAttrList) override
StartElement is called after a context has been constructed and before an elements context is parsed...
virtual ~SdXML3DSphereObjectShapeContext() override
virtual void StartElement(const css::uno::Reference< css::xml::sax::XAttributeList > &xAttrList) override
StartElement is called after a context has been constructed and before an elements context is parsed...
::basegfx::B3DVector maSphereSize
SdXML3DExtrudeObjectShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)