xexptran.hxx (ecfe53c5) | xexptran.hxx (1f882ec4) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 101 unchanged lines hidden (view full) --- 110 const rtl::OUString& GetExportString(const SvXMLUnitConverter& rConv); 111 void SetString(const rtl::OUString& rNew, const SvXMLUnitConverter& rConv); 112}; 113 114////////////////////////////////////////////////////////////////////////////// 115 116class SdXMLImExViewBox 117{ | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 101 unchanged lines hidden (view full) --- 110 const rtl::OUString& GetExportString(const SvXMLUnitConverter& rConv); 111 void SetString(const rtl::OUString& rNew, const SvXMLUnitConverter& rConv); 112}; 113 114////////////////////////////////////////////////////////////////////////////// 115 116class SdXMLImExViewBox 117{ |
118 rtl::OUString msString; 119 sal_Int32 mnX; 120 sal_Int32 mnY; 121 sal_Int32 mnW; 122 sal_Int32 mnH; | 118 rtl::OUString msString; 119 double mfX; 120 double mfY; 121 double mfW; 122 double mfH; |
123 124public: | 123 124public: |
125 SdXMLImExViewBox(sal_Int32 nX = 0L, sal_Int32 nY = 0L, sal_Int32 nW = 1000L, sal_Int32 nH = 1000L); 126 SdXMLImExViewBox(const rtl::OUString& rNew, const SvXMLUnitConverter& rConv); | 125 SdXMLImExViewBox(double fX = 0.0, double fY = 0.0, double fW = 1000.0, double fH = 1000.0); 126 SdXMLImExViewBox(const rtl::OUString& rNew, const SvXMLUnitConverter& rConv); |
127 | 127 |
128 sal_Int32 GetX() const { return mnX; } 129 sal_Int32 GetY() const { return mnY; } 130 sal_Int32 GetWidth() const { return mnW; } 131 sal_Int32 GetHeight() const { return mnH; } 132 const rtl::OUString& GetExportString(); | 128 double GetX() const { return mfX; } 129 double GetY() const { return mfY; } 130 double GetWidth() const { return mfW; } 131 double GetHeight() const { return mfH; } 132 const rtl::OUString& GetExportString(); |
133}; 134 | 133}; 134 |
135////////////////////////////////////////////////////////////////////////////// 136 137class SdXMLImExPointsElement 138{ 139 rtl::OUString msString; 140 com::sun::star::drawing::PointSequenceSequence maPoly; 141 142public: 143 SdXMLImExPointsElement(com::sun::star::drawing::PointSequence* pPoints, 144 const SdXMLImExViewBox& rViewBox, 145 const com::sun::star::awt::Point& rObjectPos, 146 const com::sun::star::awt::Size& rObjectSize, 147 // #96328# 148 const bool bClosed = true); 149 SdXMLImExPointsElement(const rtl::OUString& rNew, 150 const SdXMLImExViewBox& rViewBox, 151 const com::sun::star::awt::Point& rObjectPos, 152 const com::sun::star::awt::Size& rObjectSize, 153 const SvXMLUnitConverter& rConv); 154 155 const rtl::OUString& GetExportString() const { return msString; } 156 const com::sun::star::drawing::PointSequenceSequence& GetPointSequenceSequence() const { return maPoly; } 157}; 158 159////////////////////////////////////////////////////////////////////////////// 160 161class SdXMLImExSvgDElement 162{ 163 rtl::OUString msString; 164 const SdXMLImExViewBox& mrViewBox; 165 bool mbIsClosed; 166 bool mbIsCurve; 167 168 sal_Int32 mnLastX; 169 sal_Int32 mnLastY; 170 171 com::sun::star::drawing::PointSequenceSequence maPoly; 172 com::sun::star::drawing::FlagSequenceSequence maFlag; 173 174public: 175 SdXMLImExSvgDElement(const SdXMLImExViewBox& rViewBox); 176 SdXMLImExSvgDElement(const rtl::OUString& rNew, 177 const SdXMLImExViewBox& rViewBox, 178 const com::sun::star::awt::Point& rObjectPos, 179 const com::sun::star::awt::Size& rObjectSize, 180 const SvXMLUnitConverter& rConv); 181 182 void AddPolygon( 183 com::sun::star::drawing::PointSequence* pPoints, 184 com::sun::star::drawing::FlagSequence* pFlags, 185 const com::sun::star::awt::Point& rObjectPos, 186 const com::sun::star::awt::Size& rObjectSize, 187 bool bClosed = false, bool bRelative = true); 188 189 const rtl::OUString& GetExportString() const { return msString; } 190 bool IsClosed() const { return mbIsClosed; } 191 bool IsCurve() const { return mbIsCurve; } 192 const com::sun::star::drawing::PointSequenceSequence& GetPointSequenceSequence() const { return maPoly; } 193 const com::sun::star::drawing::FlagSequenceSequence& GetFlagSequenceSequence() const { return maFlag; } 194}; 195 196 | |
197#endif // _XEXPTRANSFORM_HXX | 135#endif // _XEXPTRANSFORM_HXX |
136// eof |
|