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
eae2e87b
Kaydet (Commit)
eae2e87b
authored
Nis 07, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Resolves: fdo#51818 format word count numbers with locale rules
Change-Id: Ia203a622ab2cd63d644895bb792b0569a61eb81a
üst
66154591
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
11 deletions
+13
-11
wordcountdialog.cxx
sw/source/ui/dialog/wordcountdialog.cxx
+13
-11
No files found.
sw/source/ui/dialog/wordcountdialog.cxx
Dosyayı görüntüle @
eae2e87b
...
@@ -29,7 +29,9 @@
...
@@ -29,7 +29,9 @@
#include <comphelper/string.hxx>
#include <comphelper/string.hxx>
#include <sfx2/viewfrm.hxx>
#include <sfx2/viewfrm.hxx>
#include <svl/cjkoptions.hxx>
#include <svl/cjkoptions.hxx>
#include <unotools/localedatawrapper.hxx>
#include <vcl/msgbox.hxx>
#include <vcl/msgbox.hxx>
#include <vcl/settings.hxx>
IMPL_LINK_NOARG
(
SwWordCountFloatDlg
,
CloseHdl
)
IMPL_LINK_NOARG
(
SwWordCountFloatDlg
,
CloseHdl
)
{
{
...
@@ -48,23 +50,23 @@ SwWordCountFloatDlg::~SwWordCountFloatDlg()
...
@@ -48,23 +50,23 @@ SwWordCountFloatDlg::~SwWordCountFloatDlg()
namespace
namespace
{
{
void
setValue
(
FixedText
*
pWidget
,
sal_uLong
nValue
)
void
setValue
(
FixedText
*
pWidget
,
sal_uLong
nValue
,
const
LocaleDataWrapper
&
rLocaleData
)
{
{
OUString
sValue
(
OUString
::
number
(
nValue
));
pWidget
->
SetText
(
rLocaleData
.
getNum
(
nValue
,
0
));
pWidget
->
SetText
(
sValue
);
}
}
}
}
void
SwWordCountFloatDlg
::
SetValues
(
const
SwDocStat
&
rCurrent
,
const
SwDocStat
&
rDoc
)
void
SwWordCountFloatDlg
::
SetValues
(
const
SwDocStat
&
rCurrent
,
const
SwDocStat
&
rDoc
)
{
{
setValue
(
m_pCurrentWordFT
,
rCurrent
.
nWord
);
const
LocaleDataWrapper
&
rLocaleData
=
GetSettings
().
GetUILocaleDataWrapper
();
setValue
(
m_pCurrentCharacterFT
,
rCurrent
.
nChar
);
setValue
(
m_pCurrentWordFT
,
rCurrent
.
nWord
,
rLocaleData
);
setValue
(
m_pCurrentCharacterExcludingSpacesFT
,
rCurrent
.
nCharExcludingSpaces
);
setValue
(
m_pCurrentCharacterFT
,
rCurrent
.
nChar
,
rLocaleData
);
setValue
(
m_pCurrentCjkcharsFT
,
rCurrent
.
nAsianWord
);
setValue
(
m_pCurrentCharacterExcludingSpacesFT
,
rCurrent
.
nCharExcludingSpaces
,
rLocaleData
);
setValue
(
m_pDocWordFT
,
rDoc
.
nWord
);
setValue
(
m_pCurrentCjkcharsFT
,
rCurrent
.
nAsianWord
,
rLocaleData
);
setValue
(
m_pDocCharacterFT
,
rDoc
.
nChar
);
setValue
(
m_pDocWordFT
,
rDoc
.
nWord
,
rLocaleData
);
setValue
(
m_pDocCharacterExcludingSpacesFT
,
rDoc
.
nCharExcludingSpaces
);
setValue
(
m_pDocCharacterFT
,
rDoc
.
nChar
,
rLocaleData
);
setValue
(
m_pDocCjkcharsFT
,
rDoc
.
nAsianWord
);
setValue
(
m_pDocCharacterExcludingSpacesFT
,
rDoc
.
nCharExcludingSpaces
,
rLocaleData
);
setValue
(
m_pDocCjkcharsFT
,
rDoc
.
nAsianWord
,
rLocaleData
);
bool
bShowCJK
=
(
SvtCJKOptions
().
IsAnyEnabled
()
||
rDoc
.
nAsianWord
);
bool
bShowCJK
=
(
SvtCJKOptions
().
IsAnyEnabled
()
||
rDoc
.
nAsianWord
);
bool
bToggleCJK
=
m_pCurrentCjkcharsFT
->
IsVisible
()
!=
bShowCJK
;
bool
bToggleCJK
=
m_pCurrentCjkcharsFT
->
IsVisible
()
!=
bShowCJK
;
...
...
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