summaryrefslogtreecommitdiff
path: root/vcl/source/gdi/virdev.cxx
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2004-07-13 08:29:45 +0000
committerRüdiger Timm <rt@openoffice.org>2004-07-13 08:29:45 +0000
commit35da1acfcdff5d551ab3f036834c0c63681ff284 (patch)
tree2c227465e22fbdd4d6a9e7cd7c9d622d6f6ccb15 /vcl/source/gdi/virdev.cxx
parentf79cd8d2a6b0cfa863da2a9bc026c95d85dd51ef (diff)
INTEGRATION: CWS fontlists02 (1.14.92); FILE MERGED
2004/03/25 16:38:57 hdu 1.14.92.1: Font Management Refactoring, first step: Keep the externally visible original algorithms intact Split up the ImplFontCache::Get(..) monster method Make implicit relationships between font management classes explicit Allow derivation from ImplFontData+ImplFontEntry for font technology specific caching Get rid of linear searches in mainstream code, use efficient STL containers Get rid of some obsolete data types BOOL->bool, USHORT->int, etc. Improve infrastructure for unicode surrogate processing
Diffstat (limited to 'vcl/source/gdi/virdev.cxx')
-rw-r--r--vcl/source/gdi/virdev.cxx30
1 files changed, 7 insertions, 23 deletions
diff --git a/vcl/source/gdi/virdev.cxx b/vcl/source/gdi/virdev.cxx
index 9f956f041366..6e21c11b2aa8 100644
--- a/vcl/source/gdi/virdev.cxx
+++ b/vcl/source/gdi/virdev.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: virdev.cxx,v $
*
- * $Revision: 1.14 $
+ * $Revision: 1.15 $
*
- * last change: $Author: vg $ $Date: 2004-01-06 13:57:02 $
+ * last change: $Author: rt $ $Date: 2004-07-13 09:29:45 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -208,14 +208,14 @@ VirtualDevice::~VirtualDevice()
{
DBG_TRACE( "VirtualDevice::~VirtualDevice()" );
- ImplSVData* pSVData = ImplGetSVData();
+ ImplSVData* pSVData = ImplGetSVData();
ImplReleaseGraphics();
if ( mpVirDev )
pSVData->mpDefInst->DestroyVirtualDevice( mpVirDev );
- // VirDev aus der Liste eintragen
+ // remove this VirtualDevice from the double-linked global list
if( mpPrev )
mpPrev->mpNext = mpNext;
else
@@ -376,7 +376,7 @@ void VirtualDevice::SetReferenceDevice( RefDevMode eRefDevMode )
mnDPIX = mnDPIY = 4800;
break;
case REFDEV_MODE96:
- mnDPIX = mnDPIY = 9600;
+ mnDPIX = mnDPIY = 1440; // as agreed with FME and AMA
break;
}
@@ -420,26 +420,10 @@ void VirtualDevice::SetReferenceDevice( RefDevMode eRefDevMode )
// get font list with scalable fonts only
ImplGetGraphics();
- ImplDevFontList* pScalableDevFonts = new ImplDevFontList();
- ImplDevFontListData* pData = pSVData->maGDIData.mpScreenFontList->First();
- for(; pData; pData = pSVData->maGDIData.mpScreenFontList->Next() )
- {
- ImplFontData* pEntry = pData->mpFirst;
- for(; pEntry; pEntry = pEntry->mpNext )
- {
- if( (pEntry->meType != TYPE_VECTOR)
- && (pEntry->meType != TYPE_SCALABLE) )
- continue;
- ImplFontData* pNewData = new ImplFontData();
- *pNewData = *pEntry;
- pScalableDevFonts->Add( pNewData );
- }
- }
+ mpFontList = pSVData->maGDIData.mpScreenFontList->Clone( true, false );
// prepare to use new font lists
- mpFontList = pScalableDevFonts;
- mpFontCache = new ImplFontCache( FALSE );
+ mpFontCache = new ImplFontCache( false );
}
// -----------------------------------------------------------------------
-// eof