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
b7c58f55
Kaydet (Commit)
b7c58f55
authored
Eyl 09, 2013
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
covnert editeng/source/editeng/textconv.hxx from String to OUString
Change-Id: Icae973338acf98c07b2073641801a4843d4e0315
üst
201f05e1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
textconv.cxx
editeng/source/editeng/textconv.cxx
+7
-7
textconv.hxx
editeng/source/editeng/textconv.hxx
+2
-2
No files found.
editeng/source/editeng/textconv.cxx
Dosyayı görüntüle @
b7c58f55
...
...
@@ -435,15 +435,15 @@ void TextConvWrapper::ReplaceUnit(
}
void
TextConvWrapper
::
ChangeText
(
const
String
&
rNewText
,
void
TextConvWrapper
::
ChangeText
(
const
OU
String
&
rNewText
,
const
OUString
&
rOrigText
,
const
uno
::
Sequence
<
sal_Int32
>
*
pOffsets
,
ESelection
*
pESelection
)
{
//!! code is a modifed copy of SwHHCWrapper::ChangeText from sw !!
DBG_ASSERT
(
rNewText
.
Len
()
!=
0
,
"unexpected empty string"
);
if
(
rNewText
.
Len
()
==
0
)
DBG_ASSERT
(
!
rNewText
.
isEmpty
()
,
"unexpected empty string"
);
if
(
rNewText
.
isEmpty
()
)
return
;
if
(
pOffsets
&&
pESelection
)
// try to keep as much attributation as possible ?
...
...
@@ -455,7 +455,7 @@ void TextConvWrapper::ChangeText( const String &rNewText,
const
sal_Int32
nIndices
=
pOffsets
->
getLength
();
const
sal_Int32
*
pIndices
=
pOffsets
->
getConstArray
();
xub_StrLen
nConvTextLen
=
rNewText
.
Len
();
sal_Int32
nConvTextLen
=
rNewText
.
getLength
();
xub_StrLen
nPos
=
0
;
xub_StrLen
nChgPos
=
STRING_NOTFOUND
;
xub_StrLen
nChgLen
=
0
;
...
...
@@ -483,7 +483,7 @@ void TextConvWrapper::ChangeText( const String &rNewText,
nIndex
=
static_cast
<
xub_StrLen
>
(
rOrigText
.
getLength
()
);
}
if
(
rOrigText
.
getStr
()[
nIndex
]
==
rNewText
.
GetChar
(
nPos
)
||
if
(
rOrigText
.
getStr
()[
nIndex
]
==
rNewText
[
nPos
]
||
nPos
==
nConvTextLen
/* end of string also terminates non-matching char sequence */
)
{
// substring that needs to be replaced found?
...
...
@@ -494,7 +494,7 @@ void TextConvWrapper::ChangeText( const String &rNewText,
#ifdef DEBUG
String
aInOrig
(
rOrigText
.
copy
(
nChgPos
,
nChgLen
)
);
#endif
String
aInNew
(
rNewText
.
C
opy
(
nConvChgPos
,
nConvChgLen
)
);
String
aInNew
(
rNewText
.
c
opy
(
nConvChgPos
,
nConvChgLen
)
);
// set selection to sub string to be replaced in original text
ESelection
aSel
(
*
pESelection
);
...
...
@@ -543,7 +543,7 @@ void TextConvWrapper::ChangeText( const String &rNewText,
}
void
TextConvWrapper
::
ChangeText_impl
(
const
String
&
rNewText
,
bool
bKeepAttributes
)
void
TextConvWrapper
::
ChangeText_impl
(
const
OU
String
&
rNewText
,
bool
bKeepAttributes
)
{
if
(
bKeepAttributes
)
{
...
...
editeng/source/editeng/textconv.hxx
Dosyayı görüntüle @
b7c58f55
...
...
@@ -62,11 +62,11 @@ class TextConvWrapper : public editeng::HangulHanjaConversion
void
SelectNewUnit_impl
(
const
sal_Int32
nUnitStart
,
const
sal_Int32
nUnitEnd
);
void
ChangeText
(
const
String
&
rNewText
,
void
ChangeText
(
const
OU
String
&
rNewText
,
const
OUString
&
rOrigText
,
const
::
com
::
sun
::
star
::
uno
::
Sequence
<
sal_Int32
>
*
pOffsets
,
ESelection
*
pESelection
);
void
ChangeText_impl
(
const
String
&
rNewText
,
bool
bKeepAttributes
);
void
ChangeText_impl
(
const
OU
String
&
rNewText
,
bool
bKeepAttributes
);
// Forbidden and not implemented.
TextConvWrapper
(
const
TextConvWrapper
&
);
...
...
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