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
51ff7e7a
Kaydet (Commit)
51ff7e7a
authored
Agu 20, 2015
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Drop code that is dead after
4667db06
Change-Id: Id023b43e901b0e41ebf3b208c6e80fd023bf7f9a
üst
9c161b22
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1 addition
and
97 deletions
+1
-97
salgdi.h
vcl/inc/win/salgdi.h
+1
-10
salgdi.cxx
vcl/win/source/gdi/salgdi.cxx
+0
-5
salgdi3.cxx
vcl/win/source/gdi/salgdi3.cxx
+0
-40
winlayout.cxx
vcl/win/source/gdi/winlayout.cxx
+0
-42
No files found.
vcl/inc/win/salgdi.h
Dosyayı görüntüle @
51ff7e7a
...
@@ -214,9 +214,6 @@ private:
...
@@ -214,9 +214,6 @@ private:
RGNDATA
*
mpClipRgnData
;
// ClipRegion-Data
RGNDATA
*
mpClipRgnData
;
// ClipRegion-Data
RGNDATA
*
mpStdClipRgnData
;
// Cache Standard-ClipRegion-Data
RGNDATA
*
mpStdClipRgnData
;
// Cache Standard-ClipRegion-Data
ImplFontAttrCache
*
mpFontAttrCache
;
// Cache font attributes from files in so/share/fonts
ImplFontAttrCache
*
mpFontAttrCache
;
// Cache font attributes from files in so/share/fonts
bool
mbFontKernInit
;
// FALSE: FontKerns must be queried
KERNINGPAIR
*
mpFontKernPairs
;
// Kerning Pairs of the current Font
sal_uIntPtr
mnFontKernPairCount
;
// Number of Kerning Pairs of the current Font
int
mnPenWidth
;
// Linienbreite
int
mnPenWidth
;
// Linienbreite
public
:
public
:
...
@@ -333,12 +330,6 @@ protected:
...
@@ -333,12 +330,6 @@ protected:
const
SalBitmap
*
pAlphaBitmap
)
SAL_OVERRIDE
;
const
SalBitmap
*
pAlphaBitmap
)
SAL_OVERRIDE
;
virtual
bool
drawAlphaRect
(
long
nX
,
long
nY
,
long
nWidth
,
long
nHeight
,
sal_uInt8
nTransparency
)
SAL_OVERRIDE
;
virtual
bool
drawAlphaRect
(
long
nX
,
long
nY
,
long
nWidth
,
long
nHeight
,
sal_uInt8
nTransparency
)
SAL_OVERRIDE
;
private
:
// local helpers
// get kernign pairs of the current font
sal_uLong
GetKernPairs
();
public
:
public
:
// public SalGraphics methods, the interface to the independent vcl part
// public SalGraphics methods, the interface to the independent vcl part
...
@@ -461,7 +452,7 @@ void ImplGetLogFontFromFontSelect( HDC, const FontSelectPattern*,
...
@@ -461,7 +452,7 @@ void ImplGetLogFontFromFontSelect( HDC, const FontSelectPattern*,
#define MAX_64KSALPOINTS ((((sal_uInt16)0xFFFF)-8)/sizeof(POINTS))
#define MAX_64KSALPOINTS ((((sal_uInt16)0xFFFF)-8)/sizeof(POINTS))
// #102411# Win's GCP mishandles kerning => we need to do it ourselves
// #102411# Win's GCP mishandles kerning => we need to do it ourselves
//
SalGraphicsData::mpFontKernP
airs is sorted by
//
kerning p
airs is sorted by
inline
bool
ImplCmpKernData
(
const
KERNINGPAIR
&
a
,
const
KERNINGPAIR
&
b
)
inline
bool
ImplCmpKernData
(
const
KERNINGPAIR
&
a
,
const
KERNINGPAIR
&
b
)
{
{
if
(
a
.
wFirst
<
b
.
wFirst
)
if
(
a
.
wFirst
<
b
.
wFirst
)
...
...
vcl/win/source/gdi/salgdi.cxx
Dosyayı görüntüle @
51ff7e7a
...
@@ -629,9 +629,6 @@ WinSalGraphics::WinSalGraphics(WinSalGraphics::Type eType, bool bScreen, HWND hW
...
@@ -629,9 +629,6 @@ WinSalGraphics::WinSalGraphics(WinSalGraphics::Type eType, bool bScreen, HWND hW
mhDefPal
(
0
),
mhDefPal
(
0
),
mpStdClipRgnData
(
NULL
),
mpStdClipRgnData
(
NULL
),
mpFontAttrCache
(
NULL
),
mpFontAttrCache
(
NULL
),
mpFontKernPairs
(
NULL
),
mnFontKernPairCount
(
0
),
mbFontKernInit
(
false
),
mnPenWidth
(
GSL_PEN_WIDTH
)
mnPenWidth
(
GSL_PEN_WIDTH
)
{
{
if
(
OpenGLHelper
::
isVCLOpenGLEnabled
()
&&
!
mbPrinter
)
if
(
OpenGLHelper
::
isVCLOpenGLEnabled
()
&&
!
mbPrinter
)
...
@@ -661,8 +658,6 @@ WinSalGraphics::~WinSalGraphics()
...
@@ -661,8 +658,6 @@ WinSalGraphics::~WinSalGraphics()
// delete cache data
// delete cache data
delete
[]
mpStdClipRgnData
;
delete
[]
mpStdClipRgnData
;
delete
[]
mpFontKernPairs
;
}
}
SalGraphicsImpl
*
WinSalGraphics
::
GetImpl
()
const
SalGraphicsImpl
*
WinSalGraphics
::
GetImpl
()
const
...
...
vcl/win/source/gdi/salgdi3.cxx
Dosyayı görüntüle @
51ff7e7a
...
@@ -1559,17 +1559,6 @@ sal_uInt16 WinSalGraphics::SetFont( FontSelectPattern* pFont, int nFallbackLevel
...
@@ -1559,17 +1559,6 @@ sal_uInt16 WinSalGraphics::SetFont( FontSelectPattern* pFont, int nFallbackLevel
if
(
mpWinFontData
[
nFallbackLevel
]
)
if
(
mpWinFontData
[
nFallbackLevel
]
)
mpWinFontData
[
nFallbackLevel
]
->
UpdateFromHDC
(
getHDC
()
);
mpWinFontData
[
nFallbackLevel
]
->
UpdateFromHDC
(
getHDC
()
);
if
(
!
nFallbackLevel
)
{
mbFontKernInit
=
TRUE
;
if
(
mpFontKernPairs
)
{
delete
[]
mpFontKernPairs
;
mpFontKernPairs
=
NULL
;
}
mnFontKernPairCount
=
0
;
}
// some printers have higher internal resolution, so their
// some printers have higher internal resolution, so their
// text output would be different from what we calculated
// text output would be different from what we calculated
// => suggest DrawTextArray to workaround this problem
// => suggest DrawTextArray to workaround this problem
...
@@ -1655,35 +1644,6 @@ void WinSalGraphics::GetFontMetric( ImplFontMetricData* pMetric, int nFallbackLe
...
@@ -1655,35 +1644,6 @@ void WinSalGraphics::GetFontMetric( ImplFontMetricData* pMetric, int nFallbackLe
pMetric
->
mnMinKashida
=
GetMinKashidaWidth
();
pMetric
->
mnMinKashida
=
GetMinKashidaWidth
();
}
}
sal_uLong
WinSalGraphics
::
GetKernPairs
()
{
if
(
mbFontKernInit
)
{
if
(
mpFontKernPairs
)
{
delete
[]
mpFontKernPairs
;
mpFontKernPairs
=
NULL
;
}
mnFontKernPairCount
=
0
;
KERNINGPAIR
*
pPairs
=
NULL
;
int
nCount
=
::
GetKerningPairsW
(
getHDC
(),
0
,
NULL
);
if
(
nCount
)
{
pPairs
=
new
KERNINGPAIR
[
nCount
+
1
];
mpFontKernPairs
=
pPairs
;
mnFontKernPairCount
=
nCount
;
::
GetKerningPairsW
(
getHDC
(),
nCount
,
pPairs
);
}
mbFontKernInit
=
FALSE
;
std
::
sort
(
mpFontKernPairs
,
mpFontKernPairs
+
mnFontKernPairCount
,
ImplCmpKernData
);
}
return
mnFontKernPairCount
;
}
const
FontCharMapPtr
WinSalGraphics
::
GetFontCharMap
()
const
const
FontCharMapPtr
WinSalGraphics
::
GetFontCharMap
()
const
{
{
if
(
!
mpWinFontData
[
0
]
)
if
(
!
mpWinFontData
[
0
]
)
...
...
vcl/win/source/gdi/winlayout.cxx
Dosyayı görüntüle @
51ff7e7a
...
@@ -76,14 +76,6 @@ public:
...
@@ -76,14 +76,6 @@ public:
private
:
private
:
// TODO: also add HFONT??? Watch out for issues with too many active fonts...
// TODO: also add HFONT??? Watch out for issues with too many active fonts...
public
:
bool
HasKernData
()
const
;
void
SetKernData
(
int
,
const
KERNINGPAIR
*
);
int
GetKerning
(
sal_Unicode
,
sal_Unicode
)
const
;
private
:
KERNINGPAIR
*
mpKerningPairs
;
int
mnKerningPairs
;
public
:
public
:
SCRIPT_CACHE
&
GetScriptCache
()
const
SCRIPT_CACHE
&
GetScriptCache
()
const
{
return
maScriptCache
;
}
{
return
maScriptCache
;
}
...
@@ -2426,8 +2418,6 @@ int WinSalGraphics::GetMinKashidaWidth()
...
@@ -2426,8 +2418,6 @@ int WinSalGraphics::GetMinKashidaWidth()
ImplWinFontEntry
::
ImplWinFontEntry
(
FontSelectPattern
&
rFSD
)
ImplWinFontEntry
::
ImplWinFontEntry
(
FontSelectPattern
&
rFSD
)
:
ImplFontEntry
(
rFSD
)
:
ImplFontEntry
(
rFSD
)
,
mpKerningPairs
(
NULL
)
,
mnKerningPairs
(
-
1
)
,
maWidthMap
(
512
)
,
maWidthMap
(
512
)
,
mnMinKashidaWidth
(
-
1
)
,
mnMinKashidaWidth
(
-
1
)
,
mnMinKashidaGlyph
(
-
1
)
,
mnMinKashidaGlyph
(
-
1
)
...
@@ -2439,38 +2429,6 @@ ImplWinFontEntry::~ImplWinFontEntry()
...
@@ -2439,38 +2429,6 @@ ImplWinFontEntry::~ImplWinFontEntry()
{
{
if
(
maScriptCache
!=
NULL
)
if
(
maScriptCache
!=
NULL
)
ScriptFreeCache
(
&
maScriptCache
);
ScriptFreeCache
(
&
maScriptCache
);
delete
[]
mpKerningPairs
;
}
bool
ImplWinFontEntry
::
HasKernData
()
const
{
return
(
mnKerningPairs
>=
0
);
}
void
ImplWinFontEntry
::
SetKernData
(
int
nPairCount
,
const
KERNINGPAIR
*
pPairData
)
{
mnKerningPairs
=
nPairCount
;
mpKerningPairs
=
new
KERNINGPAIR
[
mnKerningPairs
];
memcpy
(
mpKerningPairs
,
(
const
void
*
)
pPairData
,
nPairCount
*
sizeof
(
KERNINGPAIR
)
);
}
int
ImplWinFontEntry
::
GetKerning
(
sal_Unicode
cLeft
,
sal_Unicode
cRight
)
const
{
int
nKernAmount
=
0
;
if
(
mpKerningPairs
)
{
const
KERNINGPAIR
aRefPair
=
{
cLeft
,
cRight
,
0
};
const
KERNINGPAIR
*
pFirstPair
=
mpKerningPairs
;
const
KERNINGPAIR
*
pEndPair
=
mpKerningPairs
+
mnKerningPairs
;
const
KERNINGPAIR
*
pPair
=
std
::
lower_bound
(
pFirstPair
,
pEndPair
,
aRefPair
,
ImplCmpKernData
);
if
(
(
pPair
!=
pEndPair
)
&&
(
pPair
->
wFirst
==
aRefPair
.
wFirst
)
&&
(
pPair
->
wSecond
==
aRefPair
.
wSecond
)
)
nKernAmount
=
pPair
->
iKernAmount
;
}
return
nKernAmount
;
}
}
bool
ImplWinFontEntry
::
InitKashidaHandling
(
HDC
hDC
)
bool
ImplWinFontEntry
::
InitKashidaHandling
(
HDC
hDC
)
...
...
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