LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/xmloff/source/draw - ximp3dobject.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 233 0.0 %
Date: 2013-07-09 Functions: 0 60 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       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             : #include <comphelper/extract.hxx>
      21             : #include "ximp3dobject.hxx"
      22             : #include <xmloff/XMLShapeStyleContext.hxx>
      23             : #include <xmloff/xmluconv.hxx>
      24             : #include <com/sun/star/beans/XPropertySet.hpp>
      25             : #include <com/sun/star/drawing/PointSequenceSequence.hpp>
      26             : #include <com/sun/star/drawing/PointSequence.hpp>
      27             : #include "xexptran.hxx"
      28             : #include <com/sun/star/drawing/PolyPolygonBezierCoords.hpp>
      29             : #include <xmloff/families.hxx>
      30             : #include "ximpstyl.hxx"
      31             : #include <xmloff/xmltoken.hxx>
      32             : #include <com/sun/star/drawing/PolyPolygonShape3D.hpp>
      33             : #include <com/sun/star/drawing/DoubleSequence.hpp>
      34             : 
      35             : 
      36             : using namespace ::com::sun::star;
      37             : 
      38             : ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
      39             : ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
      40             : 
      41           0 : TYPEINIT1( SdXML3DObjectContext, SdXMLShapeContext );
      42             : 
      43           0 : SdXML3DObjectContext::SdXML3DObjectContext(
      44             :     SvXMLImport& rImport,
      45             :     sal_uInt16 nPrfx,
      46             :     const OUString& rLocalName,
      47             :     const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList,
      48             :     uno::Reference< drawing::XShapes >& rShapes,
      49             :     sal_Bool bTemporaryShape)
      50             : :   SdXMLShapeContext( rImport, nPrfx, rLocalName, xAttrList, rShapes, bTemporaryShape ),
      51           0 :     mbSetTransform( sal_False )
      52             : {
      53           0 :     sal_Int16 nAttrCount = xAttrList.is() ? xAttrList->getLength() : 0;
      54           0 :     for(sal_Int16 i=0; i < nAttrCount; i++)
      55             :     {
      56           0 :         OUString sAttrName = xAttrList->getNameByIndex( i );
      57           0 :         OUString aLocalName;
      58           0 :         sal_uInt16 nPrefix = GetImport().GetNamespaceMap().GetKeyByAttrName( sAttrName, &aLocalName );
      59           0 :         OUString sValue = xAttrList->getValueByIndex( i );
      60           0 :         const SvXMLTokenMap& rAttrTokenMap = GetImport().GetShapeImport()->Get3DObjectAttrTokenMap();
      61             : 
      62           0 :         switch(rAttrTokenMap.Get(nPrefix, aLocalName))
      63             :         {
      64             :             case XML_TOK_3DOBJECT_DRAWSTYLE_NAME:
      65             :             {
      66           0 :                 maDrawStyleName = sValue;
      67           0 :                 break;
      68             :             }
      69             :             case XML_TOK_3DOBJECT_TRANSFORM:
      70             :             {
      71           0 :                 SdXMLImExTransform3D aTransform(sValue, GetImport().GetMM100UnitConverter());
      72           0 :                 if(aTransform.NeedsAction())
      73           0 :                     mbSetTransform = aTransform.GetFullHomogenTransform(mxHomMat);
      74           0 :                 break;
      75             :             }
      76             :         }
      77           0 :     }
      78           0 : }
      79             : 
      80             : //////////////////////////////////////////////////////////////////////////////
      81             : 
      82           0 : SdXML3DObjectContext::~SdXML3DObjectContext()
      83             : {
      84           0 : }
      85             : 
      86             : //////////////////////////////////////////////////////////////////////////////
      87             : 
      88           0 : void SdXML3DObjectContext::StartElement(const uno::Reference< xml::sax::XAttributeList>& xAttrList)
      89             : {
      90           0 :     uno::Reference< beans::XPropertySet > xPropSet(mxShape, uno::UNO_QUERY);
      91           0 :     if(xPropSet.is())
      92             :     {
      93             :         // set parameters
      94           0 :         if(mbSetTransform)
      95             :         {
      96           0 :             uno::Any aAny;
      97           0 :             aAny <<= mxHomMat;
      98           0 :             xPropSet->setPropertyValue("D3DTransformMatrix", aAny);
      99             :         }
     100             : 
     101             :         // call parent
     102           0 :         SdXMLShapeContext::StartElement(xAttrList);
     103           0 :     }
     104           0 : }
     105             : 
     106             : //////////////////////////////////////////////////////////////////////////////
     107             : 
     108           0 : void SdXML3DObjectContext::EndElement()
     109             : {
     110             :     // call parent
     111           0 :     SdXMLShapeContext::EndElement();
     112           0 : }
     113             : 
     114             : ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
     115             : ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
     116             : 
     117           0 : TYPEINIT1( SdXML3DCubeObjectShapeContext, SdXML3DObjectContext);
     118             : 
     119           0 : SdXML3DCubeObjectShapeContext::SdXML3DCubeObjectShapeContext(
     120             :     SvXMLImport& rImport,
     121             :     sal_uInt16 nPrfx,
     122             :     const OUString& rLocalName,
     123             :     const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList,
     124             :     uno::Reference< drawing::XShapes >& rShapes,
     125             :     sal_Bool bTemporaryShape)
     126             : :   SdXML3DObjectContext( rImport, nPrfx, rLocalName, xAttrList, rShapes, bTemporaryShape ),
     127             :     maMinEdge(-2500.0, -2500.0, -2500.0),
     128             :     maMaxEdge(2500.0, 2500.0, 2500.0),
     129             :     mbMinEdgeUsed(sal_False),
     130           0 :     mbMaxEdgeUsed(sal_False)
     131             : {
     132           0 :     sal_Int16 nAttrCount = xAttrList.is() ? xAttrList->getLength() : 0;
     133           0 :     for(sal_Int16 i=0; i < nAttrCount; i++)
     134             :     {
     135           0 :         OUString sAttrName = xAttrList->getNameByIndex( i );
     136           0 :         OUString aLocalName;
     137           0 :         sal_uInt16 nPrefix = GetImport().GetNamespaceMap().GetKeyByAttrName( sAttrName, &aLocalName );
     138           0 :         OUString sValue = xAttrList->getValueByIndex( i );
     139           0 :         const SvXMLTokenMap& rAttrTokenMap = GetImport().GetShapeImport()->Get3DCubeObjectAttrTokenMap();
     140             : 
     141           0 :         switch(rAttrTokenMap.Get(nPrefix, aLocalName))
     142             :         {
     143             :             case XML_TOK_3DCUBEOBJ_MINEDGE:
     144             :             {
     145           0 :                 ::basegfx::B3DVector aNewVec;
     146           0 :                 GetImport().GetMM100UnitConverter().convertB3DVector(aNewVec, sValue);
     147             : 
     148           0 :                 if(aNewVec != maMinEdge)
     149             :                 {
     150           0 :                     maMinEdge = aNewVec;
     151           0 :                     mbMinEdgeUsed = sal_True;
     152             :                 }
     153           0 :                 break;
     154             :             }
     155             :             case XML_TOK_3DCUBEOBJ_MAXEDGE:
     156             :             {
     157           0 :                 ::basegfx::B3DVector aNewVec;
     158           0 :                 GetImport().GetMM100UnitConverter().convertB3DVector(aNewVec, sValue);
     159             : 
     160           0 :                 if(aNewVec != maMaxEdge)
     161             :                 {
     162           0 :                     maMaxEdge = aNewVec;
     163           0 :                     mbMaxEdgeUsed = sal_True;
     164             :                 }
     165           0 :                 break;
     166             :             }
     167             :         }
     168           0 :     }
     169           0 : }
     170             : 
     171             : //////////////////////////////////////////////////////////////////////////////
     172             : 
     173           0 : SdXML3DCubeObjectShapeContext::~SdXML3DCubeObjectShapeContext()
     174             : {
     175           0 : }
     176             : 
     177             : //////////////////////////////////////////////////////////////////////////////
     178             : 
     179           0 : void SdXML3DCubeObjectShapeContext::StartElement(const uno::Reference< xml::sax::XAttributeList>& xAttrList)
     180             : {
     181             :     // create shape
     182           0 :     AddShape( "com.sun.star.drawing.Shape3DCubeObject" );
     183           0 :     if(mxShape.is())
     184             :     {
     185             :         // add, set style and properties from base shape
     186           0 :         SetStyle();
     187           0 :         SdXML3DObjectContext::StartElement(xAttrList);
     188             : 
     189             :         // set local parameters on shape
     190           0 :         uno::Reference< beans::XPropertySet > xPropSet(mxShape, uno::UNO_QUERY);
     191           0 :         if(xPropSet.is())
     192             :         {
     193             :             // set parameters
     194           0 :             drawing::Position3D aPosition3D;
     195           0 :             drawing::Direction3D aDirection3D;
     196             : 
     197             :             // convert from min, max to size to be set
     198           0 :             maMaxEdge = maMaxEdge - maMinEdge;
     199             : 
     200           0 :             aPosition3D.PositionX = maMinEdge.getX();
     201           0 :             aPosition3D.PositionY = maMinEdge.getY();
     202           0 :             aPosition3D.PositionZ = maMinEdge.getZ();
     203             : 
     204           0 :             aDirection3D.DirectionX = maMaxEdge.getX();
     205           0 :             aDirection3D.DirectionY = maMaxEdge.getY();
     206           0 :             aDirection3D.DirectionZ = maMaxEdge.getZ();
     207             : 
     208           0 :             uno::Any aAny;
     209           0 :             aAny <<= aPosition3D;
     210           0 :             xPropSet->setPropertyValue("D3DPosition", aAny);
     211           0 :             aAny <<= aDirection3D;
     212           0 :             xPropSet->setPropertyValue("D3DSize", aAny);
     213           0 :         }
     214             :     }
     215           0 : }
     216             : 
     217             : //////////////////////////////////////////////////////////////////////////////
     218             : 
     219           0 : void SdXML3DCubeObjectShapeContext::EndElement()
     220             : {
     221             :     // call parent
     222           0 :     SdXML3DObjectContext::EndElement();
     223           0 : }
     224             : 
     225             : ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
     226             : ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
     227             : 
     228           0 : TYPEINIT1( SdXML3DSphereObjectShapeContext, SdXML3DObjectContext);
     229             : 
     230           0 : SdXML3DSphereObjectShapeContext::SdXML3DSphereObjectShapeContext(
     231             :     SvXMLImport& rImport,
     232             :     sal_uInt16 nPrfx,
     233             :     const OUString& rLocalName,
     234             :     const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList,
     235             :     uno::Reference< drawing::XShapes >& rShapes,
     236             :     sal_Bool bTemporaryShape)
     237             : :   SdXML3DObjectContext( rImport, nPrfx, rLocalName, xAttrList, rShapes, bTemporaryShape ),
     238             :     maCenter(0.0, 0.0, 0.0),
     239             :     maSize(5000.0, 5000.0, 5000.0),
     240             :     mbCenterUsed(sal_False),
     241           0 :     mbSizeUsed(sal_False)
     242             : {
     243           0 :     sal_Int16 nAttrCount = xAttrList.is() ? xAttrList->getLength() : 0;
     244           0 :     for(sal_Int16 i=0; i < nAttrCount; i++)
     245             :     {
     246           0 :         OUString sAttrName = xAttrList->getNameByIndex( i );
     247           0 :         OUString aLocalName;
     248           0 :         sal_uInt16 nPrefix = GetImport().GetNamespaceMap().GetKeyByAttrName( sAttrName, &aLocalName );
     249           0 :         OUString sValue = xAttrList->getValueByIndex( i );
     250           0 :         const SvXMLTokenMap& rAttrTokenMap = GetImport().GetShapeImport()->Get3DSphereObjectAttrTokenMap();
     251             : 
     252           0 :         switch(rAttrTokenMap.Get(nPrefix, aLocalName))
     253             :         {
     254             :             case XML_TOK_3DSPHEREOBJ_CENTER:
     255             :             {
     256           0 :                 ::basegfx::B3DVector aNewVec;
     257           0 :                 GetImport().GetMM100UnitConverter().convertB3DVector(aNewVec, sValue);
     258             : 
     259           0 :                 if(aNewVec != maCenter)
     260             :                 {
     261           0 :                     maCenter = aNewVec;
     262           0 :                     mbCenterUsed = sal_True;
     263             :                 }
     264           0 :                 break;
     265             :             }
     266             :             case XML_TOK_3DSPHEREOBJ_SIZE:
     267             :             {
     268           0 :                 ::basegfx::B3DVector aNewVec;
     269           0 :                 GetImport().GetMM100UnitConverter().convertB3DVector(aNewVec, sValue);
     270             : 
     271           0 :                 if(aNewVec != maSize)
     272             :                 {
     273           0 :                     maSize = aNewVec;
     274           0 :                     mbSizeUsed = sal_True;
     275             :                 }
     276           0 :                 break;
     277             :             }
     278             :         }
     279           0 :     }
     280           0 : }
     281             : 
     282             : //////////////////////////////////////////////////////////////////////////////
     283             : 
     284           0 : SdXML3DSphereObjectShapeContext::~SdXML3DSphereObjectShapeContext()
     285             : {
     286           0 : }
     287             : 
     288             : //////////////////////////////////////////////////////////////////////////////
     289             : 
     290           0 : void SdXML3DSphereObjectShapeContext::StartElement(const uno::Reference< xml::sax::XAttributeList>& xAttrList)
     291             : {
     292             :     // create shape
     293           0 :     AddShape( "com.sun.star.drawing.Shape3DSphereObject" );
     294           0 :     if(mxShape.is())
     295             :     {
     296             :         // add, set style and properties from base shape
     297           0 :         SetStyle();
     298           0 :         SdXML3DObjectContext::StartElement(xAttrList);
     299             : 
     300             :         // set local parameters on shape
     301           0 :         uno::Reference< beans::XPropertySet > xPropSet(mxShape, uno::UNO_QUERY);
     302           0 :         if(xPropSet.is())
     303             :         {
     304             :             // set parameters
     305           0 :             drawing::Position3D aPosition3D;
     306           0 :             drawing::Direction3D aDirection3D;
     307             : 
     308           0 :             aPosition3D.PositionX = maCenter.getX();
     309           0 :             aPosition3D.PositionY = maCenter.getY();
     310           0 :             aPosition3D.PositionZ = maCenter.getZ();
     311             : 
     312           0 :             aDirection3D.DirectionX = maSize.getX();
     313           0 :             aDirection3D.DirectionY = maSize.getY();
     314           0 :             aDirection3D.DirectionZ = maSize.getZ();
     315             : 
     316           0 :             uno::Any aAny;
     317           0 :             aAny <<= aPosition3D;
     318           0 :             xPropSet->setPropertyValue("D3DPosition", aAny);
     319           0 :             aAny <<= aDirection3D;
     320           0 :             xPropSet->setPropertyValue("D3DSize", aAny);
     321           0 :         }
     322             :     }
     323           0 : }
     324             : 
     325             : //////////////////////////////////////////////////////////////////////////////
     326             : 
     327           0 : void SdXML3DSphereObjectShapeContext::EndElement()
     328             : {
     329             :     // call parent
     330           0 :     SdXML3DObjectContext::EndElement();
     331           0 : }
     332             : 
     333             : ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
     334             : ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
     335             : 
     336           0 : TYPEINIT1( SdXML3DPolygonBasedShapeContext, SdXML3DObjectContext );
     337             : 
     338           0 : SdXML3DPolygonBasedShapeContext::SdXML3DPolygonBasedShapeContext(
     339             :     SvXMLImport& rImport,
     340             :     sal_uInt16 nPrfx,
     341             :     const OUString& rLocalName,
     342             :     const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList,
     343             :     uno::Reference< drawing::XShapes >& rShapes,
     344             :     sal_Bool bTemporaryShape)
     345           0 : :   SdXML3DObjectContext( rImport, nPrfx, rLocalName, xAttrList, rShapes, bTemporaryShape )
     346             : {
     347           0 :     sal_Int16 nAttrCount = xAttrList.is() ? xAttrList->getLength() : 0;
     348           0 :     for(sal_Int16 i=0; i < nAttrCount; i++)
     349             :     {
     350           0 :         OUString sAttrName = xAttrList->getNameByIndex( i );
     351           0 :         OUString aLocalName;
     352           0 :         sal_uInt16 nPrefix = GetImport().GetNamespaceMap().GetKeyByAttrName( sAttrName, &aLocalName );
     353           0 :         OUString sValue = xAttrList->getValueByIndex( i );
     354           0 :         const SvXMLTokenMap& rAttrTokenMap = GetImport().GetShapeImport()->Get3DPolygonBasedAttrTokenMap();
     355             : 
     356           0 :         switch(rAttrTokenMap.Get(nPrefix, aLocalName))
     357             :         {
     358             :             case XML_TOK_3DPOLYGONBASED_VIEWBOX:
     359             :             {
     360           0 :                 maViewBox = sValue;
     361           0 :                 break;
     362             :             }
     363             :             case XML_TOK_3DPOLYGONBASED_D:
     364             :             {
     365           0 :                 maPoints = sValue;
     366           0 :                 break;
     367             :             }
     368             :         }
     369           0 :     }
     370           0 : }
     371             : 
     372             : //////////////////////////////////////////////////////////////////////////////
     373             : 
     374           0 : SdXML3DPolygonBasedShapeContext::~SdXML3DPolygonBasedShapeContext()
     375             : {
     376           0 : }
     377             : 
     378             : //////////////////////////////////////////////////////////////////////////////
     379             : 
     380           0 : void SdXML3DPolygonBasedShapeContext::StartElement(const uno::Reference< xml::sax::XAttributeList>& xAttrList)
     381             : {
     382           0 :     uno::Reference< beans::XPropertySet > xPropSet(mxShape, uno::UNO_QUERY);
     383           0 :     if(xPropSet.is())
     384             :     {
     385             :         // set parameters
     386           0 :         if(!maPoints.isEmpty() && !maViewBox.isEmpty())
     387             :         {
     388           0 :             SdXMLImExViewBox aViewBox(maViewBox, GetImport().GetMM100UnitConverter());
     389           0 :             awt::Point aMinPoint(aViewBox.GetX(), aViewBox.GetY());
     390           0 :             awt::Size aMaxSize(aViewBox.GetWidth(), aViewBox.GetHeight());
     391           0 :             SdXMLImExSvgDElement aPoints(maPoints, aViewBox, aMinPoint, aMaxSize, GetImport());
     392             : 
     393             :             // convert to double sequences
     394             :             drawing::PointSequenceSequence& xPoSeSe =
     395           0 :                 (drawing::PointSequenceSequence&)aPoints.GetPointSequenceSequence();
     396           0 :             sal_Int32 nOuterSequenceCount = xPoSeSe.getLength();
     397           0 :             drawing::PointSequence* pInnerSequence = xPoSeSe.getArray();
     398             : 
     399           0 :             drawing::PolyPolygonShape3D xPolyPolygon3D;
     400           0 :             xPolyPolygon3D.SequenceX.realloc(nOuterSequenceCount);
     401           0 :             xPolyPolygon3D.SequenceY.realloc(nOuterSequenceCount);
     402           0 :             xPolyPolygon3D.SequenceZ.realloc(nOuterSequenceCount);
     403           0 :             drawing::DoubleSequence* pOuterSequenceX = xPolyPolygon3D.SequenceX.getArray();
     404           0 :             drawing::DoubleSequence* pOuterSequenceY = xPolyPolygon3D.SequenceY.getArray();
     405           0 :             drawing::DoubleSequence* pOuterSequenceZ = xPolyPolygon3D.SequenceZ.getArray();
     406             : 
     407           0 :             for(sal_Int32 a(0L); a < nOuterSequenceCount; a++)
     408             :             {
     409           0 :                 sal_Int32 nInnerSequenceCount(pInnerSequence->getLength());
     410           0 :                 awt::Point* pArray = pInnerSequence->getArray();
     411             : 
     412           0 :                 pOuterSequenceX->realloc(nInnerSequenceCount);
     413           0 :                 pOuterSequenceY->realloc(nInnerSequenceCount);
     414           0 :                 pOuterSequenceZ->realloc(nInnerSequenceCount);
     415           0 :                 double* pInnerSequenceX = pOuterSequenceX->getArray();
     416           0 :                 double* pInnerSequenceY = pOuterSequenceY->getArray();
     417           0 :                 double* pInnerSequenceZ = pOuterSequenceZ->getArray();
     418             : 
     419           0 :                 for(sal_Int32 b(0L); b < nInnerSequenceCount; b++)
     420             :                 {
     421           0 :                     *pInnerSequenceX++ = pArray->X;
     422           0 :                     *pInnerSequenceY++ = pArray->Y;
     423           0 :                     *pInnerSequenceZ++ = 0.0;
     424           0 :                     pArray++;
     425             :                 }
     426           0 :                 pInnerSequence++;
     427             : 
     428           0 :                 pOuterSequenceX++;
     429           0 :                 pOuterSequenceY++;
     430           0 :                 pOuterSequenceZ++;
     431             :             }
     432             : 
     433             :             // set poly
     434           0 :             uno::Any aAny;
     435           0 :             aAny <<= xPolyPolygon3D;
     436           0 :             xPropSet->setPropertyValue("D3DPolyPolygon3D", aAny);
     437             :         }
     438             : 
     439             :         // call parent
     440           0 :         SdXML3DObjectContext::StartElement(xAttrList);
     441           0 :     }
     442           0 : }
     443             : 
     444             : //////////////////////////////////////////////////////////////////////////////
     445             : 
     446           0 : void SdXML3DPolygonBasedShapeContext::EndElement()
     447             : {
     448             :     // call parent
     449           0 :     SdXML3DObjectContext::EndElement();
     450           0 : }
     451             : 
     452             : ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
     453             : ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
     454             : 
     455           0 : TYPEINIT1( SdXML3DLatheObjectShapeContext, SdXML3DPolygonBasedShapeContext);
     456             : 
     457           0 : SdXML3DLatheObjectShapeContext::SdXML3DLatheObjectShapeContext(
     458             :     SvXMLImport& rImport,
     459             :     sal_uInt16 nPrfx,
     460             :     const OUString& rLocalName,
     461             :     const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList,
     462             :     uno::Reference< drawing::XShapes >& rShapes,
     463             :     sal_Bool bTemporaryShape)
     464           0 : :   SdXML3DPolygonBasedShapeContext( rImport, nPrfx, rLocalName, xAttrList, rShapes, bTemporaryShape )
     465             : {
     466           0 : }
     467             : 
     468             : //////////////////////////////////////////////////////////////////////////////
     469             : 
     470           0 : SdXML3DLatheObjectShapeContext::~SdXML3DLatheObjectShapeContext()
     471             : {
     472           0 : }
     473             : 
     474             : //////////////////////////////////////////////////////////////////////////////
     475             : 
     476           0 : void SdXML3DLatheObjectShapeContext::StartElement(const uno::Reference< xml::sax::XAttributeList>& xAttrList)
     477             : {
     478             :     // create shape
     479           0 :     AddShape( "com.sun.star.drawing.Shape3DLatheObject" );
     480           0 :     if(mxShape.is())
     481             :     {
     482             :         // add, set style and properties from base shape
     483           0 :         SetStyle();
     484           0 :         SdXML3DPolygonBasedShapeContext::StartElement(xAttrList);
     485             :     }
     486           0 : }
     487             : 
     488             : //////////////////////////////////////////////////////////////////////////////
     489             : 
     490           0 : void SdXML3DLatheObjectShapeContext::EndElement()
     491             : {
     492             :     // call parent
     493           0 :     SdXML3DPolygonBasedShapeContext::EndElement();
     494           0 : }
     495             : 
     496             : ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
     497             : ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
     498             : 
     499           0 : TYPEINIT1( SdXML3DExtrudeObjectShapeContext, SdXML3DPolygonBasedShapeContext);
     500             : 
     501           0 : SdXML3DExtrudeObjectShapeContext::SdXML3DExtrudeObjectShapeContext(
     502             :     SvXMLImport& rImport,
     503             :     sal_uInt16 nPrfx,
     504             :     const OUString& rLocalName,
     505             :     const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList,
     506             :     uno::Reference< drawing::XShapes >& rShapes,
     507             :     sal_Bool bTemporaryShape)
     508           0 : :   SdXML3DPolygonBasedShapeContext( rImport, nPrfx, rLocalName, xAttrList, rShapes, bTemporaryShape )
     509             : {
     510           0 : }
     511             : 
     512             : //////////////////////////////////////////////////////////////////////////////
     513             : 
     514           0 : SdXML3DExtrudeObjectShapeContext::~SdXML3DExtrudeObjectShapeContext()
     515             : {
     516           0 : }
     517             : 
     518             : //////////////////////////////////////////////////////////////////////////////
     519             : 
     520           0 : void SdXML3DExtrudeObjectShapeContext::StartElement(const uno::Reference< xml::sax::XAttributeList>& xAttrList)
     521             : {
     522           0 :     AddShape( "com.sun.star.drawing.Shape3DExtrudeObject" );
     523           0 :     if(mxShape.is())
     524             :     {
     525             :         // add, set style and properties from base shape
     526           0 :         SetStyle();
     527           0 :         SdXML3DPolygonBasedShapeContext::StartElement(xAttrList);
     528             :     }
     529           0 : }
     530             : 
     531             : //////////////////////////////////////////////////////////////////////////////
     532             : 
     533           0 : void SdXML3DExtrudeObjectShapeContext::EndElement()
     534             : {
     535             :     // call parent
     536           0 :     SdXML3DPolygonBasedShapeContext::EndElement();
     537           0 : }
     538             : 
     539             : // EOF
     540             : 
     541             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10