xtabcolr.cxx (3e407bd8) xtabcolr.cxx (28806869)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 24 unchanged lines hidden (view full) ---

33#include <svx/dialogs.hrc>
34#include <svx/dialmgr.hxx>
35#include <svx/xtable.hxx>
36#include <svx/xpool.hxx>
37
38#define GLOBALOVERFLOW
39
40using namespace com::sun::star;
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 24 unchanged lines hidden (view full) ---

33#include <svx/dialogs.hrc>
34#include <svx/dialmgr.hxx>
35#include <svx/xtable.hxx>
36#include <svx/xpool.hxx>
37
38#define GLOBALOVERFLOW
39
40using namespace com::sun::star;
41using namespace rtl;
42
43sal_Unicode const pszExtColor[] = {'s','o','c'};
44
45static char const aChckColor[] = { 0x04, 0x00, 'S','O','C','L'}; // < 5.2
46static char const aChckColor0[] = { 0x04, 0x00, 'S','O','C','0'}; // = 5.2
47static char const aChckXML[] = { '<', '?', 'x', 'm', 'l' }; // = 6.0
48
49/*************************************************************************

--- 84 unchanged lines hidden (view full) ---

134 uno::Reference< container::XNameContainer > xTable( SvxUnoXColorTable_createInstance( this ), uno::UNO_QUERY );
135 return SvxXMLXTableExportComponent::save( aURL.GetMainURL( INetURLObject::NO_DECODE ), xTable );
136}
137
138/************************************************************************/
139
140bool XColorList::Create()
141{
41
42sal_Unicode const pszExtColor[] = {'s','o','c'};
43
44static char const aChckColor[] = { 0x04, 0x00, 'S','O','C','L'}; // < 5.2
45static char const aChckColor0[] = { 0x04, 0x00, 'S','O','C','0'}; // = 5.2
46static char const aChckXML[] = { '<', '?', 'x', 'm', 'l' }; // = 6.0
47
48/*************************************************************************

--- 84 unchanged lines hidden (view full) ---

133 uno::Reference< container::XNameContainer > xTable( SvxUnoXColorTable_createInstance( this ), uno::UNO_QUERY );
134 return SvxXMLXTableExportComponent::save( aURL.GetMainURL( INetURLObject::NO_DECODE ), xTable );
135}
136
137/************************************************************************/
138
139bool XColorList::Create()
140{
142 XubString aStr;
143 xub_StrLen nLen;
144 ResMgr& rRes = DIALOG_MGR();
141 sal_uInt32 a(0);
142 sal_uInt32 b(0);
145
143
146 static sal_uInt16 __READONLY_DATA aResId[] =
147 {
148 RID_SVXSTR_BLACK,
149 RID_SVXSTR_BLUE,
150 RID_SVXSTR_GREEN,
151 RID_SVXSTR_CYAN,
152 RID_SVXSTR_RED,
153 RID_SVXSTR_MAGENTA,
154 RID_SVXSTR_BROWN,
155 RID_SVXSTR_GREY,
156 RID_SVXSTR_LIGHTGREY,
157 RID_SVXSTR_LIGHTBLUE,
158 RID_SVXSTR_LIGHTGREEN,
159 RID_SVXSTR_LIGHTCYAN,
160 RID_SVXSTR_LIGHTRED,
161 RID_SVXSTR_LIGHTMAGENTA,
162 RID_SVXSTR_YELLOW,
163 RID_SVXSTR_WHITE
164 };
144 // <!-- Gray palette from white to black -->
145 XubString aStrGrey( SVX_RESSTR( RID_SVXSTR_COLOR_GREY ) );
165
146
166 // MT: COL_XXX ist in VCL kein enum mehr!!!
167 // COL_WHITE ist seeeehr gross! ( => Zugriff ueber das obige Array hinweg )
168 // Mit der unteren Schleife gibt es keinen Absturtz, aber es ist
169 // alles schwarz, weil alles kleine Werte.
170 // Ausserdem ist die ganze Vorgehensweise laut MM sehr unperformant
171 // => lieber gleich Stringlisten laden.
147 Insert( new XColorEntry( Color( 0xff, 0xff, 0xff ), SVX_RESSTR( RID_SVXSTR_COLOR_WHITE ) ) );
148 aStrGrey.AppendAscii(" 1"); Insert( new XColorEntry( Color( 0xee, 0xee, 0xee ), aStrGrey ) );
149 aStrGrey.SetChar(aStrGrey.Len() - 1, sal_Unicode('2')); Insert( new XColorEntry( Color( 0xdd, 0xdd, 0xdd ), aStrGrey ) );
150 aStrGrey.SetChar(aStrGrey.Len() - 1, sal_Unicode('3')); Insert( new XColorEntry( Color( 0xcc, 0xcc, 0xcc ), aStrGrey ) );
151 aStrGrey.SetChar(aStrGrey.Len() - 1, sal_Unicode('4')); Insert( new XColorEntry( Color( 0xb2, 0xb2, 0xb2 ), aStrGrey ) );
152 aStrGrey.SetChar(aStrGrey.Len() - 1, sal_Unicode('5')); Insert( new XColorEntry( Color( 0x99, 0x99, 0x99 ), aStrGrey ) );
153 aStrGrey.SetChar(aStrGrey.Len() - 1, sal_Unicode('6')); Insert( new XColorEntry( Color( 0x80, 0x80, 0x80 ), aStrGrey ) );
154 aStrGrey.SetChar(aStrGrey.Len() - 1, sal_Unicode('7')); Insert( new XColorEntry( Color( 0x66, 0x66, 0x66 ), aStrGrey ) );
155 aStrGrey.SetChar(aStrGrey.Len() - 1, sal_Unicode('8')); Insert( new XColorEntry( Color( 0x33, 0x33, 0x33 ), aStrGrey ) );
156 aStrGrey.SetChar(aStrGrey.Len() - 1, sal_Unicode('9')); Insert( new XColorEntry( Color( 0x1c, 0x1c, 0x1c ), aStrGrey ) );
157 aStrGrey.SetChar(aStrGrey.Len() - 1, sal_Unicode('1')); aStrGrey.AppendAscii("0"); Insert( new XColorEntry( Color( 0x11, 0x11, 0x11 ), aStrGrey ) );
158 Insert( new XColorEntry( Color( 0x00, 0x00, 0x00 ), SVX_RESSTR( RID_SVXSTR_COLOR_BLACK ) ) );
172
159
173 // BM: ifndef VCL part removed (deprecated)
160 // <!-- Base colors step 0 to 10 -->
161 const sal_uInt32 nNumColorsInGroup(12);
162 const sal_uInt32 nNumGroups(11);
163 XubString aStrCol[nNumColorsInGroup];
164 const sal_uInt32 aStdCol[nNumColorsInGroup * nNumGroups] = {
165 0xffff99, 0xff6600, 0xff3333, 0xff00cc, 0xff33ff, 0x9900ff, 0x6666ff, 0x00ccff, 0x66ffff, 0x33ff99, 0x99ff66, 0xccff00,
166 0xffff66, 0xffcc00, 0xff9999, 0xff66cc, 0xff99ff, 0xcc66ff, 0x9999ff, 0x9999ff, 0x99ffff, 0x66ff99, 0x99ff99, 0xccff66,
167 0xffff00, 0xff9900, 0xff6666, 0xff3399, 0xff66ff, 0x9933ff, 0x3333ff, 0x3399ff, 0x00ffff, 0x00ff66, 0x66ff66, 0x99ff33,
168 0xcc9900, 0xff3300, 0xff0000, 0xff0066, 0xff00ff, 0x6600ff, 0x0000ff, 0x0066ff, 0x00cccc, 0x00cc33, 0x00cc00, 0x66ff00,
169 0x996600, 0xcc3300, 0xcc0000, 0xcc0066, 0xcc00cc, 0x6600cc, 0x0000cc, 0x0066cc, 0x009999, 0x009933, 0x009900, 0x66cc00,
170 0x663300, 0x801900, 0x990000, 0x990066, 0x990099, 0x330099, 0x000099, 0x006699, 0x006666, 0x007826, 0x006600, 0x669900,
171 0x333300, 0x461900, 0x330000, 0x330033, 0x660066, 0x000033, 0x000066, 0x000080, 0x003333, 0x00331a, 0x003300, 0x193300,
172 0x666633, 0x661900, 0x663333, 0x660033, 0x663366, 0x330066, 0x333366, 0x003366, 0x336666, 0x006633, 0x336633, 0x336600,
173 0x999966, 0x996633, 0x996666, 0x993366, 0x996699, 0x663399, 0x666699, 0x336699, 0x669999, 0x339966, 0x669966, 0x669933,
174 0xcccc99, 0xcc9966, 0xcc9999, 0xcc6699, 0xcc99cc, 0x9966cc, 0x9999cc, 0x6699cc, 0x99cccc, 0x66cc99, 0x99cc99, 0x99cc66,
175 0xffffcc, 0xffcc99, 0xffcccc, 0xff99cc, 0xffccff, 0xcc99ff, 0xccccff, 0x99ccff, 0xccffff, 0x99ffcc, 0xccffcc, 0xccff99 };
174
176
175 static ColorData __READONLY_DATA aColTab[] =
176 {
177 COL_BLACK,
178 COL_BLUE,
179 COL_GREEN,
180 COL_CYAN,
181 COL_RED,
182 COL_MAGENTA,
183 COL_BROWN,
184 COL_GRAY,
185 COL_LIGHTGRAY,
186 COL_LIGHTBLUE,
187 COL_LIGHTGREEN,
188 COL_LIGHTCYAN,
189 COL_LIGHTRED,
190 COL_LIGHTMAGENTA,
191 COL_YELLOW,
192 COL_WHITE
193 };
177 for(a = 0; a < nNumGroups; a++)
178 {
179 switch(a)
180 {
181 case 0:
182 {
183 aStrCol[0] = SVX_RESSTR(RID_SVXSTR_COLOR_YELLOW);
184 aStrCol[1] = SVX_RESSTR(RID_SVXSTR_COLOR_ORANGE);
185 aStrCol[2] = SVX_RESSTR(RID_SVXSTR_COLOR_RED);
186 aStrCol[3] = SVX_RESSTR(RID_SVXSTR_COLOR_PINK);
187 aStrCol[4] = SVX_RESSTR(RID_SVXSTR_COLOR_MAGENTA);
188 aStrCol[5] = SVX_RESSTR(RID_SVXSTR_COLOR_PURPLE);
189 aStrCol[6] = SVX_RESSTR(RID_SVXSTR_COLOR_BLUE);
190 aStrCol[7] = SVX_RESSTR(RID_SVXSTR_COLOR_SKYBLUE);
191 aStrCol[8] = SVX_RESSTR(RID_SVXSTR_COLOR_CYAN);
192 aStrCol[9] = SVX_RESSTR(RID_SVXSTR_COLOR_TURQUOISE);
193 aStrCol[10] = SVX_RESSTR(RID_SVXSTR_COLOR_GREEN);
194 aStrCol[11] = SVX_RESSTR(RID_SVXSTR_COLOR_YELLOWGREEN);
195 break;
196 }
197 case 1:
198 {
199 for(b = 0; b < nNumColorsInGroup; b++)
200 {
201 aStrCol[b].AppendAscii(" 1");
202 }
203 break;
204 }
205 case 10:
206 {
207 for(b = 0; b < nNumColorsInGroup; b++)
208 {
209 aStrCol[b].SetChar(aStrCol[b].Len() - 1, sal_Unicode('1'));
210 aStrCol[b].AppendAscii("0");
211 }
212 break;
213 }
214 default: // 2 .. 9, 11
215 {
216 for(b = 0; b < nNumColorsInGroup; b++)
217 {
218 aStrCol[b].SetChar(aStrCol[b].Len() - 1, sal_Unicode('0') + sal_Unicode(a % 10));
219 }
220 break;
221 }
222 }
194
223
195 for( sal_uInt16 n = 0; n < 16; ++n )
196 {
197 Insert( new XColorEntry( Color( aColTab[n] ), String( ResId( aResId[ n ], rRes )) ), n );
198 }
224 const sal_uInt32 nOffset(a * nNumColorsInGroup);
199
225
200 aStr = SVX_RESSTR( RID_SVXSTR_GREY );
201 aStr.AppendAscii(" 80%");
202 nLen = aStr.Len() - 3;
203 Insert( new XColorEntry( Color( 51, 51, 51 ), aStr ) , 16);
204 aStr.SetChar(nLen, sal_Unicode('7'));
205 Insert( new XColorEntry( Color( 76, 76, 76 ), aStr ) , 17);
206 aStr.SetChar(nLen, sal_Unicode('6'));
207 Insert( new XColorEntry( Color(102,102,102 ), aStr ) , 18);
208 aStr.SetChar(nLen, sal_Unicode('4'));
209 Insert( new XColorEntry( Color(153,153,153 ), aStr ) , 19);
210 aStr.SetChar(nLen, sal_Unicode('3'));
211 Insert( new XColorEntry( Color(179,179,179 ), aStr ) , 20);
212 aStr.SetChar(nLen, sal_Unicode('2'));
213 Insert( new XColorEntry( Color(204,204,204 ), aStr ) , 21);
214 // BM: new 15%
215 aStr.SetChar(nLen, sal_Unicode('1'));
216 aStr.SetChar(nLen + 1, sal_Unicode('5'));
217 Insert( new XColorEntry( Color(217,217,217 ), aStr ) , 22);
218 aStr.SetChar(nLen + 1, sal_Unicode('0'));
219 Insert( new XColorEntry( Color(230,230,230 ), aStr ) , 23);
220 Insert( new XColorEntry( Color(230,230,255 ), SVX_RESSTR( RID_SVXSTR_BLUEGREY ) ) , 24);
226 for(b = 0; b < nNumColorsInGroup; b++)
227 {
228 Insert( new XColorEntry( aStdCol[nOffset + b], aStrCol[b] ) );
229 }
230 }
221
231
222 aStr = SVX_RESSTR( RID_SVXSTR_RED );
223 aStr.AppendAscii(" 1");
224 nLen = aStr.Len() - 1;
225 Insert( new XColorEntry( Color(255, 51,102 ), aStr ) , 25);
226 aStr.SetChar(nLen, sal_Unicode('2'));
227 Insert( new XColorEntry( Color(220, 35, 0 ), aStr ) , 26);
228 aStr.SetChar(nLen, sal_Unicode('3'));
229 Insert( new XColorEntry( Color(184, 71, 0 ), aStr ) , 27);
230 aStr.SetChar(nLen, sal_Unicode('4'));
231 Insert( new XColorEntry( Color(255, 51, 51 ), aStr ) , 28);
232 aStr.SetChar(nLen, sal_Unicode('5'));
233 Insert( new XColorEntry( Color(235, 97, 61 ), aStr ) , 29);
234 aStr.SetChar(nLen, sal_Unicode('6'));
235 Insert( new XColorEntry( Color(184, 71, 71 ), aStr ) , 30);
236 aStr.SetChar(nLen, sal_Unicode('7'));
237 Insert( new XColorEntry( Color(184, 0, 71 ), aStr ) , 31);
238 aStr.SetChar(nLen, sal_Unicode('8'));
239 Insert( new XColorEntry( Color(153, 40, 76 ), aStr ) , 32);
232 // <!-- use some 'nice' colors from original palette -->
233 Insert( new XColorEntry( Color( 0xe6, 0xe6, 0xff ), SVX_RESSTR( RID_SVXSTR_COLOR_BLUEGREY) ) );
234 Insert( new XColorEntry( Color( 0xCF, 0xE7, 0xF5 ), SVX_RESSTR( RID_SVXSTR_COLOR_BLUE_CLASSIC ) ) );
240
235
241 aStr = SVX_RESSTR( RID_SVXSTR_MAGENTA );
242 aStr.AppendAscii(" 1");
243 nLen = aStr.Len() - 1;
244 Insert( new XColorEntry( Color(148, 0,107 ), aStr ) , 33);
245 aStr.SetChar(nLen, sal_Unicode('2'));
246 Insert( new XColorEntry( Color(148, 71,107 ), aStr ) , 34);
247 aStr.SetChar(nLen, sal_Unicode('3'));
248 Insert( new XColorEntry( Color(148, 71,148 ), aStr ) , 35);
249 aStr.SetChar(nLen, sal_Unicode('4'));
250 Insert( new XColorEntry( Color(153,102,204 ), aStr ) , 36);
251 aStr.SetChar(nLen, sal_Unicode('5'));
252 Insert( new XColorEntry( Color(107, 71,148 ), aStr ) , 37);
253 aStr.SetChar(nLen, sal_Unicode('6'));
254 Insert( new XColorEntry( Color(107, 35,148 ), aStr ) , 38);
255 aStr.SetChar(nLen, sal_Unicode('7'));
256 Insert( new XColorEntry( Color(107, 0,148 ), aStr ) , 39);
257 aStr.SetChar(nLen, sal_Unicode('8'));
258 Insert( new XColorEntry( Color( 94, 17,166 ), aStr ) , 40);
236 // <!-- add 'pale' colors from original palette -->
237 Insert( new XColorEntry( Color( 0x99, 0x99, 0xff ), SVX_RESSTR( RID_SVXSTR_COLOR_VIOLET ) ) );
238 Insert( new XColorEntry( Color( 0x99, 0x33, 0x66 ), SVX_RESSTR( RID_SVXSTR_COLOR_BORDEAUX ) ) );
239 Insert( new XColorEntry( Color( 0xff, 0xff, 0xcc ), SVX_RESSTR( RID_SVXSTR_COLOR_PALE_YELLOW ) ) );
240 Insert( new XColorEntry( Color( 0xcc, 0xff, 0xff ), SVX_RESSTR( RID_SVXSTR_COLOR_PALE_GREEN ) ) );
241 Insert( new XColorEntry( Color( 0x66, 0x00, 0x66 ), SVX_RESSTR( RID_SVXSTR_COLOR_DARKVIOLET ) ) );
242 Insert( new XColorEntry( Color( 0xff, 0x80, 0x80 ), SVX_RESSTR( RID_SVXSTR_COLOR_SALMON ) ) );
243 Insert( new XColorEntry( Color( 0x00, 0x66, 0xcc ), SVX_RESSTR( RID_SVXSTR_COLOR_SEABLUE ) ) );
259
244
260 aStr = SVX_RESSTR( RID_SVXSTR_BLUE );
261 aStr.AppendAscii(" 1");
262 nLen = aStr.Len() - 1;
263 Insert( new XColorEntry( Color( 40, 0,153 ), aStr ) , 41);
264 aStr.SetChar(nLen, sal_Unicode('2'));
265 Insert( new XColorEntry( Color( 71, 0,184 ), aStr ) , 42);
266 aStr.SetChar(nLen, sal_Unicode('3'));
267 Insert( new XColorEntry( Color( 35, 0,220 ), aStr ) , 43);
268 aStr.SetChar(nLen, sal_Unicode('4'));
269 Insert( new XColorEntry( Color( 35, 35,220 ), aStr ) , 44);
270 aStr.SetChar(nLen, sal_Unicode('5'));
271 Insert( new XColorEntry( Color( 0, 71,255 ), aStr ) , 45);
272 aStr.SetChar(nLen, sal_Unicode('6'));
273 Insert( new XColorEntry( Color( 0,153,255 ), aStr ) , 46);
274 aStr.SetChar(nLen, sal_Unicode('7'));
275 Insert( new XColorEntry( Color( 0,184,255 ), aStr ) , 47);
276 aStr.SetChar(nLen, sal_Unicode('8'));
277 Insert( new XColorEntry( Color(153,204,255 ), aStr ) , 48);
278 //Insert(48, new XColorEntry( Color( 46,215,255 ), aStr ) );
245 // <!-- add Chart colors from original palette (also 12, coincidence?) -->
246 XubString aStrChart( SVX_RESSTR( RID_SVXSTR_COLOR_CHART ) );
247 aStrChart.AppendAscii(" 1");
248 Insert( new XColorEntry( Color( 0x00, 0x45, 0x86 ), aStrChart ) );
249 aStrChart.SetChar(aStrChart.Len() - 1, sal_Unicode('2'));
250 Insert( new XColorEntry( Color( 0xff, 0x42, 0x0e ), aStrChart ) );
251 aStrChart.SetChar(aStrChart.Len() - 1, sal_Unicode('3'));
252 Insert( new XColorEntry( Color( 0xff, 0xd3, 0x20 ), aStrChart ) );
253 aStrChart.SetChar(aStrChart.Len() - 1, sal_Unicode('4'));
254 Insert( new XColorEntry( Color( 0x57, 0x9d, 0x1c ), aStrChart ) );
255 aStrChart.SetChar(aStrChart.Len() - 1, sal_Unicode('5'));
256 Insert( new XColorEntry( Color( 0x7e, 0x00, 0x21 ), aStrChart ) );
257 aStrChart.SetChar(aStrChart.Len() - 1, sal_Unicode('6'));
258 Insert( new XColorEntry( Color( 0x83, 0xca, 0xff ), aStrChart ) );
259 aStrChart.SetChar(aStrChart.Len() - 1, sal_Unicode('7'));
260 Insert( new XColorEntry( Color( 0x31, 0x40, 0x04 ), aStrChart ) );
261 aStrChart.SetChar(aStrChart.Len() - 1, sal_Unicode('8'));
262 Insert( new XColorEntry( Color( 0xae, 0xcf, 0x00 ), aStrChart ) );
263 aStrChart.SetChar(aStrChart.Len() - 1, sal_Unicode('9'));
264 Insert( new XColorEntry( Color( 0x4b, 0x1f, 0x6f ), aStrChart ) );
265 aStrChart.SetChar(aStrChart.Len() - 1, sal_Unicode('1'));
266 aStrChart.AppendAscii("0");
267 Insert( new XColorEntry( Color( 0xff, 0x95, 0x0e ), aStrChart ) );
268 aStrChart.SetChar(aStrChart.Len() - 1, sal_Unicode('1'));
269 Insert( new XColorEntry( Color( 0xc5, 0x00, 0x0b ), aStrChart ) );
270 aStrChart.SetChar(aStrChart.Len() - 1, sal_Unicode('2'));
271 Insert( new XColorEntry( Color( 0x00, 0x84, 0xd1 ), aStrChart ) );
279
272
280 aStr = SVX_RESSTR( RID_SVXSTR_CYAN );
281 aStr.AppendAscii(" 1");
282 nLen = aStr.Len() - 1;
283 Insert( new XColorEntry( Color( 0,220,255 ), aStr ) , 49);
284 aStr.SetChar(nLen, sal_Unicode('2'));
285 Insert( new XColorEntry( Color( 0,204,204 ), aStr ) , 50);
286 aStr.SetChar(nLen, sal_Unicode('3'));
287 Insert( new XColorEntry( Color( 35,184,220 ), aStr ) , 51);
288 aStr.SetChar(nLen, sal_Unicode('4'));
289 Insert( new XColorEntry( Color( 71,184,184 ), aStr ) , 52);
290 aStr.SetChar(nLen, sal_Unicode('5'));
291 Insert( new XColorEntry( Color( 51,163,163 ), aStr ) , 53);
292 aStr.SetChar(nLen, sal_Unicode('6'));
293 Insert( new XColorEntry( Color( 25,138,138 ), aStr ) , 54);
294 aStr.SetChar(nLen, sal_Unicode('7'));
295 Insert( new XColorEntry( Color( 0,107,107 ), aStr ) , 55);
296 aStr.SetChar(nLen, sal_Unicode('8'));
297 Insert( new XColorEntry( Color( 0, 74, 74 ), aStr ) , 56);
298
299 aStr = SVX_RESSTR( RID_SVXSTR_GREEN );
300 aStr.AppendAscii(" 1");
301 nLen = aStr.Len() - 1;
302 Insert( new XColorEntry( Color( 53, 94, 0 ), aStr ) , 57);
303 aStr.SetChar(nLen, sal_Unicode('2'));
304 Insert( new XColorEntry( Color( 92,133, 38 ), aStr ) , 58);
305 aStr.SetChar(nLen, sal_Unicode('3'));
306 Insert( new XColorEntry( Color(125,166, 71 ), aStr ) , 59);
307 aStr.SetChar(nLen, sal_Unicode('4'));
308 Insert( new XColorEntry( Color(148,189, 94 ), aStr ) , 60);
309 aStr.SetChar(nLen, sal_Unicode('5'));
310 Insert( new XColorEntry( Color( 0,174, 0 ), aStr ) , 61);
311 aStr.SetChar(nLen, sal_Unicode('6'));
312 Insert( new XColorEntry( Color( 51,204,102 ), aStr ) , 62);
313 aStr.SetChar(nLen, sal_Unicode('7'));
314 Insert( new XColorEntry( Color( 61,235, 61 ), aStr ) , 63);
315 aStr.SetChar(nLen, sal_Unicode('8'));
316 Insert( new XColorEntry( Color( 35,255, 35 ), aStr ) , 64);
317
318 aStr = SVX_RESSTR( RID_SVXSTR_YELLOW );
319 aStr.AppendAscii(" 1");
320 nLen = aStr.Len() - 1;
321 Insert( new XColorEntry( Color(230,255, 0 ), aStr ) , 65);
322 aStr.SetChar(nLen, sal_Unicode('2'));
323 Insert( new XColorEntry( Color(255,255,153 ), aStr ) , 66);
324 aStr.SetChar(nLen, sal_Unicode('3'));
325 Insert( new XColorEntry( Color(255,255,102 ), aStr ) , 67);
326 aStr.SetChar(nLen, sal_Unicode('4'));
327 Insert( new XColorEntry( Color(230,230, 76 ), aStr ) , 68);
328 aStr.SetChar(nLen, sal_Unicode('5'));
329 Insert( new XColorEntry( Color(204,204, 0 ), aStr ) , 69);
330 aStr.SetChar(nLen, sal_Unicode('6'));
331 Insert( new XColorEntry( Color(179,179, 0 ), aStr ) , 70);
332 aStr.SetChar(nLen, sal_Unicode('7'));
333 Insert( new XColorEntry( Color(128,128, 25 ), aStr ) , 71);
334 aStr.SetChar(nLen, sal_Unicode('8'));
335 Insert( new XColorEntry( Color(102,102, 0 ), aStr ) , 72);
336
337 aStr = SVX_RESSTR( RID_SVXSTR_BROWN );
338 aStr.AppendAscii(" 1");
339 nLen = aStr.Len() - 1;
340 Insert( new XColorEntry( Color( 76, 25, 0 ), aStr ) , 73);
341 aStr.SetChar(nLen, sal_Unicode('2'));
342 Insert( new XColorEntry( Color(102, 51, 0 ), aStr ) , 74);
343 aStr.SetChar(nLen, sal_Unicode('3'));
344 Insert( new XColorEntry( Color(128, 76, 25 ), aStr ) , 75);
345 aStr.SetChar(nLen, sal_Unicode('4'));
346 Insert( new XColorEntry( Color(153,102, 51 ), aStr ) , 76);
347
348 aStr = SVX_RESSTR( RID_SVXSTR_ORANGE );
349 aStr.AppendAscii(" 1");
350 nLen = aStr.Len() - 1;
351 Insert( new XColorEntry( Color(204,102, 51 ), aStr ) , 77);
352 aStr.SetChar(nLen, sal_Unicode('2'));
353 Insert( new XColorEntry( Color(255,102, 51 ), aStr ) , 78);
354 aStr.SetChar(nLen, sal_Unicode('3'));
355 Insert( new XColorEntry( Color(255,153,102 ), aStr ) , 79);
356 aStr.SetChar(nLen, sal_Unicode('4'));
357 Insert( new XColorEntry( Color(255,204,153 ), aStr ) , 80);
358
359 // new chart colors
360 aStr = SVX_RESSTR( RID_SVXSTR_VIOLET );
361 Insert( new XColorEntry( Color( 0x99, 0x99, 0xff ), aStr ) , 81);
362
363 aStr = SVX_RESSTR( RID_SVXSTR_BORDEAUX );
364 Insert( new XColorEntry( Color( 0x99, 0x33, 0x66 ), aStr ) , 82);
365
366 aStr = SVX_RESSTR( RID_SVXSTR_PALE_YELLOW );
367 Insert( new XColorEntry( Color( 0xff, 0xff, 0xcc ), aStr ) , 83);
368
369 aStr = SVX_RESSTR( RID_SVXSTR_PALE_GREEN );
370 Insert( new XColorEntry( Color( 0xcc, 0xff, 0xff ), aStr ) , 84);
371
372 aStr = SVX_RESSTR( RID_SVXSTR_DKVIOLET );
373 Insert( new XColorEntry( Color( 0x66, 0x00, 0x66 ), aStr ) , 85);
374
375 aStr = SVX_RESSTR( RID_SVXSTR_SALMON );
376 Insert( new XColorEntry( Color( 0xff, 0x80, 0x80 ), aStr ) , 86);
377
378 aStr = SVX_RESSTR( RID_SVXSTR_SEABLUE );
379 Insert( new XColorEntry( Color( 0x00, 0x66, 0xcc ), aStr ) , 87);
380
381 // Sun colors
382 aStr = SVX_RESSTR( RID_SVXSTR_COLOR_SUN );
383 aStr.AppendAscii(" 1");
384 nLen = aStr.Len() - 1;
385 Insert( new XColorEntry( Color( 0x33, 0x33, 0x66 ), aStr ) , 88);
386 aStr.SetChar(nLen, sal_Unicode('2'));
387 Insert( new XColorEntry( Color( 0x66, 0x66, 0x99 ), aStr ) , 89);
388 aStr.SetChar(nLen, sal_Unicode('3'));
389 Insert( new XColorEntry( Color( 0x99, 0x99, 0xcc ), aStr ) , 90);
390 aStr.SetChar(nLen, sal_Unicode('4'));
391 Insert( new XColorEntry( Color( 0xcc, 0xcc, 0xff ), aStr ) , 91);
392
393 // Chart default colors
394 aStr = SVX_RESSTR( RID_SVXSTR_COLOR_CHART );
395 aStr.AppendAscii(" 1");
396 nLen = aStr.Len() - 1;
397 Insert( new XColorEntry( Color( 0x00, 0x45, 0x86 ), aStr ) , 92);
398 aStr.SetChar(nLen, sal_Unicode('2'));
399 Insert( new XColorEntry( Color( 0xff, 0x42, 0x0e ), aStr ) , 93);
400 aStr.SetChar(nLen, sal_Unicode('3'));
401 Insert( new XColorEntry( Color( 0xff, 0xd3, 0x20 ), aStr ) , 94);
402 aStr.SetChar(nLen, sal_Unicode('4'));
403 Insert( new XColorEntry( Color( 0x57, 0x9d, 0x1c ), aStr ) , 95);
404 aStr.SetChar(nLen, sal_Unicode('5'));
405 Insert( new XColorEntry( Color( 0x7e, 0x00, 0x21 ), aStr ) , 96);
406 aStr.SetChar(nLen, sal_Unicode('6'));
407 Insert( new XColorEntry( Color( 0x83, 0xca, 0xff ), aStr ) , 97);
408 aStr.SetChar(nLen, sal_Unicode('7'));
409 Insert( new XColorEntry( Color( 0x31, 0x40, 0x04 ), aStr ) , 98);
410 aStr.SetChar(nLen, sal_Unicode('8'));
411 Insert( new XColorEntry( Color( 0xae, 0xcf, 0x00 ), aStr ) , 99);
412 aStr.SetChar(nLen, sal_Unicode('9'));
413 Insert( new XColorEntry( Color( 0x4b, 0x1f, 0x6f ), aStr ) , 100);
414 aStr.SetChar(nLen, sal_Unicode('1'));
415 aStr.AppendAscii("0");
416 nLen = aStr.Len() - 1;
417 Insert( new XColorEntry( Color( 0xff, 0x95, 0x0e ), aStr ) , 101);
418 aStr.SetChar(nLen, sal_Unicode('1'));
419 Insert( new XColorEntry( Color( 0xc5, 0x00, 0x0b ), aStr ) , 102);
420 aStr.SetChar(nLen, sal_Unicode('2'));
421 Insert( new XColorEntry( Color( 0x00, 0x84, 0xd1 ), aStr ) , 103);
422
423 return( Count() == 104 );
273 return(165 == Count());
424}
425
426/************************************************************************/
427
428Bitmap XColorList::CreateBitmapForUI( long /*nIndex*/ )
429{
430 return Bitmap();
431}

--- 14 unchanged lines hidden ---
274}
275
276/************************************************************************/
277
278Bitmap XColorList::CreateBitmapForUI( long /*nIndex*/ )
279{
280 return Bitmap();
281}

--- 14 unchanged lines hidden ---