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:
...
@@ -217,8 +217,8 @@ private:
mutable
bool
mbMatchData
;
// true if matching attributes are initialized
mutable
bool
mbMatchData
;
// true if matching attributes are initialized
bool
mbMapNames
;
// true if MapNames are available
bool
mbMapNames
;
// true if MapNames are available
typedef
boost
::
unordered_map
<
const
OUString
,
PhysicalFontFamily
*
,
FontNameHash
>
DevFontList
;
typedef
boost
::
unordered_map
<
const
OUString
,
PhysicalFontFamily
*
,
FontNameHash
>
PhysicalFontFamilies
;
DevFontList
maDevFontList
;
PhysicalFontFamilies
maPhysicalFontFamilies
;
ImplPreMatchFontSubstitution
*
mpPreMatchHook
;
// device specific prematch substitution
ImplPreMatchFontSubstitution
*
mpPreMatchHook
;
// device specific prematch substitution
ImplGlyphFallbackFontSubstitution
*
mpFallbackHook
;
// device specific glyh fallback substitution
ImplGlyphFallbackFontSubstitution
*
mpFallbackHook
;
// device specific glyh fallback substitution
...
@@ -230,7 +230,7 @@ public:
...
@@ -230,7 +230,7 @@ public:
// fill the list with device fonts
// fill the list with device fonts
void
Add
(
PhysicalFontFace
*
);
void
Add
(
PhysicalFontFace
*
);
void
Clear
();
void
Clear
();
int
Count
()
const
{
return
ma
DevFontList
.
size
();
}
int
Count
()
const
{
return
ma
PhysicalFontFamilies
.
size
();
}
// find the device font
// find the device font
PhysicalFontFamily
*
FindFontFamily
(
const
OUString
&
rFontName
)
const
;
PhysicalFontFamily
*
FindFontFamily
(
const
OUString
&
rFontName
)
const
;
...
...
vcl/source/gdi/outdev3.cxx
Dosyayı görüntüle @
98da670a
...
@@ -1204,14 +1204,14 @@ void ImplDevFontList::Clear()
...
@@ -1204,14 +1204,14 @@ void ImplDevFontList::Clear()
mnFallbackCount = -1;
mnFallbackCount = -1;
// clear all entries in the device font list
// clear all entries in the device font list
DevFontList
::
iterator
it
=
maDevFontList
.
begin
();
PhysicalFontFamilies::iterator it = maPhysicalFontFamilies
.begin();
for
(;
it
!=
ma
DevFontList
.
end
();
++
it
)
for(; it != ma
PhysicalFontFamilies
.end(); ++it )
{
{
PhysicalFontFamily* pEntry = (*it).second;
PhysicalFontFamily* pEntry = (*it).second;
delete pEntry;
delete pEntry;
}
}
ma
DevFontList
.
clear
();
ma
PhysicalFontFamilies
.clear();
// match data must be recalculated too
// match data must be recalculated too
mbMatchData = false;
mbMatchData = false;
...
@@ -1408,15 +1408,15 @@ void ImplDevFontList::Add( PhysicalFontFace* pNewData )
...
@@ -1408,15 +1408,15 @@ void ImplDevFontList::Add( PhysicalFontFace* pNewData )
OUString aSearchName = pNewData->GetFamilyName();
OUString aSearchName = pNewData->GetFamilyName();
GetEnglishSearchFontName( aSearchName );
GetEnglishSearchFontName( aSearchName );
DevFontList
::
const_iterator
it
=
maDevFontList
.
find
(
aSearchName
);
PhysicalFontFamilies::const_iterator it = maPhysicalFontFamilies
.find( aSearchName );
PhysicalFontFamily* pFoundData = NULL;
PhysicalFontFamily* pFoundData = NULL;
if
(
it
!=
ma
DevFontList
.
end
()
)
if( it != ma
PhysicalFontFamilies
.end() )
pFoundData = (*it).second;
pFoundData = (*it).second;
if( !pFoundData )
if( !pFoundData )
{
{
pFoundData = new PhysicalFontFamily( aSearchName );
pFoundData = new PhysicalFontFamily( aSearchName );
ma
DevFontList
[
aSearchName
]
=
pFoundData
;
ma
PhysicalFontFamilies
[ aSearchName ] = pFoundData;
}
}
bool bKeepNewData = pFoundData->AddFontFace( pNewData );
bool bKeepNewData = pFoundData->AddFontFace( pNewData );
...
@@ -1434,8 +1434,8 @@ PhysicalFontFamily* ImplDevFontList::ImplFindBySearchName( const OUString& rSear
...
@@ -1434,8 +1434,8 @@ PhysicalFontFamily* ImplDevFontList::ImplFindBySearchName( const OUString& rSear
DBG_ASSERT( aTempName == rSearchName, "ImplDevFontList::ImplFindBySearchName() called with non-normalized name" );
DBG_ASSERT( aTempName == rSearchName, "ImplDevFontList::ImplFindBySearchName() called with non-normalized name" );
#endif
#endif
DevFontList
::
const_iterator
it
=
maDevFontList
.
find
(
rSearchName
);
PhysicalFontFamilies::const_iterator it = maPhysicalFontFamilies
.find( rSearchName );
if
(
it
==
ma
DevFontList
.
end
()
)
if( it == ma
PhysicalFontFamilies
.end() )
return NULL;
return NULL;
PhysicalFontFamily* pFoundData = (*it).second;
PhysicalFontFamily* pFoundData = (*it).second;
...
@@ -1455,8 +1455,8 @@ PhysicalFontFamily* ImplDevFontList::ImplFindByAliasName(const OUString& rSearch
...
@@ -1455,8 +1455,8 @@ PhysicalFontFamily* ImplDevFontList::ImplFindByAliasName(const OUString& rSearch
// use the font's alias names to find the font
// use the font's alias names to find the font
// TODO: get rid of linear search
// TODO: get rid of linear search
DevFontList
::
const_iterator
it
=
maDevFontList
.
begin
();
PhysicalFontFamilies::const_iterator it = maPhysicalFontFamilies
.begin();
while
(
it
!=
ma
DevFontList
.
end
()
)
while( it != ma
PhysicalFontFamilies
.end() )
{
{
PhysicalFontFamily* pData = (*it).second;
PhysicalFontFamily* pData = (*it).second;
if( pData->maMapNames.isEmpty() )
if( pData->maMapNames.isEmpty() )
...
@@ -1549,8 +1549,8 @@ void ImplDevFontList::InitMatchData() const
...
@@ -1549,8 +1549,8 @@ void ImplDevFontList::InitMatchData() const
// calculate MatchData for all entries
// calculate MatchData for all entries
const FontSubstConfiguration& rFontSubst = FontSubstConfiguration::get();
const FontSubstConfiguration& rFontSubst = FontSubstConfiguration::get();
DevFontList
::
const_iterator
it
=
maDevFontList
.
begin
();
PhysicalFontFamilies::const_iterator it = maPhysicalFontFamilies
.begin();
for
(;
it
!=
ma
DevFontList
.
end
();
++
it
)
for(; it != ma
PhysicalFontFamilies
.end(); ++it )
{
{
const OUString& rSearchName = (*it).first;
const OUString& rSearchName = (*it).first;
PhysicalFontFamily* pEntry = (*it).second;
PhysicalFontFamily* pEntry = (*it).second;
...
@@ -1579,8 +1579,8 @@ PhysicalFontFamily* ImplDevFontList::ImplFindByAttributes( sal_uLong nSearchType
...
@@ -1579,8 +1579,8 @@ PhysicalFontFamily* ImplDevFontList::ImplFindByAttributes( sal_uLong nSearchType
long nBestMatch = 40000;
long nBestMatch = 40000;
sal_uLong nBestType = 0;
sal_uLong nBestType = 0;
DevFontList
::
const_iterator
it
=
maDevFontList
.
begin
();
PhysicalFontFamilies::const_iterator it = maPhysicalFontFamilies
.begin();
for
(;
it
!=
ma
DevFontList
.
end
();
++
it
)
for(; it != ma
PhysicalFontFamilies
.end(); ++it )
{
{
PhysicalFontFamily* pData = (*it).second;
PhysicalFontFamily* pData = (*it).second;
...
@@ -1946,8 +1946,8 @@ PhysicalFontFamily* ImplDevFontList::FindDefaultFont() const
...
@@ -1946,8 +1946,8 @@ PhysicalFontFamily* ImplDevFontList::FindDefaultFont() const
InitMatchData();
InitMatchData();
DevFontList
::
const_iterator
it
=
maDevFontList
.
begin
();
PhysicalFontFamilies::const_iterator it = maPhysicalFontFamilies
.begin();
for
(;
it
!=
ma
DevFontList
.
end
();
++
it
)
for(; it != ma
PhysicalFontFamilies
.end(); ++it )
{
{
PhysicalFontFamily* pData = (*it).second;
PhysicalFontFamily* pData = (*it).second;
if( pData->mnMatchType & IMPL_FONT_ATTR_SYMBOL )
if( pData->mnMatchType & IMPL_FONT_ATTR_SYMBOL )
...
@@ -1960,8 +1960,8 @@ PhysicalFontFamily* ImplDevFontList::FindDefaultFont() const
...
@@ -1960,8 +1960,8 @@ PhysicalFontFamily* ImplDevFontList::FindDefaultFont() const
return pFoundData;
return pFoundData;
// finding any font is better than finding no font at all
// finding any font is better than finding no font at all
it
=
ma
DevFontList
.
begin
();
it = ma
PhysicalFontFamilies
.begin();
if
(
it
!=
ma
DevFontList
.
end
()
)
if( it != ma
PhysicalFontFamilies
.end() )
pFoundData = (*it).second;
pFoundData = (*it).second;
return pFoundData;
return pFoundData;
...
@@ -1977,8 +1977,8 @@ ImplDevFontList* ImplDevFontList::Clone( bool bScalable, bool bEmbeddable ) cons
...
@@ -1977,8 +1977,8 @@ ImplDevFontList* ImplDevFontList::Clone( bool bScalable, bool bEmbeddable ) cons
// TODO: clone the config-font attributes too?
// TODO: clone the config-font attributes too?
pClonedList->mbMatchData = false;
pClonedList->mbMatchData = false;
DevFontList
::
const_iterator
it
=
maDevFontList
.
begin
();
PhysicalFontFamilies::const_iterator it = maPhysicalFontFamilies
.begin();
for
(;
it
!=
ma
DevFontList
.
end
();
++
it
)
for(; it != ma
PhysicalFontFamilies
.end(); ++it )
{
{
const PhysicalFontFamily* pFontFace = (*it).second;
const PhysicalFontFamily* pFontFace = (*it).second;
pFontFace->UpdateCloneFontList( *pClonedList, bScalable, bEmbeddable );
pFontFace->UpdateCloneFontList( *pClonedList, bScalable, bEmbeddable );
...
@@ -1991,8 +1991,8 @@ ImplGetDevFontList* ImplDevFontList::GetDevFontList() const
...
@@ -1991,8 +1991,8 @@ ImplGetDevFontList* ImplDevFontList::GetDevFontList() const
{
{
ImplGetDevFontList* pGetDevFontList = new ImplGetDevFontList;
ImplGetDevFontList* pGetDevFontList = new ImplGetDevFontList;
DevFontList
::
const_iterator
it
=
maDevFontList
.
begin
();
PhysicalFontFamilies::const_iterator it = maPhysicalFontFamilies
.begin();
for
(;
it
!=
ma
DevFontList
.
end
();
++
it
)
for(; it != ma
PhysicalFontFamilies
.end(); ++it )
{
{
const PhysicalFontFamily* pFontFamily = (*it).second;
const PhysicalFontFamily* pFontFamily = (*it).second;
pFontFamily->UpdateDevFontList( *pGetDevFontList );
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