Lines 38-44
Link Here
|
38 |
#define GLOBALOVERFLOW |
38 |
#define GLOBALOVERFLOW |
39 |
|
39 |
|
40 |
using namespace com::sun::star; |
40 |
using namespace com::sun::star; |
41 |
using namespace rtl; |
|
|
42 |
|
41 |
|
43 |
sal_Unicode const pszExtColor[] = {'s','o','c'}; |
42 |
sal_Unicode const pszExtColor[] = {'s','o','c'}; |
44 |
|
43 |
|
Lines 141-426
bool XColorList::Create()
Link Here
|
141 |
{ |
140 |
{ |
142 |
XubString aStr; |
141 |
XubString aStr; |
143 |
xub_StrLen nLen; |
142 |
xub_StrLen nLen; |
144 |
ResMgr& rRes = DIALOG_MGR(); |
|
|
145 |
|
143 |
|
146 |
static sal_uInt16 __READONLY_DATA aResId[] = |
144 |
long nCount(0); |
147 |
{ |
145 |
|
148 |
RID_SVXSTR_BLACK, |
146 |
Insert( new XColorEntry( Color( 0x00, 0x00, 0x00 ), SVX_RESSTR( RID_SVXSTR_BLACK ) ), nCount); |
149 |
RID_SVXSTR_BLUE, |
147 |
Insert( new XColorEntry( Color( 0xe6, 0xe6, 0xff ), SVX_RESSTR( RID_SVXSTR_BLUEGREY ) ), ++nCount); |
150 |
RID_SVXSTR_GREEN, |
148 |
Insert( new XColorEntry( Color( 0x99, 0x33, 0x66 ), SVX_RESSTR( RID_SVXSTR_BORDEAUX ) ), ++nCount); |
151 |
RID_SVXSTR_CYAN, |
149 |
Insert( new XColorEntry( Color( 0x66, 0x00, 0x66 ), SVX_RESSTR( RID_SVXSTR_DKVIOLET ) ), ++nCount); |
152 |
RID_SVXSTR_RED, |
150 |
Insert( new XColorEntry( Color( 0xcc, 0xff, 0xff ), SVX_RESSTR( RID_SVXSTR_PALE_GREEN ) ), ++nCount); |
153 |
RID_SVXSTR_MAGENTA, |
151 |
Insert( new XColorEntry( Color( 0xff, 0xff, 0xcc ), SVX_RESSTR( RID_SVXSTR_PALE_YELLOW ) ), ++nCount); |
154 |
RID_SVXSTR_BROWN, |
152 |
Insert( new XColorEntry( Color( 0xff, 0x80, 0x80 ), SVX_RESSTR( RID_SVXSTR_SALMON ) ), ++nCount); |
155 |
RID_SVXSTR_GREY, |
153 |
Insert( new XColorEntry( Color( 0x00, 0x66, 0xcc ), SVX_RESSTR( RID_SVXSTR_SEABLUE ) ), ++nCount); |
156 |
RID_SVXSTR_LIGHTGREY, |
154 |
Insert( new XColorEntry( Color( 0x99, 0x99, 0xff ), SVX_RESSTR( RID_SVXSTR_VIOLET ) ), ++nCount); |
157 |
RID_SVXSTR_LIGHTBLUE, |
155 |
Insert( new XColorEntry( Color( 0xff, 0xff, 0xff ), SVX_RESSTR( RID_SVXSTR_WHITE ) ), ++nCount); |
158 |
RID_SVXSTR_LIGHTGREEN, |
156 |
|
159 |
RID_SVXSTR_LIGHTCYAN, |
157 |
// WARNING no "Gray" |
160 |
RID_SVXSTR_LIGHTRED, |
158 |
aStr = SVX_RESSTR( RID_SVXSTR_GREY ); |
161 |
RID_SVXSTR_LIGHTMAGENTA, |
159 |
aStr.AppendAscii(" 1"); |
162 |
RID_SVXSTR_YELLOW, |
160 |
nLen = aStr.Len() - 1; |
163 |
RID_SVXSTR_WHITE |
161 |
Insert( new XColorEntry( Color( 0xee, 0xee, 0xee ), aStr ), ++nCount); |
164 |
}; |
162 |
aStr.SetChar(nLen, sal_Unicode('2')); |
165 |
|
163 |
Insert( new XColorEntry( Color( 0xdd, 0xdd, 0xdd ), aStr ), ++nCount); |
166 |
// MT: COL_XXX ist in VCL kein enum mehr!!! |
164 |
aStr.SetChar(nLen, sal_Unicode('3')); |
167 |
// COL_WHITE ist seeeehr gross! ( => Zugriff ueber das obige Array hinweg ) |
165 |
Insert( new XColorEntry( Color( 0xcc, 0xcc, 0xcc ), aStr ), ++nCount); |
168 |
// Mit der unteren Schleife gibt es keinen Absturtz, aber es ist |
166 |
aStr.SetChar(nLen, sal_Unicode('4')); |
169 |
// alles schwarz, weil alles kleine Werte. |
167 |
Insert( new XColorEntry( Color( 0xb2, 0xb2, 0xb2 ), aStr ), ++nCount); |
170 |
// Ausserdem ist die ganze Vorgehensweise laut MM sehr unperformant |
168 |
aStr.SetChar(nLen, sal_Unicode('5')); |
171 |
// => lieber gleich Stringlisten laden. |
169 |
Insert( new XColorEntry( Color( 0x99, 0x99, 0x99 ), aStr ), ++nCount); |
172 |
|
170 |
aStr.SetChar(nLen, sal_Unicode('6')); |
173 |
// BM: ifndef VCL part removed (deprecated) |
171 |
Insert( new XColorEntry( Color( 0x80, 0x80, 0x80 ), aStr ), ++nCount); |
174 |
|
172 |
aStr.SetChar(nLen, sal_Unicode('7')); |
175 |
static ColorData __READONLY_DATA aColTab[] = |
173 |
Insert( new XColorEntry( Color( 0x66, 0x66, 0x66 ), aStr ), ++nCount); |
176 |
{ |
174 |
aStr.SetChar(nLen, sal_Unicode('8')); |
177 |
COL_BLACK, |
175 |
Insert( new XColorEntry( Color( 0x33, 0x33, 0x33 ), aStr ), ++nCount); |
178 |
COL_BLUE, |
176 |
aStr.SetChar(nLen, sal_Unicode('9')); |
179 |
COL_GREEN, |
177 |
Insert( new XColorEntry( Color( 0x1c, 0x1c, 0x1c ), aStr ), ++nCount); |
180 |
COL_CYAN, |
178 |
aStr.SetChar(nLen, sal_Unicode('1')); |
181 |
COL_RED, |
179 |
aStr.AppendAscii("0"); |
182 |
COL_MAGENTA, |
180 |
Insert( new XColorEntry( Color( 0x11, 0x11, 0x11 ), aStr ), ++nCount); |
183 |
COL_BROWN, |
181 |
|
184 |
COL_GRAY, |
182 |
|
185 |
COL_LIGHTGRAY, |
183 |
aStr = SVX_RESSTR( RID_SVXSTR_BLUE ); |
186 |
COL_LIGHTBLUE, |
184 |
Insert( new XColorEntry( Color( 0x66, 0x66, 0xff ), aStr ), ++nCount); |
187 |
COL_LIGHTGREEN, |
185 |
aStr.AppendAscii(" 1"); |
188 |
COL_LIGHTCYAN, |
186 |
nLen = aStr.Len() - 1; |
189 |
COL_LIGHTRED, |
187 |
Insert( new XColorEntry( Color( 0x99, 0x99, 0xff ), aStr ), ++nCount); |
190 |
COL_LIGHTMAGENTA, |
188 |
aStr.SetChar(nLen, sal_Unicode('2')); |
191 |
COL_YELLOW, |
189 |
Insert( new XColorEntry( Color( 0x33, 0x33, 0xff ), aStr ), ++nCount); |
192 |
COL_WHITE |
190 |
aStr.SetChar(nLen, sal_Unicode('3')); |
193 |
}; |
191 |
Insert( new XColorEntry( Color( 0x00, 0x00, 0xff ), aStr ), ++nCount); |
194 |
|
192 |
aStr.SetChar(nLen, sal_Unicode('4')); |
195 |
for( sal_uInt16 n = 0; n < 16; ++n ) |
193 |
Insert( new XColorEntry( Color( 0x00, 0x00, 0xcc ), aStr ), ++nCount); |
196 |
{ |
194 |
aStr.SetChar(nLen, sal_Unicode('5')); |
197 |
Insert( new XColorEntry( Color( aColTab[n] ), String( ResId( aResId[ n ], rRes )) ), n ); |
195 |
Insert( new XColorEntry( Color( 0x00, 0x00, 0x99 ), aStr ), ++nCount); |
198 |
} |
196 |
aStr.SetChar(nLen, sal_Unicode('6')); |
|
|
197 |
Insert( new XColorEntry( Color( 0x00, 0x00, 0x66 ), aStr ), ++nCount); |
198 |
aStr.SetChar(nLen, sal_Unicode('7')); |
199 |
Insert( new XColorEntry( Color( 0x33, 0x33, 0x66 ), aStr ), ++nCount); |
200 |
aStr.SetChar(nLen, sal_Unicode('8')); |
201 |
Insert( new XColorEntry( Color( 0x66, 0x66, 0x99 ), aStr ), ++nCount); |
202 |
aStr.SetChar(nLen, sal_Unicode('9')); |
203 |
Insert( new XColorEntry( Color( 0x99, 0x99, 0xcc ), aStr ), ++nCount); |
204 |
aStr.SetChar(nLen, sal_Unicode('1')); |
205 |
aStr.AppendAscii("0"); |
206 |
Insert( new XColorEntry( Color( 0xcc, 0xcc, 0xff ), aStr ), ++nCount); |
207 |
aStr.SetChar(nLen+1, sal_Unicode('1')); |
208 |
Insert( new XColorEntry( Color( 0xCF, 0xE7, 0xF5 ), aStr ), ++nCount); |
199 |
|
209 |
|
200 |
aStr = SVX_RESSTR( RID_SVXSTR_GREY ); |
210 |
aStr = SVX_RESSTR( RID_SVXSTR_CYAN ); |
201 |
aStr.AppendAscii(" 80%"); |
211 |
Insert( new XColorEntry( Color( 0x66, 0xff, 0xff ), aStr ), ++nCount); |
202 |
nLen = aStr.Len() - 3; |
212 |
aStr.AppendAscii(" 1"); |
203 |
Insert( new XColorEntry( Color( 51, 51, 51 ), aStr ) , 16); |
213 |
nLen = aStr.Len() - 1; |
204 |
aStr.SetChar(nLen, sal_Unicode('7')); |
214 |
Insert( new XColorEntry( Color( 0x99, 0xff, 0xff ), aStr ), ++nCount); |
205 |
Insert( new XColorEntry( Color( 76, 76, 76 ), aStr ) , 17); |
215 |
aStr.SetChar(nLen, sal_Unicode('2')); |
206 |
aStr.SetChar(nLen, sal_Unicode('6')); |
216 |
Insert( new XColorEntry( Color( 0x00, 0xff, 0xff ), aStr ), ++nCount); |
207 |
Insert( new XColorEntry( Color(102,102,102 ), aStr ) , 18); |
217 |
aStr.SetChar(nLen, sal_Unicode('3')); |
208 |
aStr.SetChar(nLen, sal_Unicode('4')); |
218 |
Insert( new XColorEntry( Color( 0x00, 0xcc, 0xcc ), aStr ), ++nCount); |
209 |
Insert( new XColorEntry( Color(153,153,153 ), aStr ) , 19); |
219 |
aStr.SetChar(nLen, sal_Unicode('4')); |
210 |
aStr.SetChar(nLen, sal_Unicode('3')); |
220 |
Insert( new XColorEntry( Color( 0x00, 0x99, 0x99 ), aStr ), ++nCount); |
211 |
Insert( new XColorEntry( Color(179,179,179 ), aStr ) , 20); |
221 |
aStr.SetChar(nLen, sal_Unicode('5')); |
212 |
aStr.SetChar(nLen, sal_Unicode('2')); |
222 |
Insert( new XColorEntry( Color( 0x00, 0x66, 0x66 ), aStr ), ++nCount); |
213 |
Insert( new XColorEntry( Color(204,204,204 ), aStr ) , 21); |
223 |
aStr.SetChar(nLen, sal_Unicode('6')); |
214 |
// BM: new 15% |
224 |
Insert( new XColorEntry( Color( 0x00, 0x33, 0x33 ), aStr ), ++nCount); |
215 |
aStr.SetChar(nLen, sal_Unicode('1')); |
225 |
aStr.SetChar(nLen, sal_Unicode('7')); |
216 |
aStr.SetChar(nLen + 1, sal_Unicode('5')); |
226 |
Insert( new XColorEntry( Color( 0x33, 0x66, 0x66 ), aStr ), ++nCount); |
217 |
Insert( new XColorEntry( Color(217,217,217 ), aStr ) , 22); |
227 |
aStr.SetChar(nLen, sal_Unicode('8')); |
218 |
aStr.SetChar(nLen + 1, sal_Unicode('0')); |
228 |
Insert( new XColorEntry( Color( 0x66, 0x99, 0x99 ), aStr ), ++nCount); |
219 |
Insert( new XColorEntry( Color(230,230,230 ), aStr ) , 23); |
229 |
aStr.SetChar(nLen, sal_Unicode('9')); |
220 |
Insert( new XColorEntry( Color(230,230,255 ), SVX_RESSTR( RID_SVXSTR_BLUEGREY ) ) , 24); |
230 |
Insert( new XColorEntry( Color( 0x99, 0xcc, 0xcc ), aStr ), ++nCount); |
221 |
|
231 |
aStr.SetChar(nLen, sal_Unicode('1')); |
222 |
aStr = SVX_RESSTR( RID_SVXSTR_RED ); |
232 |
aStr.AppendAscii("0"); |
223 |
aStr.AppendAscii(" 1"); |
233 |
Insert( new XColorEntry( Color( 0xcc, 0xff, 0xff ), aStr ), ++nCount); |
224 |
nLen = aStr.Len() - 1; |
234 |
|
225 |
Insert( new XColorEntry( Color(255, 51,102 ), aStr ) , 25); |
235 |
aStr = SVX_RESSTR( RID_SVXSTR_GREEN ); |
226 |
aStr.SetChar(nLen, sal_Unicode('2')); |
236 |
Insert( new XColorEntry( Color( 0x99, 0xff, 0x66 ), aStr ), ++nCount); |
227 |
Insert( new XColorEntry( Color(220, 35, 0 ), aStr ) , 26); |
237 |
aStr.AppendAscii(" 1"); |
228 |
aStr.SetChar(nLen, sal_Unicode('3')); |
238 |
nLen = aStr.Len() - 1; |
229 |
Insert( new XColorEntry( Color(184, 71, 0 ), aStr ) , 27); |
239 |
Insert( new XColorEntry( Color( 0x99, 0xff, 0x99 ), aStr ), ++nCount); |
230 |
aStr.SetChar(nLen, sal_Unicode('4')); |
240 |
aStr.SetChar(nLen, sal_Unicode('2')); |
231 |
Insert( new XColorEntry( Color(255, 51, 51 ), aStr ) , 28); |
241 |
Insert( new XColorEntry( Color( 0x66, 0xff, 0x66 ), aStr ), ++nCount); |
232 |
aStr.SetChar(nLen, sal_Unicode('5')); |
242 |
aStr.SetChar(nLen, sal_Unicode('3')); |
233 |
Insert( new XColorEntry( Color(235, 97, 61 ), aStr ) , 29); |
243 |
Insert( new XColorEntry( Color( 0x00, 0xcc, 0x00 ), aStr ), ++nCount); |
234 |
aStr.SetChar(nLen, sal_Unicode('6')); |
244 |
aStr.SetChar(nLen, sal_Unicode('4')); |
235 |
Insert( new XColorEntry( Color(184, 71, 71 ), aStr ) , 30); |
245 |
Insert( new XColorEntry( Color( 0x00, 0x99, 0x00 ), aStr ), ++nCount); |
236 |
aStr.SetChar(nLen, sal_Unicode('7')); |
246 |
aStr.SetChar(nLen, sal_Unicode('5')); |
237 |
Insert( new XColorEntry( Color(184, 0, 71 ), aStr ) , 31); |
247 |
Insert( new XColorEntry( Color( 0x00, 0x66, 0x00 ), aStr ), ++nCount); |
238 |
aStr.SetChar(nLen, sal_Unicode('8')); |
248 |
aStr.SetChar(nLen, sal_Unicode('6')); |
239 |
Insert( new XColorEntry( Color(153, 40, 76 ), aStr ) , 32); |
249 |
Insert( new XColorEntry( Color( 0x00, 0x33, 0x00 ), aStr ), ++nCount); |
240 |
|
250 |
aStr.SetChar(nLen, sal_Unicode('7')); |
241 |
aStr = SVX_RESSTR( RID_SVXSTR_MAGENTA ); |
251 |
Insert( new XColorEntry( Color( 0x33, 0x66, 0x33 ), aStr ), ++nCount); |
242 |
aStr.AppendAscii(" 1"); |
252 |
aStr.SetChar(nLen, sal_Unicode('8')); |
243 |
nLen = aStr.Len() - 1; |
253 |
Insert( new XColorEntry( Color( 0x66, 0x99, 0x66 ), aStr ), ++nCount); |
244 |
Insert( new XColorEntry( Color(148, 0,107 ), aStr ) , 33); |
254 |
aStr.SetChar(nLen, sal_Unicode('9')); |
245 |
aStr.SetChar(nLen, sal_Unicode('2')); |
255 |
Insert( new XColorEntry( Color( 0x99, 0xcc, 0x99 ), aStr ), ++nCount); |
246 |
Insert( new XColorEntry( Color(148, 71,107 ), aStr ) , 34); |
256 |
aStr.SetChar(nLen, sal_Unicode('1')); |
247 |
aStr.SetChar(nLen, sal_Unicode('3')); |
257 |
aStr.AppendAscii("0"); |
248 |
Insert( new XColorEntry( Color(148, 71,148 ), aStr ) , 35); |
258 |
Insert( new XColorEntry( Color( 0xcc, 0xff, 0xcc ), aStr ), ++nCount); |
249 |
aStr.SetChar(nLen, sal_Unicode('4')); |
259 |
|
250 |
Insert( new XColorEntry( Color(153,102,204 ), aStr ) , 36); |
260 |
|
251 |
aStr.SetChar(nLen, sal_Unicode('5')); |
261 |
aStr = SVX_RESSTR( RID_SVXSTR_MAGENTA ); |
252 |
Insert( new XColorEntry( Color(107, 71,148 ), aStr ) , 37); |
262 |
Insert( new XColorEntry( Color( 0xff, 0x33, 0xff ), aStr ), ++nCount); |
253 |
aStr.SetChar(nLen, sal_Unicode('6')); |
263 |
aStr.AppendAscii(" 1"); |
254 |
Insert( new XColorEntry( Color(107, 35,148 ), aStr ) , 38); |
264 |
nLen = aStr.Len() - 1; |
255 |
aStr.SetChar(nLen, sal_Unicode('7')); |
265 |
Insert( new XColorEntry( Color( 0xff, 0x99, 0xff ), aStr ), ++nCount); |
256 |
Insert( new XColorEntry( Color(107, 0,148 ), aStr ) , 39); |
266 |
aStr.SetChar(nLen, sal_Unicode('2')); |
257 |
aStr.SetChar(nLen, sal_Unicode('8')); |
267 |
Insert( new XColorEntry( Color( 0xff, 0x66, 0xff ), aStr ), ++nCount); |
258 |
Insert( new XColorEntry( Color( 94, 17,166 ), aStr ) , 40); |
268 |
aStr.SetChar(nLen, sal_Unicode('3')); |
259 |
|
269 |
Insert( new XColorEntry( Color( 0xff, 0x00, 0xff ), aStr ), ++nCount); |
260 |
aStr = SVX_RESSTR( RID_SVXSTR_BLUE ); |
270 |
aStr.SetChar(nLen, sal_Unicode('4')); |
261 |
aStr.AppendAscii(" 1"); |
271 |
Insert( new XColorEntry( Color( 0xcc, 0x00, 0xcc ), aStr ), ++nCount); |
262 |
nLen = aStr.Len() - 1; |
272 |
aStr.SetChar(nLen, sal_Unicode('5')); |
263 |
Insert( new XColorEntry( Color( 40, 0,153 ), aStr ) , 41); |
273 |
Insert( new XColorEntry( Color( 0x99, 0x00, 0x99 ), aStr ), ++nCount); |
264 |
aStr.SetChar(nLen, sal_Unicode('2')); |
274 |
aStr.SetChar(nLen, sal_Unicode('6')); |
265 |
Insert( new XColorEntry( Color( 71, 0,184 ), aStr ) , 42); |
275 |
Insert( new XColorEntry( Color( 0x66, 0x00, 0x66 ), aStr ), ++nCount); |
266 |
aStr.SetChar(nLen, sal_Unicode('3')); |
276 |
aStr.SetChar(nLen, sal_Unicode('7')); |
267 |
Insert( new XColorEntry( Color( 35, 0,220 ), aStr ) , 43); |
277 |
Insert( new XColorEntry( Color( 0x66, 0x33, 0x66 ), aStr ), ++nCount); |
268 |
aStr.SetChar(nLen, sal_Unicode('4')); |
278 |
aStr.SetChar(nLen, sal_Unicode('8')); |
269 |
Insert( new XColorEntry( Color( 35, 35,220 ), aStr ) , 44); |
279 |
Insert( new XColorEntry( Color( 0x99, 0x66, 0x99 ), aStr ), ++nCount); |
270 |
aStr.SetChar(nLen, sal_Unicode('5')); |
280 |
aStr.SetChar(nLen, sal_Unicode('9')); |
271 |
Insert( new XColorEntry( Color( 0, 71,255 ), aStr ) , 45); |
281 |
Insert( new XColorEntry( Color( 0xcc, 0x99, 0xcc ), aStr ), ++nCount); |
272 |
aStr.SetChar(nLen, sal_Unicode('6')); |
282 |
aStr.SetChar(nLen, sal_Unicode('1')); |
273 |
Insert( new XColorEntry( Color( 0,153,255 ), aStr ) , 46); |
283 |
aStr.AppendAscii("0"); |
274 |
aStr.SetChar(nLen, sal_Unicode('7')); |
284 |
Insert( new XColorEntry( Color( 0xff, 0xcc, 0xff ), aStr ), ++nCount); |
275 |
Insert( new XColorEntry( Color( 0,184,255 ), aStr ) , 47); |
285 |
|
276 |
aStr.SetChar(nLen, sal_Unicode('8')); |
286 |
aStr = SVX_RESSTR( RID_SVXSTR_ORANGE ); |
277 |
Insert( new XColorEntry( Color(153,204,255 ), aStr ) , 48); |
287 |
Insert( new XColorEntry( Color( 0xff, 0x66, 0x00 ), aStr ), ++nCount); |
278 |
//Insert(48, new XColorEntry( Color( 46,215,255 ), aStr ) ); |
288 |
aStr.AppendAscii(" 1"); |
279 |
|
289 |
nLen = aStr.Len() - 1; |
280 |
aStr = SVX_RESSTR( RID_SVXSTR_CYAN ); |
290 |
Insert( new XColorEntry( Color( 0xff, 0xcc, 0x00 ), aStr ), ++nCount); |
281 |
aStr.AppendAscii(" 1"); |
291 |
aStr.SetChar(nLen, sal_Unicode('2')); |
282 |
nLen = aStr.Len() - 1; |
292 |
Insert( new XColorEntry( Color( 0xff, 0x99, 0x00 ), aStr ), ++nCount); |
283 |
Insert( new XColorEntry( Color( 0,220,255 ), aStr ) , 49); |
293 |
aStr.SetChar(nLen, sal_Unicode('3')); |
284 |
aStr.SetChar(nLen, sal_Unicode('2')); |
294 |
Insert( new XColorEntry( Color( 0xff, 0x33, 0x00 ), aStr ), ++nCount); |
285 |
Insert( new XColorEntry( Color( 0,204,204 ), aStr ) , 50); |
295 |
aStr.SetChar(nLen, sal_Unicode('4')); |
286 |
aStr.SetChar(nLen, sal_Unicode('3')); |
296 |
Insert( new XColorEntry( Color( 0xcc, 0x33, 0x00 ), aStr ), ++nCount); |
287 |
Insert( new XColorEntry( Color( 35,184,220 ), aStr ) , 51); |
297 |
aStr.SetChar(nLen, sal_Unicode('5')); |
288 |
aStr.SetChar(nLen, sal_Unicode('4')); |
298 |
Insert( new XColorEntry( Color( 0x80, 0x19, 0x00 ), aStr ), ++nCount); |
289 |
Insert( new XColorEntry( Color( 71,184,184 ), aStr ) , 52); |
299 |
aStr.SetChar(nLen, sal_Unicode('6')); |
290 |
aStr.SetChar(nLen, sal_Unicode('5')); |
300 |
Insert( new XColorEntry( Color( 0x46, 0x19, 0x00 ), aStr ), ++nCount); |
291 |
Insert( new XColorEntry( Color( 51,163,163 ), aStr ) , 53); |
301 |
aStr.SetChar(nLen, sal_Unicode('7')); |
292 |
aStr.SetChar(nLen, sal_Unicode('6')); |
302 |
Insert( new XColorEntry( Color( 0x66, 0x19, 0x00 ), aStr ), ++nCount); |
293 |
Insert( new XColorEntry( Color( 25,138,138 ), aStr ) , 54); |
303 |
aStr.SetChar(nLen, sal_Unicode('8')); |
294 |
aStr.SetChar(nLen, sal_Unicode('7')); |
304 |
Insert( new XColorEntry( Color( 0x99, 0x66, 0x33 ), aStr ), ++nCount); |
295 |
Insert( new XColorEntry( Color( 0,107,107 ), aStr ) , 55); |
305 |
aStr.SetChar(nLen, sal_Unicode('9')); |
296 |
aStr.SetChar(nLen, sal_Unicode('8')); |
306 |
Insert( new XColorEntry( Color( 0xcc, 0x99, 0x66 ), aStr ), ++nCount); |
297 |
Insert( new XColorEntry( Color( 0, 74, 74 ), aStr ) , 56); |
307 |
aStr.SetChar(nLen, sal_Unicode('1')); |
298 |
|
308 |
aStr.AppendAscii("0"); |
299 |
aStr = SVX_RESSTR( RID_SVXSTR_GREEN ); |
309 |
Insert( new XColorEntry( Color( 0xff, 0xcc, 0x99 ), aStr ), ++nCount); |
300 |
aStr.AppendAscii(" 1"); |
310 |
|
301 |
nLen = aStr.Len() - 1; |
311 |
|
302 |
Insert( new XColorEntry( Color( 53, 94, 0 ), aStr ) , 57); |
312 |
aStr = SVX_RESSTR( RID_SVXSTR_COLOR_PINK ); |
303 |
aStr.SetChar(nLen, sal_Unicode('2')); |
313 |
Insert( new XColorEntry( Color( 0xff, 0x00, 0xcc ), aStr ), ++nCount); |
304 |
Insert( new XColorEntry( Color( 92,133, 38 ), aStr ) , 58); |
314 |
aStr.AppendAscii(" 1"); |
305 |
aStr.SetChar(nLen, sal_Unicode('3')); |
315 |
nLen = aStr.Len() - 1; |
306 |
Insert( new XColorEntry( Color(125,166, 71 ), aStr ) , 59); |
316 |
Insert( new XColorEntry( Color( 0xff, 0x66, 0xcc ), aStr ), ++nCount); |
307 |
aStr.SetChar(nLen, sal_Unicode('4')); |
317 |
aStr.SetChar(nLen, sal_Unicode('2')); |
308 |
Insert( new XColorEntry( Color(148,189, 94 ), aStr ) , 60); |
318 |
Insert( new XColorEntry( Color( 0xff, 0x33, 0x99 ), aStr ), ++nCount); |
309 |
aStr.SetChar(nLen, sal_Unicode('5')); |
319 |
aStr.SetChar(nLen, sal_Unicode('3')); |
310 |
Insert( new XColorEntry( Color( 0,174, 0 ), aStr ) , 61); |
320 |
Insert( new XColorEntry( Color( 0xff, 0x00, 0x66 ), aStr ), ++nCount); |
311 |
aStr.SetChar(nLen, sal_Unicode('6')); |
321 |
aStr.SetChar(nLen, sal_Unicode('4')); |
312 |
Insert( new XColorEntry( Color( 51,204,102 ), aStr ) , 62); |
322 |
Insert( new XColorEntry( Color( 0xcc, 0x00, 0x66 ), aStr ), ++nCount); |
313 |
aStr.SetChar(nLen, sal_Unicode('7')); |
323 |
aStr.SetChar(nLen, sal_Unicode('5')); |
314 |
Insert( new XColorEntry( Color( 61,235, 61 ), aStr ) , 63); |
324 |
Insert( new XColorEntry( Color( 0x99, 0x00, 0x66 ), aStr ), ++nCount); |
315 |
aStr.SetChar(nLen, sal_Unicode('8')); |
325 |
aStr.SetChar(nLen, sal_Unicode('6')); |
316 |
Insert( new XColorEntry( Color( 35,255, 35 ), aStr ) , 64); |
326 |
Insert( new XColorEntry( Color( 0x33, 0x00, 0x33 ), aStr ), ++nCount); |
317 |
|
327 |
aStr.SetChar(nLen, sal_Unicode('7')); |
318 |
aStr = SVX_RESSTR( RID_SVXSTR_YELLOW ); |
328 |
Insert( new XColorEntry( Color( 0x66, 0x00, 0x33 ), aStr ), ++nCount); |
319 |
aStr.AppendAscii(" 1"); |
329 |
aStr.SetChar(nLen, sal_Unicode('8')); |
320 |
nLen = aStr.Len() - 1; |
330 |
Insert( new XColorEntry( Color( 0x99, 0x33, 0x66 ), aStr ), ++nCount); |
321 |
Insert( new XColorEntry( Color(230,255, 0 ), aStr ) , 65); |
331 |
aStr.SetChar(nLen, sal_Unicode('9')); |
322 |
aStr.SetChar(nLen, sal_Unicode('2')); |
332 |
Insert( new XColorEntry( Color( 0xcc, 0x66, 0x99 ), aStr ), ++nCount); |
323 |
Insert( new XColorEntry( Color(255,255,153 ), aStr ) , 66); |
333 |
aStr.SetChar(nLen, sal_Unicode('1')); |
324 |
aStr.SetChar(nLen, sal_Unicode('3')); |
334 |
aStr.AppendAscii("0"); |
325 |
Insert( new XColorEntry( Color(255,255,102 ), aStr ) , 67); |
335 |
Insert( new XColorEntry( Color( 0xff, 0x99, 0xcc ), aStr ), ++nCount); |
326 |
aStr.SetChar(nLen, sal_Unicode('4')); |
336 |
|
327 |
Insert( new XColorEntry( Color(230,230, 76 ), aStr ) , 68); |
337 |
|
328 |
aStr.SetChar(nLen, sal_Unicode('5')); |
338 |
aStr = SVX_RESSTR( RID_SVXSTR_COLOR_PURPLE ); |
329 |
Insert( new XColorEntry( Color(204,204, 0 ), aStr ) , 69); |
339 |
Insert( new XColorEntry( Color( 0x99, 0x00, 0xff ), aStr ), ++nCount); |
330 |
aStr.SetChar(nLen, sal_Unicode('6')); |
340 |
aStr.AppendAscii(" 1"); |
331 |
Insert( new XColorEntry( Color(179,179, 0 ), aStr ) , 70); |
341 |
nLen = aStr.Len() - 1; |
332 |
aStr.SetChar(nLen, sal_Unicode('7')); |
342 |
Insert( new XColorEntry( Color( 0xcc, 0x66, 0xff ), aStr ), ++nCount); |
333 |
Insert( new XColorEntry( Color(128,128, 25 ), aStr ) , 71); |
343 |
aStr.SetChar(nLen, sal_Unicode('2')); |
334 |
aStr.SetChar(nLen, sal_Unicode('8')); |
344 |
Insert( new XColorEntry( Color( 0x99, 0x33, 0xff ), aStr ), ++nCount); |
335 |
Insert( new XColorEntry( Color(102,102, 0 ), aStr ) , 72); |
345 |
aStr.SetChar(nLen, sal_Unicode('3')); |
336 |
|
346 |
Insert( new XColorEntry( Color( 0x66, 0x00, 0xff ), aStr ), ++nCount); |
337 |
aStr = SVX_RESSTR( RID_SVXSTR_BROWN ); |
347 |
aStr.SetChar(nLen, sal_Unicode('4')); |
338 |
aStr.AppendAscii(" 1"); |
348 |
Insert( new XColorEntry( Color( 0x66, 0x00, 0xcc ), aStr ), ++nCount); |
339 |
nLen = aStr.Len() - 1; |
349 |
aStr.SetChar(nLen, sal_Unicode('5')); |
340 |
Insert( new XColorEntry( Color( 76, 25, 0 ), aStr ) , 73); |
350 |
Insert( new XColorEntry( Color( 0x33, 0x00, 0x99 ), aStr ), ++nCount); |
341 |
aStr.SetChar(nLen, sal_Unicode('2')); |
351 |
aStr.SetChar(nLen, sal_Unicode('6')); |
342 |
Insert( new XColorEntry( Color(102, 51, 0 ), aStr ) , 74); |
352 |
Insert( new XColorEntry( Color( 0x00, 0x00, 0x33 ), aStr ), ++nCount); |
343 |
aStr.SetChar(nLen, sal_Unicode('3')); |
353 |
aStr.SetChar(nLen, sal_Unicode('7')); |
344 |
Insert( new XColorEntry( Color(128, 76, 25 ), aStr ) , 75); |
354 |
Insert( new XColorEntry( Color( 0x33, 0x00, 0x66 ), aStr ), ++nCount); |
345 |
aStr.SetChar(nLen, sal_Unicode('4')); |
355 |
aStr.SetChar(nLen, sal_Unicode('8')); |
346 |
Insert( new XColorEntry( Color(153,102, 51 ), aStr ) , 76); |
356 |
Insert( new XColorEntry( Color( 0x66, 0x33, 0x99 ), aStr ), ++nCount); |
347 |
|
357 |
aStr.SetChar(nLen, sal_Unicode('9')); |
348 |
aStr = SVX_RESSTR( RID_SVXSTR_ORANGE ); |
358 |
Insert( new XColorEntry( Color( 0x99, 0x66, 0xcc ), aStr ), ++nCount); |
349 |
aStr.AppendAscii(" 1"); |
359 |
aStr.SetChar(nLen, sal_Unicode('1')); |
350 |
nLen = aStr.Len() - 1; |
360 |
aStr.AppendAscii("0"); |
351 |
Insert( new XColorEntry( Color(204,102, 51 ), aStr ) , 77); |
361 |
Insert( new XColorEntry( Color( 0xcc, 0x99, 0xff ), aStr ), ++nCount); |
352 |
aStr.SetChar(nLen, sal_Unicode('2')); |
362 |
|
353 |
Insert( new XColorEntry( Color(255,102, 51 ), aStr ) , 78); |
363 |
|
354 |
aStr.SetChar(nLen, sal_Unicode('3')); |
364 |
aStr = SVX_RESSTR( RID_SVXSTR_RED ); |
355 |
Insert( new XColorEntry( Color(255,153,102 ), aStr ) , 79); |
365 |
Insert( new XColorEntry( Color( 0xff, 0x33, 0x33 ), aStr ), ++nCount); |
356 |
aStr.SetChar(nLen, sal_Unicode('4')); |
366 |
aStr.AppendAscii(" 1"); |
357 |
Insert( new XColorEntry( Color(255,204,153 ), aStr ) , 80); |
367 |
nLen = aStr.Len() - 1; |
358 |
|
368 |
Insert( new XColorEntry( Color( 0xff, 0x99, 0x99 ), aStr ), ++nCount); |
359 |
// new chart colors |
369 |
aStr.SetChar(nLen, sal_Unicode('2')); |
360 |
aStr = SVX_RESSTR( RID_SVXSTR_VIOLET ); |
370 |
Insert( new XColorEntry( Color( 0xff, 0x66, 0x66 ), aStr ), ++nCount); |
361 |
Insert( new XColorEntry( Color( 0x99, 0x99, 0xff ), aStr ) , 81); |
371 |
aStr.SetChar(nLen, sal_Unicode('3')); |
362 |
|
372 |
Insert( new XColorEntry( Color( 0xff, 0x00, 0x00 ), aStr ), ++nCount); |
363 |
aStr = SVX_RESSTR( RID_SVXSTR_BORDEAUX ); |
373 |
aStr.SetChar(nLen, sal_Unicode('4')); |
364 |
Insert( new XColorEntry( Color( 0x99, 0x33, 0x66 ), aStr ) , 82); |
374 |
Insert( new XColorEntry( Color( 0xcc, 0x00, 0x00 ), aStr ), ++nCount); |
365 |
|
375 |
aStr.SetChar(nLen, sal_Unicode('5')); |
366 |
aStr = SVX_RESSTR( RID_SVXSTR_PALE_YELLOW ); |
376 |
Insert( new XColorEntry( Color( 0x99, 0x00, 0x00 ), aStr ), ++nCount); |
367 |
Insert( new XColorEntry( Color( 0xff, 0xff, 0xcc ), aStr ) , 83); |
377 |
aStr.SetChar(nLen, sal_Unicode('6')); |
368 |
|
378 |
Insert( new XColorEntry( Color( 0x33, 0x00, 0x00 ), aStr ), ++nCount); |
369 |
aStr = SVX_RESSTR( RID_SVXSTR_PALE_GREEN ); |
379 |
aStr.SetChar(nLen, sal_Unicode('7')); |
370 |
Insert( new XColorEntry( Color( 0xcc, 0xff, 0xff ), aStr ) , 84); |
380 |
Insert( new XColorEntry( Color( 0x66, 0x33, 0x33 ), aStr ), ++nCount); |
371 |
|
381 |
aStr.SetChar(nLen, sal_Unicode('8')); |
372 |
aStr = SVX_RESSTR( RID_SVXSTR_DKVIOLET ); |
382 |
Insert( new XColorEntry( Color( 0x99, 0x66, 0x66 ), aStr ), ++nCount); |
373 |
Insert( new XColorEntry( Color( 0x66, 0x00, 0x66 ), aStr ) , 85); |
383 |
aStr.SetChar(nLen, sal_Unicode('9')); |
374 |
|
384 |
Insert( new XColorEntry( Color( 0xcc, 0x99, 0x99 ), aStr ), ++nCount); |
375 |
aStr = SVX_RESSTR( RID_SVXSTR_SALMON ); |
385 |
aStr.SetChar(nLen, sal_Unicode('1')); |
376 |
Insert( new XColorEntry( Color( 0xff, 0x80, 0x80 ), aStr ) , 86); |
386 |
aStr.AppendAscii("0"); |
377 |
|
387 |
Insert( new XColorEntry( Color( 0xff, 0xcc, 0xcc ), aStr ), ++nCount); |
378 |
aStr = SVX_RESSTR( RID_SVXSTR_SEABLUE ); |
388 |
|
379 |
Insert( new XColorEntry( Color( 0x00, 0x66, 0xcc ), aStr ) , 87); |
389 |
|
380 |
|
390 |
aStr = SVX_RESSTR( RID_SVXSTR_COLOR_SKYBLUE ); |
381 |
// Sun colors |
391 |
Insert( new XColorEntry( Color( 0x00, 0xcc, 0xff ), aStr ), ++nCount); |
382 |
aStr = SVX_RESSTR( RID_SVXSTR_COLOR_SUN ); |
392 |
aStr.AppendAscii(" 1"); |
383 |
aStr.AppendAscii(" 1"); |
393 |
nLen = aStr.Len() - 1; |
384 |
nLen = aStr.Len() - 1; |
394 |
Insert( new XColorEntry( Color( 0x99, 0x99, 0xff ), aStr ), ++nCount); |
385 |
Insert( new XColorEntry( Color( 0x33, 0x33, 0x66 ), aStr ) , 88); |
395 |
aStr.SetChar(nLen, sal_Unicode('2')); |
386 |
aStr.SetChar(nLen, sal_Unicode('2')); |
396 |
Insert( new XColorEntry( Color( 0x33, 0x99, 0xff ), aStr ), ++nCount); |
387 |
Insert( new XColorEntry( Color( 0x66, 0x66, 0x99 ), aStr ) , 89); |
397 |
aStr.SetChar(nLen, sal_Unicode('3')); |
388 |
aStr.SetChar(nLen, sal_Unicode('3')); |
398 |
Insert( new XColorEntry( Color( 0x00, 0x66, 0xff ), aStr ), ++nCount); |
389 |
Insert( new XColorEntry( Color( 0x99, 0x99, 0xcc ), aStr ) , 90); |
399 |
aStr.SetChar(nLen, sal_Unicode('4')); |
390 |
aStr.SetChar(nLen, sal_Unicode('4')); |
400 |
Insert( new XColorEntry( Color( 0x00, 0x66, 0xcc ), aStr ), ++nCount); |
391 |
Insert( new XColorEntry( Color( 0xcc, 0xcc, 0xff ), aStr ) , 91); |
401 |
aStr.SetChar(nLen, sal_Unicode('5')); |
|
|
402 |
Insert( new XColorEntry( Color( 0x00, 0x66, 0x99 ), aStr ), ++nCount); |
403 |
aStr.SetChar(nLen, sal_Unicode('6')); |
404 |
Insert( new XColorEntry( Color( 0x00, 0x00, 0x80 ), aStr ), ++nCount); |
405 |
aStr.SetChar(nLen, sal_Unicode('7')); |
406 |
Insert( new XColorEntry( Color( 0x00, 0x33, 0x66 ), aStr ), ++nCount); |
407 |
aStr.SetChar(nLen, sal_Unicode('8')); |
408 |
Insert( new XColorEntry( Color( 0x33, 0x66, 0x99 ), aStr ), ++nCount); |
409 |
aStr.SetChar(nLen, sal_Unicode('9')); |
410 |
Insert( new XColorEntry( Color( 0x66, 0x99, 0xcc ), aStr ), ++nCount); |
411 |
aStr.SetChar(nLen, sal_Unicode('1')); |
412 |
aStr.AppendAscii("0"); |
413 |
Insert( new XColorEntry( Color( 0x99, 0xcc, 0xff ), aStr ), ++nCount); |
414 |
|
415 |
|
416 |
aStr = SVX_RESSTR( RID_SVXSTR_COLOR_TURQUOISE ); |
417 |
Insert( new XColorEntry( Color( 0x33, 0xff, 0x99 ), aStr ), ++nCount); |
418 |
aStr.AppendAscii(" 1"); |
419 |
nLen = aStr.Len() - 1; |
420 |
Insert( new XColorEntry( Color( 0x66, 0xff, 0x99 ), aStr ), ++nCount); |
421 |
aStr.SetChar(nLen, sal_Unicode('2')); |
422 |
Insert( new XColorEntry( Color( 0x00, 0xff, 0x66 ), aStr ), ++nCount); |
423 |
aStr.SetChar(nLen, sal_Unicode('3')); |
424 |
Insert( new XColorEntry( Color( 0x00, 0xcc, 0x33 ), aStr ), ++nCount); |
425 |
aStr.SetChar(nLen, sal_Unicode('4')); |
426 |
Insert( new XColorEntry( Color( 0x00, 0x99, 0x33 ), aStr ), ++nCount); |
427 |
aStr.SetChar(nLen, sal_Unicode('5')); |
428 |
Insert( new XColorEntry( Color( 0x00, 0x78, 0x26 ), aStr ), ++nCount); |
429 |
aStr.SetChar(nLen, sal_Unicode('6')); |
430 |
Insert( new XColorEntry( Color( 0x00, 0x33, 0x1a ), aStr ), ++nCount); |
431 |
aStr.SetChar(nLen, sal_Unicode('7')); |
432 |
Insert( new XColorEntry( Color( 0x00, 0x66, 0x33 ), aStr ), ++nCount); |
433 |
aStr.SetChar(nLen, sal_Unicode('8')); |
434 |
Insert( new XColorEntry( Color( 0x33, 0x99, 0x66 ), aStr ), ++nCount); |
435 |
aStr.SetChar(nLen, sal_Unicode('9')); |
436 |
Insert( new XColorEntry( Color( 0x66, 0xcc, 0x99 ), aStr ), ++nCount); |
437 |
aStr.SetChar(nLen, sal_Unicode('1')); |
438 |
aStr.AppendAscii("0"); |
439 |
Insert( new XColorEntry( Color( 0x99, 0xff, 0xcc ), aStr ), ++nCount); |
440 |
|
441 |
|
442 |
aStr = SVX_RESSTR( RID_SVXSTR_YELLOW ); |
443 |
Insert( new XColorEntry( Color( 0xff, 0xff, 0x99 ), aStr ), ++nCount); |
444 |
aStr.AppendAscii(" 1"); |
445 |
nLen = aStr.Len() - 1; |
446 |
Insert( new XColorEntry( Color( 0xff, 0xff, 0x66 ), aStr ), ++nCount); |
447 |
aStr.SetChar(nLen, sal_Unicode('2')); |
448 |
Insert( new XColorEntry( Color( 0xff, 0xff, 0x00 ), aStr ), ++nCount); |
449 |
aStr.SetChar(nLen, sal_Unicode('3')); |
450 |
Insert( new XColorEntry( Color( 0xcc, 0x99, 0x00 ), aStr ), ++nCount); |
451 |
aStr.SetChar(nLen, sal_Unicode('4')); |
452 |
Insert( new XColorEntry( Color( 0x99, 0x66, 0x00 ), aStr ), ++nCount); |
453 |
aStr.SetChar(nLen, sal_Unicode('5')); |
454 |
Insert( new XColorEntry( Color( 0x66, 0x33, 0x00 ), aStr ), ++nCount); |
455 |
aStr.SetChar(nLen, sal_Unicode('6')); |
456 |
Insert( new XColorEntry( Color( 0x33, 0x33, 0x00 ), aStr ), ++nCount); |
457 |
aStr.SetChar(nLen, sal_Unicode('7')); |
458 |
Insert( new XColorEntry( Color( 0x66, 0x66, 0x33 ), aStr ), ++nCount); |
459 |
aStr.SetChar(nLen, sal_Unicode('8')); |
460 |
Insert( new XColorEntry( Color( 0x99, 0x99, 0x66 ), aStr ), ++nCount); |
461 |
aStr.SetChar(nLen, sal_Unicode('9')); |
462 |
Insert( new XColorEntry( Color( 0xcc, 0xcc, 0x99 ), aStr ), ++nCount); |
463 |
aStr.SetChar(nLen, sal_Unicode('1')); |
464 |
aStr.AppendAscii("0"); |
465 |
Insert( new XColorEntry( Color( 0xff, 0xff, 0xcc ), aStr ), ++nCount); |
466 |
|
467 |
|
468 |
aStr = SVX_RESSTR( RID_SVXSTR_COLOR_YELLOWGREEN ); |
469 |
Insert( new XColorEntry( Color( 0xcc, 0xff, 0x00 ), aStr ), ++nCount); |
470 |
aStr.AppendAscii(" 1"); |
471 |
nLen = aStr.Len() - 1; |
472 |
Insert( new XColorEntry( Color( 0xcc, 0xff, 0x66 ), aStr ), ++nCount); |
473 |
aStr.SetChar(nLen, sal_Unicode('2')); |
474 |
Insert( new XColorEntry( Color( 0x99, 0xff, 0x33 ), aStr ), ++nCount); |
475 |
aStr.SetChar(nLen, sal_Unicode('3')); |
476 |
Insert( new XColorEntry( Color( 0x66, 0xff, 0x00 ), aStr ), ++nCount); |
477 |
aStr.SetChar(nLen, sal_Unicode('4')); |
478 |
Insert( new XColorEntry( Color( 0x66, 0xcc, 0x00 ), aStr ), ++nCount); |
479 |
aStr.SetChar(nLen, sal_Unicode('5')); |
480 |
Insert( new XColorEntry( Color( 0x66, 0x99, 0x00 ), aStr ), ++nCount); |
481 |
aStr.SetChar(nLen, sal_Unicode('6')); |
482 |
Insert( new XColorEntry( Color( 0x19, 0x33, 0x00 ), aStr ), ++nCount); |
483 |
aStr.SetChar(nLen, sal_Unicode('7')); |
484 |
Insert( new XColorEntry( Color( 0x33, 0x66, 0x00 ), aStr ), ++nCount); |
485 |
aStr.SetChar(nLen, sal_Unicode('8')); |
486 |
Insert( new XColorEntry( Color( 0x66, 0x99, 0x33 ), aStr ), ++nCount); |
487 |
aStr.SetChar(nLen, sal_Unicode('9')); |
488 |
Insert( new XColorEntry( Color( 0x99, 0xcc, 0x66 ), aStr ), ++nCount); |
489 |
aStr.SetChar(nLen, sal_Unicode('1')); |
490 |
aStr.AppendAscii("0"); |
491 |
Insert( new XColorEntry( Color( 0xcc, 0xff, 0x99 ), aStr ), ++nCount); |
392 |
|
492 |
|
393 |
// Chart default colors |
493 |
// Chart default colors |
394 |
aStr = SVX_RESSTR( RID_SVXSTR_COLOR_CHART ); |
494 |
aStr = SVX_RESSTR( RID_SVXSTR_COLOR_CHART ); |
395 |
aStr.AppendAscii(" 1"); |
495 |
aStr.AppendAscii(" 1"); |
396 |
nLen = aStr.Len() - 1; |
496 |
nLen = aStr.Len() - 1; |
397 |
Insert( new XColorEntry( Color( 0x00, 0x45, 0x86 ), aStr ) , 92); |
497 |
Insert( new XColorEntry( Color( 0x00, 0x45, 0x86 ), aStr ), ++nCount); |
398 |
aStr.SetChar(nLen, sal_Unicode('2')); |
498 |
aStr.SetChar(nLen, sal_Unicode('2')); |
399 |
Insert( new XColorEntry( Color( 0xff, 0x42, 0x0e ), aStr ) , 93); |
499 |
Insert( new XColorEntry( Color( 0xff, 0x42, 0x0e ), aStr ), ++nCount); |
400 |
aStr.SetChar(nLen, sal_Unicode('3')); |
500 |
aStr.SetChar(nLen, sal_Unicode('3')); |
401 |
Insert( new XColorEntry( Color( 0xff, 0xd3, 0x20 ), aStr ) , 94); |
501 |
Insert( new XColorEntry( Color( 0xff, 0xd3, 0x20 ), aStr ), ++nCount); |
402 |
aStr.SetChar(nLen, sal_Unicode('4')); |
502 |
aStr.SetChar(nLen, sal_Unicode('4')); |
403 |
Insert( new XColorEntry( Color( 0x57, 0x9d, 0x1c ), aStr ) , 95); |
503 |
Insert( new XColorEntry( Color( 0x57, 0x9d, 0x1c ), aStr ), ++nCount); |
404 |
aStr.SetChar(nLen, sal_Unicode('5')); |
504 |
aStr.SetChar(nLen, sal_Unicode('5')); |
405 |
Insert( new XColorEntry( Color( 0x7e, 0x00, 0x21 ), aStr ) , 96); |
505 |
Insert( new XColorEntry( Color( 0x7e, 0x00, 0x21 ), aStr ), ++nCount); |
406 |
aStr.SetChar(nLen, sal_Unicode('6')); |
506 |
aStr.SetChar(nLen, sal_Unicode('6')); |
407 |
Insert( new XColorEntry( Color( 0x83, 0xca, 0xff ), aStr ) , 97); |
507 |
Insert( new XColorEntry( Color( 0x83, 0xca, 0xff ), aStr ), ++nCount); |
408 |
aStr.SetChar(nLen, sal_Unicode('7')); |
508 |
aStr.SetChar(nLen, sal_Unicode('7')); |
409 |
Insert( new XColorEntry( Color( 0x31, 0x40, 0x04 ), aStr ) , 98); |
509 |
Insert( new XColorEntry( Color( 0x31, 0x40, 0x04 ), aStr ), ++nCount); |
410 |
aStr.SetChar(nLen, sal_Unicode('8')); |
510 |
aStr.SetChar(nLen, sal_Unicode('8')); |
411 |
Insert( new XColorEntry( Color( 0xae, 0xcf, 0x00 ), aStr ) , 99); |
511 |
Insert( new XColorEntry( Color( 0xae, 0xcf, 0x00 ), aStr ), ++nCount); |
412 |
aStr.SetChar(nLen, sal_Unicode('9')); |
512 |
aStr.SetChar(nLen, sal_Unicode('9')); |
413 |
Insert( new XColorEntry( Color( 0x4b, 0x1f, 0x6f ), aStr ) , 100); |
513 |
Insert( new XColorEntry( Color( 0x4b, 0x1f, 0x6f ), aStr ), ++nCount); |
414 |
aStr.SetChar(nLen, sal_Unicode('1')); |
514 |
aStr.SetChar(nLen, sal_Unicode('1')); |
415 |
aStr.AppendAscii("0"); |
515 |
aStr.AppendAscii("0"); |
416 |
nLen = aStr.Len() - 1; |
516 |
nLen = aStr.Len() - 1; |
417 |
Insert( new XColorEntry( Color( 0xff, 0x95, 0x0e ), aStr ) , 101); |
517 |
Insert( new XColorEntry( Color( 0xff, 0x95, 0x0e ), aStr ), ++nCount); |
418 |
aStr.SetChar(nLen, sal_Unicode('1')); |
518 |
aStr.SetChar(nLen, sal_Unicode('1')); |
419 |
Insert( new XColorEntry( Color( 0xc5, 0x00, 0x0b ), aStr ) , 102); |
519 |
Insert( new XColorEntry( Color( 0xc5, 0x00, 0x0b ), aStr ), ++nCount); |
420 |
aStr.SetChar(nLen, sal_Unicode('2')); |
520 |
aStr.SetChar(nLen, sal_Unicode('2')); |
421 |
Insert( new XColorEntry( Color( 0x00, 0x84, 0xd1 ), aStr ) , 103); |
521 |
Insert( new XColorEntry( Color( 0x00, 0x84, 0xd1 ), aStr ), ++nCount); |
|
|
522 |
|
422 |
|
523 |
|
423 |
return( Count() == 104 ); |
524 |
return( Count() == ++nCount ); |
424 |
} |
525 |
} |
425 |
|
526 |
|
426 |
/************************************************************************/ |
527 |
/************************************************************************/ |