[en_US] Added 13 autocorrect words
[LibreOffice.git] / xmloff / inc / xexptran.hxx
blobb5ed9f5bba2f55be3f73a8cb5c4ff1d6205fb651
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 #ifndef INCLUDED_XMLOFF_INC_XEXPTRAN_HXX
21 #define INCLUDED_XMLOFF_INC_XEXPTRAN_HXX
23 #include <rtl/ustring.hxx>
24 #include <com/sun/star/drawing/HomogenMatrix.hpp>
26 #include <memory>
27 #include <vector>
29 struct ImpSdXMLExpTransObj2DBase;
30 struct ImpSdXMLExpTransObj3DBase;
31 class SvXMLUnitConverter;
32 class SvXMLImport;
33 class SvXMLExport;
35 namespace basegfx
37 class B2DTuple;
38 class B2DHomMatrix;
39 class B3DHomMatrix;
42 class SdXMLImExTransform2D
44 // NOTE: This uses shared_ptr, because with unique_ptr the code
45 // fails to compile because of incomplete type.
46 std::vector< std::shared_ptr< ImpSdXMLExpTransObj2DBase > > maList;
47 OUString msString;
49 public:
50 SdXMLImExTransform2D() {}
52 void AddRotate(double fNew);
53 void AddTranslate(const ::basegfx::B2DTuple& rNew);
54 void AddSkewX(double fNew);
56 bool NeedsAction() const { return !maList.empty(); }
57 void GetFullTransform(::basegfx::B2DHomMatrix& rFullTrans);
58 const OUString& GetExportString(const SvXMLUnitConverter& rConv);
59 void SetString(const OUString& rNew, const SvXMLUnitConverter& rConv);
62 class SdXMLImExTransform3D
64 // NOTE: This uses shared_ptr, because with unique_ptr the code
65 // fails to compile because of incomplete type.
66 std::vector< std::shared_ptr< ImpSdXMLExpTransObj3DBase > > maList;
67 OUString msString;
69 public:
70 SdXMLImExTransform3D() {}
71 SdXMLImExTransform3D(const OUString& rNew, const SvXMLUnitConverter& rConv);
73 void AddMatrix(const ::basegfx::B3DHomMatrix& rNew);
75 void AddHomogenMatrix(const css::drawing::HomogenMatrix& xHomMat);
76 bool NeedsAction() const { return !maList.empty(); }
77 void GetFullTransform(::basegfx::B3DHomMatrix& rFullTrans);
78 bool GetFullHomogenTransform(css::drawing::HomogenMatrix& xHomMat);
79 const OUString& GetExportString(const SvXMLUnitConverter& rConv);
80 void SetString(const OUString& rNew, const SvXMLUnitConverter& rConv);
83 class SdXMLImExViewBox
85 OUString msString;
86 double mfX;
87 double mfY;
88 double mfW;
89 double mfH;
91 public:
92 SdXMLImExViewBox(double fX, double fY, double fW, double fH);
93 SdXMLImExViewBox(const OUString& rNew, const SvXMLUnitConverter& rConv);
95 double GetX() const { return mfX; }
96 double GetY() const { return mfY; }
97 double GetWidth() const { return mfW; }
98 double GetHeight() const { return mfH; }
99 const OUString& GetExportString();
102 #endif // _XEXPTRANSFORM_HXX
104 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */