Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
49a6d015
Kaydet (Commit)
49a6d015
authored
Ock 09, 2015
tarafından
Chris Sherlock
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
vcl: cleanup cairotextrender.hxx
Change-Id: Ia8471c9745b86c4137297fd9cd0a3fea712a14fa
üst
d1d1f0c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
55 additions
and
49 deletions
+55
-49
cairotextrender.hxx
vcl/inc/cairotextrender.hxx
+55
-49
No files found.
vcl/inc/cairotextrender.hxx
Dosyayı görüntüle @
49a6d015
...
@@ -55,74 +55,80 @@ public:
...
@@ -55,74 +55,80 @@ public:
mbVerticalMetrics
==
rOther
.
mbVerticalMetrics
;
mbVerticalMetrics
==
rOther
.
mbVerticalMetrics
;
}
}
};
};
private
:
private
:
static
int
mnRefCount
;
static
int
mnRefCount
;
typedef
std
::
deque
<
std
::
pair
<
void
*
,
CacheId
>
>
LRUFonts
;
typedef
std
::
deque
<
std
::
pair
<
void
*
,
CacheId
>
>
LRUFonts
;
static
LRUFonts
maLRUFonts
;
static
LRUFonts
maLRUFonts
;
public
:
public
:
CairoFontsCache
();
CairoFontsCache
();
static
void
CacheFont
(
void
*
pFont
,
const
CacheId
&
rId
);
~
CairoFontsCache
();
static
void
*
FindCachedFont
(
const
CacheId
&
rId
);
~
CairoFontsCache
();
static
void
CacheFont
(
void
*
pFont
,
const
CacheId
&
rId
);
static
void
*
FindCachedFont
(
const
CacheId
&
rId
);
};
};
class
CairoTextRender
:
public
TextRenderImpl
class
CairoTextRender
:
public
TextRenderImpl
{
{
bool
mbPrinter
;
bool
mbPrinter
;
ServerFont
*
mpServerFont
[
MAX_FALLBACK
];
ServerFont
*
mpServerFont
[
MAX_FALLBACK
];
SalColor
nTextColor_
;
SalColor
nTextColor_
;
CairoFontsCache
m_aCairoFontsCache
;
CairoFontsCache
m_aCairoFontsCache
;
bool
bDisableGraphite_
;
protected
:
protected
:
virtual
GlyphCache
&
getPlatformGlyphCache
()
=
0
;
virtual
GlyphCache
&
getPlatformGlyphCache
()
=
0
;
virtual
cairo_surface_t
*
getCairoSurface
()
=
0
;
virtual
cairo_surface_t
*
getCairoSurface
()
=
0
;
virtual
void
getSurfaceOffset
(
double
&
nDX
,
double
&
nDY
)
=
0
;
virtual
void
getSurfaceOffset
(
double
&
nDX
,
double
&
nDY
)
=
0
;
virtual
void
drawSurface
(
cairo_t
*
cr
)
=
0
;
virtual
void
drawSurface
(
cairo_t
*
cr
)
=
0
;
bool
setFont
(
const
FontSelectPattern
*
pEntry
,
int
nFallbackLevel
);
bool
setFont
(
const
FontSelectPattern
*
pEntry
,
int
nFallbackLevel
);
virtual
void
clipRegion
(
cairo_t
*
cr
)
=
0
;
virtual
void
clipRegion
(
cairo_t
*
cr
)
=
0
;
public
:
public
:
CairoTextRender
(
bool
bPrinter
);
CairoTextRender
(
bool
bPrinter
);
virtual
void
SetTextColor
(
SalColor
nSalColor
)
SAL_OVERRIDE
;
virtual
void
SetTextColor
(
SalColor
nSalColor
)
SAL_OVERRIDE
;
virtual
sal_uInt16
SetFont
(
FontSelectPattern
*
,
int
nFallbackLevel
)
SAL_OVERRIDE
;
virtual
sal_uInt16
SetFont
(
FontSelectPattern
*
,
int
nFallbackLevel
)
SAL_OVERRIDE
;
virtual
void
GetFontMetric
(
ImplFontMetricData
*
,
int
nFallbackLevel
)
SAL_OVERRIDE
;
virtual
void
GetFontMetric
(
ImplFontMetricData
*
,
int
nFallbackLevel
)
SAL_OVERRIDE
;
virtual
const
FontCharMapPtr
GetFontCharMap
()
const
SAL_OVERRIDE
;
virtual
const
FontCharMapPtr
GetFontCharMap
()
const
SAL_OVERRIDE
;
virtual
bool
GetFontCapabilities
(
vcl
::
FontCapabilities
&
rFontCapabilities
)
const
SAL_OVERRIDE
;
virtual
bool
GetFontCapabilities
(
vcl
::
FontCapabilities
&
rFontCapabilities
)
const
SAL_OVERRIDE
;
virtual
void
GetDevFontList
(
PhysicalFontCollection
*
)
SAL_OVERRIDE
;
virtual
void
GetDevFontList
(
PhysicalFontCollection
*
)
SAL_OVERRIDE
;
virtual
void
ClearDevFontCache
()
SAL_OVERRIDE
;
virtual
void
ClearDevFontCache
()
SAL_OVERRIDE
;
virtual
bool
AddTempDevFont
(
PhysicalFontCollection
*
,
const
OUString
&
rFileURL
,
const
OUString
&
rFontName
)
SAL_OVERRIDE
;
virtual
bool
AddTempDevFont
(
PhysicalFontCollection
*
,
const
OUString
&
rFileURL
,
const
OUString
&
rFontName
)
SAL_OVERRIDE
;
virtual
bool
CreateFontSubset
(
const
OUString
&
rToFile
,
virtual
bool
CreateFontSubset
(
const
PhysicalFontFace
*
,
const
OUString
&
rToFile
,
sal_GlyphId
*
pGlyphIDs
,
const
PhysicalFontFace
*
,
sal_uInt8
*
pEncoding
,
sal_GlyphId
*
pGlyphIDs
,
sal_Int32
*
pWidths
,
sal_uInt8
*
pEncoding
,
int
nGlyphs
,
sal_Int32
*
pWidths
,
FontSubsetInfo
&
rInfo
int
nGlyphs
,
)
SAL_OVERRIDE
;
FontSubsetInfo
&
rInfo
)
SAL_OVERRIDE
;
virtual
const
Ucs2SIntMap
*
GetFontEncodingVector
(
const
PhysicalFontFace
*
,
const
Ucs2OStrMap
**
ppNonEncoded
)
SAL_OVERRIDE
;
virtual
const
void
*
GetEmbedFontData
(
const
PhysicalFontFace
*
,
virtual
const
Ucs2SIntMap
*
GetFontEncodingVector
(
const
PhysicalFontFace
*
,
const
Ucs2OStrMap
**
ppNonEncoded
)
SAL_OVERRIDE
;
const
sal_Ucs
*
pUnicodes
,
virtual
const
void
*
GetEmbedFontData
(
sal_Int32
*
pWidths
,
const
PhysicalFontFace
*
,
FontSubsetInfo
&
rInfo
,
const
sal_Ucs
*
pUnicodes
,
long
*
pDataLen
)
SAL_OVERRIDE
;
sal_Int32
*
pWidths
,
virtual
void
FreeEmbedFontData
(
const
void
*
pData
,
long
nDataLen
)
SAL_OVERRIDE
;
FontSubsetInfo
&
rInfo
,
virtual
void
GetGlyphWidths
(
const
PhysicalFontFace
*
,
long
*
pDataLen
)
SAL_OVERRIDE
;
bool
bVertical
,
Int32Vector
&
rWidths
,
virtual
void
FreeEmbedFontData
(
const
void
*
pData
,
long
nDataLen
)
SAL_OVERRIDE
;
Ucs2UIntMap
&
rUnicodeEnc
)
SAL_OVERRIDE
;
virtual
void
GetGlyphWidths
(
virtual
bool
GetGlyphBoundRect
(
sal_GlyphId
nIndex
,
Rectangle
&
)
SAL_OVERRIDE
;
const
PhysicalFontFace
*
,
virtual
bool
GetGlyphOutline
(
sal_GlyphId
nIndex
,
::
basegfx
::
B2DPolyPolygon
&
)
SAL_OVERRIDE
;
bool
bVertical
,
virtual
SalLayout
*
GetTextLayout
(
ImplLayoutArgs
&
,
int
nFallbackLevel
)
SAL_OVERRIDE
;
Int32Vector
&
rWidths
,
virtual
void
DrawServerFontLayout
(
const
ServerFontLayout
&
)
SAL_OVERRIDE
;
Ucs2UIntMap
&
rUnicodeEnc
)
SAL_OVERRIDE
;
virtual
SystemFontData
GetSysFontData
(
int
nFallbackLevel
)
const
SAL_OVERRIDE
;
virtual
bool
GetGlyphBoundRect
(
sal_GlyphId
nIndex
,
Rectangle
&
)
SAL_OVERRIDE
;
private
:
virtual
bool
GetGlyphOutline
(
sal_GlyphId
nIndex
,
::
basegfx
::
B2DPolyPolygon
&
)
SAL_OVERRIDE
;
bool
bDisableGraphite_
;
virtual
SalLayout
*
GetTextLayout
(
ImplLayoutArgs
&
,
int
nFallbackLevel
)
SAL_OVERRIDE
;
virtual
void
DrawServerFontLayout
(
const
ServerFontLayout
&
)
SAL_OVERRIDE
;
virtual
SystemFontData
GetSysFontData
(
int
nFallbackLevel
)
const
SAL_OVERRIDE
;
};
};
#endif
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment