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 ************************************************************************/
56 /*************************************************************************
58 * Backgound object of Wordpro.
59 ************************************************************************/
60 #ifndef INCLUDED_LOTUSWORDPRO_SOURCE_FILTER_LWPBACKGROUNDSTUFF_HXX
61 #define INCLUDED_LOTUSWORDPRO_SOURCE_FILTER_LWPBACKGROUNDSTUFF_HXX
62 #include "lwpcolor.hxx"
64 /* background patterns */
65 #define BACK_TRANSPARENT 0
67 #define BACK_PATTERN 2
68 #define BACK_10PCTDOTS 3
69 #define BACK_30PCTDOTS 4
70 #define BACK_50PCTDOTS 5
71 #define BACK_75PCTDOTS 6
72 #define BACK_90PCTDOTS 7
73 #define BACK_90PCTINVDOTS 8
74 #define BACK_75PCTINVDOTS 9
75 #define BACK_50PCTINVDOTS 10
76 #define BACK_30PCTINVDOTS 11
77 #define BACK_10PCTINVDOTS 12
78 #define BACK_MARBLES 13
79 #define BACK_STARRYNIGHT 14
80 #define BACK_DIAGTHICK 15
81 #define BACK_DIAGTHIN 16
82 #define BACK_DIAGDOUBLE 17
83 #define BACK_DIAGDOUBLENARROW 18
84 #define BACK_DIAGTRIPLE 19
85 #define BACK_DIAGSINGLEWIDE 20
86 #define BACK_DIAGTHICKINV 21
87 #define BACK_DIAGTHININV 22
88 #define BACK_DIAGDOUBLEINV 23
89 #define BACK_DIAGDOUBLENARROWINV 24
90 #define BACK_DIAGTRIPLEINV 25
91 #define BACK_DIAGSINGLEWIDEINV 26
92 #define BACK_CHAINLINKSMALLINV 27
93 #define BACK_CHAINLINKSMALL 28
94 #define BACK_CHAINLINKMEDIUM 29
95 #define BACK_CHAINLINKLARGE 30
96 #define BACK_HORZSTRIPE1 31
97 #define BACK_HORZSTRIPE2 32
98 #define BACK_HORZSTRIPE3 33
99 #define BACK_HORZSTRIPE4 34
100 #define BACK_VERTSTRIPE1 35
101 #define BACK_VERTSTRIPE2 36
102 #define BACK_VERTSTRIPE3 37
103 #define BACK_VERTSTRIPE4 38
104 #define BACK_GRIDSMALL 39
105 #define BACK_GRIDMEDIUM 40
106 #define BACK_GRIDLARGE 41
107 #define BACK_BOXDOT 42
108 #define BACK_GOLFGREEN 43
110 #define BACK_HORZWEAVE 45
111 #define BACK_APPLEPIE 46
112 #define BACK_BRICK 47
113 #define BACK_DIAGBRICK 48
114 #define BACK_CHECKER1 49
115 #define BACK_CHECKER2 50
116 #define BACK_CHECKER3 51
117 #define BACK_CHECKER4 52
118 #define BACK_CHECKER5 53
119 #define BACK_SNOWFLAKE 54
120 #define BACK_MARGARITA 55
121 #define BACK_SIDEHARP 56
122 #define BACK_SCALES 57
123 #define BACK_TAYLOR 58
124 #define BACK_BUBBLES 59
125 #define BACK_ARGYLE 60
126 #define BACK_INDIAN1 61
127 #define BACK_INDIAN3 62
128 #define BACK_PEACHPIE 63
129 #define BACK_GRADIENT1 64
130 #define BACK_GRADIENT2 65
131 #define BACK_GRADIENT3 66
132 #define BACK_GRADIENT4 67
133 #define BACK_GRADIENT5 68
134 #define BACK_GRADIENT6 69
135 #define BACK_GRADIENT7 70
136 #define BACK_GRADIENT8 71
139 class LwpBackgroundStuff
148 static void GetPattern(sal_uInt16 btPttnIndex
, sal_uInt8
* pPttnArray
);
151 void Read(LwpObjectStream
*pStrm
);
152 LwpColor
* GetFillColor();
153 XFBGImage
* GetFillPattern();
155 inline bool IsTransparent() { return (m_nID
== BACK_TRANSPARENT
); }
156 inline bool IsPatternFill() { return (m_nID
> 2 && m_nID
< 72); }
158 friend class LwpBackgroundOverride
;
161 LwpColor m_aFillColor
;
162 LwpColor m_aPatternColor
;
167 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */