1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * The Contents of this file are made available subject to the terms of
5 * either of the following licenses
7 * - GNU Lesser General Public License Version 2.1
8 * - Sun Industry Standards Source License Version 1.1
10 * Sun Microsystems Inc., October, 2000
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
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.
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.
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,
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.
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.
46 * The Initial Developer of the Original Code is: IBM Corporation
48 * Copyright: 2008 by IBM Corporation
50 * All Rights Reserved.
52 * Contributor(s): _______________________________________
55 ************************************************************************/
58 * For LWP filter architecture prototype
59 * The file declares structures and enums used by Lwp-Drawing-Module
62 #ifndef INCLUDED_LOTUSWORDPRO_SOURCE_FILTER_LWPSDWDRAWHEADER_HXX
63 #define INCLUDED_LOTUSWORDPRO_SOURCE_FILTER_LWPSDWDRAWHEADER_HXX
65 #include <config_lgpl.h>
66 #include <sal/types.h>
69 const sal_uInt8 DRAW_FACESIZE
= 32;
70 const double THRESHOLD
= 0.0001;
112 FT_DIAGCROSSHATCH
= 11,
127 // Text Attributes as stored in Draw files V1.2 and earlier
128 enum DrawTextAttribute
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 */
145 AH_ARROW_FULLARROW
= 1,
146 AH_ARROW_HALFARROW
= 2,
147 AH_ARROW_LINEARROW
= 3,
148 AH_ARROW_INVFULLARROW
= 4,
149 AH_ARROW_INVHALFARROW
= 5,
150 AH_ARROW_INVLINEARROW
= 6,
182 struct SdwClosedObjStyleRec
184 sal_uInt8 nLineWidth
= 0;
185 sal_uInt8 nLineStyle
= 0;
189 sal_uInt16 nFillType
= 0;
190 sal_uInt8 pFillPattern
[8] = {};
191 SdwClosedObjStyleRec() = default;
194 struct SdwDrawObjHeader
217 sal_uInt8 nLineWidth
;
219 sal_uInt8 nLineStyle
;
233 struct SdwPolyLineRecord
235 sal_uInt8 nLineWidth
;
237 sal_uInt8 nLineStyle
;
239 sal_uInt16 nNumPoints
;
251 sal_uInt8 nLineWidth
;
253 sal_uInt8 nLineStyle
;
263 struct SdwTextBoxRecord
265 sal_Int16 nTextWidth
;
266 sal_Int16 nTextHeight
;
269 sal_uInt8 tmpTextFaceName
[DRAW_FACESIZE
];
270 sal_uInt16 nTextAttrs
;
271 sal_uInt16 nTextCharacterSet
;
272 sal_Int16 nTextRotation
;
273 sal_Int16 nTextExtraSpacing
;
274 sal_uInt8
* pTextString
;
281 , nTextCharacterSet(0)
283 , nTextExtraSpacing(0)
284 , pTextString(nullptr)
292 std::vector
<SdwPoint
> aPts
;
299 struct SdwTextArt
: public SdwTextBoxRecord
315 sal_uInt16 nTranslation
;
316 sal_uInt16 nRotation
;
317 sal_uInt32 nFileSize
;
328 sal_uInt32 nHeaderLen
;
332 sal_uInt16 nBitCount
;
335 struct BmpInfoHeader2
337 sal_uInt32 nHeaderLen
;
341 sal_uInt16 nBitCount
;
344 struct DrawingOffsetAndScale
353 DrawingOffsetAndScale()
366 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */