bump product version to 7.6.3.2-android
[LibreOffice.git] / xmloff / inc / xexptran.hxx
blob9136e620fa9d7652ae8920d578d014b63dc1e41f
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #pragma once
22 #include <rtl/ustring.hxx>
23 #include <com/sun/star/drawing/HomogenMatrix.hpp>
25 #include <memory>
26 #include <vector>
28 struct ImpSdXMLExpTransObj2DBase;
29 struct ImpSdXMLExpTransObj3DBase;
30 class SvXMLUnitConverter;
31 class SvXMLImport;
32 class SvXMLExport;
34 namespace basegfx
36 class B2DTuple;
37 class B2DHomMatrix;
38 class B3DHomMatrix;
41 class SdXMLImExTransform2D
43 // NOTE: This uses shared_ptr, because with unique_ptr the code
44 // fails to compile because of incomplete type.
45 std::vector< std::shared_ptr< ImpSdXMLExpTransObj2DBase > > maList;
46 OUString msString;
48 public:
49 SdXMLImExTransform2D() {}
51 void AddRotate(double fNew);
52 void AddTranslate(const ::basegfx::B2DTuple& rNew);
53 void AddSkewX(double fNew);
55 bool NeedsAction() const { return !maList.empty(); }
56 void GetFullTransform(::basegfx::B2DHomMatrix& rFullTrans);
57 const OUString& GetExportString(const SvXMLUnitConverter& rConv);
58 void SetString(const OUString& rNew, const SvXMLUnitConverter& rConv);
61 class SdXMLImExTransform3D
63 // NOTE: This uses shared_ptr, because with unique_ptr the code
64 // fails to compile because of incomplete type.
65 std::vector< std::shared_ptr< ImpSdXMLExpTransObj3DBase > > maList;
66 OUString msString;
68 public:
69 SdXMLImExTransform3D() {}
70 SdXMLImExTransform3D(const OUString& rNew, const SvXMLUnitConverter& rConv);
72 void AddMatrix(const ::basegfx::B3DHomMatrix& rNew);
74 void AddHomogenMatrix(const css::drawing::HomogenMatrix& xHomMat);
75 bool NeedsAction() const { return !maList.empty(); }
76 void GetFullTransform(::basegfx::B3DHomMatrix& rFullTrans);
77 bool GetFullHomogenTransform(css::drawing::HomogenMatrix& xHomMat);
78 const OUString& GetExportString(const SvXMLUnitConverter& rConv);
79 void SetString(const OUString& rNew, const SvXMLUnitConverter& rConv);
82 class SdXMLImExViewBox
84 OUString msString;
85 double mfX;
86 double mfY;
87 double mfW;
88 double mfH;
90 public:
91 SdXMLImExViewBox(double fX, double fY, double fW, double fH);
92 SdXMLImExViewBox(OUString aNew, const SvXMLUnitConverter& rConv);
94 double GetX() const { return mfX; }
95 double GetY() const { return mfY; }
96 double GetWidth() const { return mfW; }
97 double GetHeight() const { return mfH; }
98 const OUString& GetExportString();
101 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */