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
8ed3a427
Kaydet (Commit)
8ed3a427
authored
May 24, 2012
tarafından
Muhammad Haggag
Kaydeden (comit)
Tor Lillqvist
May 25, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Followup to fdo#34772: Add resource strings for word-count messages
Change-Id: I7b32f5b6ed973fd4ad4635a5265d75d4e51f04ba
üst
ce14342c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
5 deletions
+24
-5
app.src
sw/source/ui/app/app.src
+10
-0
app.hrc
sw/source/ui/inc/app.hrc
+5
-1
view2.cxx
sw/source/ui/uiview/view2.cxx
+9
-4
No files found.
sw/source/ui/app/app.src
Dosyayı görüntüle @
8ed3a427
...
@@ -550,6 +550,16 @@ String STR_OUTLINE_NUMBERING
...
@@ -550,6 +550,16 @@ String STR_OUTLINE_NUMBERING
Text [ en-US ] = "Outline Numbering";
Text [ en-US ] = "Outline Numbering";
};
};
String STR_STATUSBAR_WORDCOUNT_NO_SELECTION
{
Text [ en-US ] = "Words: $1";
};
String STR_STATUSBAR_WORDCOUNT
{
Text [ en-US ] = "Words: $1 Selected: $2";
};
ToolBox RID_MODULE_TOOLBOX
ToolBox RID_MODULE_TOOLBOX
{
{
HelpID = HID_MODULE_TOOLBOX ;
HelpID = HID_MODULE_TOOLBOX ;
...
...
sw/source/ui/inc/app.hrc
Dosyayı görüntüle @
8ed3a427
...
@@ -125,7 +125,11 @@
...
@@ -125,7 +125,11 @@
#define STR_FDLG_STYLE (RC_APP_BEGIN + 106)
#define STR_FDLG_STYLE (RC_APP_BEGIN + 106)
//<-end,zhaojianwei
//<-end,zhaojianwei
#define APP_ACT_END STR_FDLG_STYLE
// Status bar strings
#define STR_STATUSBAR_WORDCOUNT_NO_SELECTION (RC_APP_BEGIN + 110)
#define STR_STATUSBAR_WORDCOUNT (RC_APP_BEGIN + 111)
#define APP_ACT_END STR_STATUSBAR_WORDCOUNT
#if APP_ACT_END > RC_APP_END
#if APP_ACT_END > RC_APP_END
#error Resource-Id Ueberlauf in #file, #line
#error Resource-Id Ueberlauf in #file, #line
...
...
sw/source/ui/uiview/view2.cxx
Dosyayı görüntüle @
8ed3a427
...
@@ -1210,10 +1210,15 @@ void SwView::StateStatusLine(SfxItemSet &rSet)
...
@@ -1210,10 +1210,15 @@ void SwView::StateStatusLine(SfxItemSet &rSet)
documentStats
=
rShell
.
GetUpdatedDocStat
();
documentStats
=
rShell
.
GetUpdatedDocStat
();
rShell
.
EndAction
();
rShell
.
EndAction
();
}
}
rSet
.
Put
(
SfxStringItem
(
FN_STAT_WORDCOUNT
,
rtl
::
OUStringBuffer
(
"Words: "
)
.
append
(
rtl
::
OUString
::
valueOf
(
static_cast
<
sal_Int64
>
(
selectionStats
.
nWord
)))
const
sal_uInt32
stringId
=
selectionStats
.
nWord
?
STR_STATUSBAR_WORDCOUNT
:
STR_STATUSBAR_WORDCOUNT_NO_SELECTION
;
.
append
(
'/'
)
rtl
::
OUString
wordCount
(
SW_RES
(
stringId
));
.
append
(
rtl
::
OUString
::
valueOf
(
static_cast
<
sal_Int64
>
(
documentStats
.
nWord
))).
makeStringAndClear
()));
wordCount
=
wordCount
.
replaceAll
(
"$1"
,
rtl
::
OUString
::
valueOf
(
static_cast
<
sal_Int64
>
(
documentStats
.
nWord
)));
if
(
selectionStats
.
nWord
)
{
wordCount
=
wordCount
.
replaceAll
(
"$2"
,
rtl
::
OUString
::
valueOf
(
static_cast
<
sal_Int64
>
(
selectionStats
.
nWord
)));
}
rSet
.
Put
(
SfxStringItem
(
FN_STAT_WORDCOUNT
,
wordCount
));
}
}
break
;
break
;
...
...
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