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#pragma once
21
22#include <com/sun/star/drawing/XShapes.hpp>
23#include <com/sun/star/drawing/HomogenMatrix.hpp>
24#include "ximpshap.hxx"
25
26// common shape context
27
29{
30 // the shape group this object should be created inside
31
32 css::drawing::HomogenMatrix mxHomMat;
34
35public:
36
38 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
39 css::uno::Reference< css::drawing::XShapes > const & rShapes);
40 virtual ~SdXML3DObjectContext() override;
41
42 virtual void SAL_CALL startFastElement(
43 sal_Int32 nElement,
44 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
45};
46
47// dr3d:3dcube context
48
50{
53
54public:
55
57 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
58 css::uno::Reference< css::drawing::XShapes > const & rShapes);
59 virtual ~SdXML3DCubeObjectShapeContext() override;
60
61 virtual void SAL_CALL startFastElement(
62 sal_Int32 nElement,
63 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
64};
65
66// dr3d:3dsphere context
67
69{
72
73public:
74
76 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
77 css::uno::Reference< css::drawing::XShapes > const & rShapes);
78 virtual ~SdXML3DSphereObjectShapeContext() override;
79
80 virtual void SAL_CALL startFastElement(
81 sal_Int32 nElement,
82 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
83};
84
85// polygonbased context
86
88{
89 OUString maPoints;
90 OUString maViewBox;
91
92public:
93
95 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
96 css::uno::Reference< css::drawing::XShapes > const & rShapes);
97 virtual ~SdXML3DPolygonBasedShapeContext() override;
98
99 virtual void SAL_CALL startFastElement(
100 sal_Int32 nElement,
101 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
102};
103
104// dr3d:3dlathe context
105
107{
108public:
109
111 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
112 css::uno::Reference< css::drawing::XShapes > const & rShapes);
113 virtual ~SdXML3DLatheObjectShapeContext() override;
114
115 virtual void SAL_CALL startFastElement(
116 sal_Int32 nElement,
117 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
118};
119
120// dr3d:3dextrude context
121
123{
124public:
125
127 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
128 css::uno::Reference< css::drawing::XShapes > const & rShapes);
129 virtual ~SdXML3DExtrudeObjectShapeContext() override;
130
131 virtual void SAL_CALL startFastElement(
132 sal_Int32 nElement,
133 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
134};
135
136/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
::basegfx::B3DVector maMaxEdge
::basegfx::B3DVector maMinEdge
SdXML3DCubeObjectShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
virtual ~SdXML3DCubeObjectShapeContext() override
SdXML3DExtrudeObjectShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
virtual ~SdXML3DExtrudeObjectShapeContext() override
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
virtual ~SdXML3DLatheObjectShapeContext() override
SdXML3DLatheObjectShapeContext(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)
css::drawing::HomogenMatrix mxHomMat
virtual ~SdXML3DObjectContext() override
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
SdXML3DPolygonBasedShapeContext(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
SdXML3DSphereObjectShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
::basegfx::B3DVector maSphereSize
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
::basegfx::B3DVector maCenter
virtual ~SdXML3DSphereObjectShapeContext() override
friend class SvXMLImport
Definition: xmlictxt.hxx:49