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
98da670a
Kaydet (Commit)
98da670a
authored
Mar 17, 2014
tarafından
Norbert Thiebaud
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
replace DevFontList with PhysicalFontFamilies propagate the naming change
Change-Id: Ib3a4ce44d4bdde5570ece84e7399743ee7b8418f
üst
cabee397
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
25 deletions
+25
-25
outfont.hxx
vcl/inc/outfont.hxx
+3
-3
outdev3.cxx
vcl/source/gdi/outdev3.cxx
+22
-22
No files found.
vcl/inc/outfont.hxx
Dosyayı görüntüle @
98da670a
...
...
@@ -217,8 +217,8 @@ private:
mutable
bool
mbMatchData
;
// true if matching attributes are initialized
bool
mbMapNames
;
// true if MapNames are available
typedef
boost
::
unordered_map
<
const
OUString
,
PhysicalFontFamily
*
,
FontNameHash
>
DevFontList
;
DevFontList
maDevFontList
;
typedef
boost
::
unordered_map
<
const
OUString
,
PhysicalFontFamily
*
,
FontNameHash
>
PhysicalFontFamilies
;
PhysicalFontFamilies
maPhysicalFontFamilies
;
ImplPreMatchFontSubstitution
*
mpPreMatchHook
;
// device specific prematch substitution
ImplGlyphFallbackFontSubstitution
*
mpFallbackHook
;
// device specific glyh fallback substitution
...
...
@@ -230,7 +230,7 @@ public:
// fill the list with device fonts
void
Add
(
PhysicalFontFace
*
);
void
Clear
();
int
Count
()
const
{
return
ma
DevFontList
.
size
();
}
int
Count
()
const
{
return
ma
PhysicalFontFamilies
.
size
();
}
// find the device font
PhysicalFontFamily
*
FindFontFamily
(
const
OUString
&
rFontName
)
const
;
...
...
vcl/source/gdi/outdev3.cxx
Dosyayı görüntüle @
98da670a
...
...
@@ -1204,14 +1204,14 @@ void ImplDevFontList::Clear()
mnFallbackCount
=
-
1
;
// clear all entries in the device font list
DevFontList
::
iterator
it
=
maDevFontList
.
begin
();
for
(;
it
!=
ma
DevFontList
.
end
();
++
it
)
PhysicalFontFamilies
::
iterator
it
=
maPhysicalFontFamilies
.
begin
();
for
(;
it
!=
ma
PhysicalFontFamilies
.
end
();
++
it
)
{
PhysicalFontFamily
*
pEntry
=
(
*
it
).
second
;
delete
pEntry
;
}
ma
DevFontList
.
clear
();
ma
PhysicalFontFamilies
.
clear
();
// match data must be recalculated too
mbMatchData
=
false
;
...
...
@@ -1408,15 +1408,15 @@ void ImplDevFontList::Add( PhysicalFontFace* pNewData )
OUString
aSearchName
=
pNewData
->
GetFamilyName
();
GetEnglishSearchFontName
(
aSearchName
);
DevFontList
::
const_iterator
it
=
maDevFontList
.
find
(
aSearchName
);
PhysicalFontFamilies
::
const_iterator
it
=
maPhysicalFontFamilies
.
find
(
aSearchName
);
PhysicalFontFamily
*
pFoundData
=
NULL
;
if
(
it
!=
ma
DevFontList
.
end
()
)
if
(
it
!=
ma
PhysicalFontFamilies
.
end
()
)
pFoundData
=
(
*
it
).
second
;
if
(
!
pFoundData
)
{
pFoundData
=
new
PhysicalFontFamily
(
aSearchName
);
ma
DevFontList
[
aSearchName
]
=
pFoundData
;
ma
PhysicalFontFamilies
[
aSearchName
]
=
pFoundData
;
}
bool
bKeepNewData
=
pFoundData
->
AddFontFace
(
pNewData
);
...
...
@@ -1434,8 +1434,8 @@ PhysicalFontFamily* ImplDevFontList::ImplFindBySearchName( const OUString& rSear
DBG_ASSERT
(
aTempName
==
rSearchName
,
"ImplDevFontList::ImplFindBySearchName() called with non-normalized name"
);
#endif
DevFontList
::
const_iterator
it
=
maDevFontList
.
find
(
rSearchName
);
if
(
it
==
ma
DevFontList
.
end
()
)
PhysicalFontFamilies
::
const_iterator
it
=
maPhysicalFontFamilies
.
find
(
rSearchName
);
if
(
it
==
ma
PhysicalFontFamilies
.
end
()
)
return
NULL
;
PhysicalFontFamily
*
pFoundData
=
(
*
it
).
second
;
...
...
@@ -1455,8 +1455,8 @@ PhysicalFontFamily* ImplDevFontList::ImplFindByAliasName(const OUString& rSearch
// use the font's alias names to find the font
// TODO: get rid of linear search
DevFontList
::
const_iterator
it
=
maDevFontList
.
begin
();
while
(
it
!=
ma
DevFontList
.
end
()
)
PhysicalFontFamilies
::
const_iterator
it
=
maPhysicalFontFamilies
.
begin
();
while
(
it
!=
ma
PhysicalFontFamilies
.
end
()
)
{
PhysicalFontFamily
*
pData
=
(
*
it
).
second
;
if
(
pData
->
maMapNames
.
isEmpty
()
)
...
...
@@ -1549,8 +1549,8 @@ void ImplDevFontList::InitMatchData() const
// calculate MatchData for all entries
const
FontSubstConfiguration
&
rFontSubst
=
FontSubstConfiguration
::
get
();
DevFontList
::
const_iterator
it
=
maDevFontList
.
begin
();
for
(;
it
!=
ma
DevFontList
.
end
();
++
it
)
PhysicalFontFamilies
::
const_iterator
it
=
maPhysicalFontFamilies
.
begin
();
for
(;
it
!=
ma
PhysicalFontFamilies
.
end
();
++
it
)
{
const
OUString
&
rSearchName
=
(
*
it
).
first
;
PhysicalFontFamily
*
pEntry
=
(
*
it
).
second
;
...
...
@@ -1579,8 +1579,8 @@ PhysicalFontFamily* ImplDevFontList::ImplFindByAttributes( sal_uLong nSearchType
long
nBestMatch
=
40000
;
sal_uLong
nBestType
=
0
;
DevFontList
::
const_iterator
it
=
maDevFontList
.
begin
();
for
(;
it
!=
ma
DevFontList
.
end
();
++
it
)
PhysicalFontFamilies
::
const_iterator
it
=
maPhysicalFontFamilies
.
begin
();
for
(;
it
!=
ma
PhysicalFontFamilies
.
end
();
++
it
)
{
PhysicalFontFamily
*
pData
=
(
*
it
).
second
;
...
...
@@ -1946,8 +1946,8 @@ PhysicalFontFamily* ImplDevFontList::FindDefaultFont() const
InitMatchData
();
DevFontList
::
const_iterator
it
=
maDevFontList
.
begin
();
for
(;
it
!=
ma
DevFontList
.
end
();
++
it
)
PhysicalFontFamilies
::
const_iterator
it
=
maPhysicalFontFamilies
.
begin
();
for
(;
it
!=
ma
PhysicalFontFamilies
.
end
();
++
it
)
{
PhysicalFontFamily
*
pData
=
(
*
it
).
second
;
if
(
pData
->
mnMatchType
&
IMPL_FONT_ATTR_SYMBOL
)
...
...
@@ -1960,8 +1960,8 @@ PhysicalFontFamily* ImplDevFontList::FindDefaultFont() const
return
pFoundData
;
// finding any font is better than finding no font at all
it
=
ma
DevFontList
.
begin
();
if
(
it
!=
ma
DevFontList
.
end
()
)
it
=
ma
PhysicalFontFamilies
.
begin
();
if
(
it
!=
ma
PhysicalFontFamilies
.
end
()
)
pFoundData
=
(
*
it
).
second
;
return
pFoundData
;
...
...
@@ -1977,8 +1977,8 @@ ImplDevFontList* ImplDevFontList::Clone( bool bScalable, bool bEmbeddable ) cons
// TODO: clone the config-font attributes too?
pClonedList
->
mbMatchData
=
false
;
DevFontList
::
const_iterator
it
=
maDevFontList
.
begin
();
for
(;
it
!=
ma
DevFontList
.
end
();
++
it
)
PhysicalFontFamilies
::
const_iterator
it
=
maPhysicalFontFamilies
.
begin
();
for
(;
it
!=
ma
PhysicalFontFamilies
.
end
();
++
it
)
{
const
PhysicalFontFamily
*
pFontFace
=
(
*
it
).
second
;
pFontFace
->
UpdateCloneFontList
(
*
pClonedList
,
bScalable
,
bEmbeddable
);
...
...
@@ -1991,8 +1991,8 @@ ImplGetDevFontList* ImplDevFontList::GetDevFontList() const
{
ImplGetDevFontList
*
pGetDevFontList
=
new
ImplGetDevFontList
;
DevFontList
::
const_iterator
it
=
maDevFontList
.
begin
();
for
(;
it
!=
ma
DevFontList
.
end
();
++
it
)
PhysicalFontFamilies
::
const_iterator
it
=
maPhysicalFontFamilies
.
begin
();
for
(;
it
!=
ma
PhysicalFontFamilies
.
end
();
++
it
)
{
const
PhysicalFontFamily
*
pFontFamily
=
(
*
it
).
second
;
pFontFamily
->
UpdateDevFontList
(
*
pGetDevFontList
);
...
...
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