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
848c78ff
Kaydet (Commit)
848c78ff
authored
May 03, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
drop useless temp debugging strings
Change-Id: I9adc765654cf15633a53576e620c13eddcdc3b82
üst
2b03336d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
12 deletions
+0
-12
textconv.cxx
editeng/source/editeng/textconv.cxx
+0
-12
No files found.
editeng/source/editeng/textconv.cxx
Dosyayı görüntüle @
848c78ff
...
@@ -477,9 +477,6 @@ void TextConvWrapper::ChangeText( const OUString &rNewText,
...
@@ -477,9 +477,6 @@ void TextConvWrapper::ChangeText( const OUString &rNewText,
{
{
const
sal_Int32
nChgLen
=
nIndex
-
nChgPos
;
const
sal_Int32
nChgLen
=
nIndex
-
nChgPos
;
const
sal_Int32
nConvChgLen
=
nPos
-
nConvChgPos
;
const
sal_Int32
nConvChgLen
=
nPos
-
nConvChgPos
;
#ifdef DEBUG
OUString
aInOrig
(
rOrigText
.
copy
(
nChgPos
,
nChgLen
)
);
#endif
OUString
aInNew
(
rNewText
.
copy
(
nConvChgPos
,
nConvChgLen
)
);
OUString
aInNew
(
rNewText
.
copy
(
nConvChgPos
,
nConvChgLen
)
);
// set selection to sub string to be replaced in original text
// set selection to sub string to be replaced in original text
...
@@ -488,9 +485,6 @@ void TextConvWrapper::ChangeText( const OUString &rNewText,
...
@@ -488,9 +485,6 @@ void TextConvWrapper::ChangeText( const OUString &rNewText,
aSel
.
nStartPos
=
nChgInNodeStartIndex
;
aSel
.
nStartPos
=
nChgInNodeStartIndex
;
aSel
.
nEndPos
=
nChgInNodeStartIndex
+
nChgLen
;
aSel
.
nEndPos
=
nChgInNodeStartIndex
+
nChgLen
;
m_pEditView
->
SetSelection
(
aSel
);
m_pEditView
->
SetSelection
(
aSel
);
#ifdef DEBUG
OUString
aSelTxt1
(
m_pEditView
->
GetSelected
()
);
#endif
// replace selected sub string with the corresponding
// replace selected sub string with the corresponding
// sub string from the new text while keeping as
// sub string from the new text while keeping as
...
@@ -536,14 +530,8 @@ void TextConvWrapper::ChangeText_impl( const OUString &rNewText, bool bKeepAttri
...
@@ -536,14 +530,8 @@ void TextConvWrapper::ChangeText_impl( const OUString &rNewText, bool bKeepAttri
// save attributes to be restored
// save attributes to be restored
SfxItemSet
aSet
(
m_pEditView
->
GetAttribs
()
);
SfxItemSet
aSet
(
m_pEditView
->
GetAttribs
()
);
#ifdef DEBUG
OUString
aSelTxt1
(
m_pEditView
->
GetSelected
()
);
#endif
// replace old text and select new text
// replace old text and select new text
m_pEditView
->
InsertText
(
rNewText
,
true
);
m_pEditView
->
InsertText
(
rNewText
,
true
);
#ifdef DEBUG
OUString
aSelTxt2
(
m_pEditView
->
GetSelected
()
);
#endif
// since 'SetAttribs' below function like merging with the attributes
// since 'SetAttribs' below function like merging with the attributes
// from the itemset with any existing ones we have to get rid of all
// from the itemset with any existing ones we have to get rid of all
...
...
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