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
62a37fd5
Kaydet (Commit)
62a37fd5
authored
Eki 16, 2011
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
show CJK preview if CJK is enabled, not just if UI is CJK
üst
bf939922
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
35 deletions
+16
-35
fntctrl.cxx
svx/source/dialog/fntctrl.cxx
+16
-35
No files found.
svx/source/dialog/fntctrl.cxx
Dosyayı görüntüle @
62a37fd5
...
...
@@ -56,6 +56,8 @@
// Item set includes
#include <svl/itemset.hxx>
#include <svl/itempool.hxx>
#include <svl/stritem.hxx> // SfxStringItem
#include <svl/languageoptions.hxx>
#include <editeng/colritem.hxx>
#include <editeng/fontitem.hxx>
...
...
@@ -79,8 +81,6 @@
#include <editeng/twolinesitem.hxx> // SvxTwoLinesItem
#include <editeng/charscaleitem.hxx> // SvxCharScaleWidthItem
#include <svl/stritem.hxx> // SfxStringItem
// define ----------------------------------------------------------------
#define TEXT_WIDTH 20
...
...
@@ -173,11 +173,13 @@ class FontPrevWin_Impl
bPreviewBackgroundToCharacter
:
1
,
bTwoLines
:
1
,
bNoLines
:
1
,
bIsCJKUI
:
1
,
bIsCTLUI
:
1
,
bUseFontNameAsText
:
1
,
bTextInited
:
1
;
bool
m_bCJKEnabled
;
bool
m_bCTLEnabled
;
void
_CheckScript
();
public
:
inline
FontPrevWin_Impl
()
:
...
...
@@ -187,11 +189,14 @@ public:
bSelection
(
sal_False
),
bGetSelection
(
sal_False
),
bUseResText
(
sal_False
),
bDrawBaseLine
(
sal_True
),
bPreviewBackgroundToCharacter
(
sal_False
),
bTwoLines
(
sal_False
),
bNoLines
(
sal_False
),
bIsCJKUI
(
sal_False
),
bIsCTLUI
(
sal_False
),
bUseFontNameAsText
(
sal_False
),
bTextInited
(
sal_False
)
{
Invalidate100PercentFontWidth
();
}
{
SvtLanguageOptions
aLanguageOptions
;
m_bCJKEnabled
=
aLanguageOptions
.
IsAnyEnabled
();
m_bCTLEnabled
=
aLanguageOptions
.
IsCTLFontEnabled
();
Invalidate100PercentFontWidth
();
}
inline
~
FontPrevWin_Impl
()
{
...
...
@@ -509,28 +514,6 @@ void SvxFontPrevWindow::Init()
initFont
(
pImpl
->
aCTLFont
);
InitSettings
(
sal_True
,
sal_True
);
SetBorderStyle
(
WINDOW_BORDER_MONO
);
LanguageType
eLanguage
=
Application
::
GetSettings
().
GetUILanguage
();
switch
(
eLanguage
)
{
case
LANGUAGE_CHINESE
:
case
LANGUAGE_JAPANESE
:
case
LANGUAGE_KOREAN
:
case
LANGUAGE_KOREAN_JOHAB
:
case
LANGUAGE_CHINESE_SIMPLIFIED
:
case
LANGUAGE_CHINESE_HONGKONG
:
case
LANGUAGE_CHINESE_SINGAPORE
:
case
LANGUAGE_CHINESE_MACAU
:
case
LANGUAGE_CHINESE_TRADITIONAL
:
pImpl
->
bIsCJKUI
=
sal_True
;
break
;
// TODO: CTL Locale
// pImpl->bIsCTLUI = sal_True;
// break;
default
:
pImpl
->
bIsCJKUI
=
pImpl
->
bIsCTLUI
=
sal_False
;
break
;
}
}
SvxFontPrevWindow
::
SvxFontPrevWindow
(
Window
*
pParent
)
:
...
...
@@ -705,9 +688,8 @@ void SvxFontPrevWindow::SetPreviewBackgroundToCharacter(sal_Bool bSet)
void
SvxFontPrevWindow
::
Paint
(
const
Rectangle
&
)
{
Printer
*
pPrinter
=
pImpl
->
pPrinter
;
SvxFont
&
rFont
=
pImpl
->
aFont
;
SvxFont
&
rCJKFont
=
pImpl
->
aCJKFont
;
// TODO: SvxFont& rCTLFont = pImpl->aCTLFont;
const
SvxFont
&
rFont
=
pImpl
->
aFont
;
const
SvxFont
&
rCJKFont
=
pImpl
->
aCJKFont
;
if
(
!
IsEnabled
()
)
{
...
...
@@ -738,9 +720,8 @@ void SvxFontPrevWindow::Paint( const Rectangle& )
if
(
!
pImpl
->
bSelection
||
pImpl
->
bUseFontNameAsText
)
{
pImpl
->
aText
=
rFont
.
GetName
();
if
(
pImpl
->
bIsCJKUI
)
if
(
pImpl
->
m_bCJKEnabled
)
pImpl
->
aText
+=
rCJKFont
.
GetName
();
//TODO bIsCTLUI
}
if
(
!
pImpl
->
aText
.
Len
()
)
...
...
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