xtabbtmp.cxx (f6e50924) xtabbtmp.cxx (70d3707a)
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

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

19 *
20 *************************************************************/
21
22
23
24// MARKER(update_precomp.py): autogen include statement, do not remove
25#include "precompiled_svx.hxx"
26
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

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

19 *
20 *************************************************************/
21
22
23
24// MARKER(update_precomp.py): autogen include statement, do not remove
25#include "precompiled_svx.hxx"
26
27#ifndef SVX_LIGHT
28
29#include <com/sun/star/container/XNameContainer.hpp>
30#include "svx/XPropertyTable.hxx"
31#include <unotools/ucbstreamhelper.hxx>
27#include <com/sun/star/container/XNameContainer.hpp>
28#include "svx/XPropertyTable.hxx"
29#include <unotools/ucbstreamhelper.hxx>
32
33#include "xmlxtexp.hxx"
34#include "xmlxtimp.hxx"
35
36#endif
37
30#include <xmlxtexp.hxx>
31#include <xmlxtimp.hxx>
38#include <tools/urlobj.hxx>
39#include <vcl/virdev.hxx>
40#include <svl/itemset.hxx>
41#include <sfx2/docfile.hxx>
42#include <svx/dialogs.hrc>
43#include <svx/dialmgr.hxx>
44#include <svx/xtable.hxx>
45#include <svx/xpool.hxx>
32#include <tools/urlobj.hxx>
33#include <vcl/virdev.hxx>
34#include <svl/itemset.hxx>
35#include <sfx2/docfile.hxx>
36#include <svx/dialogs.hrc>
37#include <svx/dialmgr.hxx>
38#include <svx/xtable.hxx>
39#include <svx/xpool.hxx>
40#include <svx/xbtmpit.hxx>
46
47#define GLOBALOVERFLOW
48
49using namespace com::sun::star;
50using namespace rtl;
51
52sal_Unicode const pszExtBitmap[] = {'s','o','b'};
53

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

229 return SvxXMLXTableExportComponent::save( aURL.GetMainURL( INetURLObject::NO_DECODE ), xTable );
230}
231
232/************************************************************************/
233// Umgestellt am 27.07.95 auf XBitmap
234
235sal_Bool XBitmapList::Create()
236{
41
42#define GLOBALOVERFLOW
43
44using namespace com::sun::star;
45using namespace rtl;
46
47sal_Unicode const pszExtBitmap[] = {'s','o','b'};
48

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

224 return SvxXMLXTableExportComponent::save( aURL.GetMainURL( INetURLObject::NO_DECODE ), xTable );
225}
226
227/************************************************************************/
228// Umgestellt am 27.07.95 auf XBitmap
229
230sal_Bool XBitmapList::Create()
231{
237 // Array der Bitmap
238 //-----------------------
239 // 00 01 02 03 04 05 06 07
240 // 08 09 10 11 12 13 14 15
241 // 16 17 18 19 20 21 22 23
242 // 24 25 26 27 28 29 30 31
243 // 32 33 34 35 36 37 38 39
244 // 40 41 42 43 44 45 46 47
245 // 48 49 50 51 52 53 54 55
246 // 56 57 58 59 60 61 62 63
232 //-----------------------
233 // 00 01 02 03 04 05 06 07
234 // 08 09 10 11 12 13 14 15
235 // 16 17 18 19 20 21 22 23
236 // 24 25 26 27 28 29 30 31
237 // 32 33 34 35 36 37 38 39
238 // 40 41 42 43 44 45 46 47
239 // 48 49 50 51 52 53 54 55
240 // 56 57 58 59 60 61 62 63
241 String aStr(SVX_RES(RID_SVXSTR_BITMAP));
242 sal_uInt16 aArray[64];
243 Bitmap aBitmap;
244 const xub_StrLen nLen(aStr.Len() - 1);
247
245
248 String aStr( SVX_RES( RID_SVXSTR_BITMAP ) );
249 Color aColWhite( RGB_Color( COL_WHITE ) );
250 xub_StrLen nLen;
251 sal_uInt16 aArray[64];
246 memset(aArray, 0, sizeof(aArray));
252
247
253 memset( aArray, 0, sizeof( aArray ) );
248 // white/white bitmap
254 aStr.AppendAscii(" 1");
249 aStr.AppendAscii(" 1");
255 nLen = aStr.Len() - 1;
256 Insert( new XBitmapEntry( XOBitmap( aArray, aColWhite, aColWhite ), aStr ) );
250 aBitmap = createHistorical8x8FromArray(aArray, RGB_Color(COL_WHITE), RGB_Color(COL_WHITE));
251 Insert(new XBitmapEntry(Graphic(aBitmap), aStr));
257
252
253 // black/white bitmap
258 aArray[ 0] = 1; aArray[ 9] = 1; aArray[18] = 1; aArray[27] = 1;
259 aArray[36] = 1; aArray[45] = 1; aArray[54] = 1; aArray[63] = 1;
260 aStr.SetChar(nLen, sal_Unicode('2'));
254 aArray[ 0] = 1; aArray[ 9] = 1; aArray[18] = 1; aArray[27] = 1;
255 aArray[36] = 1; aArray[45] = 1; aArray[54] = 1; aArray[63] = 1;
256 aStr.SetChar(nLen, sal_Unicode('2'));
261 Insert( new XBitmapEntry( XOBitmap( aArray, RGB_Color( COL_BLACK ), aColWhite ), aStr ) );
257 aBitmap = createHistorical8x8FromArray(aArray, RGB_Color(COL_BLACK), RGB_Color(COL_WHITE));
258 Insert(new XBitmapEntry(Graphic(aBitmap), aStr));
262
259
260 // lightred/white bitmap
263 aArray[ 7] = 1; aArray[14] = 1; aArray[21] = 1; aArray[28] = 1;
264 aArray[35] = 1; aArray[42] = 1; aArray[49] = 1; aArray[56] = 1;
265 aStr.SetChar(nLen, sal_Unicode('3'));
261 aArray[ 7] = 1; aArray[14] = 1; aArray[21] = 1; aArray[28] = 1;
262 aArray[35] = 1; aArray[42] = 1; aArray[49] = 1; aArray[56] = 1;
263 aStr.SetChar(nLen, sal_Unicode('3'));
266 Insert( new XBitmapEntry( XOBitmap( aArray, RGB_Color( COL_LIGHTRED ), aColWhite ), aStr ) );
264 aBitmap = createHistorical8x8FromArray(aArray, RGB_Color(COL_LIGHTRED), RGB_Color(COL_WHITE));
265 Insert(new XBitmapEntry(Graphic(aBitmap), aStr));
267
266
267 // lightblue/white bitmap
268 aArray[24] = 1; aArray[25] = 1; aArray[26] = 1;
269 aArray[29] = 1; aArray[30] = 1; aArray[31] = 1;
270 aStr.SetChar(nLen, sal_Unicode('4'));
268 aArray[24] = 1; aArray[25] = 1; aArray[26] = 1;
269 aArray[29] = 1; aArray[30] = 1; aArray[31] = 1;
270 aStr.SetChar(nLen, sal_Unicode('4'));
271 Insert( new XBitmapEntry( XOBitmap( aArray, RGB_Color( COL_LIGHTBLUE ), aColWhite ), aStr ) );
271 aBitmap = createHistorical8x8FromArray(aArray, RGB_Color(COL_LIGHTBLUE), RGB_Color(COL_WHITE));
272 Insert(new XBitmapEntry(Graphic(aBitmap), aStr));
272
273 return( sal_True );
274}
275
276/************************************************************************/
277
278sal_Bool XBitmapList::CreateBitmapsForUI()
279{
280 return( sal_False );
281}
282
283/************************************************************************/
284
285Bitmap* XBitmapList::CreateBitmapForUI( long /*nIndex*/, sal_Bool /*bDelete*/)
286{
287 return( NULL );
288}
289
290// eof
273
274 return( sal_True );
275}
276
277/************************************************************************/
278
279sal_Bool XBitmapList::CreateBitmapsForUI()
280{
281 return( sal_False );
282}
283
284/************************************************************************/
285
286Bitmap* XBitmapList::CreateBitmapForUI( long /*nIndex*/, sal_Bool /*bDelete*/)
287{
288 return( NULL );
289}
290
291// eof