1*cdf0e10cSrcweir /************************************************************************* 2*cdf0e10cSrcweir * 3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir * 5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir * 7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir * 9*cdf0e10cSrcweir * This file is part of OpenOffice.org. 10*cdf0e10cSrcweir * 11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir * 15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir * 21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir * 26*cdf0e10cSrcweir ************************************************************************/ 27*cdf0e10cSrcweir 28*cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove 29*cdf0e10cSrcweir #include "precompiled_svx.hxx" 30*cdf0e10cSrcweir 31*cdf0e10cSrcweir // include --------------------------------------------------------------- 32*cdf0e10cSrcweir 33*cdf0e10cSrcweir #ifndef SVX_LIGHT 34*cdf0e10cSrcweir 35*cdf0e10cSrcweir #include <com/sun/star/container/XNameContainer.hpp> 36*cdf0e10cSrcweir #include "svx/XPropertyTable.hxx" 37*cdf0e10cSrcweir #include <unotools/ucbstreamhelper.hxx> 38*cdf0e10cSrcweir 39*cdf0e10cSrcweir #include "xmlxtexp.hxx" 40*cdf0e10cSrcweir #include "xmlxtimp.hxx" 41*cdf0e10cSrcweir 42*cdf0e10cSrcweir #endif 43*cdf0e10cSrcweir #include <vcl/svapp.hxx> 44*cdf0e10cSrcweir 45*cdf0e10cSrcweir #include <tools/urlobj.hxx> 46*cdf0e10cSrcweir #include <vcl/virdev.hxx> 47*cdf0e10cSrcweir #include <vcl/window.hxx> 48*cdf0e10cSrcweir #include <svl/itemset.hxx> 49*cdf0e10cSrcweir #include <sfx2/docfile.hxx> 50*cdf0e10cSrcweir #include <svx/dialogs.hrc> 51*cdf0e10cSrcweir #include <svx/dialmgr.hxx> 52*cdf0e10cSrcweir #include <svx/xtable.hxx> 53*cdf0e10cSrcweir #include <svx/xpool.hxx> 54*cdf0e10cSrcweir #include <svx/xlineit0.hxx> 55*cdf0e10cSrcweir #include <svx/xlnclit.hxx> 56*cdf0e10cSrcweir #include <svx/xlnwtit.hxx> 57*cdf0e10cSrcweir #include <svx/xlndsit.hxx> 58*cdf0e10cSrcweir #include <svx/xflclit.hxx> 59*cdf0e10cSrcweir 60*cdf0e10cSrcweir #include <svx/svdorect.hxx> 61*cdf0e10cSrcweir #include <svx/svdopath.hxx> 62*cdf0e10cSrcweir #include <svx/svdmodel.hxx> 63*cdf0e10cSrcweir #include <svx/sdr/contact/objectcontactofobjlistpainter.hxx> 64*cdf0e10cSrcweir #include <svx/sdr/contact/displayinfo.hxx> 65*cdf0e10cSrcweir #include <basegfx/polygon/b2dpolygon.hxx> 66*cdf0e10cSrcweir 67*cdf0e10cSrcweir using namespace com::sun::star; 68*cdf0e10cSrcweir using namespace rtl; 69*cdf0e10cSrcweir 70*cdf0e10cSrcweir #define GLOBALOVERFLOW 71*cdf0e10cSrcweir 72*cdf0e10cSrcweir sal_Unicode const pszExtDash[] = {'s','o','d'}; 73*cdf0e10cSrcweir char const aChckDash[] = { 0x04, 0x00, 'S','O','D','L'}; // < 5.2 74*cdf0e10cSrcweir char const aChckDash0[] = { 0x04, 0x00, 'S','O','D','0'}; // = 5.2 75*cdf0e10cSrcweir char const aChckXML[] = { '<', '?', 'x', 'm', 'l' }; // = 6.0 76*cdf0e10cSrcweir 77*cdf0e10cSrcweir // ----------------- 78*cdf0e10cSrcweir // class XDashTable 79*cdf0e10cSrcweir // ----------------- 80*cdf0e10cSrcweir 81*cdf0e10cSrcweir /************************************************************************* 82*cdf0e10cSrcweir |* 83*cdf0e10cSrcweir |* XDashTable::XDashTable() 84*cdf0e10cSrcweir |* 85*cdf0e10cSrcweir *************************************************************************/ 86*cdf0e10cSrcweir 87*cdf0e10cSrcweir XDashTable::XDashTable( const String& rPath, 88*cdf0e10cSrcweir XOutdevItemPool* pInPool, 89*cdf0e10cSrcweir sal_uInt16 nInitSize, sal_uInt16 nReSize ) : 90*cdf0e10cSrcweir XPropertyTable( rPath, pInPool, nInitSize, nReSize) 91*cdf0e10cSrcweir { 92*cdf0e10cSrcweir pBmpTable = new Table( nInitSize, nReSize ); 93*cdf0e10cSrcweir } 94*cdf0e10cSrcweir 95*cdf0e10cSrcweir /************************************************************************/ 96*cdf0e10cSrcweir 97*cdf0e10cSrcweir XDashTable::~XDashTable() 98*cdf0e10cSrcweir { 99*cdf0e10cSrcweir } 100*cdf0e10cSrcweir 101*cdf0e10cSrcweir /************************************************************************/ 102*cdf0e10cSrcweir 103*cdf0e10cSrcweir XDashEntry* XDashTable::Replace(long nIndex, XDashEntry* pEntry ) 104*cdf0e10cSrcweir { 105*cdf0e10cSrcweir return (XDashEntry*) XPropertyTable::Replace(nIndex, pEntry); 106*cdf0e10cSrcweir } 107*cdf0e10cSrcweir 108*cdf0e10cSrcweir /************************************************************************/ 109*cdf0e10cSrcweir 110*cdf0e10cSrcweir XDashEntry* XDashTable::Remove(long nIndex) 111*cdf0e10cSrcweir { 112*cdf0e10cSrcweir return (XDashEntry*) XPropertyTable::Remove(nIndex, 0); 113*cdf0e10cSrcweir } 114*cdf0e10cSrcweir 115*cdf0e10cSrcweir /************************************************************************/ 116*cdf0e10cSrcweir 117*cdf0e10cSrcweir XDashEntry* XDashTable::GetDash(long nIndex) const 118*cdf0e10cSrcweir { 119*cdf0e10cSrcweir return (XDashEntry*) XPropertyTable::Get(nIndex, 0); 120*cdf0e10cSrcweir } 121*cdf0e10cSrcweir 122*cdf0e10cSrcweir /************************************************************************/ 123*cdf0e10cSrcweir 124*cdf0e10cSrcweir sal_Bool XDashTable::Load() 125*cdf0e10cSrcweir { 126*cdf0e10cSrcweir return( sal_False ); 127*cdf0e10cSrcweir } 128*cdf0e10cSrcweir 129*cdf0e10cSrcweir /************************************************************************/ 130*cdf0e10cSrcweir 131*cdf0e10cSrcweir sal_Bool XDashTable::Save() 132*cdf0e10cSrcweir { 133*cdf0e10cSrcweir return( sal_False ); 134*cdf0e10cSrcweir } 135*cdf0e10cSrcweir 136*cdf0e10cSrcweir /************************************************************************/ 137*cdf0e10cSrcweir 138*cdf0e10cSrcweir sal_Bool XDashTable::Create() 139*cdf0e10cSrcweir { 140*cdf0e10cSrcweir return( sal_False ); 141*cdf0e10cSrcweir } 142*cdf0e10cSrcweir 143*cdf0e10cSrcweir /************************************************************************/ 144*cdf0e10cSrcweir 145*cdf0e10cSrcweir sal_Bool XDashTable::CreateBitmapsForUI() 146*cdf0e10cSrcweir { 147*cdf0e10cSrcweir return( sal_False ); 148*cdf0e10cSrcweir } 149*cdf0e10cSrcweir 150*cdf0e10cSrcweir /************************************************************************/ 151*cdf0e10cSrcweir 152*cdf0e10cSrcweir Bitmap* XDashTable::CreateBitmapForUI( long /*nIndex*/, sal_Bool /*bDelete*/) 153*cdf0e10cSrcweir { 154*cdf0e10cSrcweir return( NULL ); 155*cdf0e10cSrcweir } 156*cdf0e10cSrcweir 157*cdf0e10cSrcweir // ---------------- 158*cdf0e10cSrcweir // class XDashList 159*cdf0e10cSrcweir // ---------------- 160*cdf0e10cSrcweir 161*cdf0e10cSrcweir class impXDashList 162*cdf0e10cSrcweir { 163*cdf0e10cSrcweir private: 164*cdf0e10cSrcweir VirtualDevice* mpVirtualDevice; 165*cdf0e10cSrcweir SdrModel* mpSdrModel; 166*cdf0e10cSrcweir SdrObject* mpBackgroundObject; 167*cdf0e10cSrcweir SdrObject* mpLineObject; 168*cdf0e10cSrcweir 169*cdf0e10cSrcweir public: 170*cdf0e10cSrcweir impXDashList(VirtualDevice* pV, SdrModel* pM, SdrObject* pB, SdrObject* pL) 171*cdf0e10cSrcweir : mpVirtualDevice(pV), 172*cdf0e10cSrcweir mpSdrModel(pM), 173*cdf0e10cSrcweir mpBackgroundObject(pB), 174*cdf0e10cSrcweir mpLineObject(pL) 175*cdf0e10cSrcweir {} 176*cdf0e10cSrcweir 177*cdf0e10cSrcweir ~impXDashList() 178*cdf0e10cSrcweir { 179*cdf0e10cSrcweir delete mpVirtualDevice; 180*cdf0e10cSrcweir SdrObject::Free(mpBackgroundObject); 181*cdf0e10cSrcweir SdrObject::Free(mpLineObject); 182*cdf0e10cSrcweir delete mpSdrModel; 183*cdf0e10cSrcweir } 184*cdf0e10cSrcweir 185*cdf0e10cSrcweir VirtualDevice* getVirtualDevice() const { return mpVirtualDevice; } 186*cdf0e10cSrcweir SdrObject* getBackgroundObject() const { return mpBackgroundObject; } 187*cdf0e10cSrcweir SdrObject* getLineObject() const { return mpLineObject; } 188*cdf0e10cSrcweir }; 189*cdf0e10cSrcweir 190*cdf0e10cSrcweir void XDashList::impCreate() 191*cdf0e10cSrcweir { 192*cdf0e10cSrcweir if(!mpData) 193*cdf0e10cSrcweir { 194*cdf0e10cSrcweir const Point aZero(0, 0); 195*cdf0e10cSrcweir const StyleSettings& rStyleSettings = Application::GetSettings().GetStyleSettings(); 196*cdf0e10cSrcweir 197*cdf0e10cSrcweir VirtualDevice* pVirDev = new VirtualDevice; 198*cdf0e10cSrcweir OSL_ENSURE(0 != pVirDev, "XDashList: no VirtualDevice created!" ); 199*cdf0e10cSrcweir pVirDev->SetMapMode(MAP_100TH_MM); 200*cdf0e10cSrcweir const Size aSize(pVirDev->PixelToLogic(Size(BITMAP_WIDTH * 2, BITMAP_HEIGHT))); 201*cdf0e10cSrcweir pVirDev->SetOutputSize(aSize); 202*cdf0e10cSrcweir pVirDev->SetDrawMode(rStyleSettings.GetHighContrastMode() 203*cdf0e10cSrcweir ? DRAWMODE_SETTINGSLINE | DRAWMODE_SETTINGSFILL | DRAWMODE_SETTINGSTEXT | DRAWMODE_SETTINGSGRADIENT 204*cdf0e10cSrcweir : DRAWMODE_DEFAULT); 205*cdf0e10cSrcweir 206*cdf0e10cSrcweir SdrModel* pSdrModel = new SdrModel(); 207*cdf0e10cSrcweir OSL_ENSURE(0 != pSdrModel, "XDashList: no SdrModel created!" ); 208*cdf0e10cSrcweir pSdrModel->GetItemPool().FreezeIdRanges(); 209*cdf0e10cSrcweir 210*cdf0e10cSrcweir const Rectangle aBackgroundSize(aZero, aSize); 211*cdf0e10cSrcweir SdrObject* pBackgroundObject = new SdrRectObj(aBackgroundSize); 212*cdf0e10cSrcweir OSL_ENSURE(0 != pBackgroundObject, "XDashList: no BackgroundObject created!" ); 213*cdf0e10cSrcweir pBackgroundObject->SetModel(pSdrModel); 214*cdf0e10cSrcweir pBackgroundObject->SetMergedItem(XFillStyleItem(XFILL_SOLID)); 215*cdf0e10cSrcweir pBackgroundObject->SetMergedItem(XLineStyleItem(XLINE_NONE)); 216*cdf0e10cSrcweir pBackgroundObject->SetMergedItem(XFillColorItem(String(), rStyleSettings.GetFieldColor())); 217*cdf0e10cSrcweir 218*cdf0e10cSrcweir const basegfx::B2DPoint aStart(0, aSize.Height() / 2); 219*cdf0e10cSrcweir const basegfx::B2DPoint aEnd(aSize.Width(), aSize.Height() / 2); 220*cdf0e10cSrcweir basegfx::B2DPolygon aPolygon; 221*cdf0e10cSrcweir aPolygon.append(aStart); 222*cdf0e10cSrcweir aPolygon.append(aEnd); 223*cdf0e10cSrcweir SdrObject* pLineObject = new SdrPathObj(OBJ_LINE, basegfx::B2DPolyPolygon(aPolygon)); 224*cdf0e10cSrcweir OSL_ENSURE(0 != pLineObject, "XDashList: no LineObject created!" ); 225*cdf0e10cSrcweir pLineObject->SetModel(pSdrModel); 226*cdf0e10cSrcweir pLineObject->SetMergedItem(XLineStyleItem(XLINE_DASH)); 227*cdf0e10cSrcweir pLineObject->SetMergedItem(XLineColorItem(String(), rStyleSettings.GetFieldTextColor())); 228*cdf0e10cSrcweir pLineObject->SetMergedItem(XLineWidthItem(30)); 229*cdf0e10cSrcweir 230*cdf0e10cSrcweir mpData = new impXDashList(pVirDev, pSdrModel, pBackgroundObject, pLineObject); 231*cdf0e10cSrcweir OSL_ENSURE(0 != mpData, "XDashList: data creation went wrong!" ); 232*cdf0e10cSrcweir } 233*cdf0e10cSrcweir } 234*cdf0e10cSrcweir 235*cdf0e10cSrcweir void XDashList::impDestroy() 236*cdf0e10cSrcweir { 237*cdf0e10cSrcweir if(mpData) 238*cdf0e10cSrcweir { 239*cdf0e10cSrcweir delete mpData; 240*cdf0e10cSrcweir mpData = 0; 241*cdf0e10cSrcweir } 242*cdf0e10cSrcweir } 243*cdf0e10cSrcweir 244*cdf0e10cSrcweir XDashList::XDashList(const String& rPath, XOutdevItemPool* pInPool, sal_uInt16 nInitSize, sal_uInt16 nReSize) 245*cdf0e10cSrcweir : XPropertyList(rPath, pInPool, nInitSize, nReSize), 246*cdf0e10cSrcweir mpData(0) 247*cdf0e10cSrcweir { 248*cdf0e10cSrcweir pBmpList = new List(nInitSize, nReSize); 249*cdf0e10cSrcweir } 250*cdf0e10cSrcweir 251*cdf0e10cSrcweir XDashList::~XDashList() 252*cdf0e10cSrcweir { 253*cdf0e10cSrcweir impDestroy(); 254*cdf0e10cSrcweir } 255*cdf0e10cSrcweir 256*cdf0e10cSrcweir XDashEntry* XDashList::Replace(XDashEntry* pEntry, long nIndex ) 257*cdf0e10cSrcweir { 258*cdf0e10cSrcweir return (XDashEntry*) XPropertyList::Replace(pEntry, nIndex); 259*cdf0e10cSrcweir } 260*cdf0e10cSrcweir 261*cdf0e10cSrcweir XDashEntry* XDashList::Remove(long nIndex) 262*cdf0e10cSrcweir { 263*cdf0e10cSrcweir return (XDashEntry*) XPropertyList::Remove(nIndex, 0); 264*cdf0e10cSrcweir } 265*cdf0e10cSrcweir 266*cdf0e10cSrcweir XDashEntry* XDashList::GetDash(long nIndex) const 267*cdf0e10cSrcweir { 268*cdf0e10cSrcweir return (XDashEntry*) XPropertyList::Get(nIndex, 0); 269*cdf0e10cSrcweir } 270*cdf0e10cSrcweir 271*cdf0e10cSrcweir sal_Bool XDashList::Load() 272*cdf0e10cSrcweir { 273*cdf0e10cSrcweir if( bListDirty ) 274*cdf0e10cSrcweir { 275*cdf0e10cSrcweir bListDirty = sal_False; 276*cdf0e10cSrcweir 277*cdf0e10cSrcweir INetURLObject aURL( aPath ); 278*cdf0e10cSrcweir 279*cdf0e10cSrcweir if( INET_PROT_NOT_VALID == aURL.GetProtocol() ) 280*cdf0e10cSrcweir { 281*cdf0e10cSrcweir DBG_ASSERT( !aPath.Len(), "invalid URL" ); 282*cdf0e10cSrcweir return sal_False; 283*cdf0e10cSrcweir } 284*cdf0e10cSrcweir 285*cdf0e10cSrcweir aURL.Append( aName ); 286*cdf0e10cSrcweir 287*cdf0e10cSrcweir if( !aURL.getExtension().getLength() ) 288*cdf0e10cSrcweir aURL.setExtension( rtl::OUString( pszExtDash, 3 ) ); 289*cdf0e10cSrcweir 290*cdf0e10cSrcweir uno::Reference< container::XNameContainer > xTable( SvxUnoXDashTable_createInstance( this ), uno::UNO_QUERY ); 291*cdf0e10cSrcweir return SvxXMLXTableImport::load( aURL.GetMainURL( INetURLObject::NO_DECODE ), xTable ); 292*cdf0e10cSrcweir } 293*cdf0e10cSrcweir return( sal_False ); 294*cdf0e10cSrcweir } 295*cdf0e10cSrcweir 296*cdf0e10cSrcweir sal_Bool XDashList::Save() 297*cdf0e10cSrcweir { 298*cdf0e10cSrcweir INetURLObject aURL( aPath ); 299*cdf0e10cSrcweir 300*cdf0e10cSrcweir if( INET_PROT_NOT_VALID == aURL.GetProtocol() ) 301*cdf0e10cSrcweir { 302*cdf0e10cSrcweir DBG_ASSERT( !aPath.Len(), "invalid URL" ); 303*cdf0e10cSrcweir return sal_False; 304*cdf0e10cSrcweir } 305*cdf0e10cSrcweir 306*cdf0e10cSrcweir aURL.Append( aName ); 307*cdf0e10cSrcweir 308*cdf0e10cSrcweir if( !aURL.getExtension().getLength() ) 309*cdf0e10cSrcweir aURL.setExtension( rtl::OUString( pszExtDash, 3 ) ); 310*cdf0e10cSrcweir 311*cdf0e10cSrcweir uno::Reference< container::XNameContainer > xTable( SvxUnoXDashTable_createInstance( this ), uno::UNO_QUERY ); 312*cdf0e10cSrcweir return SvxXMLXTableExportComponent::save( aURL.GetMainURL( INetURLObject::NO_DECODE ), xTable ); 313*cdf0e10cSrcweir } 314*cdf0e10cSrcweir 315*cdf0e10cSrcweir sal_Bool XDashList::Create() 316*cdf0e10cSrcweir { 317*cdf0e10cSrcweir XubString aStr( SVX_RES( RID_SVXSTR_LINESTYLE ) ); 318*cdf0e10cSrcweir xub_StrLen nLen; 319*cdf0e10cSrcweir 320*cdf0e10cSrcweir aStr.AppendAscii(" 1"); 321*cdf0e10cSrcweir nLen = aStr.Len() - 1; 322*cdf0e10cSrcweir Insert(new XDashEntry(XDash(XDASH_RECT,1, 50,1, 50, 50),aStr)); 323*cdf0e10cSrcweir aStr.SetChar(nLen, sal_Unicode('2')); 324*cdf0e10cSrcweir Insert(new XDashEntry(XDash(XDASH_RECT,1,500,1,500,500),aStr)); 325*cdf0e10cSrcweir aStr.SetChar(nLen, sal_Unicode('3')); 326*cdf0e10cSrcweir Insert(new XDashEntry(XDash(XDASH_RECT,2, 50,3,250,120),aStr)); 327*cdf0e10cSrcweir 328*cdf0e10cSrcweir return( sal_True ); 329*cdf0e10cSrcweir } 330*cdf0e10cSrcweir 331*cdf0e10cSrcweir sal_Bool XDashList::CreateBitmapsForUI() 332*cdf0e10cSrcweir { 333*cdf0e10cSrcweir impCreate(); 334*cdf0e10cSrcweir 335*cdf0e10cSrcweir for( long i = 0; i < Count(); i++) 336*cdf0e10cSrcweir { 337*cdf0e10cSrcweir Bitmap* pBmp = CreateBitmapForUI( i, sal_False ); 338*cdf0e10cSrcweir DBG_ASSERT( pBmp, "XDashList: Bitmap(UI) konnte nicht erzeugt werden!" ); 339*cdf0e10cSrcweir 340*cdf0e10cSrcweir if( pBmp ) 341*cdf0e10cSrcweir pBmpList->Insert( pBmp, i ); 342*cdf0e10cSrcweir } 343*cdf0e10cSrcweir 344*cdf0e10cSrcweir impDestroy(); 345*cdf0e10cSrcweir 346*cdf0e10cSrcweir return( sal_True ); 347*cdf0e10cSrcweir } 348*cdf0e10cSrcweir 349*cdf0e10cSrcweir Bitmap* XDashList::CreateBitmapForUI( long nIndex, sal_Bool bDelete ) 350*cdf0e10cSrcweir { 351*cdf0e10cSrcweir impCreate(); 352*cdf0e10cSrcweir VirtualDevice* pVD = mpData->getVirtualDevice(); 353*cdf0e10cSrcweir SdrObject* pLine = mpData->getLineObject(); 354*cdf0e10cSrcweir 355*cdf0e10cSrcweir pLine->SetMergedItem(XLineStyleItem(XLINE_DASH)); 356*cdf0e10cSrcweir pLine->SetMergedItem(XLineDashItem(String(), GetDash(nIndex)->GetDash())); 357*cdf0e10cSrcweir 358*cdf0e10cSrcweir sdr::contact::SdrObjectVector aObjectVector; 359*cdf0e10cSrcweir aObjectVector.push_back(mpData->getBackgroundObject()); 360*cdf0e10cSrcweir aObjectVector.push_back(pLine); 361*cdf0e10cSrcweir sdr::contact::ObjectContactOfObjListPainter aPainter(*pVD, aObjectVector, 0); 362*cdf0e10cSrcweir sdr::contact::DisplayInfo aDisplayInfo; 363*cdf0e10cSrcweir 364*cdf0e10cSrcweir aPainter.ProcessDisplay(aDisplayInfo); 365*cdf0e10cSrcweir 366*cdf0e10cSrcweir const Point aZero(0, 0); 367*cdf0e10cSrcweir Bitmap* pBitmap = new Bitmap(pVD->GetBitmap(aZero, pVD->GetOutputSize())); 368*cdf0e10cSrcweir 369*cdf0e10cSrcweir if(bDelete) 370*cdf0e10cSrcweir { 371*cdf0e10cSrcweir impDestroy(); 372*cdf0e10cSrcweir } 373*cdf0e10cSrcweir 374*cdf0e10cSrcweir return pBitmap; 375*cdf0e10cSrcweir } 376*cdf0e10cSrcweir 377*cdf0e10cSrcweir ////////////////////////////////////////////////////////////////////////////// 378*cdf0e10cSrcweir // eof 379