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
2a53bf85
Kaydet (Commit)
2a53bf85
authored
Nis 19, 2017
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
only one use of GetStandardText
Change-Id: I384e3ccb6bfaf491a4616ee89c714a510f1f670b
üst
b9b5e8e1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
18 deletions
+1
-18
stdtext.hxx
include/vcl/stdtext.hxx
+0
-5
svids.hrc
vcl/inc/svids.hrc
+0
-1
stdtext.cxx
vcl/source/app/stdtext.cxx
+1
-12
No files found.
include/vcl/stdtext.hxx
Dosyayı görüntüle @
2a53bf85
...
...
@@ -25,11 +25,6 @@
namespace
vcl
{
class
Window
;
}
#define STANDARD_TEXT_FIRST STANDARD_TEXT_SERVICE_NOT_AVAILABLE
#define STANDARD_TEXT_SERVICE_NOT_AVAILABLE ((sal_uInt16)0)
OUString
VCL_DLLPUBLIC
GetStandardText
(
sal_uInt16
nStdText
);
void
VCL_DLLPUBLIC
ShowServiceNotAvailableError
(
vcl
::
Window
*
pParent
,
const
OUString
&
rServiceName
,
bool
bError
);
#endif // INCLUDED_VCL_STDTEXT_HXX
...
...
vcl/inc/svids.hrc
Dosyayı görüntüle @
2a53bf85
...
...
@@ -132,7 +132,6 @@
#define SV_BUTTONTEXT_CONNECT 10131
#define SV_BUTTONTEXT_SCREENSHOT 10132
#define SV_STDTEXT_FIRST SV_STDTEXT_SERVICENOTAVAILABLE
#define SV_STDTEXT_SERVICENOTAVAILABLE 10210
#define SV_STDTEXT_DONTASKAGAIN 10212
...
...
vcl/source/app/stdtext.cxx
Dosyayı görüntüle @
2a53bf85
...
...
@@ -23,21 +23,10 @@
#include <svids.hrc>
#include <svdata.hxx>
OUString
GetStandardText
(
sal_uInt16
nStdText
)
{
ResMgr
*
pResMgr
=
ImplGetResMgr
();
if
(
pResMgr
)
{
return
ResId
(
nStdText
-
STANDARD_TEXT_FIRST
+
SV_STDTEXT_FIRST
,
*
pResMgr
).
toString
();
}
return
OUString
();
}
void
ShowServiceNotAvailableError
(
vcl
::
Window
*
pParent
,
const
OUString
&
rServiceName
,
bool
bError
)
{
OUString
aText
=
GetStandardText
(
STANDARD_TEXT_SERVICE_NOT_AVAILABLE
).
OUString
aText
=
VclResId
(
SV_STDTEXT_SERVICENOTAVAILABLE
).
toString
(
).
replaceAll
(
"%s"
,
rServiceName
);
ScopedVclPtrInstance
<
MessageDialog
>
aBox
(
pParent
,
aText
,
bError
?
VclMessageType
::
Error
:
VclMessageType
::
Warning
);
aBox
->
Execute
();
...
...
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