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
71124925
Kaydet (Commit)
71124925
authored
Mar 14, 2013
tarafından
Luboš Luňák
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix the non-intuitive OUString::replaceFirst() usage
Change-Id: I98ffe293dbdc900f702d63ee3d3d58dec27b9f7e
üst
df867336
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
adddlg.cxx
padmin/source/adddlg.cxx
+10
-10
No files found.
padmin/source/adddlg.cxx
Dosyayı görüntüle @
71124925
...
@@ -205,7 +205,7 @@ IMPL_LINK( APChooseDriverPage, ClickBtnHdl, PushButton*, pButton )
...
@@ -205,7 +205,7 @@ IMPL_LINK( APChooseDriverPage, ClickBtnHdl, PushButton*, pButton )
if
(
aDriver
.
equalsIgnoreAsciiCase
(
"SGENPRT"
)
)
if
(
aDriver
.
equalsIgnoreAsciiCase
(
"SGENPRT"
)
)
{
{
OUString
aText
(
PaResId
(
RID_ERR_REMOVESGENPRT
)
);
OUString
aText
(
PaResId
(
RID_ERR_REMOVESGENPRT
)
);
aText
.
replaceFirst
(
OUString
(
"%s"
),
m_aDriverBox
.
GetSelectEntry
(
i
)
);
aText
=
aText
.
replaceFirst
(
OUString
(
"%s"
),
m_aDriverBox
.
GetSelectEntry
(
i
)
);
ErrorBox
aErrorBox
(
this
,
WB_OK
|
WB_DEF_OK
,
aText
);
ErrorBox
aErrorBox
(
this
,
WB_OK
|
WB_DEF_OK
,
aText
);
aErrorBox
.
SetText
(
m_aRemStr
);
aErrorBox
.
SetText
(
m_aRemStr
);
aErrorBox
.
Execute
();
aErrorBox
.
Execute
();
...
@@ -218,7 +218,7 @@ IMPL_LINK( APChooseDriverPage, ClickBtnHdl, PushButton*, pButton )
...
@@ -218,7 +218,7 @@ IMPL_LINK( APChooseDriverPage, ClickBtnHdl, PushButton*, pButton )
if
(
aDefInfo
.
m_aDriverName
==
aPPD
)
if
(
aDefInfo
.
m_aDriverName
==
aPPD
)
{
{
OUString
aText
(
PaResId
(
RID_ERR_REMOVEDEFAULTDRIVER
)
);
OUString
aText
(
PaResId
(
RID_ERR_REMOVEDEFAULTDRIVER
)
);
aText
.
replaceFirst
(
OUString
(
"%s"
),
m_aDriverBox
.
GetSelectEntry
(
i
)
);
aText
=
aText
.
replaceFirst
(
OUString
(
"%s"
),
m_aDriverBox
.
GetSelectEntry
(
i
)
);
ErrorBox
aErrorBox
(
this
,
WB_OK
|
WB_DEF_OK
,
aText
);
ErrorBox
aErrorBox
(
this
,
WB_OK
|
WB_DEF_OK
,
aText
);
aErrorBox
.
SetText
(
m_aRemStr
);
aErrorBox
.
SetText
(
m_aRemStr
);
aErrorBox
.
Execute
();
aErrorBox
.
Execute
();
...
@@ -238,7 +238,7 @@ IMPL_LINK( APChooseDriverPage, ClickBtnHdl, PushButton*, pButton )
...
@@ -238,7 +238,7 @@ IMPL_LINK( APChooseDriverPage, ClickBtnHdl, PushButton*, pButton )
if
(
it
!=
aPrinters
.
end
()
)
if
(
it
!=
aPrinters
.
end
()
)
{
{
OUString
aText
(
PaResId
(
RID_QUERY_DRIVERUSED
)
);
OUString
aText
(
PaResId
(
RID_QUERY_DRIVERUSED
)
);
aText
.
replaceFirst
(
OUString
(
"%s"
),
m_aDriverBox
.
GetSelectEntry
(
i
)
);
aText
=
aText
.
replaceFirst
(
OUString
(
"%s"
),
m_aDriverBox
.
GetSelectEntry
(
i
)
);
QueryBox
aBox
(
this
,
WB_YES_NO
|
WB_DEF_NO
,
aText
);
QueryBox
aBox
(
this
,
WB_YES_NO
|
WB_DEF_NO
,
aText
);
aBox
.
SetText
(
m_aRemStr
);
aBox
.
SetText
(
m_aRemStr
);
if
(
aBox
.
Execute
()
==
RET_NO
)
if
(
aBox
.
Execute
()
==
RET_NO
)
...
@@ -247,7 +247,7 @@ IMPL_LINK( APChooseDriverPage, ClickBtnHdl, PushButton*, pButton )
...
@@ -247,7 +247,7 @@ IMPL_LINK( APChooseDriverPage, ClickBtnHdl, PushButton*, pButton )
else
else
{
{
OUString
aText
(
PaResId
(
RID_QUERY_REMOVEDRIVER
)
);
OUString
aText
(
PaResId
(
RID_QUERY_REMOVEDRIVER
)
);
aText
.
replaceFirst
(
OUString
(
"%s"
),
m_aDriverBox
.
GetSelectEntry
(
i
)
);
aText
=
aText
.
replaceFirst
(
OUString
(
"%s"
),
m_aDriverBox
.
GetSelectEntry
(
i
)
);
QueryBox
aBox
(
this
,
WB_YES_NO
|
WB_DEF_NO
,
aText
);
QueryBox
aBox
(
this
,
WB_YES_NO
|
WB_DEF_NO
,
aText
);
aBox
.
SetText
(
m_aRemStr
);
aBox
.
SetText
(
m_aRemStr
);
if
(
aBox
.
Execute
()
==
RET_NO
)
if
(
aBox
.
Execute
()
==
RET_NO
)
...
@@ -289,8 +289,8 @@ IMPL_LINK( APChooseDriverPage, ClickBtnHdl, PushButton*, pButton )
...
@@ -289,8 +289,8 @@ IMPL_LINK( APChooseDriverPage, ClickBtnHdl, PushButton*, pButton )
if
(
unlink
(
aSysPath
.
getStr
()))
if
(
unlink
(
aSysPath
.
getStr
()))
{
{
OUString
aText
(
PaResId
(
RID_ERR_REMOVEDRIVERFAILED
)
);
OUString
aText
(
PaResId
(
RID_ERR_REMOVEDRIVERFAILED
)
);
aText
.
replaceFirst
(
OUString
(
"%s1"
),
m_aDriverBox
.
GetSelectEntry
(
i
)
);
aText
=
aText
.
replaceFirst
(
OUString
(
"%s1"
),
m_aDriverBox
.
GetSelectEntry
(
i
)
);
aText
.
replaceFirst
(
OUString
(
"%s2"
),
aFile
);
aText
=
aText
.
replaceFirst
(
OUString
(
"%s2"
),
aFile
);
ErrorBox
aErrorBox
(
this
,
WB_OK
|
WB_DEF_OK
,
aText
);
ErrorBox
aErrorBox
(
this
,
WB_OK
|
WB_DEF_OK
,
aText
);
aErrorBox
.
SetText
(
m_aRemStr
);
aErrorBox
.
SetText
(
m_aRemStr
);
aErrorBox
.
Execute
();
aErrorBox
.
Execute
();
...
@@ -516,8 +516,8 @@ APOldPrinterPage::APOldPrinterPage( AddPrinterDialog* pParent )
...
@@ -516,8 +516,8 @@ APOldPrinterPage::APOldPrinterPage( AddPrinterDialog* pParent )
if
(
pParser
==
NULL
)
if
(
pParser
==
NULL
)
{
{
OUString
aText
(
PaResId
(
RID_TXT_DRIVERDOESNOTEXIST
)
);
OUString
aText
(
PaResId
(
RID_TXT_DRIVERDOESNOTEXIST
)
);
aText
.
replaceFirst
(
OUString
(
"%s1"
),
rtl
::
OStringToOUString
(
aPrinter
,
aEncoding
)
);
aText
=
aText
.
replaceFirst
(
OUString
(
"%s1"
),
rtl
::
OStringToOUString
(
aPrinter
,
aEncoding
)
);
aText
.
replaceFirst
(
OUString
(
"%s2"
),
rtl
::
OStringToOUString
(
aDriver
,
aEncoding
)
);
aText
=
aText
.
replaceFirst
(
OUString
(
"%s2"
),
rtl
::
OStringToOUString
(
aDriver
,
aEncoding
)
);
InfoBox
aBox
(
this
,
aText
);
InfoBox
aBox
(
this
,
aText
);
aBox
.
Execute
();
aBox
.
Execute
();
continue
;
continue
;
...
@@ -529,7 +529,7 @@ APOldPrinterPage::APOldPrinterPage( AddPrinterDialog* pParent )
...
@@ -529,7 +529,7 @@ APOldPrinterPage::APOldPrinterPage( AddPrinterDialog* pParent )
if
(
!
aCommand
.
isEmpty
())
if
(
!
aCommand
.
isEmpty
())
{
{
OUString
aText
(
PaResId
(
RID_TXT_PRINTERWITHOUTCOMMAND
)
);
OUString
aText
(
PaResId
(
RID_TXT_PRINTERWITHOUTCOMMAND
)
);
aText
.
replaceFirst
(
OUString
(
"%s"
),
rtl
::
OStringToOUString
(
aPrinter
,
aEncoding
)
);
aText
=
aText
.
replaceFirst
(
OUString
(
"%s"
),
rtl
::
OStringToOUString
(
aPrinter
,
aEncoding
)
);
InfoBox
aBox
(
this
,
aText
);
InfoBox
aBox
(
this
,
aText
);
aBox
.
Execute
();
aBox
.
Execute
();
continue
;
continue
;
...
@@ -640,7 +640,7 @@ void APOldPrinterPage::addOldPrinters()
...
@@ -640,7 +640,7 @@ void APOldPrinterPage::addOldPrinters()
if
(
!
rManager
.
addPrinter
(
pInfo
->
m_aPrinterName
,
pInfo
->
m_aDriverName
)
)
if
(
!
rManager
.
addPrinter
(
pInfo
->
m_aPrinterName
,
pInfo
->
m_aDriverName
)
)
{
{
OUString
aText
(
PaResId
(
RID_TXT_PRINTERADDFAILED
)
);
OUString
aText
(
PaResId
(
RID_TXT_PRINTERADDFAILED
)
);
aText
.
replaceFirst
(
OUString
(
"%s"
),
pInfo
->
m_aPrinterName
);
aText
=
aText
.
replaceFirst
(
OUString
(
"%s"
),
pInfo
->
m_aPrinterName
);
ErrorBox
aBox
(
this
,
WB_OK
|
WB_DEF_OK
,
aText
);
ErrorBox
aBox
(
this
,
WB_OK
|
WB_DEF_OK
,
aText
);
aBox
.
Execute
();
aBox
.
Execute
();
continue
;
continue
;
...
...
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