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
c9228985
Kaydet (Commit)
c9228985
authored
Eki 09, 2013
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert sw/source/ui/inc/a*.hxx from String to OUString
Change-Id: I6875504bd979addd5df2ece596a4f718ad491581
üst
51a30356
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
actctrl.cxx
sw/source/ui/cctrl/actctrl.cxx
+3
-3
actctrl.hxx
sw/source/ui/inc/actctrl.hxx
+3
-3
swrenamexnameddlg.cxx
sw/source/ui/utlui/swrenamexnameddlg.cxx
+3
-3
No files found.
sw/source/ui/cctrl/actctrl.cxx
Dosyayı görüntüle @
c9228985
...
@@ -66,7 +66,7 @@ void NoSpaceEdit::KeyInput(const KeyEvent& rEvt)
...
@@ -66,7 +66,7 @@ void NoSpaceEdit::KeyInput(const KeyEvent& rEvt)
if
(
rEvt
.
GetCharCode
())
if
(
rEvt
.
GetCharCode
())
{
{
OUString
sKey
(
rEvt
.
GetCharCode
());
OUString
sKey
(
rEvt
.
GetCharCode
());
if
(
STRING_NOTFOUND
!=
sForbiddenChars
.
Search
(
sKey
))
if
(
-
1
!=
sForbiddenChars
.
indexOf
(
sKey
))
bCallParent
=
false
;
bCallParent
=
false
;
}
}
if
(
bCallParent
)
if
(
bCallParent
)
...
@@ -77,9 +77,9 @@ void NoSpaceEdit::Modify()
...
@@ -77,9 +77,9 @@ void NoSpaceEdit::Modify()
{
{
Selection
aSel
=
GetSelection
();
Selection
aSel
=
GetSelection
();
OUString
sTemp
=
GetText
();
OUString
sTemp
=
GetText
();
for
(
sal_uInt16
i
=
0
;
i
<
sForbiddenChars
.
Len
();
i
++
)
for
(
sal_uInt16
i
=
0
;
i
<
sForbiddenChars
.
getLength
();
i
++
)
{
{
sTemp
=
comphelper
::
string
::
remove
(
sTemp
,
sForbiddenChars
.
GetChar
(
i
)
);
sTemp
=
comphelper
::
string
::
remove
(
sTemp
,
sForbiddenChars
[
i
]
);
}
}
sal_Int32
nDiff
=
GetText
().
getLength
()
-
sTemp
.
getLength
();
sal_Int32
nDiff
=
GetText
().
getLength
()
-
sTemp
.
getLength
();
if
(
nDiff
)
if
(
nDiff
)
...
...
sw/source/ui/inc/actctrl.hxx
Dosyayı görüntüle @
c9228985
...
@@ -46,7 +46,7 @@ public:
...
@@ -46,7 +46,7 @@ public:
* --------------------------------------------------*/
* --------------------------------------------------*/
class
SW_DLLPUBLIC
NoSpaceEdit
:
public
Edit
class
SW_DLLPUBLIC
NoSpaceEdit
:
public
Edit
{
{
String
sForbiddenChars
;
OU
String
sForbiddenChars
;
protected
:
protected
:
virtual
void
KeyInput
(
const
KeyEvent
&
);
virtual
void
KeyInput
(
const
KeyEvent
&
);
virtual
void
Modify
();
virtual
void
Modify
();
...
@@ -54,8 +54,8 @@ protected:
...
@@ -54,8 +54,8 @@ protected:
public
:
public
:
NoSpaceEdit
(
Window
*
pParent
);
NoSpaceEdit
(
Window
*
pParent
);
virtual
~
NoSpaceEdit
();
virtual
~
NoSpaceEdit
();
void
SetForbiddenChars
(
const
String
&
rSet
){
sForbiddenChars
=
rSet
;}
void
SetForbiddenChars
(
const
OU
String
&
rSet
){
sForbiddenChars
=
rSet
;}
const
String
&
GetForbiddenChars
(){
return
sForbiddenChars
;}
const
OUString
&
GetForbiddenChars
(){
return
sForbiddenChars
;}
};
};
/* --------------------------------------------------
/* --------------------------------------------------
...
...
sw/source/ui/utlui/swrenamexnameddlg.cxx
Dosyayı görüntüle @
c9228985
...
@@ -96,12 +96,12 @@ IMPL_LINK(SwRenameXNamedDlg, ModifyHdl, NoSpaceEdit*, pEdit)
...
@@ -96,12 +96,12 @@ IMPL_LINK(SwRenameXNamedDlg, ModifyHdl, NoSpaceEdit*, pEdit)
// prevent from pasting illegal characters
// prevent from pasting illegal characters
sal_uInt16
nLen
=
sTmp
.
Len
();
sal_uInt16
nLen
=
sTmp
.
Len
();
String
sMsg
;
String
sMsg
;
for
(
sal_uInt16
i
=
0
;
i
<
pEdit
->
GetForbiddenChars
().
Len
();
i
++
)
for
(
sal_uInt16
i
=
0
;
i
<
pEdit
->
GetForbiddenChars
().
getLength
();
i
++
)
{
{
sal_uInt16
nTmpLen
=
sTmp
.
Len
();
sal_uInt16
nTmpLen
=
sTmp
.
Len
();
sTmp
=
comphelper
::
string
::
remove
(
sTmp
,
pEdit
->
GetForbiddenChars
()
.
GetChar
(
i
)
);
sTmp
=
comphelper
::
string
::
remove
(
sTmp
,
pEdit
->
GetForbiddenChars
()
[
i
]
);
if
(
sTmp
.
Len
()
!=
nTmpLen
)
if
(
sTmp
.
Len
()
!=
nTmpLen
)
sMsg
+=
pEdit
->
GetForbiddenChars
()
.
GetChar
(
i
)
;
sMsg
+=
pEdit
->
GetForbiddenChars
()
[
i
]
;
}
}
if
(
sTmp
.
Len
()
!=
nLen
)
if
(
sTmp
.
Len
()
!=
nLen
)
{
{
...
...
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