LCOV - code coverage report
Current view: top level - xmloff/inc - xexptran.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 11 11 100.0 %
Date: 2015-06-13 12:38:46 Functions: 11 11 100.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             : #ifndef INCLUDED_XMLOFF_INC_XEXPTRAN_HXX
      21             : #define INCLUDED_XMLOFF_INC_XEXPTRAN_HXX
      22             : 
      23             : #include <rtl/ustring.hxx>
      24             : #include <com/sun/star/drawing/PolyPolygonBezierCoords.hpp>
      25             : #include <com/sun/star/drawing/PointSequence.hpp>
      26             : #include <com/sun/star/drawing/FlagSequence.hpp>
      27             : #include <com/sun/star/awt/Size.hpp>
      28             : #include <com/sun/star/drawing/HomogenMatrix.hpp>
      29             : #include <tools/mapunit.hxx>
      30             : 
      31             : #include <vector>
      32             : 
      33             : struct ImpSdXMLExpTransObj2DBase;
      34             : struct ImpSdXMLExpTransObj3DBase;
      35             : class SvXMLUnitConverter;
      36             : class SvXMLImport;
      37             : class SvXMLExport;
      38             : 
      39             : namespace basegfx
      40             : {
      41             :     class B2DTuple;
      42             :     class B2DHomMatrix;
      43             :     class B3DHomMatrix;
      44             : }
      45             : 
      46             : typedef ::std::vector< ImpSdXMLExpTransObj2DBase* > ImpSdXMLExpTransObj2DBaseList;
      47             : typedef ::std::vector< ImpSdXMLExpTransObj3DBase* > ImpSdXMLExpTransObj3DBaseList;
      48             : 
      49             : class SdXMLImExTransform2D
      50             : {
      51             :     ImpSdXMLExpTransObj2DBaseList   maList;
      52             :     OUString                   msString;
      53             : 
      54             :     void EmptyList();
      55             : 
      56             : public:
      57        4394 :     SdXMLImExTransform2D() {}
      58        4394 :     ~SdXMLImExTransform2D() { EmptyList(); }
      59             : 
      60             :     void AddRotate(double fNew);
      61             :     void AddTranslate(const ::basegfx::B2DTuple& rNew);
      62             :     void AddSkewX(double fNew);
      63             : 
      64        2745 :     bool NeedsAction() const { return !maList.empty(); }
      65             :     void GetFullTransform(::basegfx::B2DHomMatrix& rFullTrans);
      66             :     const OUString& GetExportString(const SvXMLUnitConverter& rConv);
      67             :     void SetString(const OUString& rNew, const SvXMLUnitConverter& rConv);
      68             : };
      69             : 
      70             : class SdXMLImExTransform3D
      71             : {
      72             :     ImpSdXMLExpTransObj3DBaseList   maList;
      73             :     OUString                   msString;
      74             : 
      75             :     void EmptyList();
      76             : 
      77             : public:
      78         102 :     SdXMLImExTransform3D() {}
      79             :     SdXMLImExTransform3D(const OUString& rNew, const SvXMLUnitConverter& rConv);
      80         116 :     ~SdXMLImExTransform3D() { EmptyList(); }
      81             : 
      82             :     void AddMatrix(const ::basegfx::B3DHomMatrix& rNew);
      83             : 
      84             :     void AddHomogenMatrix(const com::sun::star::drawing::HomogenMatrix& xHomMat);
      85         116 :     bool NeedsAction() const { return !maList.empty(); }
      86             :     void GetFullTransform(::basegfx::B3DHomMatrix& rFullTrans);
      87             :     bool GetFullHomogenTransform(com::sun::star::drawing::HomogenMatrix& xHomMat);
      88             :     const OUString& GetExportString(const SvXMLUnitConverter& rConv);
      89             :     void SetString(const OUString& rNew, const SvXMLUnitConverter& rConv);
      90             : };
      91             : 
      92         978 : class SdXMLImExViewBox
      93             : {
      94             :     OUString msString;
      95             :     double   mfX;
      96             :     double   mfY;
      97             :     double   mfW;
      98             :     double   mfH;
      99             : 
     100             : public:
     101             :     SdXMLImExViewBox(double fX = 0.0, double fY = 0.0, double fW = 1000.0, double fH = 1000.0);
     102             :     SdXMLImExViewBox(const OUString& rNew, const SvXMLUnitConverter& rConv);
     103             : 
     104        3248 :     double GetX() const { return mfX; }
     105        3248 :     double GetY() const { return mfY; }
     106        1810 :     double GetWidth() const { return mfW; }
     107        1810 :     double GetHeight() const { return mfH; }
     108             :     const OUString& GetExportString();
     109             : };
     110             : 
     111             : #endif  //  _XEXPTRANSFORM_HXX
     112             : 
     113             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11