LibreOffice Module lotuswordpro (master) 1
lwpsdwdrawheader.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*************************************************************************
3 *
4 * The Contents of this file are made available subject to the terms of
5 * either of the following licenses
6 *
7 * - GNU Lesser General Public License Version 2.1
8 * - Sun Industry Standards Source License Version 1.1
9 *
10 * Sun Microsystems Inc., October, 2000
11 *
12 * GNU Lesser General Public License Version 2.1
13 * =============================================
14 * Copyright 2000 by Sun Microsystems, Inc.
15 * 901 San Antonio Road, Palo Alto, CA 94303, USA
16 *
17 * This library is free software; you can redistribute it and/or
18 * modify it under the terms of the GNU Lesser General Public
19 * License version 2.1, as published by the Free Software Foundation.
20 *
21 * This library is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
24 * Lesser General Public License for more details.
25 *
26 * You should have received a copy of the GNU Lesser General Public
27 * License along with this library; if not, write to the Free Software
28 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
29 * MA 02111-1307 USA
30 *
31 *
32 * Sun Industry Standards Source License Version 1.1
33 * =================================================
34 * The contents of this file are subject to the Sun Industry Standards
35 * Source License Version 1.1 (the "License"); You may not use this file
36 * except in compliance with the License. You may obtain a copy of the
37 * License at http://www.openoffice.org/license.html.
38 *
39 * Software provided under this License is provided on an "AS IS" basis,
40 * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
41 * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
42 * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
43 * See the License for the specific provisions governing your rights and
44 * obligations concerning the Software.
45 *
46 * The Initial Developer of the Original Code is: IBM Corporation
47 *
48 * Copyright: 2008 by IBM Corporation
49 *
50 * All Rights Reserved.
51 *
52 * Contributor(s): _______________________________________
53 *
54 *
55 ************************************************************************/
62#ifndef INCLUDED_LOTUSWORDPRO_SOURCE_FILTER_LWPSDWDRAWHEADER_HXX
63#define INCLUDED_LOTUSWORDPRO_SOURCE_FILTER_LWPSDWDRAWHEADER_HXX
64
65#include <config_lgpl.h>
66#include <sal/types.h>
67#include <vector>
68
70const double THRESHOLD = 0.0001;
71
73{
75
86 OT_OVAL = 10,
88 OT_ARC = 12,
89 OT_TEXT = 13,
96 OT_BIGBITMAP = 20
97};
98
100{
113 FT_PATTERN = 12
115
117{
126
127// Text Attributes as stored in Draw files V1.2 and earlier
129{
130 TA_BOLD = 0x0001, /* bolded font */
131 TA_ITALIC = 0x0002, /* italic font */
132 TA_UNDERLINE = 0x0004, /* underlined font */
133 TA_WORDUNDERLINE = 0x0008, /* broken underline */
134 TA_ALLCAPS = 0x0010, /* capitalized font */
135 TA_SMALLCAPS = 0x0020, /* all small capital letters */
136 TA_DOUBLEUNDER = 0x0040, /* double underline */
137 TA_STRIKETHRU = 0x0080, /* strikethru */
138 TA_SUPERSCRIPT = 0x0100, /* superscript */
139 TA_SUBSCRIPT = 0x0200 /* subscript */
141
143{
155
157{
158 sal_Int16 x;
159 sal_Int16 y;
161 : x(0)
162 , y(0)
163 {
164 }
165};
166
168{
174 : nR(0)
175 , nG(0)
176 , nB(0)
177 , unused(0)
178 {
179 }
180};
181
183{
189 sal_uInt16 nFillType = 0;
192};
193
195{
196 sal_uInt16 nRecLen;
197 sal_Int16 nLeft;
198 sal_Int16 nTop;
199 sal_Int16 nRight;
200 sal_Int16 nBottom;
202 : nRecLen(0)
203 , nLeft(0)
204 , nTop(0)
205 , nRight(0)
206 , nBottom(0)
207 {
208 }
209};
210
212{
213 sal_Int16 nStartX;
214 sal_Int16 nStartY;
215 sal_Int16 nEndX;
216 sal_Int16 nEndY;
222 : nStartX(0)
223 , nStartY(0)
224 , nEndX(0)
225 , nEndY(0)
226 , nLineWidth(0)
227 , nLineEnd(0)
228 , nLineStyle(0)
229 {
230 }
231};
232
234{
239 sal_uInt16 nNumPoints;
241 : nLineWidth(0)
242 , nLineEnd(0)
243 , nLineStyle(0)
244 , nNumPoints(0)
245 {
246 }
247};
248
250{
256 : nLineWidth(0)
257 , nLineEnd(0)
258 , nLineStyle(0)
259 {
260 }
261};
262
264{
265 sal_Int16 nTextWidth;
266 sal_Int16 nTextHeight;
267 sal_Int16 nTextSize;
270 sal_uInt16 nTextAttrs;
272 sal_Int16 nTextRotation;
276 : nTextWidth(0)
277 , nTextHeight(0)
278 , nTextSize(0)
280 , nTextAttrs(0)
282 , nTextRotation(0)
284 , pTextString(nullptr)
285 {
286 }
287};
288
290{
291 sal_uInt16 n;
292 std::vector<SdwPoint> aPts;
294 : n(0)
295 {
296 }
297};
298
300{
302 sal_Int16 nRotation;
303 sal_uInt16 nTextLen;
306 : nIndex(0)
307 , nRotation(0)
308 , nTextLen(0)
309 {
310 }
311};
312
314{
315 sal_uInt16 nTranslation;
316 sal_uInt16 nRotation;
317 sal_uInt32 nFileSize;
319 : nTranslation(0)
320 , nRotation(0)
321 , nFileSize(0)
322 {
323 }
324};
325
327{
328 sal_uInt32 nHeaderLen;
329 sal_uInt16 nWidth;
330 sal_uInt16 nHeight;
331 sal_uInt16 nPlanes;
332 sal_uInt16 nBitCount;
333};
334
336{
337 sal_uInt32 nHeaderLen;
338 sal_uInt32 nWidth;
339 sal_uInt32 nHeight;
340 sal_uInt16 nPlanes;
341 sal_uInt16 nBitCount;
342};
343
345{
346 double fOffsetX;
347 double fOffsetY;
348 double fScaleX;
349 double fScaleY;
352
354 {
355 fOffsetX = 0.00;
356 fOffsetY = 0.00;
357 fScaleX = 1.00;
358 fScaleY = 1.00;
359 fLeftMargin = 0.00;
360 fTopMargin = 0.00;
361 }
362};
363
364#endif
365
366/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
const sal_uInt8 DRAW_FACESIZE
const double THRESHOLD
DrawObjectType
@ OT_TEXTART
@ OT_CHART
@ OT_SQUARE
@ OT_LINE
@ OT_POLYLINE
@ OT_RNDRECT
@ OT_SELECT
@ OT_ARC
@ OT_RNDSQUARE
@ OT_UNDEFINED
@ OT_BIGBITMAP
@ OT_HAND
@ OT_OVAL
@ OT_TEXT
@ OT_POLYGON
@ OT_METAFILEIMG
@ OT_CIRCLE
@ OT_GROUP
@ OT_METAFILE
@ OT_BITMAP
@ OT_RECT
@ OT_PERPLINE
DrawArrowHead
@ AH_ARROW_INVFULLARROW
@ AH_ARROW_HALFARROW
@ AH_ARROW_TEE
@ AH_ARROW_INVLINEARROW
@ AH_ARROW_FULLARROW
@ AH_ARROW_SQUARE
@ AH_ARROW_INVHALFARROW
@ AH_ARROW_CIRCLE
@ AH_ARROW_NONE
@ AH_ARROW_LINEARROW
DrawLineStyle
@ LS_INSIDEFRAME
@ LS_DASH
@ LS_SOLID
@ LS_NULL
@ LS_DASHDOTDOT
@ LS_DOT
@ LS_DASHDOT
DrawTextAttribute
@ TA_ITALIC
@ TA_WORDUNDERLINE
@ TA_SUBSCRIPT
@ TA_SMALLCAPS
@ TA_ALLCAPS
@ TA_DOUBLEUNDER
@ TA_BOLD
@ TA_SUPERSCRIPT
@ TA_UNDERLINE
@ TA_STRIKETHRU
DrawFillType
@ FT_DKGRAY
@ FT_FDIAGHATCH
@ FT_TRANSPARENT
@ FT_DIAGCROSSHATCH
@ FT_SOLID
@ FT_VLTGRAY
@ FT_CROSSHATCH
@ FT_HORZHATCH
@ FT_PATTERN
@ FT_VERTHATCH
@ FT_BDIAGHATCH
@ FT_GRAY
@ FT_LTGRAY
sal_uInt32 nHeaderLen
sal_uInt16 nBitCount
sal_uInt8 nLineStyle
sal_uInt8 nLineWidth
sal_uInt16 nRotation
sal_uInt16 nTranslation
sal_uInt32 nFileSize
SdwClosedObjStyleRec()=default
sal_uInt8 nG
sal_uInt8 nR
sal_uInt8 unused
sal_uInt8 nB
sal_uInt16 n
std::vector< SdwPoint > aPts
sal_uInt16 nTextLen
SdwFMPATH aPath[2]
sal_Int16 nRotation
sal_uInt8 nIndex
sal_uInt8 tmpTextFaceName[DRAW_FACESIZE]
sal_uInt16 nTextCharacterSet
unsigned char sal_uInt8