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
85ac3cd6
Kaydet (Commit)
85ac3cd6
authored
Ock 09, 2016
tarafından
Chris Sherlock
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
vcl: move FontSelectPatternAttributes constructor to fontselect.cxx
Change-Id: I49041e086c1da6d9cc23781e10b00997f227da8e
üst
6ee8ba1e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
68 additions
and
32 deletions
+68
-32
fontselect.cxx
vcl/source/font/fontselect.cxx
+68
-0
font.cxx
vcl/source/outdev/font.cxx
+0
-32
No files found.
vcl/source/font/fontselect.cxx
Dosyayı görüntüle @
85ac3cd6
...
@@ -71,6 +71,40 @@ FontSelectPattern::FontSelectPattern( const vcl::Font& rFont,
...
@@ -71,6 +71,40 @@ FontSelectPattern::FontSelectPattern( const vcl::Font& rFont,
{
{
}
}
FontSelectPatternAttributes
::
FontSelectPatternAttributes
(
const
vcl
::
Font
&
rFont
,
const
OUString
&
rSearchName
,
const
Size
&
rSize
,
float
fExactHeight
)
:
maSearchName
(
rSearchName
)
,
mnWidth
(
rSize
.
Width
()
)
,
mnHeight
(
rSize
.
Height
()
)
,
mfExactHeight
(
fExactHeight
)
,
mnOrientation
(
rFont
.
GetOrientation
()
)
,
meLanguage
(
rFont
.
GetLanguage
()
)
,
mbVertical
(
rFont
.
IsVertical
()
)
,
mbNonAntialiased
(
false
)
,
mbEmbolden
(
false
)
{
maTargetName
=
GetFamilyName
();
rFont
.
GetFontAttributes
(
*
this
);
// normalize orientation between 0 and 3600
if
(
3600
<=
(
unsigned
)
mnOrientation
)
{
if
(
mnOrientation
>=
0
)
mnOrientation
%=
3600
;
else
mnOrientation
=
3600
-
(
-
mnOrientation
%
3600
);
}
// normalize width and height
if
(
mnHeight
<
0
)
mnHeight
=
-
mnHeight
;
if
(
mnWidth
<
0
)
mnWidth
=
-
mnWidth
;
}
// NOTE: this ctor is still used on Windows. Do not remove.
// NOTE: this ctor is still used on Windows. Do not remove.
#ifdef WNT
#ifdef WNT
FontSelectPatternAttributes
::
FontSelectPatternAttributes
(
const
PhysicalFontFace
&
rFontData
,
FontSelectPatternAttributes
::
FontSelectPatternAttributes
(
const
PhysicalFontFace
&
rFontData
,
...
@@ -89,6 +123,40 @@ FontSelectPatternAttributes::FontSelectPatternAttributes( const PhysicalFontFace
...
@@ -89,6 +123,40 @@ FontSelectPatternAttributes::FontSelectPatternAttributes( const PhysicalFontFace
// NOTE: no normalization for width/height/orientation
// NOTE: no normalization for width/height/orientation
}
}
FontSelectPatternAttributes
::
FontSelectPatternAttributes
(
const
vcl
::
Font
&
rFont
,
const
OUString
&
rSearchName
,
const
Size
&
rSize
,
float
fExactHeight
)
:
maSearchName
(
rSearchName
)
,
mnWidth
(
rSize
.
Width
()
)
,
mnHeight
(
rSize
.
Height
()
)
,
mfExactHeight
(
fExactHeight
)
,
mnOrientation
(
rFont
.
GetOrientation
()
)
,
meLanguage
(
rFont
.
GetLanguage
()
)
,
mbVertical
(
rFont
.
IsVertical
()
)
,
mbNonAntialiased
(
false
)
,
mbEmbolden
(
false
)
{
maTargetName
=
GetFamilyName
();
rFont
.
GetFontAttributes
(
*
this
);
// normalize orientation between 0 and 3600
if
(
3600
<=
(
unsigned
)
mnOrientation
)
{
if
(
mnOrientation
>=
0
)
mnOrientation
%=
3600
;
else
mnOrientation
=
3600
-
(
-
mnOrientation
%
3600
);
}
// normalize width and height
if
(
mnHeight
<
0
)
mnHeight
=
-
mnHeight
;
if
(
mnWidth
<
0
)
mnWidth
=
-
mnWidth
;
}
FontSelectPattern
::
FontSelectPattern
(
const
PhysicalFontFace
&
rFontData
,
FontSelectPattern
::
FontSelectPattern
(
const
PhysicalFontFace
&
rFontData
,
const
Size
&
rSize
,
float
fExactHeight
,
int
nOrientation
,
bool
bVertical
)
const
Size
&
rSize
,
float
fExactHeight
,
int
nOrientation
,
bool
bVertical
)
:
FontSelectPatternAttributes
(
rFontData
,
rSize
,
fExactHeight
,
nOrientation
,
bVertical
)
:
FontSelectPatternAttributes
(
rFontData
,
rSize
,
fExactHeight
,
nOrientation
,
bVertical
)
...
...
vcl/source/outdev/font.cxx
Dosyayı görüntüle @
85ac3cd6
...
@@ -979,38 +979,6 @@ vcl::Font OutputDevice::GetDefaultFont( DefaultFontType nType, LanguageType eLan
...
@@ -979,38 +979,6 @@ vcl::Font OutputDevice::GetDefaultFont( DefaultFontType nType, LanguageType eLan
return
aFont
;
return
aFont
;
}
}
FontSelectPatternAttributes
::
FontSelectPatternAttributes
(
const
vcl
::
Font
&
rFont
,
const
OUString
&
rSearchName
,
const
Size
&
rSize
,
float
fExactHeight
)
:
maSearchName
(
rSearchName
)
,
mnWidth
(
rSize
.
Width
()
)
,
mnHeight
(
rSize
.
Height
()
)
,
mfExactHeight
(
fExactHeight
)
,
mnOrientation
(
rFont
.
GetOrientation
()
)
,
meLanguage
(
rFont
.
GetLanguage
()
)
,
mbVertical
(
rFont
.
IsVertical
()
)
,
mbNonAntialiased
(
false
)
,
mbEmbolden
(
false
)
{
maTargetName
=
GetFamilyName
();
rFont
.
GetFontAttributes
(
*
this
);
// normalize orientation between 0 and 3600
if
(
3600
<=
(
unsigned
)
mnOrientation
)
{
if
(
mnOrientation
>=
0
)
mnOrientation
%=
3600
;
else
mnOrientation
=
3600
-
(
-
mnOrientation
%
3600
);
}
// normalize width and height
if
(
mnHeight
<
0
)
mnHeight
=
-
mnHeight
;
if
(
mnWidth
<
0
)
mnWidth
=
-
mnWidth
;
}
void
OutputDevice
::
ImplInitFontList
()
const
void
OutputDevice
::
ImplInitFontList
()
const
{
{
if
(
!
mpFontCollection
->
Count
()
)
if
(
!
mpFontCollection
->
Count
()
)
...
...
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