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
51b1b469
Kaydet (Commit)
51b1b469
authored
Ock 15, 2016
tarafından
Chris Sherlock
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
vcl: create a default FontAttributes constructor
Change-Id: If2f297c9c4ee1dd4aff5d24ddd55fa4bb33073e0
üst
ed373ea7
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
9 deletions
+20
-9
fontattributes.hxx
vcl/inc/fontattributes.hxx
+3
-1
impfontmetric.hxx
vcl/inc/impfontmetric.hxx
+4
-4
fontattributes.cxx
vcl/source/font/fontattributes.cxx
+13
-4
No files found.
vcl/inc/fontattributes.hxx
Dosyayı görüntüle @
51b1b469
...
...
@@ -26,6 +26,8 @@
class
FontAttributes
{
public
:
explicit
FontAttributes
();
// device independent font functions
const
OUString
&
GetFamilyName
()
const
{
return
maFamilyName
;
}
FontFamily
GetFamilyType
()
const
{
return
meFamily
;
}
...
...
@@ -91,10 +93,10 @@ private:
OUString
maFamilyName
;
// Font Family Name
OUString
maStyleName
;
// Font Style Name
FontWeight
meWeight
;
// Weight Type
FontItalic
meItalic
;
// Slant Type
FontFamily
meFamily
;
// Family Type
FontPitch
mePitch
;
// Pitch Type
FontWidth
meWidthType
;
// Width Type
FontItalic
meItalic
;
// Slant Type
bool
mbSymbolFlag
;
// Is font a symbol?
// device dependent variables
...
...
vcl/inc/impfontmetric.hxx
Dosyayı görüntüle @
51b1b469
...
...
@@ -27,10 +27,6 @@ typedef boost::intrusive_ptr< ImplFontCharMap > ImplFontCharMapPtr;
class
ImplFontMetric
{
friend
class
FontMetric
;
friend
void
intrusive_ptr_add_ref
(
ImplFontMetric
*
pImplFontMetric
);
friend
void
intrusive_ptr_release
(
ImplFontMetric
*
pImplFontMetric
);
public
:
explicit
ImplFontMetric
();
...
...
@@ -61,6 +57,10 @@ public:
bool
operator
==
(
const
ImplFontMetric
&
)
const
;
private
:
friend
class
FontMetric
;
friend
void
intrusive_ptr_add_ref
(
ImplFontMetric
*
pImplFontMetric
);
friend
void
intrusive_ptr_release
(
ImplFontMetric
*
pImplFontMetric
);
long
mnAscent
;
// Ascent
long
mnDescent
;
// Descent
long
mnIntLeading
;
// Internal Leading
...
...
vcl/source/font/fontattributes.cxx
Dosyayı görüntüle @
51b1b469
...
...
@@ -58,10 +58,19 @@
#include <memory>
#include <algorithm>
using
namespace
::
com
::
sun
::
star
;
using
namespace
::
com
::
sun
::
star
::
uno
;
using
namespace
::
rtl
;
using
namespace
::
utl
;
FontAttributes
::
FontAttributes
()
:
meWeight
(
WEIGHT_DONTKNOW
),
mePitch
(
PITCH_DONTKNOW
),
meWidthType
(
WIDTH_DONTKNOW
),
meItalic
(
ITALIC_NONE
),
mbSymbolFlag
(
false
),
mnQuality
(
0
),
mbOrientation
(
false
),
mbDevice
(
false
),
mbSubsettable
(
false
),
mbEmbeddable
(
false
)
{}
bool
FontAttributes
::
CompareDeviceIndependentFontAttributes
(
const
FontAttributes
&
rOther
)
const
{
...
...
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