1 /*************************************************************************
3 * The Contents of this file are made available subject to the terms of
4 * either of the following licenses
6 * - GNU Lesser General Public License Version 2.1
7 * - Sun Industry Standards Source License Version 1.1
9 * Sun Microsystems Inc., October, 2000
11 * GNU Lesser General Public License Version 2.1
12 * =============================================
13 * Copyright 2000 by Sun Microsystems, Inc.
14 * 901 San Antonio Road, Palo Alto, CA 94303, USA
16 * This library is free software; you can redistribute it and/or
17 * modify it under the terms of the GNU Lesser General Public
18 * License version 2.1, as published by the Free Software Foundation.
20 * This library is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23 * Lesser General Public License for more details.
25 * You should have received a copy of the GNU Lesser General Public
26 * License along with this library; if not, write to the Free Software
27 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
31 * Sun Industry Standards Source License Version 1.1
32 * =================================================
33 * The contents of this file are subject to the Sun Industry Standards
34 * Source License Version 1.1 (the "License"); You may not use this file
35 * except in compliance with the License. You may obtain a copy of the
36 * License at http://www.openoffice.org/license.html.
38 * Software provided under this License is provided on an "AS IS" basis,
39 * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
40 * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
41 * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
42 * See the License for the specific provisions governing your rights and
43 * obligations concerning the Software.
45 * The Initial Developer of the Original Code is: IBM Corporation
47 * Copyright: 2008 by IBM Corporation
49 * All Rights Reserved.
51 * Contributor(s): _______________________________________
54 ************************************************************************/
55 /*****************************************************************************
58 ****************************************************************************/
61 * For LWP filter architecture prototype
62 * The file declares structures and enums used by Lwp-Drawing-Module
65 #ifndef _LWPSDWRAWHEADER_HXX
66 #define _LWPSDWRAWHEADER_HXX
68 #include "lwpheader.hxx"
69 #include "lwptools.hxx"
71 const sal_uInt8 DRAW_FACESIZE
= 32;
72 const double THRESHOLD
= 0.0001;
113 FT_DIAGCROSSHATCH
= 11,
128 // Text Attributes as stored in Draw files V1.2 and earlier
129 enum DrawTextAttribute
131 TA_BOLD
= 0x0001, /* bolded font */
132 TA_ITALIC
= 0x0002, /* italic font */
133 TA_UNDERLINE
= 0x0004, /* underlined font */
134 TA_WORDUNDERLINE
= 0x0008, /* broken underline */
135 TA_ALLCAPS
= 0x0010, /* capitalized font */
136 TA_SMALLCAPS
= 0x0020, /* all small capital letters */
137 TA_DOUBLEUNDER
= 0x0040, /* double underline */
138 TA_STRIKETHRU
= 0x0080, /* strikethru */
139 TA_SUPERSCRIPT
= 0x0100, /* superscript */
140 TA_SUBSCRIPT
= 0x0200 /* subscript */
146 AH_ARROW_FULLARROW
= 1,
147 AH_ARROW_HALFARROW
= 2,
148 AH_ARROW_LINEARROW
= 3,
149 AH_ARROW_INVFULLARROW
= 4,
150 AH_ARROW_INVHALFARROW
= 5,
151 AH_ARROW_INVLINEARROW
= 6,
171 struct SdwClosedObjStyleRec
173 sal_uInt8 nLineWidth
;
174 sal_uInt8 nLineStyle
;
178 sal_uInt16 nFillType
;
179 sal_uInt8 pFillPattern
[8];
182 struct SdwDrawObjHeader
191 // sal_uInt16 nextObj;
192 // sal_uInt16 prevObj;
201 sal_uInt8 nLineWidth
;
203 sal_uInt8 nLineStyle
;
207 struct SdwPolyLineRecord
209 sal_uInt8 nLineWidth
;
211 sal_uInt8 nLineStyle
;
213 sal_uInt16 nNumPoints
;
218 sal_uInt8 nLineWidth
;
220 sal_uInt8 nLineStyle
;
224 struct SdwTextBoxRecord
226 sal_Int16 nTextWidth
;
227 sal_Int16 nTextHeight
;
230 sal_uInt8 tmpTextFaceName
[DRAW_FACESIZE
];
231 sal_uInt16 nTextAttrs
;
232 sal_uInt16 nTextCharacterSet
;
233 sal_Int16 nTextRotation
;
234 sal_Int16 nTextExtraSpacing
;
235 sal_uInt8
* pTextString
;
244 struct SdwTextArt
: public SdwTextBoxRecord
254 sal_uInt16 nTranslation
;
255 sal_uInt16 nRotation
;
256 sal_uInt32 nFileSize
;
261 sal_uInt32 nHeaderLen
;
265 sal_uInt16 nBitCount
;
268 struct BmpInfoHeader2
270 sal_uInt32 nHeaderLen
;
274 sal_uInt16 nBitCount
;
277 struct DrawingOffsetAndScale
286 DrawingOffsetAndScale()