glyphcache.hxx (161f4cd1) glyphcache.hxx (248a599f)
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

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

75
76protected:
77 GlyphCachePeer& mrPeer;
78
79private:
80 friend class ServerFont;
81 // used by ServerFont class only
82 void AddedGlyph( ServerFont&, GlyphData& );
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

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

75
76protected:
77 GlyphCachePeer& mrPeer;
78
79private:
80 friend class ServerFont;
81 // used by ServerFont class only
82 void AddedGlyph( ServerFont&, GlyphData& );
83 void RemovingGlyph( ServerFont&, GlyphData&, int nGlyphIndex );
83 void RemovingGlyph( ServerFont&, GlyphData&, sal_GlyphId );
84 void UsingGlyph( ServerFont&, GlyphData& );
85 void GrowNotify();
86
87private:
88 sal_uLong CalcByteCount() const;
89 void GarbageCollect();
90
91 // the GlyphCache's FontList matches a font request to a serverfont instance

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

183 const ImplFontSelectData& GetFontSelData() const { return maFontSelData; }
184
185 virtual void FetchFontMetric( ImplFontMetricData&, long& rFactor ) const = 0;
186 virtual sal_uLong GetKernPairs( ImplKernPairData** ) const { return 0; }
187 virtual int GetGlyphKernValue( int, int ) const { return 0; }
188 virtual const ImplFontCharMap* GetImplFontCharMap() const = 0;
189 Point TransformPoint( const Point& ) const;
190
84 void UsingGlyph( ServerFont&, GlyphData& );
85 void GrowNotify();
86
87private:
88 sal_uLong CalcByteCount() const;
89 void GarbageCollect();
90
91 // the GlyphCache's FontList matches a font request to a serverfont instance

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

183 const ImplFontSelectData& GetFontSelData() const { return maFontSelData; }
184
185 virtual void FetchFontMetric( ImplFontMetricData&, long& rFactor ) const = 0;
186 virtual sal_uLong GetKernPairs( ImplKernPairData** ) const { return 0; }
187 virtual int GetGlyphKernValue( int, int ) const { return 0; }
188 virtual const ImplFontCharMap* GetImplFontCharMap() const = 0;
189 Point TransformPoint( const Point& ) const;
190
191 GlyphData& GetGlyphData( int nGlyphIndex );
192 const GlyphMetric& GetGlyphMetric( int nGlyphIndex )
193 { return GetGlyphData( nGlyphIndex ).GetMetric(); }
191 GlyphData& GetGlyphData( sal_GlyphId );
192 const GlyphMetric& GetGlyphMetric( sal_GlyphId aGlyphId )
193 { return GetGlyphData( aGlyphId ).GetMetric(); }
194
194
195 virtual int GetGlyphIndex( sal_UCS4 ) const = 0;
196 virtual bool GetGlyphOutline( int nGlyphIndex, ::basegfx::B2DPolyPolygon& ) const = 0;
195 virtual sal_GlyphId GetGlyphIndex( sal_UCS4 ) const = 0;
196 virtual bool GetGlyphOutline( sal_GlyphId, ::basegfx::B2DPolyPolygon& ) const = 0;
197 virtual bool GetAntialiasAdvice( void ) const = 0;
197 virtual bool GetAntialiasAdvice( void ) const = 0;
198 bool IsGlyphInvisible( int nGlyphIndex );
199 virtual bool GetGlyphBitmap1( int nGlyphIndex, RawBitmap& ) const = 0;
200 virtual bool GetGlyphBitmap8( int nGlyphIndex, RawBitmap& ) const = 0;
198 bool IsGlyphInvisible( sal_GlyphId );
199 virtual bool GetGlyphBitmap1( sal_GlyphId, RawBitmap& ) const = 0;
200 virtual bool GetGlyphBitmap8( sal_GlyphId, RawBitmap& ) const = 0;
201
202 void SetExtended( int nInfo, void* ppVoid );
203 int GetExtInfo() { return mnExtInfo; }
204 void* GetExtPointer() { return mpExtData; }
205
206protected:
207 friend class GlyphCache;
208 friend class ServerFontLayout;
209 explicit ServerFont( const ImplFontSelectData& );
210 virtual ~ServerFont();
211
212 void AddRef() const { ++mnRefCount; }
213 long GetRefCount() const { return mnRefCount; }
214 long Release() const;
215 sal_uLong GetByteCount() const { return mnBytesUsed; }
216
201
202 void SetExtended( int nInfo, void* ppVoid );
203 int GetExtInfo() { return mnExtInfo; }
204 void* GetExtPointer() { return mpExtData; }
205
206protected:
207 friend class GlyphCache;
208 friend class ServerFontLayout;
209 explicit ServerFont( const ImplFontSelectData& );
210 virtual ~ServerFont();
211
212 void AddRef() const { ++mnRefCount; }
213 long GetRefCount() const { return mnRefCount; }
214 long Release() const;
215 sal_uLong GetByteCount() const { return mnBytesUsed; }
216
217 virtual void InitGlyphData( int nGlyphIndex, GlyphData& ) const = 0;
217 virtual void InitGlyphData( sal_GlyphId, GlyphData& ) const = 0;
218 virtual void GarbageCollect( long );
219 void ReleaseFromGarbageCollect();
220
221 virtual ServerFontLayoutEngine* GetLayoutEngine() { return NULL; }
222
223private:
224 typedef ::std::hash_map<int,GlyphData> GlyphList;
225 mutable GlyphList maGlyphList;

--- 151 unchanged lines hidden ---
218 virtual void GarbageCollect( long );
219 void ReleaseFromGarbageCollect();
220
221 virtual ServerFontLayoutEngine* GetLayoutEngine() { return NULL; }
222
223private:
224 typedef ::std::hash_map<int,GlyphData> GlyphList;
225 mutable GlyphList maGlyphList;

--- 151 unchanged lines hidden ---